Query editor
with pepe2 AS (SELECTtx_from , sum(amount_usd) as Total_amount_PEPE2_Bought , count(*) as NbTrade_pepe2FROM dex.tradesWHERE token_bought_address = 0xfb66321d7c674995dfcc2cb67a30bc978dc862ad --PEPE2.0and block_date < CAST('2023-07-04 00:00' AS TIMESTAMP)group by 1order by 2) ,doge2 AS (SELECTtx_from , sum(amount_usd) as Total_amount_DOGE2_Bought, count(*) as NbTrade_doge2FROM dex.tradesWHERE token_bought_address = 0xF2ec4a773ef90c58d98ea734c0eBDB538519b988 -- DOGE2.0and block_date < CAST('2023-07-05 09:00' AS TIMESTAMP)group by 1order by 2),shib2 AS (SELECTtx_from , sum(amount_usd) as Total_amount_SHIB2_Bought, count(*) as NbTrade_shib2FROM dex.tradesWHERE token_bought_address = 0xdfef6416ea3e6ce587ed42aa7cb2e586362cbbfa -- SHIB2.0and block_date < CAST('2023-07-07 00:00' AS TIMESTAMP)group by 1order by 2),floki2 AS (SELECTtx_from , sum(amount_usd) as Total_amount_FLOKI2_Bought, count(*) as NbTrade_floki2FROM dex.tradesWHERE token_bought_address = 0xf76018c130663f907f4bfaa04999888f25b57099 -- FLOKI2.0and block_date < CAST('2023-06-06 00:00' AS TIMESTAMP)group by 1order by 2),simpson2 AS (SELECTtx_from , sum(amount_usd) as Total_amount_SIMPSON2_Bought, count(*) as NbTrade_simpson2FROM dex.tradesWHERE token_bought_address = 0x5c559f3ee9a81da83e069c0093471cb05d84052a -- SIMPSON2.0and block_date < CAST('2023-07-06 20:00' AS TIMESTAMP)group by 1order by 2),babydoge2 AS (SELECTtx_from , sum(amount_usd) as Total_amount_BABYDOGE2_Bought, count(*) as NbTrade_babydoge2FROM dex.tradesWHERE token_bought_address = 0xa4E068e2B8f58E6c3090174a9E4E95F5bB025CA4 -- BABYDOGE2.0and block_date < CAST('2023-07-07 00:00' AS TIMESTAMP)group by 1order by 2),total as (select pepe2.tx_from as Address ,Total_amount_PEPE2_Bought, NbTrade_pepe2, Total_amount_DOGE2_Bought, NbTrade_doge2,