I\'m trying to write a query that I need to run the subtraction on but I only want the rows with event columns which equal 1 because that row has the correct duratio