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
Patsagorn Y.
.
Toggle Highlighting
SQL
select a.tl_title,count(a.tl_title) 'm',(select count(*) from templatelinks b join page e on e.page_id=b.tl_from join templatelinks c on c.tl_namespace=e.page_namespace and c.tl_title=e.page_title and c.tl_from_namespace=0 where b.tl_namespace=a.tl_namespace and b.tl_title=a.tl_title and b.tl_from_namespace>0 and d.page_id!=b.tl_from)'o' from page d join templatelinks a on d.page_namespace=a.tl_namespace and d.page_title=a.tl_title left join page_props on pp_page=d.page_id and pp_propname='templatedata' where a.tl_from_namespace=0 and pp_page is null and d.page_namespace=10 and d.page_title BETWEEN 'N' AND 'z' group by 1 having count(a.tl_title) > 2000 order by count(a.tl_title)-o desc limit 5000;
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...