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
Tacsipacsi
.
This query gets the longest new articles in huwiki in 2019, as well as the most significantly expanded articles. In order to avoid cases like article expanded by 100% (two bytes instead of one), there is a 1 kiB lower bound in both categories (referring to the new size in case of expanded articles).
Toggle Highlighting
SQL
SELECT p.page_title, new.rev_len AS len, (new.rev_len - old.rev_len) AS diff, ((new.rev_len - old.rev_len) / old.rev_len) AS percentage FROM page p, (SELECT rev_page, rev_len FROM revision WHERE rev_page = p.page_id AND STRCMP(rev_timestamp, '20190101000000') = -1 ORDER BY rev_timestamp DESC LIMIT 1) AS old, (SELECT rev_page, rev_len FROM revision WHERE rev_page = p.page_id AND STRCMP(rev_timestamp, '20200101000000') = -1 ORDER BY rev_timestamp DESC LIMIT 1) AS new WHERE -- page_id = old.rev_page AND page_id = new.rev_page AND ((new.rev_len - old.rev_len) / old.rev_len) > 0.3 AND new.rev_len > 1024 ORDER BY percentage DESC LIMIT 10;
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...