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 page_title, page_len, (SELECT COUNT(*) FROM pagelinks, page tgt WHERE pl_namespace=0 AND pl_from=tpl.page_id AND pl_title!=tpl.page_title AND pl_namespace=tgt.page_namespace AND pl_title=tgt.page_title) AS blue, (SELECT COUNT(*) FROM pagelinks WHERE pl_namespace=0 AND pl_from=tpl.page_id AND NOT EXISTS ( SELECT * FROM page tgt WHERE pl_title!=tpl.page_title AND pl_namespace=tgt.page_namespace AND pl_title=tgt.page_title)) AS red FROM page tpl WHERE page_namespace=10 AND page_is_redirect=0 AND page_title REGEXP '^Navigatie_' AND page_title NOT REGEXP '^Navigatie_isotopen_van_' HAVING blue <= 2 AND red > 0 ORDER BY blue, red DESC, page_title LIMIT 100*/ SELECT CONCAT('[[Sjabloon:',REPLACE(page_title,'_',' '),']]') AS template, page_len, (SELECT COUNT(*) FROM pagelinks, page tgt WHERE pl_namespace=0 AND pl_from=tpl.page_id AND pl_title!=tpl.page_title AND pl_namespace=tgt.page_namespace AND pl_title=tgt.page_title) AS blue, (SELECT COUNT(*) FROM pagelinks WHERE pl_namespace=0 AND pl_from=tpl.page_id AND NOT EXISTS ( SELECT * FROM page tgt WHERE pl_title!=tpl.page_title AND pl_namespace=tgt.page_namespace AND pl_title=tgt.page_title)) AS red FROM page tpl WHERE page_namespace=10 AND page_is_redirect=0 AND page_title REGEXP '^Navigatie_' AND page_title NOT REGEXP '^Navigatie_isotopen_van_' HAVING blue>0 AND blue <= 2 AND red > 0 ORDER BY page_title LIMIT 100
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...