| /* | |
| { | |
| "qid": "012", | |
| "task_type": "ambig", | |
| "has_intended_resolution": true, | |
| "language": "SQLite", | |
| "db": "retails", | |
| "question": "List all suppliers with a high balance.", | |
| "gold_ambiguity_points": [ | |
| { | |
| "id": "A", | |
| "phrase": "high balance", | |
| "type": "infinite", | |
| "ambiguity_type": "semantic_value", | |
| "parameter_name": "balance_threshold", | |
| "parameter_dtype": "int", | |
| "parameter_sample_operators": [ | |
| ">", | |
| ">=" | |
| ], | |
| "parameter_sample_values": [ | |
| 8500, | |
| 9000, | |
| 9500 | |
| ], | |
| "intended_parameter_operator": ">=", | |
| "intended_parameter_value": 8500 | |
| } | |
| ], | |
| "gold_intended_query_id": "GQRY", | |
| "extra_info": {} | |
| } | |
| */ | |
| ----- START OF GOLD QUERY `GQRY` ----- | |
| /* | |
| { | |
| "id": "GQRY", | |
| "parameter_names": [ | |
| "balance_threshold" | |
| ], | |
| "parameter_values": { | |
| "balance_threshold": 8500 | |
| }, | |
| "other_exec_results": [], | |
| "required_columns": [ | |
| 1 | |
| ], | |
| "required_sorted": false, | |
| "extra_info": { | |
| "ambiguity_resolution": { | |
| "[A] high balance": ":balance_threshold" | |
| } | |
| } | |
| } | |
| */ | |
| SELECT s_suppkey, s_name, s_acctbal | |
| FROM supplier | |
| WHERE s_acctbal >= :balance_threshold; | |
| /* EXEC RESULT | |
| s_suppkey s_name s_acctbal | |
| 3 Supplier#000000003 9159.78 | |
| 4 Supplier#000000004 9846.01 | |
| 17 Supplier#000000017 8809.66 | |
| 18 Supplier#000000018 8914.76 | |
| 21 Supplier#000000021 9415.02 | |
| ... TRUNCATED ... | |
| 9957 Supplier#000009957 9180.69 | |
| 9971 Supplier#000009971 8754.40 | |
| 9987 Supplier#000009987 9079.12 | |
| 9990 Supplier#000009990 9434.07 | |
| 9991 Supplier#000009991 9965.05 | |
| */ | |
| ----- END OF GOLD QUERY ----- |