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
Bulgu
.
Toggle Highlighting
SQL
USE trwiki_p; SELECT tl.tl_title, count(*) , IF(page_id in ( SELECT tl2.tl_from FROM templatelinks tl2 where tl2.tl_title like "•w" ) , 1, 0) as inn from templatelinks tl join page on page_title = tl.tl_title where tl.tl_from in ( SELECT tl2.tl_from FROM templatelinks tl2 where tl2.tl_title like "•w" -- and tl_from_namespace = 10 ) and page_namespace = 10 group by 1 order by count(*) desc ;
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...