Fork of
Untitled query #15718
by Edgars2007
This query is marked as a draft
This query has been published
by Jarekt.
SQL
AخA
use commonswiki_p;
SELECT concat(REPLACE(REPLACE(REPLACE(el_to, 'https://tools.wmflabs.org/quickstatements/index_old.html#v1=',''),'%09','|'),'%0A','|'),'S4656|\'"https://commons.wikimedia.org/wiki/File:',page_title,'"')
FROM externallinks
JOIN page ON page_id = el_from
JOIN categorylinks ON cl_from = page_id
WHERE
page_namespace = 6 and
cl_to='Artworks_with_Wikidata_item:_quick_statements' AND
el_to LIKE 'https://tools.wmflabs.org/quickstatements/%'
limit 50000
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.