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 files in Artworks_with_redirected_Wikidata_link
by
Jarekt
This query is marked as a draft
This query has been published
by
Jarekt
.
Toggle Highlighting
SQL
use commonswiki_p; SELECT REPLACE(el_to_path,'/test/?q=','wd:') AS QID FROM page JOIN externallinks ON page_id=el_from AND el_to_domain_index = 'https://org.toolforge.reasonator.' JOIN categorylinks ON page_id=cl_from AND cl_to='Artworks_with_redirected_Wikidata_link' #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 group by QID limit 25000
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...