Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Total monthly non-bot labor hours for English Wikipedia
by
EpochFail
This query is marked as a draft
This query has been published
by
EpochFail
.
Filters out bot editors and sessions that last 22 hours or longer.
Toggle Highlighting
SQL
use datasets_p; SELECT left(start, 6) AS month, SUM(TIME_TO_SEC(TIMEDIFF(end, start)) + IF(events = 1, 430, TIME_TO_SEC(TIMEDIFF(end, start))/events)) / (60*60) AS session_hours FROM enwiki_sessions_20150801 WHERE user_text NOT IN (SELECT user_name FROM enwiki_p.user INNER JOIN enwiki_p.user_groups ON user_id = ug_user AND ug_group = 'bot') AND TIME_TO_SEC(TIMEDIFF(end, start)) < 60*60*22 GROUP BY month;
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...