Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
XXN
.
Toggle Highlighting
SQL
use wikidatawiki_p; SELECT CONCAT('Q', term_entity_id) As item, CONCAT('"', term_text, '"') As descr, GROUP_CONCAT(w1.term_text separator ' *, ') As alias, CURRENT_DATE from wb_terms join wb_terms w1 on term_entity_id = w1.term_entity_id WHERE term_entity_type = 'item' AND term_language = 'en' AND term_type = 'label' # 'description', 'alias' AND term_text LIKE 'The %' and (w1.term_entity_type = 'item' AND w1.term_language = 'en' AND w1.term_type = 'alias') GROUP BY term_text, term_entity_id
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...