{ "db_name": "PostgreSQL", "query": "SELECT t.id AS team_id, t.workspace_id\n FROM topology_runs r\n JOIN teams t ON t.id = r.team_id\n WHERE r.id = $1\n AND t.lifecycle = 'ephemeral'\n AND NOT EXISTS (\n SELECT 1 FROM topology_runs sib\n WHERE sib.team_id = t.id\n AND sib.id <> r.id\n AND sib.status IN ('queued', 'running')\n )", "describe": { "columns": [ { "ordinal": 0, "name": "team_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "workspace_id", "type_info": "Uuid" } ], "parameters": { "Left": [ "Uuid" ] }, "nullable": [ false, false ] }, "hash": "3d25bfd48bf920da8db9ced892ff99bac77372aeed3e69b32cf52d0100ba2771" }