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
MisterSynergy
.
demo how to join with condition
Toggle Highlighting
SQL
SELECT page_namespace, page_title, page_is_redirect, CONCAT('1', pp2.pp_value) AS page_is_dab, pp1.pp_value AS wikidata_qid FROM page LEFT JOIN page_props AS pp1 ON pp1.pp_page=page_id AND pp1.pp_propname='wikibase_item' LEFT JOIN page_props AS pp2 ON pp2.pp_page=page_id AND pp2.pp_propname='disambiguation' WHERE page_is_dab=1 LIMIT 1000
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...