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
Amkilpatrick
.
Toggle Highlighting
SQL
WITH t AS ( SELECT ll_lang, article.page_id AS pid FROM page talk INNER JOIN page article ON talk.page_title = article.page_title INNER JOIN categorylinks ON cl_from = talk.page_id LEFT JOIN langlinks ON ll_from = article.page_id WHERE talk.page_namespace = 1 AND article.page_namespace = 0 AND cl_to IN ( "Top-importance_medicine_articles", "High-importance_medicine_articles", "Mid-importance_medicine_articles", "Low-importance_medicine_articles", "NA-importance_medicine_articles", "Unknown-importance_medicine_articles" ) ) SELECT ll_lang AS lang, COUNT( pid ) AS articles, ROUND( COUNT( pid ) * 100 / ( SELECT COUNT( DISTINCT pid ) FROM t ), 2 ) AS percent_of_en FROM t GROUP BY ll_lang ORDER BY articles DESC;
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...