NavidCopy of Untitled Query
    Updated 2022-07-28
    select
    block_timestamp::date as day,
    tx_receiver,
    sum(gas_used/POW(10,12)) as gas,
    sum(gas) over (partition by tx_receiver order by day asc) as gas_trend
    from
    near.core.fact_transactions
    where
    block_timestamp > CURRENT_DATE-7 and
    tx_receiver in (
    select tx_receiver
    from near.core.fact_transactions
    group by tx_receiver
    order by sum(gas_used) desc
    limit 10
    )
    group by
    tx_receiver, day
    order by
    tx_receiver, day asc

    Run a query to Download Data