SQL
AخA
SELECT SUBSTRING(log_timestamp,1,4) AS Year, COUNT(log_namespace = 0) Deletions, SUM(comment_id IS NOT NULL) AS G13
FROM logging
LEFT JOIN `comment` ON comment_id = log_comment_id AND comment_text REGEXP "\\bG13\\b"
WHERE log_type='delete' AND log_action='delete' AND log_namespace % 2 = 0 /* Exclude Talk: namespaces */
GROUP BY Year
ORDER BY Year
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.