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
Cpaolo79
.
Query che identifica gli utenti che negli ultimi due anni hanno compiuto più azioni di ringraziamento su it.wikipedia.org.
Toggle Highlighting
SQL
SELECT COUNT(log_id) AS counter, user_name, user_editcount, GROUP_CONCAT(DISTINCT ug_group SEPARATOR ", ") FROM logging JOIN user us ON logging.log_user = us.user_id JOIN user_groups ug ON logging.log_user = ug.ug_user AND ug.ug_user NOT IN (SELECT DISTINCT user_groups.ug_user FROM user_groups WHERE ug_group = 'sysop' OR ug_group = 'rollbacker' ) WHERE logging.log_type = 'patrol' AND logging.log_action = 'patrol' AND logging.log_timestamp > ( NOW() - INTERVAL 24 MONTH ) AND ( logging.log_params LIKE '%"6::auto";i:0%' OR logging.log_params LIKE '%\n0' /* not autopatrolled */ ) GROUP BY user_name ORDER BY counter DESC LIMIT 50;
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...