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
Huji
.
Toggle Highlighting
SQL
use fawiki_p; SELECT log_title, COUNT(log_id), IFNULL(thankback, 0), COUNT(log_id) + IFNULL(thankback, 0) AS cnt FROM logging LEFT JOIN ( SELECT user_name, COUNT(log_id) thankback FROM logging JOIN actor on actor_user = actor_id JOIN user ON user_id = actor_user WHERE log_type = 'thanks' GROUP BY user_name ) back ON back.user_name = replace(log_title, '_', ' ') WHERE log_type = 'thanks' GROUP BY log_title ORDER BY cnt DESC LIMIT 1000
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...