Query editor
withmerged_tables as (selectday as block_date,chain_id,pool_address,user_address,underlying_token_address,underlying_token_index,underlying_token_amount,underlying_token_amount_usd,total_fees_usdfrom query_5653042 -- scBTCUnion Allselectday as block_date,chain_id,pool_address,user_address,underlying_token_address,underlying_token_index,underlying_token_amount,underlying_token_amount_usd,total_fees_usdfrom query_5652693 -- scETHUnion Allselectday as block_date,chain_id,pool_address,user_address,underlying_token_address,underlying_token_index,underlying_token_amount,underlying_token_amount_usd,total_fees_usdfrom query_5652532 --scUSD)select block_date as timestamp,*from merged_tablesWHERE block_date >= CAST('{{timestamp}}' AS TIMESTAMP) and chain_id=146