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
Yi7cuGhe
.
Toggle Highlighting
SQL
/*SELECT * FROM page WHERE page_namespace = 14 AND page_title = 'Person'*/ WITH recursive personenkategorien as ( SELECT CONCAT(p.page_title,' ') page_title, 'main ' parent FROM categorylinks cl JOIN page p ON p.page_id = cl.cl_from WHERE cl_type = 'subcat' and cl_to = 'Person' UNION SELECT p.page_title, pk.page_title parent FROM categorylinks cl JOIN personenkategorien as pk ON TRIM(pk.page_title) = cl.cl_to JOIN page p ON p.page_id = cl.cl_from WHERE cl_type = 'subcat' ) SELECT TRIM(page_title) page_title, TRIM(parent) parent FROM personenkategorien
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...