Fork of
Taxonomy page
by Mr. Ibrahem
This query is marked as a draft
This query has been published
by Mr. Ibrahem.
SQL
x
#use arwiki_p;
select cl_sortkey_prefix AS " item "
, CONCAT('Sarwiki') as "S"
, CONCAT('',arwiki_p.page.page_title,'') AS "Page"
FROM arwiki_p.page#, wikidatawiki_p.page wdp
#, COUNT(*) AS "عدد الاستخدامات" ,page_namespace
#page_namespace, page_title, cl_sortkey_prefix, COUNT(*)
JOIN arwiki_p.categorylinks
#join page
ON arwiki_p.categorylinks.cl_to = "مشروع_ويكي_بيانات/مقالات_غير_مرتبطة"
and arwiki_p.categorylinks.cl_from = page_id
and page_namespace = 0
#LEFT JOIN enwiki_p.page
#ON enwiki_p.page.page_title = arwiki_p.categorylinks.cl_sortkey_prefix
#ON enwiki_p.page.page_title = arwiki_p.categorylinks.cl_sortkey_prefix
#and cl_sortkey_prefix like "مدينة%"
#group by cl_sortkey_prefix# having count(*) > 1
#ORDER BY COUNT(*) DESC
#and page_title like "Mr._Ibrahem/%"
#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.