Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Elph
.
This query has been written by Huji
Toggle Highlighting
SQL
use arwiki_p; select ori.*, r1.rev_timestamp latest_revision, r1.rev_len latest_size, DATEDIFF(str_to_date(r1.rev_timestamp, '%Y%m%d'), str_to_date(created_when, '%Y%m%d')) growth_period, ROUND(100 * (r1.rev_len / original_size - 1)) growth_percentage, 30 * ROUND(100 * (r1.rev_len / original_size - 1)) / DATEDIFF(str_to_date(r1.rev_timestamp, '%Y%m%d'), str_to_date(created_when, '%Y%m%d')) growth_rate from ( select page_title, page_namespace,rev_user_text, rev_page, rev_timestamp as created_when, rev_len original_size from revision join page on rev_page = page_id where rev_parent_id = 0 AND page_namespace = 0 #and rev_comment like '%ابزار/به_ویکیفا%' AND rev_timestamp BETWEEN 20140101000000 AND 20161230000000 and page_random > RAND() AND rev_user_text IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'bot') limit 1000 ) ori join revision r1 on ori.rev_page = r1.rev_page left join revision r2 on r1.rev_page = r2.rev_page and r2.rev_timestamp > r1.rev_timestamp where r2.rev_timestamp is null
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...