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(y.cl_to, 4) AS year, CASE WHEN c.cl_to='Amerikaans_kinderboek' THEN 'US' WHEN c.cl_to='Nederlands_kinderboek' THEN 'NL' ELSE '' END AS land FROM categorylinks cl, page LEFT JOIN (SELECT cl_to FROM categorylinks WHERE cl_to REGEXP '[Bb]oek_uit_[0-9]+$') y ON page_id=cl_from LEFT JOIN (SELECT cl_to FROM categorylinks WHERE cl_to REGEXP 's_kinderboek$') c ON page_id=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...