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_5557000 -- stkscUSDUnion 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_5621401 -- stkscETHUnion 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_5805593 -- stkscBTC)select block_date as timestamp , * from merged_tablesWHERE block_date >= CAST('{{timestamp}}' AS TIMESTAMP) and chain_id=146order by block_date desc , underlying_token_amount desc