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
.
Toggle Highlighting
SQL
SELECT DISTINCT CONCAT('[[',REPLACE(page_title,'_',' '),']]') AS page_title, RIGHT(yc.cl_to, 4) AS year, CASE WHEN cc.cl_to='Amerikaans_kinderboek' THEN 'US' WHEN cc.cl_to='Nederlands_kinderboek' THEN 'NL' ELSE '' END AS 'country' FROM categorylinks cl, page LEFT JOIN (SELECT cl_from, cl_to FROM categorylinks WHERE cl_to REGEXP '[Bb]oek_uit_[0-9]+$') yc ON page_id=yc.cl_from LEFT JOIN (SELECT cl_from, cl_to FROM categorylinks WHERE cl_to REGEXP 's_kinderboek$') cc ON page_id=cc.cl_from WHERE page_namespace=0 AND page_is_redirect=0 AND page_id=cl.cl_from AND cl.cl_to REGEXP '[Kk]inderboek($|_)'
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...