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
Zilant17
.
Toggle Highlighting
SQL
WITH seImpressions AS ( SELECT dt, wiki, str_to_map(event.action_data, ";", "=") AS action_data FROM event.homepagemodule WHERE year=2021 AND month=6 AND day=25 AND event.action='impression' AND event.module='suggested-edits' ), taskCountData AS ( SELECT wiki, action_data['topics'] AS topics, action_data['taskCount'] AS task_count_num, CASE WHEN action_data['taskCount'] == 0 THEN '0' ELSE '>1' END AS task_count_human FROM seImpressions WHERE action_data['topics'] != '' ) SELECT wiki, task_count_human, COUNT(*) FROM taskCountData GROUP BY wiki, task_count_human ORDER BY wiki, task_count_human
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...