Fork of Tewiki: Disambig pages - Incoming links count by Chaduvari
This query is marked as a draft This query has been published by Vjsuseela.

SQL

AخA
 
use tewiki_p;
select concat("[[",page_title,"|",page_title,"]]"),count(pl_title) from pagelinks,page
              
#join page on page_id=pl_from
where page_title = pl_title
        and page_namespace=0
        and pl_namespace=0
        and page_id in (select pp_page from page_props where pp_propname ="disambiguation")
 group by pl_title
-- having count(page_title) < 4
order by count(pl_title) desc
#and catl.cl_type = "page"
#group by p.page_id
#order by pl_title
 
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.

Checking query status...