SQL
x
USE enwiki_p;
SELECT
count(*) ll_count,
CONCAT("[[:en:",page_title,"]]") title_en,
(select CONCAT("[[:lt:",ll_title,"]]") from langlinks where ll_from = page_id and ll_lang = 'lt') title_lt,
(select CONCAT("[[:d:",pp_value,"]]") from page_props where pp_page = page_id and pp_propname = 'wikibase_item') wb_item
FROM
page, langlinks
WHERE
page_title in (
SELECT page_title AS member
FROM categorylinks LEFT JOIN page ON (cl_from = page_id)
WHERE cl_to = "Mid-priority_mathematics_articles"
) and
ll_from = page_id and
page_namespace = 0
GROUP BY
page_id
ORDER BY
ll_count desc, page_title
LIMIT
2050;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.