Query editor
with bamy as (select * from dune.bob_dinkytown.result_lock_amounts_and_bucket_multipliers_weights)selectevent_time,concat(cast(duration as varchar), case when duration=1 then ' week' else ' weeks' end) as duration,amount, yield*weight as yield,yield*weight/amount*365 as apyfrom bamywhere duration > 0 and event_time < current_dateorder by event_time asc, duration asc