Fork of Capture QuickStatement external links of {{Artwork}} templates by Jarekt
This query is marked as a draft This query has been published by Jarekt.

SQL

x
 
use commonswiki_p;
SELECT REPLACE(REPLACE(REPLACE(el_to, 'https://quickstatements.toolforge.org/#/v1=',''), '%7C','|'),'||','#')
FROM externallinks
JOIN page ON page_id = el_from
JOIN categorylinks ON cl_from = page_id
WHERE 
    page_namespace in (6,14) and #14
    cl_to='Institution_templates_with_Wikidata_link:_item_missing_linkback' AND 
    el_to LIKE 'https://quickstatements.toolforge.org%'
limit 30000
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...