Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Scrape Wikidata Item IDs from {{Artwork}} templates
by
Jarekt
This query is marked as a draft
This query has been published
by
Jarekt
.
Toggle Highlighting
SQL
use commonswiki_p; SELECT concat("M",page_id) AS MID, 'P6243', REPLACE(el_to,'https://reasonator.toolforge.org/test/?q=','') AS QID, CONCAT("File:",page_title) FROM page JOIN externallinks ON page_id=el_from AND el_to LIKE 'https://reasonator.toolforge.org%' JOIN categorylinks ON page_id=cl_from AND cl_to='Artworks_missing_digital_representation_of_for_2D_work' #join templatelinks on page_id=tl_from and tl_namespace = 10 AND (tl_title="Artwork" OR tl_title="Art_Photo" OR tl_title="Object_photo") WHERE page_namespace = 6 order by QID asc limit 20000
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...