Query editor
WITH raising_list AS (SELECT DISTINCTvarbinary_replace(raising_address, from_hex('0x0000000000000000000000000000000000000000'), from_hex('0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c')) AS raising_addressFROM query_4529808),price_list AS (SELECTtoken_address,token_price_usd,token_price_usd_raw,block_timeFROMdex.prices_latestWHEREblock_month >= DATE '2024-02-01'AND block_time >= TIMESTAMP '2024-02-08 10:39:07'AND token_address IN (SELECT raising_address FROM raising_list))SELECTtoken_address AS raising_address,COALESCE(NULLIF(token_price_usd, 0), token_price_usd_raw * 1e18) AS raising_price_usd,block_time AS update_timeFROMprice_listUNION ALLSELECTfrom_hex('0x0000000000000000000000000000000000000000') AS raising_address,COALESCE(NULLIF(token_price_usd, 0), token_price_usd_raw * 1e18) AS raising_price_usd,block_time AS update_timeFROMprice_listWHEREtoken_address = from_hex('0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c')