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
Huji
.
Toggle Highlighting
SQL
use fawiki_p; SELECT il_to, COUNT(il_from) totaluse, SUM( CASE WHEN il_from_namespace NOT IN ( 0, 4, 10, 100, 118 ) THEN 1 ELSE 0 END ) AS misuse FROM imagelinks JOIN page ON page_title = il_to AND page_namespace = 6 JOIN categorylinks ON page_id = cl_from AND cl_to = 'محتویات_غیر_آزاد' GROUP BY page_title HAVING totaluse > 10 ORDER BY misuse DESC; SELECT * FROM imagelinks WHERE il_to = 'Esteghlal_FC_logo.png'
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...