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 giver.actor_name AS user, COUNT(DISTINCT log_entries.log_id) AS thanks_given, COUNT(DISTINCT receiver.actor_name) AS thanks_received FROM logging AS log_entries LEFT JOIN actor AS giver ON log_entries.actor = giver.actor_id LEFT JOIN revision ON log_entries.log_page = revision.rev_id LEFT JOIN actor AS receiver ON revision.rev_actor = receiver.actor_id WHERE log_entries.log_type = 'thanks' GROUP BY giver.actor_name ORDER BY thanks_given DESC, thanks_received DESC;
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...