{ "db_name": "PostgreSQL", "query": "SELECT EXISTS(\n SELECT 1 FROM post_flags pf\n JOIN posts p ON p.id = pf.post_id\n JOIN threads t ON t.id = p.thread_id\n JOIN categories c ON c.id = t.category_id\n WHERE pf.id = $1 AND c.community_id = $2\n ) AS \"exists!\"", "describe": { "columns": [ { "ordinal": 0, "name": "exists!", "type_info": "Bool" } ], "parameters": { "Left": [ "Uuid", "Uuid" ] }, "nullable": [ null ] }, "hash": "78e9b0f0eed35cd5a6722804ce41b0aa575f608e57c6c21c4b4c181f8070b75b" }