SQL
x
use wikidatawiki_p;
SELECT
#rev_comment,
#SUM(CASE WHEN DATE(rev_timestamp) > (NOW() - INTERVAL 1 DAY) THEN 1 ELSE 0 END) AS recent_editcount,
COUNT(*) as aa
FROM revision_userindex
WHERE rev_user_text = 'Mr. Ibrahem'
and rev_comment like "%wbsetsitelink-add:1|arwikisource%"
and rev_timestamp between 20160802000000 and 20160803000000
;
#GROUP BY rev_comment
#ORDER BY COUNT(*) DESC
#LIMIT 200;
use wikidatawiki_p;
SELECT
rev_comment,
SUM(CASE WHEN DATE(rev_timestamp) > (NOW() - INTERVAL 1 DAY) THEN 1 ELSE 0 END) AS recent_editcount,
COUNT(*)
FROM revision_userindex
WHERE rev_user_text = 'Mr. Ibrahem'
#and rev_comment not like "%petscan%"
#and rev_comment not like "%wbremoveclaims%"
#and rev_comment not like "%quickstatements%"
and rev_comment like "%wbsetsitelink-add:1|arwikisource%"
#and rev_comment not like "%by [[Special:Contributions/Mr. Ibrahem|Mr. Ibrahem]%"
GROUP BY rev_comment
#ORDER BY recent_editcount DESC
ORDER BY COUNT(*) DESC
LIMIT 200;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.