Query editor
WITH vestedPositions AS (SELECTowner,discount / 100 as discount,amount / 1e18 as amount,vestingIdFROM bonsai_base.seedvester_evt_vestingWHERE evt_block_number > 37068177),closedPositions AS (SELECTevt_block_number as block_number,evt_block_time AS date,owner,vestingId,evt_tx_hash AS tx_hashFROM bonsai_base.seedvester_evt_positionclosedWHERE evt_block_number > 37068177)SELECTcp.date,cp.vestingId,vp.amount,vp.discount,(SELECTvalue / 1e18from base.transactionswhere block_number = cp.block_numberand "from" = cp.owner) as ethPaid,cp.owner,cp.tx_hashFROM closedPositions cpLEFT JOIN vestedPositions vp ON cp.vestingId = vp.vestingIdWHERE vp.amount > 1ORDER BY vestingId DESC;