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
.
Links *from* disambiguations are excluded.
Toggle Highlighting
SQL
USE wikidatawiki_p; SELECT item_links.pl_from AS item, disambigs.page_title /* GROUP_CONCAT(disambigs.page_title SEPARATOR ', ')*/ AS disambig FROM (SELECT * FROM pagelinks WHERE pl_title = 'Q4167410' AND pl_from_namespace = 0 AND pl_namespace = 0) AS disambig_links JOIN (SELECT * FROM page WHERE page_is_redirect = 0) AS disambigs ON disambigs.page_id = disambig_links.pl_from JOIN (SELECT * FROM pagelinks WHERE pl_from_namespace = 0) AS item_links ON item_links.pl_title = disambigs.page_title # JOIN wb_entity_per_page AS items # ON items.epp_entity_id = item_links.pl_from #GROUP BY items.page_title #ORDER BY COUNT(DISTINCT disambigs.page_title) DESC, items.page_id LIMIT 100;
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...