The team is stored on the service row. Use WHERE to choose the team to display. A separate condition in ON controls which deployment rows can supply a failure ID.
For every service owned by platform, show name and the deployment ID as failure_id for each run with status failed, in any environment. Keep services with no failures, with NULL for failure_id.