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
The Polish
.
Toggle Highlighting
SQL
USE plwiki_p; /*SELECT CONCAT("{{s|",tl_title,'}}') as tl_title, COUNT(*) AS count_tl_title FROM page, templatelinks WHERE tl_namespace = 10 AND tl_from IS NULL AND NOT EXISTS (SELECT * FROM templatelinks WHERE page_title = tl_title) GROUP BY tl_title ORDER BY count_tl_title DESC, tl_title ASC;*/ SELECT CONCAT('{{s|',page_title,'}}') as page_title FROM page, templatelinks WHERE page_id = tl_from AND tl_namespace = 10 AND page_title NOT LIKE '%/%' AND page_namespace = 10 AND NOT EXISTS (SELECT * FROM templatelinks t1 WHERE page_title = t1.tl_title AND t1.tl_namespace = 10) GROUP BY page_title ORDER BY page_title ASC;
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...