Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Hgzh
.
Toggle Highlighting
SQL
WITH RECURSIVE Cat AS ( SELECT page_title, page_id FROM page WHERE page_title = "Wintersport" AND page_namespace = 14 UNION SELECT Subcat.page_title, Subcat.page_id FROM page AS Subcat, categorylinks, Cat WHERE Subcat.page_namespace = 14 AND cl_from = Subcat.page_id AND cl_to = Cat.page_title AND cl_type = "subcat" ) SELECT DISTINCT Art.page_title AS Artikel, GROUP_CONCAT(DISTINCT Red.page_title) AS WL FROM Cat INNER JOIN categorylinks AS Catlinks ON Cat.page_title = Catlinks.cl_to INNER JOIN page AS Art ON Catlinks.cl_from = Art.page_id LEFT JOIN redirect AS Rd ON (Rd.rd_title = Art.page_title AND Rd.rd_namespace = 0) LEFT JOIN page AS Red ON (Rd.rd_from = Red.page_id AND Red.page_namespace = 0) WHERE Art.page_namespace = 0 GROUP BY Artikel ORDER BY Artikel
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...