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
Matěj Suchánek
.
Taken from #1279 See https://www.wikidata.org/wiki/Wikidata:Database_reports/Deleted_Wikidata_entities_that_are_still_linked
Toggle Highlighting
SQL
USE wikidatawiki_p; SELECT * FROM wb_entity_per_page JOIN (SELECT * FROM wb_items_per_site WHERE ips_site_id = "cswiki") AS sitelinks ON sitelinks.ips_item_id = epp_entity_id JOIN (SELECT * FROM pagelinks WHERE pl_title = "Q4167410") AS pagelinks ON pagelinks.pl_from = epp_page_id JOIN (SELECT * FROM cswiki_p.page WHERE page_namespace = 0) AS page ON page.page_title = sitelinks.ips_site_page LEFT JOIN (SELECT * FROM cswiki_p.page_props WHERE pp_propname = "disambiguation") AS props ON props.pp_page = page.page_id WHERE pp_propname IS NULL;
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...