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
Jura1
.
Toggle Highlighting
SQL
use wikidatawiki_p; SELECT term_text AS label, GROUP_CONCAT(CONCAT('Q', term_entity_id)) AS Qids FROM pagelinks, wb_entity_per_page, wb_terms WHERE pl_title in ('Q202444', 'Q3409032', 'Q11879590', 'Q12308941') and pl_namespace = 0 and epp_entity_type = 'item' AND pl_from = epp_page_id and term_entity_id = epp_entity_id AND term_entity_type = 'item' AND term_language in ('en') and term_type = 'label' GROUP BY term_entity_id, term_text
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...