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
Mminovic
.
Toggle Highlighting
SQL
SELECT p.* AS parent_category FROM categorylinks cl JOIN page p1 ON p1.page_title = 'Београд' -- Your starting category AND p1.page_namespace = 14 -- Ensure we're in category namespace JOIN page p ON cl.cl_to = p.page_title -- Join to get parent category names WHERE cl.cl_from = p1.page_id AND cl.cl_type = 'subcat';
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...