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
Erutuon
.
Toggle Highlighting
SQL
select language, count, lemma_count, cast(count as float) / cast(lemma_count as float) as fraction from (select language, count(*) as count from (select substring(cl_to, 1, instr(cl_to, '_terms_with_redundant_head_parameter') - 1) as language from categorylinks where cl_to like '%\_terms\_with\_redundant\_head\_parameter') as category_appearances group by language order by count desc) as languages left join ( select lemma_language, count(*) as lemma_count from ( select substring(cl_to, 1, instr(cl_to, '_lemmas') - 1) as lemma_language from categorylinks where cl_to like '%\_lemmas' ) as lemmas group by lemma_language ) as lemmas on lemma_language = language;
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...