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

SQL

x
 
select now();
#v2
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=22819068 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#v3
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=892745 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#arts
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21259046 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#biologija
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21259405 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#everyday
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21259186 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#geografija
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21259008 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#history
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21258969 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#maths
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21273311 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#people
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21258902 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#filozofija
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21259101 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#fizika
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21271228 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#society
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21259318 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) desc;
#tehnology
select p.page_title, count(l.ll_lang)
from langlinks l
join page p on p.page_id=l.ll_from
where exists (select * from pagelinks pl
                        join page p on p.page_title=pl.pl_title and pl.pl_namespace=p.page_namespace
                        where p.page_id=l.ll_from and pl.pl_from=21273282 and pl.pl_namespace=0)
and p.page_namespace=0 and not exists (select * from langlinks m where l.ll_from=m.ll_from and m.ll_lang="lv")
group by l.ll_from
order by count(l.ll_lang) 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.

Checking query status...