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
Wurgl
.
Artikel in den Kategorien Svizzera und Svizzeri und deren Unterkategorien, ausgenommen die Artikel welche nur in den Kategorien Lingue_della_Svizzera und Federazioni_sportive_per_disciplina (und deren Unterkategorien) sind. Download Data … Wikitable … copy/paste nach Wikipedia … Vorschau oder Wartungsliste anlegen
Toggle Highlighting
SQL
WITH RECURSIVE Cat AS (SELECT page_title FROM page WHERE (page_title = 'Svizzera' OR page_title = 'Svizzeri') /* Subcats of these two Categories */ AND page_namespace = 14 UNION SELECT SubCat.page_title 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" AND SubCat.page_title NOT IN ("Lingue_della_Svizzera", "Competizioni_FIFA") /*Exclude Categories*/ ) SELECT CONCAT('[[', REPLACE(Article.page_title, '_', ' '), ']]') AS "Artikel", GROUP_CONCAT(CONCAT('[[:Category:', REPLACE(Cat.page_title, '_', ' '), ']]') SEPARATOR ", ") AS "Kategorie" FROM Cat, categorylinks, page as Article WHERE cl_to = Cat.page_title AND Article.page_id = cl_from AND Article.page_namespace = 0 AND cl_type = "page" GROUP BY Article.page_title ORDER BY Article.page_title;
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...