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
Peter Bowman
.
Toggle Highlighting
SQL
SELECT wiktpage.page_id AS wikt_id, qpage.page_title AS quote_title FROM plwikiquote_p.page AS qpage JOIN plwiktionary_p.page AS wiktpage ON CONCAT(UPPER(LEFT(wiktpage.page_title, 1)), SUBSTRING(wiktpage.page_title, 2)) = qpage.page_title AND wiktpage.page_namespace = qpage.page_namespace AND wiktpage.page_is_redirect = qpage.page_is_redirect WHERE qpage.page_namespace = 0 AND qpage.page_is_redirect = 0 AND NOT EXISTS ( SELECT NULL FROM plwikiquote_p.page_props AS qpprops WHERE qpprops.pp_propname = "disambiguation" AND qpprops.pp_page = qpage.page_id ) AND NOT EXISTS( SELECT NULL FROM plwiktionary_p.iwlinks AS wiktiwlinks WHERE wiktiwlinks.iwl_title = qpage.page_title ) AND EXISTS ( SELECT NULL FROM plwiktionary_p.categorylinks AS wiktclinks WHERE wiktclinks.cl_to = "polski_(indeks)" AND wiktclinks.cl_from = wiktpage.page_id ) GROUP BY quote_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...