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; SET @nsf = 0; SET @nst = 0; SET @nn = 10-@nst; select tl_title,tl_namespace, count(*) as ec, concat("tr.wikipedia.org/wiki/Şablon:",tl_title) as url from templatelinks where tl_title in (select pt.page_title from page ptt join pagelinks ptl on ptl.pl_title = ptt.page_title join page pt on ptl.pl_from = pt.page_id where ptt.page_is_redirect = 1 and pt.page_namespace = 10 and ptt.page_namespace = @nsf and ptl.pl_namespace = @nsf and ptl.pl_from_namespace = 10 ) and tl_namespace = 10 and tl_from_namespace = @nst group by tl_from having count(*)>@nn 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...