Query editor
select timestamp as block_time , user from (WITH transactions AS (SELECTblock_time AS tx_day,"from" AS tx_sender,TRY_CAST(gas_used * effective_gas_price AS DOUBLE) / 1e18 AS gas_costFROM arbitrum.transactionsWHERE"to" = 0x990eB28e378659b93A29D46fF41F08DC6316DD98), incentives AS (SELECTblock_time AS tx_day,amount_usd AS claimed_arb_usdFROM tokens_arbitrum.transfersWHEREsymbol = 'ARB' AND tx_from = 0xAFC62767C500dFb9ae34bea96e4184126Afc012d), transactions_incentives AS (SELECTt.tx_day,t.tx_sender,t.gas_cost,i.claimed_arb_usdFROM transactions AS tLEFT JOIN incentives AS iON t.tx_day = i.tx_day)SELECTtx_day as "timestamp",tx_sender AS userFROM transactions_incentivesWHERE tx_day > cast('2024-03-03' as TIMESTAMP)ORDER BYtx_day)where timestamp < cast('2024-09-03' as date)and timestamp >= cast('2024-08-04' as date)