{ "db_name": "PostgreSQL", "query": "SELECT a.id AS id\n FROM agents a\n WHERE a.workspace_id = $1\n AND a.deleted_at IS NULL\n AND NOT EXISTS (\n SELECT 1 FROM team_members tm WHERE tm.claw_id = a.id\n )", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Uuid" } ], "parameters": { "Left": [ "Uuid" ] }, "nullable": [ false ] }, "hash": "273897449471d98617cb2bc6c66c2ffed7e09a2ae89175ba016ed82bb93c12be" }