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
Martin Urbanec (WMF)
.
Toggle Highlighting
SQL
USE commonswiki_p; SELECT page.page_title, page2.page_title, CONCAT("Q", ips_item_id) FROM page LEFT JOIN wikidatawiki_p.wb_items_per_site ON ips_site_page=CONCAT("Category:", REPLACE(page_title, "_", " ")) AND ips_site_id="commonswiki" LEFT JOIN categorylinks ON cl_from=page.page_id AND cl_to=REPLACE(page_title, "Interior_of_", "") JOIN page AS page2 ON page2.page_id=cl_from WHERE page.page_namespace=14 AND page.page_title LIKE "Interior_of_%" LIMIT 1;
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...