{ "db_name": "PostgreSQL", "query": "SELECT option_id, SUM(credits) as total_credits, COUNT(DISTINCT voter_id) as voter_count\n FROM quadratic_votes WHERE proposal_id = $1 GROUP BY option_id", "describe": { "columns": [ { "ordinal": 0, "name": "option_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "total_credits", "type_info": "Int8" }, { "ordinal": 2, "name": "voter_count", "type_info": "Int8" } ], "parameters": { "Left": [ "Uuid" ] }, "nullable": [ false, null, null ] }, "hash": "222ef714ee6f0d715f09643cff679f1c9d5132051dea4cf1f809f06470ed9b44" }