Query editor
WITHConstants AS (SELECT59500 AS ARB_TOTAL,1000 AS MIN_USD),UserReward AS (SELECT*FROM"query_3322804()"),AllocatedArb AS (SELECTSUM(total_arb) AS allocated_arbFROMUserReward)SELECTc.ARB_TOTAL,(allocated_arb + 2 ) AS allocated_arb, -- "+2" for the end of reward(c.ARB_TOTAL - allocated_arb -2 ) AS remaining_arb, -- "-2" for the end of rewardc.MIN_USDFROMAllocatedArb,Constants c;