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; -- 100371 -- select log_id from logging where log_type = 'thanks' and log_title = 'درفش_کاویانی'; -- thanked by others 202 times -- select log_id from logging where log_type = 'thanks' and log_user = 100371; -- thanked others 208 times select user_name, count(l2.log_id) wasthanked, count(l1.log_id) thankedothers from user join logging l1 on user_id = log_user join logging l2 on user_name = l2.log_title where l1.log_type = 'thanks' and l2.log_type = 'thanks' group by user_name;
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...