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 per selezionare gli utenti che piĆ¹ di tutti hanno effettuato verifiche (patrol) su Wikipedia in italiano negli ultimi 24 mesi.
Toggle Highlighting
SQL
SELECT COUNT(log_id) AS verfiche, user_name AS nome_utente, user_editcount AS edit_utente, GROUP_CONCAT(DISTINCT ug_group SEPARATOR ", ") AS gruppi_dell_utente FROM logging log JOIN actor AS act ON log.log_actor = act.actor_id JOIN user us ON act.actor_user = us.user_id JOIN user_groups ug ON us.user_id = 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 log.log_type = 'patrol' AND log.log_action = 'patrol' AND log.log_timestamp > ( NOW() - INTERVAL 24 MONTH ) AND ( log.log_params LIKE '%"6::auto";i:0%' OR log.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...