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
WikiBayer
.
Toggle Highlighting
SQL
SELECT userName, SUM(thanksSent) AS thanksSent, SUM(thanksReceived) AS thanksReceived FROM ( SELECT log_title AS userName, 0 AS thanksSent, COUNT(*) AS thanksReceived FROM logging_logindex WHERE log_action = 'thank' AND log_title IN ('WikiBayer', 'Gardini', 'DerHexer', 'Jack User', 'Itti') GROUP BY log_title UNION ALL SELECT actor.actor_name AS userName, COUNT(*) AS thanksSent, 0 AS thanksReceived FROM logging_logindex JOIN actor ON logging_logindex.log_actor = actor.actor_id WHERE log_action = 'thank' AND actor.actor_name IN ('WikiBayer', 'Gardini', 'DerHexer', 'Jack User', 'Itti') GROUP BY actor.actor_name ) combined GROUP BY userName ORDER BY userName;
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...