Query editor
SELECTowner_address AS owner,SUM(CASE WHEN position_type = 'supply' THEN position_usd ELSE 0 END) AS total_supply_position,SUM(CASE WHEN position_type = 'borrow' THEN position_usd ELSE 0 END) AS total_borrow_positionFROM query_4977722GROUP BY owner_addressORDER BY (total_supply_position + total_borrow_position) DESC