This query is marked as a draft This query has been published by Kasyap.

SQL

x
 
use tewiki_p;
SELECT il_to, COUNT(il_to) as Cnt FROM imagelinks
WHERE il_from_namespace = 0 AND (
    NOT EXISTS(
        SELECT
        1
        FROM page
        WHERE page_title = il_to
        AND page_namespace = 6
    )
) AND (
    NOT EXISTS(
        SELECT
        1
        FROM commonswiki_p.page
        WHERE page_title = il_to
        AND page_namespace = 6
    )
)
GROUP BY il_to
ORDER BY Cnt DESC
LIMIT 10000;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...