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
Edgars2007
.
Toggle Highlighting
SQL
use zhwiki_p; SELECT DISTINCT page_title,pp_value FROM page,geo_tags,page_props WHERE page_is_redirect=0 AND page_namespace=0 and gt_page_id=page_id AND gt_primary=1 AND page_id=pp_page AND pp_propname="wikibase_item" AND NOT EXISTS (SELECT * FROM wikidatawiki_p.page p0,wikidatawiki_p.pagelinks WHERE p0.page_title=pp_value AND p0.page_namespace=0 AND p0.page_is_redirect=0 AND pl_from=p0.page_id AND pl_title="P625" AND pl_namespace=120)
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...