I need a query to find running sum, but not sum further if the sum is positive and it should restart when a negative number comes.
Input table
row_number