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 epp_page_id, CONCAT('Q',epp_entity_id), GROUP_CONCAT(DISTINCT term_text ORDER BY term_text ASC SEPARATOR ', ') FROM wb_terms JOIN wb_entity_per_page ON epp_entity_id = term_entity_id JOIN pagelinks AS links1 ON links1.pl_from = epp_page_id AND links1.pl_title IN ('Q202444','Q12308941','Q11879590','Q3409032') AND links1.pl_from_namespace = 0 LEFT JOIN pagelinks AS links2 ON links2.pl_from = epp_page_id AND links2.pl_title = 'Q13406463' WHERE term_entity_type = 'item' AND term_type = 'label' AND term_language IN ('en','cs','da','de','es','et','fi','fr','hr','hu','it','nn','nb','nl','pl','pt','sl','sk','sv','tr') AND links2.pl_title IS NULL AND NOT epp_entity_id IN (5,49614,82799,95074,202444,215627) GROUP BY epp_page_id HAVING COUNT(DISTINCT term_text) > 1;
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...