This query is marked as a draft This query has been published by Bulgu.

SQL

x
 
SELECT NOW();
SET @NS = 14; 
SELECT  p.page_id, p.page_title, count(*) as llcount, concat("tr.wikipedia.org/wiki?curid=",p.page_id) as url
FROM page p join langlinks ll on ll.ll_from = p.page_id 
#join recentchanges rc on rc.rc_cur_id = p.page_id
where p.page_namespace = @NS 
-- and p.page_title not like "List%" 
and p.page_id not in 
(SELECT DISTINCT(pp.page_id) from page pp join langlinks ltr on ltr.ll_from = pp.page_id where 
 pp.page_namespace = @NS and ltr.ll_lang = "tr" )
group by 1 order by 3 desc
LIMIT 100;
SELECT NOW();
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...