File size: 1,744 Bytes
02edc38 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | /*
{
"qid": "034",
"task_type": "ambig",
"has_intended_resolution": true,
"language": "SQLite",
"db": "professional_basketball",
"question": "List short Black players who have played in the frontcourt positions.",
"gold_ambiguity_points": [
{
"id": "A",
"phrase": "short",
"type": "infinite",
"ambiguity_type": "semantic_value",
"parameter_name": "height_threshold",
"parameter_dtype": "int",
"parameter_sample_operators": [
"<",
"<="
],
"parameter_sample_values": [
76
],
"intended_parameter_operator": "<",
"intended_parameter_value": 76
}
],
"gold_intended_query_id": "GQRY",
"extra_info": {}
}
*/
----- START OF GOLD QUERY `GQRY` -----
/*
{
"id": "GQRY",
"parameter_names": [
"height_threshold"
],
"parameter_values": {
"height_threshold": 76
},
"other_exec_results": [],
"required_columns": [
0,
1
],
"required_sorted": false,
"extra_info": {
"ambiguity_resolution": {
"[A] short": ":height_threshold"
}
}
}
*/
SELECT p.firstName, p.lastName, p.pos, p.race, p.height
FROM players p
WHERE (p.pos LIKE '%F%' OR p.pos LIKE '%C%')
AND p.race = 'B'
AND p.height < :height_threshold;
/* EXEC RESULT
firstName lastName pos race height
Clifford Anderson G-F B 74.0
Harry Barnes F B 75.0
Shannie Barnett F-C B 75.0
Ronald Boone G-F B 74.0
Hillery Brown F-G B 75.0
... TRUNCATED ...
Horace Walker F B 75.0
John Warren G-F B 75.0
Dedric Willoughby G-F B 75.0
Eddie Wollen F B 0.0
Charles Yelverton G-F B 74.0
*/
----- END OF GOLD QUERY ----- |