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

SQL

AخA
 
SELECT CONCAT("https://commons.wikimedia.org/wiki/", p2.page_title) as page_url, pp_value
FROM page as p1,  categorylinks as c, page as p2 LEFT JOIN page_props ON pp_page=p2.page_id AND pp_propname = 'wikibase_item'
WHERE p1.page_namespace=14 and p1.page_title like "%allery%"
AND cl_to=p1.page_title
AND cl_from=p2.page_id
AND p2.page_namespace=0
AND pp_value IS NULL
limit 100000;
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...