Several short runs can together use more runner time than a single long run. To test the combined time, use SUM(duration_seconds) in HAVING.
For runs with status completed, return environment and the total recorded duration as total_seconds. Keep environments with at least 30 recorded seconds across those runs.