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
Matěj Suchánek
.
Toggle Highlighting
SQL
USE wikidatawiki_p; SELECT CONCAT("Q",labels.term_entity_id) AS item, English.term_text, labels.term_text, labels.term_language, descriptions.term_text FROM (SELECT * FROM wb_terms WHERE term_type = "description") AS descriptions JOIN (SELECT * FROM wb_terms WHERE term_type = "label") AS labels ON labels.term_entity_id = descriptions.term_entity_id AND labels.term_language = descriptions.term_language AND labels.term_entity_type = descriptions.term_entity_type LEFT JOIN (SELECT * FROM wb_terms WHERE term_language = "en" AND term_type = "label") AS English ON English.term_entity_id = labels.term_entity_id AND labels.term_language <> English.term_language AND English.term_entity_type = descriptions.term_entity_type WHERE descriptions.term_text RLIKE "\b[Qq][1-9][0-9]"; ORDER BY descriptions.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...