crabtriumph-3379Land Contributors - Season - Legendary
    Updated 2025-01-22
    -- forked from sssstatistic / Land Contributors - Season - Search @ https://flipsidecrypto.xyz/sssstatistic/q/n5qacTyq5HiC/land-contributors---season---search
    -- land war season time
    /**
    WHEN decoded_log['seasonId'] = 3
    THEN to_timestamp(decoded_log['endTime']) + interval '8 day' - interval '1 hour'
    WHEN decoded_log['seasonId'] = 4
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '10 hour'
    WHEN decoded_log['seasonId'] = 5
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '10 hour'
    WHEN decoded_log['seasonId'] = 6
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '10 hour'
    WHEN decoded_log['seasonId'] = 7
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '10 hour'
    WHEN decoded_log['seasonId'] = 8
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '10 hour'
    WHEN decoded_log['seasonId'] = 9
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '11 hour'
    WHEN decoded_log['seasonId'] = 10
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '11 hour'
    WHEN decoded_log['seasonId'] = 11
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '11 hour'
    WHEN decoded_log['seasonId'] = 12
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '11 hour'
    WHEN decoded_log['seasonId'] = 13
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '11 hour'
    WHEN decoded_log['seasonId'] = 14
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '11 hour'
    WHEN decoded_log['seasonId'] = 15
    THEN to_timestamp(decoded_log['endTime']) + interval '5 day' + interval '11 hour'
    **/
    with megawar_times as (
    select
    decoded_log ['seasonId'] AS season,
    to_timestamp(decoded_log ['endTime']) + interval '1 hour' AS start_time,
    CASE
    WHEN decoded_log ['seasonId'] = 16 THEN to_timestamp(decoded_log ['endTime']) + interval '5 day' + interval '11 hour'
    Auto-refreshes every 12 hours
    QueryRunArchived: QueryRun has been archived