{ "db_name": "PostgreSQL", "query": "UPDATE posts SET removed_by = NULL, removed_at = now()\n WHERE id = $1 AND removed_at IS NULL\n AND (SELECT COUNT(*) FROM post_flags WHERE post_id = $1 AND resolved_at IS NULL) >= $2", "describe": { "columns": [], "parameters": { "Left": [ "Uuid", "Int8" ] }, "nullable": [] }, "hash": "49f115553d29ac679e7864195427e4f798c691cc425ea04b5a3a6125822a4cdb" }