Query editor
-- Una riga per posizione ATTIVA della pool FWA (fwa.fun).-- Usata da monitor.mjs --composition per aggregare lato client.with entered as (select listingId, collection, tokenId, value, weightfrom token_works_ethereum.fwa_evt_nftlisted),gone as (select listingId from token_works_ethereum.fwa_evt_nftallocatedunion all select listingId from token_works_ethereum.fwa_evt_listingwithdrawnunion all select listingId from token_works_ethereum.fwa_evt_nftrelisted)selectcast(e.collection as varchar) as collection,cast(e.tokenId as varchar) as token_id,cast(e.value as double)/1e18 as backing_eth,cast(e.weight as double)/1e18 as weightfrom entered eleft join gone g on e.listingId = g.listingIdwhere g.listingId is null and e.value is not null