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 cswiki_p; SELECT eu_entity_id, sk.term_text, en.term_text, COUNT(*) AS ct FROM (SELECT * FROM wbc_entity_usage WHERE eu_aspect = 'L.en') AS eusage LEFT JOIN (SELECT * FROM wikidatawiki_p.wb_terms WHERE term_type = 'label' AND term_language = 'cs') AS cs ON cs.term_full_entity_id = eu_entity_id #LEFT JOIN (SELECT * FROM wikidatawiki_p.wb_terms WHERE term_type = 'label' AND term_language = 'sk' AND term_entity_type = 'item') AS sk #ON sk.term_full_entity_id = eu_entity_id LEFT JOIN (SELECT * FROM wikidatawiki_p.wb_terms WHERE term_type = 'label' AND term_language = 'en') AS en ON en.term_full_entity_id = eu_entity_id WHERE cs.term_text IS NULL GROUP BY eu_entity_id HAVING ct > 2;
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...