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
Jura1
.
Toggle Highlighting
SQL
# test # See also https://upload.wikimedia.org/wikipedia/commons/f/f7/MediaWiki_1.24.1_database_schema.svg use wikidatawiki_p; SELECT cl_to, COUNT(DISTINCT page_id) FROM wikidatawiki_p.page_props AS wdprops, wb_entity_per_page, wb_items_per_site, ltwiki_p.categorylinks, ltwiki_p.page_props AS wpage_props, ltwiki_p.page AS wpage WHERE wdprops.pp_sortkey = 0 AND wdprops.pp_propname="wb-claims" AND wdprops.pp_page = epp_page_id AND epp_entity_type = "item" AND epp_entity_id = ips_item_id AND ips_site_id = "ltwiki" #ltwiki 199,102 works for ocwiki 104,940 AND wpage.page_title = ips_site_page AND wpage.page_namespace = 0 AND wpage.page_id= cl_from AND cl_type="page" GROUP BY cl_to HAVING COUNT(DISTINCT page_id)>5
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...