Query editor
with------------------------------ STRK and ETH Prices ------------------------------prices as (selectdate_trunc('hour', minute) AS price_time,avg(case when contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 then price end) as eth_price,avg(case when contract_address = 0xca14007eff0db1f8135f4c25b34de49ab0d42766 then price end) as strk_pricefromprices.usdwhereblockchain = 'ethereum'group by1),------------------------------ Raw Transactions ------------------------------raw_transactions as (selectblock_time,block_date,transaction_hash as tx_hash,execution_status,finality_status,type,receipt_type,sender_address,contract_address,actual_fee_amount,actual_fee_unit,case actual_fee_unitwhen 'WEI' then actual_fee_amount * eth_price / pow(10, 18)when 'FRI' then actual_fee_amount * strk_price / pow(10, 18)end as fee_usd,block_l1_da_mode,block_starknet_version,block_sequencer_addressfromstarknet.transactionsjoin prices on date_trunc('hour', block_time) = prices.price_time),------------------------------ New Users ------------------------------initial_interactions as (selectsender_address as user,min(block_time) as initial_timestampfromraw_transactionsgroup bysender_address),new_users as (selectdate_trunc('day', initial_timestamp) as user_date,count(distinct user) as new_usersfrominitial_interactionsgroup by1),------------------------------ Aggregated Transactions ------------------------------transactions as (