A badge for reading time?

This query lists users who spent more than 480 hours reading posts. I hope it helps.

-- millisecond conversion: [qtt hours * 3600000]: 480 * 3600000 = 1,728,000,000

WITH time_reading AS (
    SELECT 
        user_id, 
        SUM(msecs) hours 
    FROM post_timings 
    GROUP BY user_id
    HAVING SUM(msecs) >= 1728000000)

SELECT user_id, CURRENT_TIMESTAMP granted_at
FROM time_reading
3 Likes