Fork of
no wd item by cat
by XXN
This query is marked as a draft
This query has been published
by Edgars2007.
SQL
AخA
USE enwiki_p;
SELECT cl_to, COUNT(page_title) as pages
FROM page join categorylinks on cl_from=page_id
left JOIN (SELECT * FROM page_props WHERE pp_propname = 'wikibase_item') AS props
ON pp_page = page_id
WHERE page_namespace = 0 AND page_is_redirect = 0
AND pp_value is NULL
#and page_id not in (select m.ll_from from langlinks m where m.ll_lang="ceb")
group BY cl_to
having pages > 30
order by pages desc;
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.