Update query to filter trip_ids to return matching start/end results