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 @KAT=replace("Bozuk dosya bağlantıları içeren sayfalar"," ","_"); SELECT pl.pl_title as sablon, count(cats.cl_from) as sayi, concat("tr.wikipedia.org/wiki/Template:",pl.pl_title) as link from categorylinks cats -- join page on p.page_id = cats.cl_from join pagelinks pl on pl.pl_from = cats.cl_from -- join page pt on pt.page_title = pl.pl_title WHERE cats.cl_to = @KAT and pl.pl_namespace = 10 -- and p.page_namespace not in (2,3) -- and pt.page_id in (select catsp.cl_from from categorylinks catsp where catsp.cl_to = @KAT) group by 1 having sayi > 1 order by 2 desc, 1 asc limit 100;
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...