Fork of
صفحات_ويكي_بيانات_بحاجة_لتسمية_عربية
by Mr. Ibrahem
This query is marked as a draft
This query has been published
by Mr. Ibrahem.
SQL
x
use arwiki_p;
select CONCAT('',page_title,'') AS "موجود في", cl_sortkey_prefix AS " الصفحة ", COUNT(*) AS "عدد الاستخدامات",page_namespace,labels.term_text
#page_namespace, page_title, cl_sortkey_prefix, COUNT(*)
from categorylinks join page
on cl_from = page_id
and cl_to = "صفحات_ويكي_بيانات_بحاجة_لتسمية_عربية"
#and cl_sortkey_prefix like "مدينة%"
#and page_title like "ساوري_يوش%"
left JOIN (SELECT * FROM wikidatawiki_p.wb_terms WHERE term_type = "label" AND term_entity_type = "item") AS labels
ON term_entity_id = cl_sortkey_prefix# AND CONCAT("L.",term_language) = eu_aspect
group by cl_sortkey_prefix having count(*) > 10
ORDER BY COUNT(*) DESC
#limit 50;
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.