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 * FROM (SELECT cl_from FROM categorylinks WHERE cl_to = 'Údržba:Doplnit_štítek_na_Wikidatech') AS cl JOIN (SELECT * FROM wbc_entity_usage WHERE eu_aspect = 'L.en') AS eusage ON eu_page_id = cl_from LEFT JOIN (SELECT * FROM wikidatawiki_p.wb_terms WHERE term_type = 'label' AND term_language = 'en') AS terms ON term_full_entity_id = eu_entity_id WHERE term_text IS NULL LIMIT 5; SELECT * FROM wbc_entity_usage JOIN wikidatawiki_p.wb_terms ON eu_entity_id = term_full_entity_id WHERE eu_aspect = 'L.en' AND term_type = 'label' AND term_language = 'en';*/ #SELECT eu_entity_id, COUNT(*) AS ct FROM wbc_entity_usage WHERE eu_aspect = 'L.en' GROUP BY eu_entity_id ORDER BY ct DESC; SELECT eu_entity_id, term_text, ct FROM (SELECT eu_entity_id, COUNT(*) AS ct FROM wbc_entity_usage WHERE eu_aspect = 'L.en' GROUP BY eu_entity_id) AS wbc JOIN wikidatawiki_p.wb_terms ON term_full_entity_id = eu_entity_id WHERE term_type = 'label' AND term_language = 'en';
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...