Fork of Most common deletion reasons on zhwp - 2020 by WhitePhosphorus
This query is marked as a draft This query has been published by Pyb.

SQL

AخA
 
USE frwiki_p;
SELECT comment_text, fr.log_namespace COUNT(log_id) FROM logging_logindex lu
JOIN comment ON log_comment_id = comment_id
WHERE log_type = 'delete' AND 
log_action = 'delete' AND 
log_timestamp BETWEEN "20200101" AND "20201231" AND lu.log_namespace = 0
GROUP BY comment_text
ORDER BY COUNT(log_id) DESC
LIMIT 50
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.

Query status: failed

Error
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'COUNT(log_id) FROM logging_logindex lu
JOIN comment ON log_comment_id = comment_' at line 1