Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Missing Commons creator templates on Wikidata
by
Multichill
This query is marked as a draft
This query has been published
by
Billinghurst
.
Get a list of Qid's and name of Commons creator templates based on https://commons.wikimedia.org/wiki/Category:Creator_templates_with_Wikidata_link:_item_missing_P1472 so we can add it using quickstatements.
Toggle Highlighting
SQL
use commonswiki_p; SELECT iwl_title, 'P1472', CONCAT("\"", REPLACE(page_title, "_", " "), "\"") FROM categorylinks JOIN page ON cl_from=page_id AND page_namespace=100 AND page_is_redirect=0 JOIN iwlinks ON cl_from=iwl_from AND page_id=cl_from AND iwl_prefix='wikidata' AND iwl_title LIKE 'Q%' WHERE cl_to='Creator_templates_with_Wikidata_link:_item_missing_P1472' AND cl_type='page' LIMIT 500;
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...