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
Cloudz679
.
modified from Polish version at https://quarry.wmflabs.org/query/2186
Toggle Highlighting
SQL
SELECT CONCAT(‘[[‘,cswiki_p.page.page_title,']]') AS cs, CONCAT('[[:en:',enwiki_p.page.page_title,'|',enwiki_p.page.page_title,']]') AS en FROM enwiki_p.page JOIN cswiki_p.page ON enwiki_p.page.page_title = cswiki_p.page.page_title LEFT JOIN cswiki_p.langlinks ON ll_from = cswiki_p.page.page_id LEFT JOIN (SELECT * FROM cswiki_p.page_props WHERE pp_propname = 'wikibase_item') AS props ON pp_page = cswiki_p.page.page_id LEFT JOIN cswiki_p.templatelinks ON tl_from = cswiki_p.page.page_id WHERE cswiki_p.page.page_namespace = 0 AND cswiki_p.page.page_is_redirect = 0 AND enwiki_p.page.page_namespace = 0 AND enwiki_p.page.page_is_redirect = 0 AND ll_title IS NULL AND pp_value IS NULL AND NOT EXISTS (SELECT * FROM cswiki_p.page_props AS disambig1 WHERE disambig1.pp_propname LIKE 'disambiguation' AND disambig1.pp_page = cswiki_p.page.page_id) AND NOT EXISTS (SELECT * FROM enwiki_p.page_props AS disambig2 WHERE disambig2.pp_propname LIKE 'disambiguation' AND disambig2.pp_page = enwiki_p.page.page_id) GROUP BY enwiki_p.page.page_title, cswiki_p.page.page_title;
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...