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
Lopullinen
.
Toggle Highlighting
SQL
WITH pages_vg AS ( WITH pages_vg_talk AS ( SELECT page.page_namespace, page.page_title FROM page JOIN categorylinks ON cl_to = '推薦的新條目' AND cl_type = 'page' AND cl_from = page.page_id JOIN categorylinks ON cl_to = '任天堂工作组条目' ) SELECT page.page_id, page.page_title FROM page JOIN pages_vg_talk ON page.page_title = pages_vg_talk.page_title AND page.page_namespace + 1 = pages_vg_talk.page_namespace ), transclusion_count AS ( SELECT pages_vg.page_title, COUNT(*) AS cot FROM pages_vg JOIN templatelinks ON tl_from = pages_vg.page_id GROUP BY pages_vg.page_title ) SELECT CONCAT( '* {{icon|DYK}} [[:Template:', REPLACE(page_title, '_', ' '), ']]' ) AS result FROM transclusion_count ORDER BY cot DESC, 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...