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"," ","_"); SET @DS = 1; -- sayfadaki bozuk dosya sayısı alt sınırı SET @ns = 0; -- isim alanı SELECT concat("http://tr.wikipedia.org/wiki?action=edit&curid=",p.page_id,"§ion=0") as u0, concat("[[:{{subst:ns:",@ns,"}}:",p.page_title,"|",p.page_title,"]]") as sayfa, concat("[[:Dosya:",il.il_to,"|",il.il_to,"]]") as dosyalardan_biri , count(*) as dosya_sayisi , concat("[http://tr.wikipedia.org/wiki?action=edit&curid=",p.page_id,"§ion=0 link0]") as link0 -- , concat("[http://tr.wikipedia.org/wiki?curid=",p.page_id," link]") as link , p.page_latest as son_revizyon -- ,concat("{{ns:",p.page_namespace,"}}") as ns from imagelinks il join page p on p.page_id = il.il_from JOIN categorylinks cats ON cats.cl_from = p.page_id left join image img on img.img_name = il.il_to WHERE p.page_namespace =@ns and cats.cl_to = @KAT and img.img_user_text is NULL and il.il_to not in (select pq.page_title from page pq where pq.page_namespace = 6) and il.il_to not in (select cpq.page_title from commonswiki_p.page cpq where cpq.page_namespace = 6) -- and il.il_to not rlike '[a-zA-Z]{2}\,[0-9]{2}' group by p.page_id having count(il.il_to) >= @DS -- group by il.il_to order by p.page_namespace, count(*), p.page_latest, 1 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...