Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Articles with most langlinks in enwiki, missing from lvwiki
by
Voll
This query is marked as a draft
This query has been published
by
Edgars2007
.
Toggle Highlighting
SQL
USE enwiki_p; -- articles from EN with most langlinks... SELECT count(*) ll_count, pp_value, page_title title_en #(select ll_title from langlinks where ll_from = page_id and ll_lang = 'lv') title_lv, #(select ll_title from langlinks where ll_from = page_id and ll_lang = 'ru') title_ru, #(select ll_title from langlinks where ll_from = page_id and ll_lang = 'de') title_de, #(select ll_title from langlinks where ll_from = page_id and ll_lang = 'pl') title_pl FROM page, langlinks, page_props WHERE ll_from = page_id and (select count(*) from langlinks where ll_from = page_id) >= 51 and -- attempt to limit number of intermediate rows to fetch and sort page_id not in (select ll_from from langlinks where ll_lang = 'lv') and -- ... missing from SK (no direct iw equivalent there) page_id = pp_page and pp_propname="wikibase_item" and page_namespace = 0 GROUP BY page_id ORDER BY ll_count desc, page_title LIMIT 7000; -- top N
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...