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
By erdo can
.
son
Toggle Highlighting
SQL
USE azwiki_p; SET @KAT=replace("İşləməyən fayl keçidləri olan səhifələr"," ","_"); SET @DS = 10; -- maddedeki max dosya sayısı SELECT p.page_title, il.il_to as dosya, count(il.il_to) as dosya_sayisi, concat("[https://az.wikipedia.org/wiki/",p.page_title,']') as link #, il2.il_to as dosya_en from imagelinks il join page p on p.page_id = il.il_from JOIN categorylinks AS cats ON p.page_id = cats.cl_from left join image img on img.img_name = il.il_to #left join iwlinks iwl on iwl.iwl_from = p.page_id #left join enwiki_p.page as p2 on p2.page_title = iwl.iwl_title #left join enwiki_p.imagelinks il2 on il2.il_from = p2.page_id #left join enwiki_p.image img2 on img2.img_name = il2.il_to WHERE p.page_namespace = 0 and cats.cl_to = replace(@KAT," ","_") and img.img_user_text is NULL #and img2.img_user is null -- and (iwl_prefix is null OR iwl_prefix ="en") group by 1 having dosya_sayisi <= @DS order by 3 asc, 1 asc limit 200;
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...