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
Bdijkstra
.
Find links from Dutch Wikipedia articles to Dutch Wikisource that don't have a Wikidata ID.
Toggle Highlighting
SQL
/*SELECT iwl_title, page_namespace, page_title FROM nlwikisource_p.iwlinks, nlwikisource_p.page WHERE iwl_prefix='w' AND iwl_title NOT IN ('', 'Hoofdpagina', 'Wikipedia') AND iwl_title NOT REGEXP '^Speciaal:Boekbronnen/' AND iwl_from=page_id AND page_namespace NOT IN (1,2,3,4,5,6,7,8,9,11,13,15) AND NOT EXISTS (SELECT * FROM nlwikisource_p.page_props WHERE pp_page=page_id AND pp_propname='wikibase_item') LIMIT 100*/ /*SELECT iwl_title, pw.page_namespace, pw.page_title FROM nlwiki_p.iwlinks, nlwiki_p.page pw, nlwikisource_p.page ps WHERE iwl_prefix='s' AND iwl_title!='' AND iwl_title NOT REGEXP '/' AND iwl_from=pw.page_id AND pw.page_namespace=0 AND ps.page_namespace=0 AND ps.page_title=iwl_title AND ps.page_is_redirect=0 AND NOT EXISTS (SELECT * FROM nlwikisource_p.page_props WHERE pp_page=ps.page_id AND pp_propname='wikibase_item')*/ /*SELECT CONCAT('Auteur:', page_title) FROM nlwikisource_p.page WHERE page_is_redirect=0 AND page_title NOT REGEXP '/' AND page_namespace=102 AND NOT EXISTS (SELECT * FROM nlwikisource_p.page_props WHERE pp_page=page_id AND pp_propname='wikibase_item') ORDER BY page_title*/ /*SELECT CONCAT('Hoofdportaal:', page_title) FROM nlwikisource_p.page WHERE page_namespace=100 AND EXISTS (SELECT * FROM nlwikisource_p.page_props WHERE pp_page=page_id AND pp_propname='wikibase_item') ORDER BY page_title*/ SELECT page_title FROM nlwikisource_p.page hp WHERE page_namespace=100 AND EXISTS (SELECT * FROM nlwikisource_p.page a WHERE a.page_namespace=102 AND hp.page_title=a.page_title) EXISTS (SELECT * FROM nlwikisource_p.page_props WHERE pp_page=page_id AND pp_propname='wikibase_item') ORDER BY 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...