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
Herzi Pinki
.
Count the number of edits on Wikipedia:österreichbezogen pages, where edit_count > 5 and registration in last year
Toggle Highlighting
SQL
USE dewiki_p; SELECT /* SLOW_OK */ DISTINCT a1.actor_name AS user, u1.user_editcount, COUNT(r1.rev_parent_id) as oe_edit_count, COUNT(r1.rev_parent_id)/u1.user_editcount as ratio, DATE_FORMAT(u1.user_registration,'%Y-%m-%d') as registered_since FROM page AS p1 JOIN categorylinks AS cl1 ON p1.page_id=cl1.cl_from join revision as r1 on p1.page_id = r1.rev_page join actor as a1 on a1.actor_id = r1.rev_actor join user as u1 on u1.user_id = a1.actor_user WHERE # rev_timestamp >= 20200101000000 # (week, -2, GETDATE()) r1.rev_timestamp >= DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL -2 Week),'%Y%m%d000000') #and u1.user_registration >= DATE_FORMAT(DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL -2 year),'%Y%m%d000000') AND a1.actor_name NOT LIKE "%bot%" AND actor_name NOT LIKE "%Bot%" AND cl1.cl_to = "Wikipedia:österreichbezogen" GROUP BY user having oe_edit_count > 5 ORDER BY oe_edit_count DESC limit 500;
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...