Fork of Multiple databases : Year-wise count of translated articles by Vjsuseela
This query is marked as a draft This query has been published by UOzurumba (WMF).

SQL

AخA
 
use urwiki_p;
select substr(rev_timestamp,1,4) as yeard,count(substr(rev_timestamp,1,4))
from
    change_tag,change_tag_def,revision,page,actor
where ct_tag_id = ctd_id
    and rev_id=ct_rev_id
    and page_id=rev_page
    and page_namespace=0
    and page_is_redirect=0
    and actor_id=rev_actor
    and ctd_name = "contenttranslation" 
    and rev_parent_id=0
group by substr(rev_timestamp,1,4)
    order by substr(rev_timestamp,1,4);
    
use tewiki_p;
select substr(rev_timestamp,1,4) as yeard,count(substr(rev_timestamp,1,4))
from
    change_tag,change_tag_def,revision,page,actor
where ct_tag_id = ctd_id
    and rev_id=ct_rev_id
    and page_id=rev_page
    and page_namespace=0
    and page_is_redirect=0
    and actor_id=rev_actor
    and ctd_name = "contenttranslation" 
    and rev_parent_id=0
group by substr(rev_timestamp,1,4)
    order by substr(rev_timestamp,1,4);
    
    
use newiki_p;
select substr(rev_timestamp,1,4) as yeard,count(substr(rev_timestamp,1,4))
from
    change_tag,change_tag_def,revision,page,actor
where ct_tag_id = ctd_id
    and rev_id=ct_rev_id
    and page_id=rev_page
    and page_namespace=0
    and page_is_redirect=0
    and actor_id=rev_actor
    and ctd_name = "contenttranslation" 
    and rev_parent_id=0
group by substr(rev_timestamp,1,4)
    order by substr(rev_timestamp,1,4);
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...