instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
Give a bar chart showing how many shops in each carrier.
SELECT Carrier, COUNT(Carrier) FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID GROUP BY Carrier
[ 23318, 257, 2318, 8262, 4478, 703, 867, 12437, 287, 1123, 11920, 13, 46506, 30252, 11, 327, 28270, 7, 9914, 5277, 8, 16034, 4283, 7054, 309, 16, 32357, 1268, 3335, 7054, 309, 17, 6177, 309, 16, 13, 24728, 62, 2389, 796, 309, 17, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 23318, 257, 2318, 8262, 4478, 703, 867, 12437, 287, 1123, 11920, 13, 46506, 30252, 11, 327, 28270, 7, 9914, 5277, 8, 16034, 4283, 7054, 309, 16, 32357, 1268, 3335, 7054, 309, 17, 6177, 309, 16, 13, 24728, 62, 2389, 796, 309, 17, 13,...
Sort the names of all counties in descending alphabetical order.
SELECT county_name FROM county ORDER BY county_name DESC
[ 42758, 262, 3891, 286, 477, 14683, 287, 31491, 24830, 605, 1502, 13, 46506, 7968, 62, 3672, 16034, 7968, 38678, 11050, 7968, 62, 3672, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 42758, 262, 3891, 286, 477, 14683, 287, 31491, 24830, 605, 1502, 13, 46506, 7968, 62, 3672, 16034, 7968, 38678, 11050, 7968, 62, 3672, 22196, 34 ]
which building had the least number of floors ?
SELECT "name" FROM table_204_541 ORDER BY "floors" LIMIT 1
[ 4758, 2615, 550, 262, 1551, 1271, 286, 18570, 5633, 46506, 366, 3672, 1, 16034, 3084, 62, 18638, 62, 20, 3901, 38678, 11050, 366, 48679, 669, 1, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 2615, 550, 262, 1551, 1271, 286, 18570, 5633, 46506, 366, 3672, 1, 16034, 3084, 62, 18638, 62, 20, 3901, 38678, 11050, 366, 48679, 669, 1, 27564, 2043, 352 ]
Who was the High Assist in game 1?
SELECT high_assists FROM table_17323042_11 WHERE game = 1
[ 8241, 373, 262, 3334, 43627, 287, 983, 352, 30, 46506, 1029, 62, 562, 1023, 16034, 3084, 62, 1558, 2624, 1270, 3682, 62, 1157, 33411, 983, 796, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 3334, 43627, 287, 983, 352, 30, 46506, 1029, 62, 562, 1023, 16034, 3084, 62, 1558, 2624, 1270, 3682, 62, 1157, 33411, 983, 796, 352 ]
What is the livery on the locomotive with a serial number 83-1011?
SELECT livery FROM table_name_86 WHERE serial_no = "83-1011"
[ 2061, 318, 262, 300, 6315, 319, 262, 33334, 19138, 351, 257, 11389, 1271, 9698, 12, 8784, 16, 30, 46506, 300, 6315, 16034, 3084, 62, 3672, 62, 4521, 33411, 11389, 62, 3919, 796, 366, 5999, 12, 8784, 16, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 300, 6315, 319, 262, 33334, 19138, 351, 257, 11389, 1271, 9698, 12, 8784, 16, 30, 46506, 300, 6315, 16034, 3084, 62, 3672, 62, 4521, 33411, 11389, 62, 3919, 796, 366, 5999, 12, 8784, 16, 1 ]
What is the lowest value for Week, when the Attendance is greater than 22,958, and when the Opponent is At Chicago Cardinals?
SELECT MIN("Week") FROM table_76498 WHERE "Attendance" > '22,958' AND "Opponent" = 'at chicago cardinals'
[ 2061, 318, 262, 9016, 1988, 329, 6119, 11, 618, 262, 46502, 590, 318, 3744, 621, 2534, 11, 24, 3365, 11, 290, 618, 262, 9385, 3471, 318, 1629, 4842, 18071, 30, 46506, 20625, 7203, 20916, 4943, 16034, 3084, 62, 22, 2414, 4089, 33411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 318, 262, 9016, 1988, 329, 6119, 11, 618, 262, 46502, 590, 318, 3744, 621, 2534, 11, 24, 3365, 11, 290, 618, 262, 9385, 3471, 318, 1629, 4842, 18071, 30, 46506, 20625, 7203, 20916, 4943, 16034, 3084, 62, 22, 2414, 4089, 33411, ...
Who directed production code 3x6116?
SELECT directed_by FROM table_27905664_1 WHERE production_code = "3X6116"
[ 8241, 7924, 3227, 2438, 513, 87, 21, 18298, 30, 46506, 7924, 62, 1525, 16034, 3084, 62, 26050, 2713, 21, 2414, 62, 16, 33411, 3227, 62, 8189, 796, 366, 18, 55, 21, 18298, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 7924, 3227, 2438, 513, 87, 21, 18298, 30, 46506, 7924, 62, 1525, 16034, 3084, 62, 26050, 2713, 21, 2414, 62, 16, 33411, 3227, 62, 8189, 796, 366, 18, 55, 21, 18298, 1 ]
How many patients admitted before the year 2151 had clinical chemistry tests by lab?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2151" AND lab."CATEGORY" = "Chemistry"
[ 2437, 867, 3871, 6848, 878, 262, 614, 22951, 16, 550, 8668, 16585, 5254, 416, 2248, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 3871, 6848, 878, 262, 614, 22951, 16, 550, 8668, 16585, 5254, 416, 2248, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76...
Name the length for stage ss22
SELECT length FROM table_13050822_2 WHERE stage = "SS22"
[ 5376, 262, 4129, 329, 3800, 37786, 1828, 46506, 4129, 16034, 3084, 62, 12952, 33042, 1828, 62, 17, 33411, 3800, 796, 366, 5432, 1828, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 4129, 329, 3800, 37786, 1828, 46506, 4129, 16034, 3084, 62, 12952, 33042, 1828, 62, 17, 33411, 3800, 796, 366, 5432, 1828, 1 ]
Which driver has a Time/Retired of 2:45:46.2?
SELECT "Driver" FROM table_53944 WHERE "Time/Retired" = '2:45:46.2'
[ 13828, 4639, 468, 257, 3862, 14, 9781, 1202, 286, 362, 25, 2231, 25, 3510, 13, 17, 30, 46506, 366, 32103, 1, 16034, 3084, 62, 20, 2670, 2598, 33411, 366, 7575, 14, 9781, 1202, 1, 796, 705, 17, 25, 2231, 25, 3510, 13, 17, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 4639, 468, 257, 3862, 14, 9781, 1202, 286, 362, 25, 2231, 25, 3510, 13, 17, 30, 46506, 366, 32103, 1, 16034, 3084, 62, 20, 2670, 2598, 33411, 366, 7575, 14, 9781, 1202, 1, 796, 705, 17, 25, 2231, 25, 3510, 13, 17, 6 ]
Tell me the highest matches for point 43 and final rank less than 7
SELECT MAX("Matches") FROM table_78170 WHERE "Point" = '43' AND "Final rank" < '7'
[ 24446, 502, 262, 4511, 7466, 329, 966, 5946, 290, 2457, 4279, 1342, 621, 767, 46506, 25882, 7203, 19044, 2052, 4943, 16034, 3084, 62, 3695, 17279, 33411, 366, 12727, 1, 796, 705, 3559, 6, 5357, 366, 19006, 4279, 1, 1279, 705, 22, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24446, 502, 262, 4511, 7466, 329, 966, 5946, 290, 2457, 4279, 1342, 621, 767, 46506, 25882, 7203, 19044, 2052, 4943, 16034, 3084, 62, 3695, 17279, 33411, 366, 12727, 1, 796, 705, 3559, 6, 5357, 366, 19006, 4279, 1, 1279, 705, 22, 6 ]
What is the broadband penetration where there are ~355,100 broadband subscribers?
SELECT Broadband AS penetration FROM table_name_31 WHERE number_of_broadband_subscribers = "~355,100"
[ 2061, 318, 262, 18729, 23271, 810, 612, 389, 5299, 28567, 11, 3064, 18729, 18327, 30, 46506, 9765, 3903, 7054, 23271, 16034, 3084, 62, 3672, 62, 3132, 33411, 1271, 62, 1659, 62, 36654, 3903, 62, 7266, 40075, 364, 796, 366, 93, 28567, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 18729, 23271, 810, 612, 389, 5299, 28567, 11, 3064, 18729, 18327, 30, 46506, 9765, 3903, 7054, 23271, 16034, 3084, 62, 3672, 62, 3132, 33411, 1271, 62, 1659, 62, 36654, 3903, 62, 7266, 40075, 364, 796, 366, 93, 28567, ...
does the first catheter tip-iv microbiology test of patient 28484 until 09/2102 have any organisms?
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28484) AND microbiologyevents.spec_type_desc = 'catheter tip-iv' AND NOT microbiologyevents.org_name IS NULL AND STRFTIME('%y-%m', microbiologyevents.charttime) <= '21...
[ 22437, 262, 717, 3797, 43332, 8171, 12, 452, 24559, 1435, 1332, 286, 5827, 2579, 34137, 1566, 7769, 14, 17, 15377, 423, 597, 20296, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 22437, 262, 717, 3797, 43332, 8171, 12, 452, 24559, 1435, 1332, 286, 5827, 2579, 34137, 1566, 7769, 14, 17, 15377, 423, 597, 20296, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18...
What are the ids, names, dates of opening, and other details for accounts corresponding to the customer with the first name 'Meaghan'?
SELECT T1.account_id, T1.date_account_opened, T1.account_name, T1.other_account_details FROM accounts AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan'
[ 2061, 389, 262, 220, 2340, 11, 3891, 11, 9667, 286, 4756, 11, 290, 584, 3307, 329, 5504, 11188, 284, 262, 6491, 351, 262, 717, 1438, 705, 5308, 45109, 30960, 46506, 309, 16, 13, 23317, 62, 312, 11, 309, 16, 13, 4475, 62, 23317, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 220, 2340, 11, 3891, 11, 9667, 286, 4756, 11, 290, 584, 3307, 329, 5504, 11188, 284, 262, 6491, 351, 262, 717, 1438, 705, 5308, 45109, 30960, 46506, 309, 16, 13, 23317, 62, 312, 11, 309, 16, 13, 4475, 62, 23317, 62...
What was the score on October 31?
SELECT score FROM table_name_93 WHERE date = "october 31"
[ 2061, 373, 262, 4776, 319, 3267, 3261, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 6052, 33411, 3128, 796, 366, 38441, 2023, 3261, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 319, 3267, 3261, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 6052, 33411, 3128, 796, 366, 38441, 2023, 3261, 1 ]
did the wycombe wanderers have more or less points than the plymouth argyle ?
SELECT (SELECT "score" FROM table_203_620 WHERE "home team" = 'wycombe wanderers') > (SELECT "score" FROM table_203_620 WHERE "home team" = 'plymouth argyle')
[ 20839, 262, 266, 88, 49325, 11569, 19288, 423, 517, 393, 1342, 2173, 621, 262, 35960, 14775, 610, 1360, 293, 5633, 46506, 357, 46506, 366, 26675, 1, 16034, 3084, 62, 22416, 62, 38850, 33411, 366, 11195, 1074, 1, 796, 705, 21768, 49325, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 20839, 262, 266, 88, 49325, 11569, 19288, 423, 517, 393, 1342, 2173, 621, 262, 35960, 14775, 610, 1360, 293, 5633, 46506, 357, 46506, 366, 26675, 1, 16034, 3084, 62, 22416, 62, 38850, 33411, 366, 11195, 1074, 1, 796, 705, 21768, 49325, ...
what is the number of patients whose discharge location is home health care and admission year is less than 2197?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.admityear < "2197"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 1363, 1535, 1337, 290, 13938, 614, 318, 1342, 621, 362, 24991, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 638...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 1363, 1535, 1337, 290, 13938, 614, 318, 1342, 621, 362, 24991, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 638...
Find the number of songs in all the studio albums.
SELECT COUNT(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = "Studio"
[ 16742, 262, 1271, 286, 7259, 287, 477, 262, 8034, 16788, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 309, 18, 13, 7839, 8, 16034, 16788, 7054, 309, 16, 32357, 1268, 2610, 20713, 7054, 309, 17, 6177, 309, 16, 13, 1698, 796, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 1271, 286, 7259, 287, 477, 262, 8034, 16788, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 309, 18, 13, 7839, 8, 16034, 16788, 7054, 309, 16, 32357, 1268, 2610, 20713, 7054, 309, 17, 6177, 309, 16, 13, 1698, 796, 309, ...
What is the lowest Population, when Per Capita Income is '$16,330'?
SELECT MIN("Population") FROM table_60728 WHERE "Per capita income" = '$16,330'
[ 2061, 318, 262, 9016, 20133, 11, 618, 2448, 4476, 5350, 19003, 318, 705, 3, 1433, 11, 26073, 30960, 46506, 20625, 7203, 45251, 4943, 16034, 3084, 62, 31980, 2078, 33411, 366, 5990, 21344, 3739, 1, 796, 705, 3, 1433, 11, 26073, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 20133, 11, 618, 2448, 4476, 5350, 19003, 318, 705, 3, 1433, 11, 26073, 30960, 46506, 20625, 7203, 45251, 4943, 16034, 3084, 62, 31980, 2078, 33411, 366, 5990, 21344, 3739, 1, 796, 705, 3, 1433, 11, 26073, 6 ]
which album produced the most singles ?
SELECT "album" FROM table_204_500 GROUP BY "album" ORDER BY COUNT("title") DESC LIMIT 1
[ 4758, 5062, 4635, 262, 749, 25287, 5633, 46506, 366, 40916, 1, 16034, 3084, 62, 18638, 62, 4059, 44441, 11050, 366, 40916, 1, 38678, 11050, 327, 28270, 7203, 7839, 4943, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 5062, 4635, 262, 749, 25287, 5633, 46506, 366, 40916, 1, 16034, 3084, 62, 18638, 62, 4059, 44441, 11050, 366, 40916, 1, 38678, 11050, 327, 28270, 7203, 7839, 4943, 22196, 34, 27564, 2043, 352 ]
What are the main indstries and total market value for each industry. Visualize by bar chart.
SELECT Main_Industry, SUM(Market_Value) FROM company GROUP BY Main_Industry
[ 2061, 389, 262, 1388, 773, 301, 1678, 290, 2472, 1910, 1988, 329, 1123, 2831, 13, 15612, 1096, 416, 2318, 8262, 13, 46506, 8774, 62, 35848, 563, 11, 35683, 7, 27470, 62, 11395, 8, 16034, 1664, 44441, 11050, 8774, 62, 35848, 563 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 1388, 773, 301, 1678, 290, 2472, 1910, 1988, 329, 1123, 2831, 13, 15612, 1096, 416, 2318, 8262, 13, 46506, 8774, 62, 35848, 563, 11, 35683, 7, 27470, 62, 11395, 8, 16034, 1664, 44441, 11050, 8774, 62, 35848, 563 ]
What is the highest number of divisions mentioned?
SELECT MAX("Division") FROM table_73330
[ 2061, 318, 262, 4511, 1271, 286, 17397, 4750, 30, 46506, 25882, 7203, 24095, 1166, 4943, 16034, 3084, 62, 49995, 1270 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 1271, 286, 17397, 4750, 30, 46506, 25882, 7203, 24095, 1166, 4943, 16034, 3084, 62, 49995, 1270 ]
Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?
SELECT socialist_ticket FROM table_name_89 WHERE socialist_labor_ticket = "charles m. carlson"
[ 8241, 338, 262, 21773, 7846, 351, 257, 21773, 7882, 7846, 286, 1149, 829, 285, 13, 1097, 75, 1559, 30, 46506, 15889, 62, 43350, 16034, 3084, 62, 3672, 62, 4531, 33411, 15889, 62, 75, 4820, 62, 43350, 796, 366, 10641, 829, 285, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 338, 262, 21773, 7846, 351, 257, 21773, 7882, 7846, 286, 1149, 829, 285, 13, 1097, 75, 1559, 30, 46506, 15889, 62, 43350, 16034, 3084, 62, 3672, 62, 4531, 33411, 15889, 62, 75, 4820, 62, 43350, 796, 366, 10641, 829, 285, 13, 1...
What is the average opening at Stadyum Samsun with a capacity smaller than 34,658?
SELECT AVG("Opening") FROM table_52025 WHERE "Stadium" = 'stadyum samsun' AND "Capacity" < '34,658'
[ 2061, 318, 262, 2811, 4756, 379, 520, 4597, 388, 3409, 19155, 351, 257, 5339, 4833, 621, 4974, 11, 38431, 30, 46506, 35224, 7203, 43093, 4943, 16034, 3084, 62, 31211, 1495, 33411, 366, 1273, 6271, 1, 796, 705, 301, 4597, 388, 264, 410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 4756, 379, 520, 4597, 388, 3409, 19155, 351, 257, 5339, 4833, 621, 4974, 11, 38431, 30, 46506, 35224, 7203, 43093, 4943, 16034, 3084, 62, 31211, 1495, 33411, 366, 1273, 6271, 1, 796, 705, 301, 4597, 388, 264, 410...
Which races have 137 points?
SELECT races FROM table_25318033_1 WHERE points = "137"
[ 13828, 9558, 423, 21643, 2173, 30, 46506, 9558, 16034, 3084, 62, 28592, 15259, 2091, 62, 16, 33411, 2173, 796, 366, 19708, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 9558, 423, 21643, 2173, 30, 46506, 9558, 16034, 3084, 62, 28592, 15259, 2091, 62, 16, 33411, 2173, 796, 366, 19708, 1 ]
What are the first and last names of all customers with more than 2 payments?
SELECT T2.first_name, T2.last_name FROM customer_payments AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 2
[ 2061, 389, 262, 717, 290, 938, 3891, 286, 477, 4297, 351, 517, 621, 362, 7524, 30, 46506, 309, 17, 13, 11085, 62, 3672, 11, 309, 17, 13, 12957, 62, 3672, 16034, 6491, 62, 15577, 902, 7054, 309, 16, 32357, 1268, 4297, 7054, 309, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 717, 290, 938, 3891, 286, 477, 4297, 351, 517, 621, 362, 7524, 30, 46506, 309, 17, 13, 11085, 62, 3672, 11, 309, 17, 13, 12957, 62, 3672, 16034, 6491, 62, 15577, 902, 7054, 309, 16, 32357, 1268, 4297, 7054, 309, 17...
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by time, could you order y-axis in desc order please?
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(MANAGER_ID) DESC
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416,...
Find other_details and the sum of monthly_rental , and group by attribute other_details, and visualize them by a bar chart.
SELECT other_details, SUM(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC
[ 16742, 584, 62, 36604, 290, 262, 2160, 286, 9651, 62, 1156, 282, 837, 290, 1448, 416, 11688, 584, 62, 36604, 11, 290, 38350, 606, 416, 257, 2318, 8262, 13, 46506, 584, 62, 36604, 11, 35683, 7, 8424, 306, 62, 1156, 282, 8, 16034, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16742, 584, 62, 36604, 290, 262, 2160, 286, 9651, 62, 1156, 282, 837, 290, 1448, 416, 11688, 584, 62, 36604, 11, 290, 38350, 606, 416, 257, 2318, 8262, 13, 46506, 584, 62, 36604, 11, 35683, 7, 8424, 306, 62, 1156, 282, 8, 16034, 1...
What is the stadium for alloa athletic?
SELECT "Stadium" FROM table_16500 WHERE "Team" = 'Alloa Athletic'
[ 2061, 318, 262, 10308, 329, 477, 12162, 15177, 30, 46506, 366, 1273, 6271, 1, 16034, 3084, 62, 1433, 4059, 33411, 366, 15592, 1, 796, 705, 3237, 12162, 29007, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 10308, 329, 477, 12162, 15177, 30, 46506, 366, 1273, 6271, 1, 16034, 3084, 62, 1433, 4059, 33411, 366, 15592, 1, 796, 705, 3237, 12162, 29007, 6 ]
what is the number of patients whose admission type is emergency and procedure short title is enterovesico fist repair?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.short_title = "Enterovesico fist repair"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 13938, 2099, 318, 6334, 290, 8771, 1790, 3670, 318, 3802, 5241, 3713, 18606, 9185, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 13938, 2099, 318, 6334, 290, 8771, 1790, 3670, 318, 3802, 5241, 3713, 18606, 9185, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, ...
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and code , and group by attribute name, show names in asc order please.
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 2438, 837, 290, 1448, 416, 11688, 1438, 11, 905, 3891, 287, 10570, 1502, 3387, 13, 46506, 309, 16, 13, 5376, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 2438, 837, 290, 1448, 416, 11688, 1438, 11, 905, 3891, 287, 10570, 1502, 3387, 13, 46506, 309, 16, 13, 5376, 11...
How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6?
SELECT SUM(seats_2005) FROM table_name_14 WHERE percentage_in_de_crease = "50.0%" AND governorate = "dhi qar governorate" AND in_de_creased_by > 6
[ 2437, 867, 1001, 1381, 5075, 468, 257, 36013, 287, 14, 2934, 12, 7513, 589, 286, 2026, 13, 15, 7441, 290, 257, 10807, 378, 286, 288, 5303, 10662, 283, 8153, 378, 11, 290, 257, 554, 14, 2934, 12, 7513, 839, 416, 4025, 621, 718, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 1001, 1381, 5075, 468, 257, 36013, 287, 14, 2934, 12, 7513, 589, 286, 2026, 13, 15, 7441, 290, 257, 10807, 378, 286, 288, 5303, 10662, 283, 8153, 378, 11, 290, 257, 554, 14, 2934, 12, 7513, 839, 416, 4025, 621, 718, 30,...
What college did Jim Bennett attend?
SELECT college FROM table_26996293_1 WHERE player = "Jim Bennett"
[ 2061, 4152, 750, 5395, 17468, 5262, 30, 46506, 4152, 16034, 3084, 62, 2075, 38565, 31675, 62, 16, 33411, 2137, 796, 366, 18050, 17468, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 4152, 750, 5395, 17468, 5262, 30, 46506, 4152, 16034, 3084, 62, 2075, 38565, 31675, 62, 16, 33411, 2137, 796, 366, 18050, 17468, 1 ]
What shows for Tie no when Sheffield United was the Away team?
SELECT tie_no FROM table_name_10 WHERE away_team = "sheffield united"
[ 2061, 2523, 329, 36286, 645, 618, 33496, 1578, 373, 262, 21986, 1074, 30, 46506, 9839, 62, 3919, 16034, 3084, 62, 3672, 62, 940, 33411, 1497, 62, 15097, 796, 366, 7091, 31374, 16503, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2523, 329, 36286, 645, 618, 33496, 1578, 373, 262, 21986, 1074, 30, 46506, 9839, 62, 3919, 16034, 3084, 62, 3672, 62, 940, 33411, 1497, 62, 15097, 796, 366, 7091, 31374, 16503, 1 ]
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the sum of manager_id bin hire_date by time, and could you display by the Y in ascending?
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(MANAGER_ID)
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 640, 11, 290, 714, 345, 3359, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 640, 11, 290, 714, 345, 3359, 41...
What is the attendance of the game that had a date listed as Bye?
SELECT "Attendance" FROM table_48793 WHERE "Date" = 'bye'
[ 2061, 318, 262, 14858, 286, 262, 983, 326, 550, 257, 3128, 5610, 355, 47843, 30, 46506, 366, 8086, 437, 590, 1, 16034, 3084, 62, 2780, 44750, 33411, 366, 10430, 1, 796, 705, 16390, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 14858, 286, 262, 983, 326, 550, 257, 3128, 5610, 355, 47843, 30, 46506, 366, 8086, 437, 590, 1, 16034, 3084, 62, 2780, 44750, 33411, 366, 10430, 1, 796, 705, 16390, 6 ]
What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has?
SELECT MIN(reg_gp) FROM table_name_26 WHERE player = "larry courville" AND pl_gp < 0
[ 2061, 318, 262, 9016, 3218, 14714, 13633, 2734, 4244, 11, 508, 468, 257, 30434, 14714, 4833, 621, 657, 11, 468, 30, 46506, 20625, 7, 2301, 62, 31197, 8, 16034, 3084, 62, 3672, 62, 2075, 33411, 2137, 796, 366, 75, 6532, 1093, 4244, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 3218, 14714, 13633, 2734, 4244, 11, 508, 468, 257, 30434, 14714, 4833, 621, 657, 11, 468, 30, 46506, 20625, 7, 2301, 62, 31197, 8, 16034, 3084, 62, 3672, 62, 2075, 33411, 2137, 796, 366, 75, 6532, 1093, 4244, 1...
Name the team nickname for enrollment more than 42,326
SELECT "Team Nickname" FROM table_31876 WHERE "Enrollment" > '42,326'
[ 5376, 262, 1074, 21814, 329, 20753, 517, 621, 5433, 11, 39195, 46506, 366, 15592, 8047, 3672, 1, 16034, 3084, 62, 36042, 4304, 33411, 366, 4834, 48108, 1, 1875, 705, 3682, 11, 39195, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 1074, 21814, 329, 20753, 517, 621, 5433, 11, 39195, 46506, 366, 15592, 8047, 3672, 1, 16034, 3084, 62, 36042, 4304, 33411, 366, 4834, 48108, 1, 1875, 705, 3682, 11, 39195, 6 ]
What is the frequency for the radio owned by bell media with a call sign of chsu-fm?
SELECT frequency FROM table_name_6 WHERE owner = "bell media" AND call_sign = "chsu-fm"
[ 2061, 318, 262, 8373, 329, 262, 5243, 6898, 416, 8966, 2056, 351, 257, 869, 1051, 286, 442, 2385, 12, 38353, 30, 46506, 8373, 16034, 3084, 62, 3672, 62, 21, 33411, 4870, 796, 366, 7923, 2056, 1, 5357, 869, 62, 12683, 796, 366, 354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 8373, 329, 262, 5243, 6898, 416, 8966, 2056, 351, 257, 869, 1051, 286, 442, 2385, 12, 38353, 30, 46506, 8373, 16034, 3084, 62, 3672, 62, 21, 33411, 4870, 796, 366, 7923, 2056, 1, 5357, 869, 62, 12683, 796, 366, 354, ...
What was the ranking of the season finale aired on May 8, 2006?
SELECT "Ranking" FROM table_15924 WHERE "Season finale" = 'May 8, 2006'
[ 2061, 373, 262, 12759, 286, 262, 1622, 19523, 18530, 319, 1737, 807, 11, 4793, 30, 46506, 366, 49, 15230, 1, 16034, 3084, 62, 19707, 1731, 33411, 366, 18960, 19523, 1, 796, 705, 6747, 807, 11, 4793, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 12759, 286, 262, 1622, 19523, 18530, 319, 1737, 807, 11, 4793, 30, 46506, 366, 49, 15230, 1, 16034, 3084, 62, 19707, 1731, 33411, 366, 18960, 19523, 1, 796, 705, 6747, 807, 11, 4793, 6 ]
What position did the player play in the european cross country championships in 2008?
SELECT "Position" FROM table_6675 WHERE "Competition" = 'european cross country championships' AND "Year" = '2008'
[ 2061, 2292, 750, 262, 2137, 711, 287, 262, 11063, 431, 272, 3272, 1499, 27459, 287, 3648, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 2791, 2425, 33411, 366, 7293, 15620, 1, 796, 705, 44252, 431, 272, 3272, 1499, 27459, 6, 5357, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2292, 750, 262, 2137, 711, 287, 262, 11063, 431, 272, 3272, 1499, 27459, 287, 3648, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 2791, 2425, 33411, 366, 7293, 15620, 1, 796, 705, 44252, 431, 272, 3272, 1499, 27459, 6, 5357, 366, ...
What's the lowest Year with the Location of Bangkok?
SELECT MIN(year) FROM table_name_22 WHERE location = "bangkok"
[ 2061, 338, 262, 9016, 6280, 351, 262, 13397, 286, 35007, 30, 46506, 20625, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 1828, 33411, 4067, 796, 366, 36668, 32004, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 338, 262, 9016, 6280, 351, 262, 13397, 286, 35007, 30, 46506, 20625, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 1828, 33411, 4067, 796, 366, 36668, 32004, 1 ]
What is the production code for season episode 8?
SELECT MIN("Production Code") FROM table_18778 WHERE "Season Number" = '8'
[ 2061, 318, 262, 3227, 2438, 329, 1622, 4471, 807, 30, 46506, 20625, 7203, 35027, 6127, 4943, 16034, 3084, 62, 1507, 39761, 33411, 366, 18960, 7913, 1, 796, 705, 23, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3227, 2438, 329, 1622, 4471, 807, 30, 46506, 20625, 7203, 35027, 6127, 4943, 16034, 3084, 62, 1507, 39761, 33411, 366, 18960, 7913, 1, 796, 705, 23, 6 ]
how many runners-up with nation being india
SELECT COUNT(runners_up) FROM table_12303563_2 WHERE nation = "India"
[ 4919, 867, 19323, 12, 929, 351, 3277, 852, 773, 544, 46506, 327, 28270, 7, 36740, 62, 929, 8, 16034, 3084, 62, 1065, 1270, 2327, 5066, 62, 17, 33411, 3277, 796, 366, 21569, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 19323, 12, 929, 351, 3277, 852, 773, 544, 46506, 327, 28270, 7, 36740, 62, 929, 8, 16034, 3084, 62, 1065, 1270, 2327, 5066, 62, 17, 33411, 3277, 796, 366, 21569, 1 ]
how many consecutive times was the rank # 2 ?
SELECT COUNT(*) FROM table_204_617 WHERE "rank#" = 2
[ 4919, 867, 12785, 1661, 373, 262, 4279, 1303, 362, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 47941, 33411, 366, 43027, 2, 1, 796, 362 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 12785, 1661, 373, 262, 4279, 1303, 362, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 47941, 33411, 366, 43027, 2, 1, 796, 362 ]
How many times did Niels Christian Kaldau win the men's single and Pi Hongyan win the women's single in the same year?
SELECT COUNT(year) FROM table_12275654_1 WHERE mens_singles = "Niels Christian Kaldau" AND womens_singles = "Pi Hongyan"
[ 2437, 867, 1661, 750, 11556, 1424, 4302, 509, 1940, 559, 1592, 262, 1450, 338, 2060, 290, 13993, 9764, 4121, 1592, 262, 1466, 338, 2060, 287, 262, 976, 614, 30, 46506, 327, 28270, 7, 1941, 8, 16034, 3084, 62, 1065, 23195, 39111, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 1661, 750, 11556, 1424, 4302, 509, 1940, 559, 1592, 262, 1450, 338, 2060, 290, 13993, 9764, 4121, 1592, 262, 1466, 338, 2060, 287, 262, 976, 614, 30, 46506, 327, 28270, 7, 1941, 8, 16034, 3084, 62, 1065, 23195, 39111, 62, ...
how many patients with brain mass; intracranial hemorrhage primary disease have ou route of drug administration?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND prescriptions.route = "OU"
[ 4919, 867, 3871, 351, 3632, 2347, 26, 9913, 330, 2596, 498, 42203, 496, 4165, 4369, 423, 267, 84, 6339, 286, 2563, 3662, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 3871, 351, 3632, 2347, 26, 9913, 330, 2596, 498, 42203, 496, 4165, 4369, 423, 267, 84, 6339, 286, 2563, 3662, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, ...
for the other of soun, what's the khmer?
SELECT khmer FROM table_name_40 WHERE other = "soun"
[ 1640, 262, 584, 286, 264, 977, 11, 644, 338, 262, 44081, 647, 30, 46506, 44081, 647, 16034, 3084, 62, 3672, 62, 1821, 33411, 584, 796, 366, 82, 977, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1640, 262, 584, 286, 264, 977, 11, 644, 338, 262, 44081, 647, 30, 46506, 44081, 647, 16034, 3084, 62, 3672, 62, 1821, 33411, 584, 796, 366, 82, 977, 1 ]
What was the result of the game against the Miami Dolphins held at the Riverfront Stadium?
SELECT "Result" FROM table_78664 WHERE "Location" = 'riverfront stadium' AND "Opponent" = 'miami dolphins'
[ 2061, 373, 262, 1255, 286, 262, 983, 1028, 262, 8437, 21668, 2714, 379, 262, 5866, 8534, 10499, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 46302, 2414, 33411, 366, 14749, 1, 796, 705, 38291, 8534, 10308, 6, 5357, 366, 27524, 3471, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 1255, 286, 262, 983, 1028, 262, 8437, 21668, 2714, 379, 262, 5866, 8534, 10499, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 46302, 2414, 33411, 366, 14749, 1, 796, 705, 38291, 8534, 10308, 6, 5357, 366, 27524, 3471, 1, ...
count the number of patients who underwent antibiotics - penicillins two times.
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'antibiotics - penicillins') GROUP BY patient.uniquepid) AS t1 WHERE t1.c1 = 2
[ 9127, 262, 1271, 286, 3871, 508, 25289, 22392, 532, 3112, 291, 359, 1040, 734, 1661, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 403, 1557, 538, 312, 8, 16034, 357, 46506, 5827, 13, 403, 1557, 538, 312, 11, 327, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9127, 262, 1271, 286, 3871, 508, 25289, 22392, 532, 3112, 291, 359, 1040, 734, 1661, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 403, 1557, 538, 312, 8, 16034, 357, 46506, 5827, 13, 403, 1557, 538, 312, 11, 327, 2...
Which Wrestler has an Entered of 5, and a Pinned of mvp?
SELECT "Wrestler" FROM table_36541 WHERE "Entered" = '5' AND "Pinned" = 'mvp'
[ 13828, 20722, 1754, 468, 281, 22542, 286, 642, 11, 290, 257, 13727, 2817, 286, 285, 36133, 30, 46506, 366, 54, 2118, 1754, 1, 16034, 3084, 62, 24760, 3901, 33411, 366, 14539, 1068, 1, 796, 705, 20, 6, 5357, 366, 28348, 2817, 1, 796,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 20722, 1754, 468, 281, 22542, 286, 642, 11, 290, 257, 13727, 2817, 286, 285, 36133, 30, 46506, 366, 54, 2118, 1754, 1, 16034, 3084, 62, 24760, 3901, 33411, 366, 14539, 1068, 1, 796, 705, 20, 6, 5357, 366, 28348, 2817, 1, 796,...
is year 2008 or 2009 viewed on network mnet ?
SELECT "year" FROM table_204_379 WHERE "year" IN (2008, 2009) AND "network" = 'mnet'
[ 271, 614, 3648, 393, 3717, 9569, 319, 3127, 285, 3262, 5633, 46506, 366, 1941, 1, 16034, 3084, 62, 18638, 62, 29088, 33411, 366, 1941, 1, 3268, 357, 11528, 11, 3717, 8, 5357, 366, 27349, 1, 796, 705, 76, 3262, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 271, 614, 3648, 393, 3717, 9569, 319, 3127, 285, 3262, 5633, 46506, 366, 1941, 1, 16034, 3084, 62, 18638, 62, 29088, 33411, 366, 1941, 1, 3268, 357, 11528, 11, 3717, 8, 5357, 366, 27349, 1, 796, 705, 76, 3262, 6 ]
Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop.
SELECT date, venue FROM workshop ORDER BY venue
[ 42758, 262, 1123, 20243, 287, 24830, 605, 1502, 286, 262, 14359, 13, 8229, 262, 3128, 290, 14359, 286, 1123, 20243, 13, 46506, 3128, 11, 14359, 16034, 20243, 38678, 11050, 14359 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 42758, 262, 1123, 20243, 287, 24830, 605, 1502, 286, 262, 14359, 13, 8229, 262, 3128, 290, 14359, 286, 1123, 20243, 13, 46506, 3128, 11, 14359, 16034, 20243, 38678, 11050, 14359 ]
how many days have passed since patient 19412 was given his last neutropenia nos diagnosis in the current hospital visit?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnoses_icd.charttime)) FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'neutropenia nos') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions W...
[ 4919, 867, 1528, 423, 3804, 1201, 5827, 30483, 1065, 373, 1813, 465, 938, 22190, 1773, 268, 544, 43630, 13669, 287, 262, 1459, 4436, 3187, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 1528, 423, 3804, 1201, 5827, 30483, 1065, 373, 1813, 465, 938, 22190, 1773, 268, 544, 43630, 13669, 287, 262, 1459, 4436, 3187, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, ...
What was the fewest number of viewers for the episode production number of 109 5-22?
SELECT MIN(total_viewers__in_millions_) FROM table_name_54 WHERE episode_number_production_number = "109 5-22"
[ 2061, 373, 262, 1178, 395, 1271, 286, 10209, 329, 262, 4471, 3227, 1271, 286, 16003, 642, 12, 1828, 30, 46506, 20625, 7, 23350, 62, 1177, 364, 834, 259, 62, 17805, 507, 62, 8, 16034, 3084, 62, 3672, 62, 4051, 33411, 4471, 62, 17618,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 1178, 395, 1271, 286, 10209, 329, 262, 4471, 3227, 1271, 286, 16003, 642, 12, 1828, 30, 46506, 20625, 7, 23350, 62, 1177, 364, 834, 259, 62, 17805, 507, 62, 8, 16034, 3084, 62, 3672, 62, 4051, 33411, 4471, 62, 17618,...
Who was the leading score in the game at the Warriors?
SELECT leading_scorer FROM table_name_54 WHERE home = "warriors"
[ 8241, 373, 262, 3756, 4776, 287, 262, 983, 379, 262, 12090, 30, 46506, 3756, 62, 1416, 11934, 16034, 3084, 62, 3672, 62, 4051, 33411, 1363, 796, 366, 5767, 8657, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 3756, 4776, 287, 262, 983, 379, 262, 12090, 30, 46506, 3756, 62, 1416, 11934, 16034, 3084, 62, 3672, 62, 4051, 33411, 1363, 796, 366, 5767, 8657, 1 ]
Review task - actions by one user.
SELECT tt.Name, rt.Name, rt.Description, COUNT(*) FROM ReviewTaskResults AS r INNER JOIN ReviewTaskResultTypes AS rt ON r.ReviewTaskResultTypeId = rt.Id INNER JOIN ReviewTasks AS t ON r.ReviewTaskId = t.Id INNER JOIN ReviewTaskTypes AS tt ON t.ReviewTaskTypeId = tt.Id WHERE r.CreationDate BETWEEN '2016-01-01' AND '2016...
[ 14832, 4876, 532, 4028, 416, 530, 2836, 13, 46506, 256, 83, 13, 5376, 11, 374, 83, 13, 5376, 11, 374, 83, 13, 11828, 11, 327, 28270, 7, 28104, 16034, 6602, 25714, 25468, 7054, 374, 3268, 21479, 32357, 1268, 6602, 25714, 23004, 31431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 14832, 4876, 532, 4028, 416, 530, 2836, 13, 46506, 256, 83, 13, 5376, 11, 374, 83, 13, 5376, 11, 374, 83, 13, 11828, 11, 327, 28270, 7, 28104, 16034, 6602, 25714, 25468, 7054, 374, 3268, 21479, 32357, 1268, 6602, 25714, 23004, 31431, ...
What is the pick of Charley Taylor, who has an overall greater than 3?
SELECT SUM(pick) FROM table_name_58 WHERE name = "charley taylor" AND overall > 3
[ 2061, 318, 262, 2298, 286, 3178, 1636, 8121, 11, 508, 468, 281, 4045, 3744, 621, 513, 30, 46506, 35683, 7, 27729, 8, 16034, 3084, 62, 3672, 62, 3365, 33411, 1438, 796, 366, 10641, 1636, 256, 7167, 1, 5357, 4045, 1875, 513 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2298, 286, 3178, 1636, 8121, 11, 508, 468, 281, 4045, 3744, 621, 513, 30, 46506, 35683, 7, 27729, 8, 16034, 3084, 62, 3672, 62, 3365, 33411, 1438, 796, 366, 10641, 1636, 256, 7167, 1, 5357, 4045, 1875, 513 ]
What's the meaning of the verb whose part 1 is slapen?
SELECT verb_meaning FROM table_1745843_7 WHERE part_1 = "slapen"
[ 2061, 338, 262, 3616, 286, 262, 15942, 3025, 636, 352, 318, 23905, 268, 30, 46506, 15942, 62, 24815, 16034, 3084, 62, 1558, 29334, 3559, 62, 22, 33411, 636, 62, 16, 796, 366, 6649, 499, 268, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 338, 262, 3616, 286, 262, 15942, 3025, 636, 352, 318, 23905, 268, 30, 46506, 15942, 62, 24815, 16034, 3084, 62, 1558, 29334, 3559, 62, 22, 33411, 636, 62, 16, 796, 366, 6649, 499, 268, 1 ]
What is the Branding of the Frequency owned by Sound of Faith Broadcasting Group?
SELECT branding FROM table_name_23 WHERE owner = "sound of faith broadcasting group"
[ 2061, 318, 262, 13512, 278, 286, 262, 31902, 6898, 416, 9506, 286, 16463, 32250, 4912, 30, 46506, 24150, 16034, 3084, 62, 3672, 62, 1954, 33411, 4870, 796, 366, 23661, 286, 4562, 22978, 1448, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 13512, 278, 286, 262, 31902, 6898, 416, 9506, 286, 16463, 32250, 4912, 30, 46506, 24150, 16034, 3084, 62, 3672, 62, 1954, 33411, 4870, 796, 366, 23661, 286, 4562, 22978, 1448, 1 ]
what is the continent in which the country russia is listed?
SELECT continent FROM table_27435931_1 WHERE country = "Russia"
[ 10919, 318, 262, 15549, 287, 543, 262, 1499, 374, 31269, 318, 5610, 30, 46506, 15549, 16034, 3084, 62, 28857, 30743, 3132, 62, 16, 33411, 1499, 796, 366, 16347, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 15549, 287, 543, 262, 1499, 374, 31269, 318, 5610, 30, 46506, 15549, 16034, 3084, 62, 28857, 30743, 3132, 62, 16, 33411, 1499, 796, 366, 16347, 1 ]
what is the material of the surface in noida , uttar pradesh, india
SELECT "Surface" FROM table_74362 WHERE "Location" = 'Noida , Uttar Pradesh, India'
[ 10919, 318, 262, 2587, 286, 262, 4417, 287, 645, 3755, 837, 3384, 18870, 778, 13410, 11, 773, 544, 46506, 366, 14214, 2550, 1, 16034, 3084, 62, 4524, 35667, 33411, 366, 14749, 1, 796, 705, 45, 1868, 64, 837, 44744, 25945, 11, 3794, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 2587, 286, 262, 4417, 287, 645, 3755, 837, 3384, 18870, 778, 13410, 11, 773, 544, 46506, 366, 14214, 2550, 1, 16034, 3084, 62, 4524, 35667, 33411, 366, 14749, 1, 796, 705, 45, 1868, 64, 837, 44744, 25945, 11, 3794, ...
Return a histogram on how many hosts does each nationality have? List the nationality and the count, and could you rank by the names from low to high?
SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY Nationality
[ 13615, 257, 1554, 21857, 319, 703, 867, 11453, 857, 1123, 29835, 423, 30, 7343, 262, 29835, 290, 262, 954, 11, 290, 714, 345, 4279, 416, 262, 3891, 422, 1877, 284, 1029, 30, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13615, 257, 1554, 21857, 319, 703, 867, 11453, 857, 1123, 29835, 423, 30, 7343, 262, 29835, 290, 262, 954, 11, 290, 714, 345, 4279, 416, 262, 3891, 422, 1877, 284, 1029, 30, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 4...
calculate the average age of widow patients who had office admission.
SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.admission_location = "CLINIC REFERRAL/PREMATURE"
[ 9948, 3129, 378, 262, 2811, 2479, 286, 27075, 3871, 508, 550, 2607, 13938, 13, 46506, 35224, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 3876, 1287, 62, 13376, 796, 366, 54, 2389, 3913, 1961, 1, 5357, 16728, 13, 324, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9948, 3129, 378, 262, 2811, 2479, 286, 27075, 3871, 508, 550, 2607, 13938, 13, 46506, 35224, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 3876, 1287, 62, 13376, 796, 366, 54, 2389, 3913, 1961, 1, 5357, 16728, 13, 324, ...
Return the name and gender of the staff who was assigned in 2016.
SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE "2016%"
[ 13615, 262, 1438, 290, 5279, 286, 262, 3085, 508, 373, 8686, 287, 1584, 13, 46506, 309, 16, 13, 28120, 62, 3672, 11, 309, 16, 13, 28120, 62, 8388, 16034, 3085, 7054, 309, 16, 32357, 1268, 3085, 62, 10378, 1823, 62, 562, 570, 902, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13615, 262, 1438, 290, 5279, 286, 262, 3085, 508, 373, 8686, 287, 1584, 13, 46506, 309, 16, 13, 28120, 62, 3672, 11, 309, 16, 13, 28120, 62, 8388, 16034, 3085, 7054, 309, 16, 32357, 1268, 3085, 62, 10378, 1823, 62, 562, 570, 902, ...
What is the average rank of the city of el paso, which has a population greater than 672,538?
SELECT AVG(rank) FROM table_name_69 WHERE city = "el paso" AND population > 672 OFFSET 538
[ 2061, 318, 262, 2811, 4279, 286, 262, 1748, 286, 1288, 38836, 78, 11, 543, 468, 257, 3265, 3744, 621, 718, 4761, 11, 49561, 30, 46506, 35224, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 3388, 33411, 1748, 796, 366, 417, 38836, 78, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 4279, 286, 262, 1748, 286, 1288, 38836, 78, 11, 543, 468, 257, 3265, 3744, 621, 718, 4761, 11, 49561, 30, 46506, 35224, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 3388, 33411, 1748, 796, 366, 417, 38836, 78, 1, ...
provide the number of patients whose diagnoses icd9 code is 07054 and lab test fluid is ascites?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "07054" AND lab.fluid = "Ascites"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 40567, 14158, 67, 24, 2438, 318, 657, 2154, 4051, 290, 2248, 1332, 11711, 318, 10570, 2737, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 2147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 40567, 14158, 67, 24, 2438, 318, 657, 2154, 4051, 290, 2248, 1332, 11711, 318, 10570, 2737, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 2147...
What is the source for Laird?
SELECT "Source" FROM table_71535 WHERE "Name" = 'laird'
[ 2061, 318, 262, 2723, 329, 15067, 67, 30, 46506, 366, 7416, 1, 16034, 3084, 62, 22, 1314, 2327, 33411, 366, 5376, 1, 796, 705, 75, 41620, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2723, 329, 15067, 67, 30, 46506, 366, 7416, 1, 16034, 3084, 62, 22, 1314, 2327, 33411, 366, 5376, 1, 796, 705, 75, 41620, 6 ]
How many courses for each course description? Show me a stacked bar chart The x-axis is course description and group by instructor's name, and sort names in descending order.
SELECT CRS_DESCRIPTION, COUNT(CRS_DESCRIPTION) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE GROUP BY EMP_FNAME, CRS_DESCRIPTION ORDER BY CRS_DESCRIPTION DESC
[ 2437, 867, 10902, 329, 1123, 1781, 6764, 30, 5438, 502, 257, 24167, 2318, 8262, 383, 2124, 12, 22704, 318, 1781, 6764, 290, 1448, 416, 21187, 338, 1438, 11, 290, 3297, 3891, 287, 31491, 1502, 13, 46506, 327, 6998, 62, 30910, 40165, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 10902, 329, 1123, 1781, 6764, 30, 5438, 502, 257, 24167, 2318, 8262, 383, 2124, 12, 22704, 318, 1781, 6764, 290, 1448, 416, 21187, 338, 1438, 11, 290, 3297, 3891, 287, 31491, 1502, 13, 46506, 327, 6998, 62, 30910, 40165, 11...
Who has the smallest crowd in the Venue of Arden Street Oval?
SELECT MIN(crowd) FROM table_name_56 WHERE venue = "arden street oval"
[ 8241, 468, 262, 18197, 4315, 287, 262, 9932, 518, 286, 943, 6559, 3530, 25165, 30, 46506, 20625, 7, 66, 3986, 8, 16034, 3084, 62, 3672, 62, 3980, 33411, 14359, 796, 366, 5872, 4675, 41186, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 468, 262, 18197, 4315, 287, 262, 9932, 518, 286, 943, 6559, 3530, 25165, 30, 46506, 20625, 7, 66, 3986, 8, 16034, 3084, 62, 3672, 62, 3980, 33411, 14359, 796, 366, 5872, 4675, 41186, 1 ]
What venue featured essendon as home team?
SELECT venue FROM table_name_25 WHERE home_team = "essendon"
[ 2061, 14359, 8096, 3209, 43153, 355, 1363, 1074, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 1495, 33411, 1363, 62, 15097, 796, 366, 408, 43153, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 14359, 8096, 3209, 43153, 355, 1363, 1074, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 1495, 33411, 1363, 62, 15097, 796, 366, 408, 43153, 1 ]
Name the 2010 with tournament of grand slam tournaments
SELECT "2010" FROM table_69854 WHERE "Tournament" = 'grand slam tournaments'
[ 5376, 262, 3050, 351, 7756, 286, 4490, 21158, 18130, 46506, 366, 10333, 1, 16034, 3084, 62, 39357, 4051, 33411, 366, 51, 5138, 1, 796, 705, 23936, 21158, 18130, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 3050, 351, 7756, 286, 4490, 21158, 18130, 46506, 366, 10333, 1, 16034, 3084, 62, 39357, 4051, 33411, 366, 51, 5138, 1, 796, 705, 23936, 21158, 18130, 6 ]
What is the area (km2) for the place with a 2010 population of 153085?
SELECT "Area (km 2 )" FROM table_28316 WHERE "Population (2010)" = '153085'
[ 2061, 318, 262, 1989, 357, 13276, 17, 8, 329, 262, 1295, 351, 257, 3050, 3265, 286, 1315, 1270, 5332, 30, 46506, 366, 30547, 357, 13276, 362, 1267, 1, 16034, 3084, 62, 30290, 1433, 33411, 366, 45251, 357, 10333, 16725, 796, 705, 1314,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1989, 357, 13276, 17, 8, 329, 262, 1295, 351, 257, 3050, 3265, 286, 1315, 1270, 5332, 30, 46506, 366, 30547, 357, 13276, 362, 1267, 1, 16034, 3084, 62, 30290, 1433, 33411, 366, 45251, 357, 10333, 16725, 796, 705, 1314,...
What was the score for the match were the opponent in the final was james cerretani todd perry?
SELECT score FROM table_name_95 WHERE opponents_in_the_final = "james cerretani todd perry"
[ 2061, 373, 262, 4776, 329, 262, 2872, 547, 262, 6125, 287, 262, 2457, 373, 474, 1047, 26074, 1186, 3216, 23646, 583, 563, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 3865, 33411, 7691, 62, 259, 62, 1169, 62, 20311, 796, 366, 73, 104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 329, 262, 2872, 547, 262, 6125, 287, 262, 2457, 373, 474, 1047, 26074, 1186, 3216, 23646, 583, 563, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 3865, 33411, 7691, 62, 259, 62, 1169, 62, 20311, 796, 366, 73, 104...
Name the head of household for married filing jointly or qualified widow(er) being $137,051 $208,850
SELECT head_of_household FROM table_name_32 WHERE married_filing_jointly_or_qualified_widow_er_ = "$137,051–$208,850"
[ 5376, 262, 1182, 286, 6641, 329, 6405, 12180, 26913, 393, 10617, 27075, 7, 263, 8, 852, 720, 19708, 11, 2713, 16, 720, 21315, 11, 25764, 46506, 1182, 62, 1659, 62, 4803, 2946, 16034, 3084, 62, 3672, 62, 2624, 33411, 6405, 62, 69, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 5376, 262, 1182, 286, 6641, 329, 6405, 12180, 26913, 393, 10617, 27075, 7, 263, 8, 852, 720, 19708, 11, 2713, 16, 720, 21315, 11, 25764, 46506, 1182, 62, 1659, 62, 4803, 2946, 16034, 3084, 62, 3672, 62, 2624, 33411, 6405, 62, 69, 43...
What is the date when tie number is 6?
SELECT date FROM table_name_98 WHERE tie_no = "6"
[ 2061, 318, 262, 3128, 618, 9839, 1271, 318, 718, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 4089, 33411, 9839, 62, 3919, 796, 366, 21, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3128, 618, 9839, 1271, 318, 718, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 4089, 33411, 9839, 62, 3919, 796, 366, 21, 1 ]
Visualize a bar chart about the distribution of Date_of_Birth and Weight .
SELECT Date_of_Birth, Weight FROM people
[ 36259, 1096, 257, 2318, 8262, 546, 262, 6082, 286, 7536, 62, 1659, 62, 38480, 290, 14331, 764, 46506, 7536, 62, 1659, 62, 38480, 11, 14331, 16034, 661 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 36259, 1096, 257, 2318, 8262, 546, 262, 6082, 286, 7536, 62, 1659, 62, 38480, 290, 14331, 764, 46506, 7536, 62, 1659, 62, 38480, 11, 14331, 16034, 661 ]
What was the Termination of Mission date for the ambassador who was appointed by Barack Obama?
SELECT "Termination of Mission" FROM table_80245 WHERE "Appointed by" = 'barack obama'
[ 2061, 373, 262, 15527, 341, 286, 12633, 3128, 329, 262, 14791, 508, 373, 9899, 416, 8732, 2486, 30, 46506, 366, 15156, 17928, 286, 12633, 1, 16034, 3084, 62, 1795, 22995, 33411, 366, 4677, 20909, 416, 1, 796, 705, 5657, 441, 909, 1689...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 15527, 341, 286, 12633, 3128, 329, 262, 14791, 508, 373, 9899, 416, 8732, 2486, 30, 46506, 366, 15156, 17928, 286, 12633, 1, 16034, 3084, 62, 1795, 22995, 33411, 366, 4677, 20909, 416, 1, 796, 705, 5657, 441, 909, 1689...
For earnings greater than 4,689,368, what is the greatest rank?
SELECT MAX("Rank") FROM table_10152 WHERE "Earnings( $ )" > '4,689,368'
[ 1890, 12042, 3744, 621, 604, 11, 40523, 11, 27412, 11, 644, 318, 262, 6000, 4279, 30, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 8784, 4309, 33411, 366, 49725, 654, 7, 720, 1267, 1, 1875, 705, 19, 11, 40523, 11, 27412, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1890, 12042, 3744, 621, 604, 11, 40523, 11, 27412, 11, 644, 318, 262, 6000, 4279, 30, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 8784, 4309, 33411, 366, 49725, 654, 7, 720, 1267, 1, 1875, 705, 19, 11, 40523, 11, 27412, 6 ]
What date was the game with loss of Aker (3 8)?
SELECT "Date" FROM table_71564 WHERE "Loss" = 'aker (3–8)'
[ 2061, 3128, 373, 262, 983, 351, 2994, 286, 317, 6122, 357, 18, 807, 19427, 46506, 366, 10430, 1, 16034, 3084, 62, 22, 1314, 2414, 33411, 366, 43, 793, 1, 796, 705, 3110, 357, 18, 1906, 23, 33047 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 3128, 373, 262, 983, 351, 2994, 286, 317, 6122, 357, 18, 807, 19427, 46506, 366, 10430, 1, 16034, 3084, 62, 22, 1314, 2414, 33411, 366, 43, 793, 1, 796, 705, 3110, 357, 18, 1906, 23, 33047 ]
List all customer status codes and the number of customers having each status code in a bar chart, sort from low to high by the X please.
SELECT customer_status_code, COUNT(*) FROM Customers GROUP BY customer_status_code ORDER BY customer_status_code
[ 8053, 477, 6491, 3722, 12416, 290, 262, 1271, 286, 4297, 1719, 1123, 3722, 2438, 287, 257, 2318, 8262, 11, 3297, 422, 1877, 284, 1029, 416, 262, 1395, 3387, 13, 46506, 6491, 62, 13376, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 36707,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 477, 6491, 3722, 12416, 290, 262, 1271, 286, 4297, 1719, 1123, 3722, 2438, 287, 257, 2318, 8262, 11, 3297, 422, 1877, 284, 1029, 416, 262, 1395, 3387, 13, 46506, 6491, 62, 13376, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 36707,...
Show the names of members that have a rank in round higher than 3.
SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3
[ 15307, 262, 3891, 286, 1866, 326, 423, 257, 4279, 287, 2835, 2440, 621, 513, 13, 46506, 309, 16, 13, 5376, 16034, 2888, 7054, 309, 16, 32357, 1268, 2835, 7054, 309, 17, 6177, 309, 16, 13, 27608, 62, 2389, 796, 309, 17, 13, 27608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 262, 3891, 286, 1866, 326, 423, 257, 4279, 287, 2835, 2440, 621, 513, 13, 46506, 309, 16, 13, 5376, 16034, 2888, 7054, 309, 16, 32357, 1268, 2835, 7054, 309, 17, 6177, 309, 16, 13, 27608, 62, 2389, 796, 309, 17, 13, 27608, ...
Incumbent Bill Harsha was the winner in an election in which the candidates were who?
SELECT candidates FROM table_1341718_36 WHERE incumbent = "Bill Harsha"
[ 25517, 2178, 298, 3941, 367, 945, 3099, 373, 262, 8464, 287, 281, 3071, 287, 543, 262, 5871, 547, 508, 30, 46506, 5871, 16034, 3084, 62, 19880, 1558, 1507, 62, 2623, 33411, 23526, 796, 366, 17798, 367, 945, 3099, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 25517, 2178, 298, 3941, 367, 945, 3099, 373, 262, 8464, 287, 281, 3071, 287, 543, 262, 5871, 547, 508, 30, 46506, 5871, 16034, 3084, 62, 19880, 1558, 1507, 62, 2623, 33411, 23526, 796, 366, 17798, 367, 945, 3099, 1 ]
What club team plays at the champion window field?
SELECT "Club" FROM table_66382 WHERE "Venue" = 'champion window field'
[ 2061, 3430, 1074, 5341, 379, 262, 8783, 4324, 2214, 30, 46506, 366, 42350, 1, 16034, 3084, 62, 2791, 36243, 33411, 366, 37522, 518, 1, 796, 705, 354, 6734, 4324, 2214, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 3430, 1074, 5341, 379, 262, 8783, 4324, 2214, 30, 46506, 366, 42350, 1, 16034, 3084, 62, 2791, 36243, 33411, 366, 37522, 518, 1, 796, 705, 354, 6734, 4324, 2214, 6 ]
specify the age and marital status of patient id 66411
SELECT demographic.marital_status, demographic.age FROM demographic WHERE demographic.subject_id = "66411"
[ 16684, 1958, 262, 2479, 290, 29555, 3722, 286, 5827, 4686, 718, 2414, 1157, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 16728, 13, 496, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 21, 2414, 1157, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16684, 1958, 262, 2479, 290, 29555, 3722, 286, 5827, 4686, 718, 2414, 1157, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 16728, 13, 496, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 21, 2414, 1157, 1 ]
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of manufacturer , and group by attribute name.
SELECT T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 262, 2811, 286, 11554, 837, 290, 1448, 416, 11688, 1438, 13, 46506, 309, 17, 13, 5376, 11, 309, 16, 13, 44445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 262, 2811, 286, 11554, 837, 290, 1448, 416, 11688, 1438, 13, 46506, 309, 17, 13, 5376, 11, 309, 16, 13, 44445, ...
How many different users wrote some reviews?
SELECT COUNT(DISTINCT u_id) FROM review
[ 2437, 867, 1180, 2985, 2630, 617, 8088, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 334, 62, 312, 8, 16034, 2423 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1180, 2985, 2630, 617, 8088, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 334, 62, 312, 8, 16034, 2423 ]
What country has a To par of +1 and the score of 71-76-70=217?
SELECT "Country" FROM table_66785 WHERE "To par" = '+1' AND "Score" = '71-76-70=217'
[ 2061, 1499, 468, 257, 1675, 1582, 286, 1343, 16, 290, 262, 4776, 286, 9166, 12, 4304, 12, 2154, 28, 24591, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 2791, 41172, 33411, 366, 2514, 1582, 1, 796, 705, 10, 16, 6, 5357, 366, 26595, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1499, 468, 257, 1675, 1582, 286, 1343, 16, 290, 262, 4776, 286, 9166, 12, 4304, 12, 2154, 28, 24591, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 2791, 41172, 33411, 366, 2514, 1582, 1, 796, 705, 10, 16, 6, 5357, 366, 26595, 1...
Name the most rank for population more than 93,378
SELECT MAX("Rank") FROM table_51343 WHERE "Population" > '93,378'
[ 5376, 262, 749, 4279, 329, 3265, 517, 621, 10261, 11, 30695, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 48645, 3559, 33411, 366, 45251, 1, 1875, 705, 6052, 11, 30695, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 749, 4279, 329, 3265, 517, 621, 10261, 11, 30695, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 48645, 3559, 33411, 366, 45251, 1, 1875, 705, 6052, 11, 30695, 6 ]
Which Date has a Tie no of 11?
SELECT "Date" FROM table_7962 WHERE "Tie no" = '11'
[ 13828, 7536, 468, 257, 36286, 645, 286, 1367, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 3720, 5237, 33411, 366, 51, 494, 645, 1, 796, 705, 1157, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 7536, 468, 257, 36286, 645, 286, 1367, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 3720, 5237, 33411, 366, 51, 494, 645, 1, 796, 705, 1157, 6 ]
display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.
SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = "Clara")
[ 13812, 262, 6538, 1438, 357, 717, 1438, 290, 938, 1438, 1267, 290, 11078, 3128, 329, 477, 4409, 287, 262, 976, 5011, 355, 27443, 13, 46506, 717, 62, 3672, 11, 938, 62, 3672, 11, 11078, 62, 4475, 16034, 4409, 33411, 5011, 62, 312, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13812, 262, 6538, 1438, 357, 717, 1438, 290, 938, 1438, 1267, 290, 11078, 3128, 329, 477, 4409, 287, 262, 976, 5011, 355, 27443, 13, 46506, 717, 62, 3672, 11, 938, 62, 3672, 11, 11078, 62, 4475, 16034, 4409, 33411, 5011, 62, 312, 79...
Tags which never occur alone.
SELECT t.TagName FROM Tags AS t WHERE t.Id NOT IN (SELECT p2.TagId FROM PostTags AS p2 WHERE p2.PostId IN (SELECT p1.PostId FROM PostTags AS p1 GROUP BY p1.PostId HAVING COUNT(TagId) = 1)) ORDER BY t.TagName
[ 36142, 543, 1239, 3051, 3436, 13, 46506, 256, 13, 24835, 5376, 16034, 44789, 7054, 256, 33411, 256, 13, 7390, 5626, 3268, 357, 46506, 279, 17, 13, 24835, 7390, 16034, 2947, 36142, 7054, 279, 17, 33411, 279, 17, 13, 6307, 7390, 3268, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 36142, 543, 1239, 3051, 3436, 13, 46506, 256, 13, 24835, 5376, 16034, 44789, 7054, 256, 33411, 256, 13, 7390, 5626, 3268, 357, 46506, 279, 17, 13, 24835, 7390, 16034, 2947, 36142, 7054, 279, 17, 33411, 279, 17, 13, 6307, 7390, 3268, 3...
count the number of patients whose admission type is urgent and lab test name is creatinine?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.label = "Creatinine"
[ 9127, 262, 1271, 286, 3871, 3025, 13938, 2099, 318, 18039, 290, 2248, 1332, 1438, 318, 1827, 259, 500, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9127, 262, 1271, 286, 3871, 3025, 13938, 2099, 318, 18039, 290, 2248, 1332, 1438, 318, 1827, 259, 500, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 1...
Name the dust for star being hd 69830
SELECT "Dust (or Debris) Location (AU)" FROM table_25607 WHERE "Star" = 'HD 69830'
[ 5376, 262, 8977, 329, 3491, 852, 289, 67, 39861, 1270, 46506, 366, 43767, 357, 273, 1024, 15311, 8, 13397, 357, 26830, 16725, 16034, 3084, 62, 1495, 31980, 33411, 366, 8248, 1, 796, 705, 10227, 39861, 1270, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 8977, 329, 3491, 852, 289, 67, 39861, 1270, 46506, 366, 43767, 357, 273, 1024, 15311, 8, 13397, 357, 26830, 16725, 16034, 3084, 62, 1495, 31980, 33411, 366, 8248, 1, 796, 705, 10227, 39861, 1270, 6 ]
What is the class of the w267an call sign?
SELECT class FROM table_name_13 WHERE call_sign = "w267an"
[ 2061, 318, 262, 1398, 286, 262, 266, 25674, 272, 869, 1051, 30, 46506, 1398, 16034, 3084, 62, 3672, 62, 1485, 33411, 869, 62, 12683, 796, 366, 86, 25674, 272, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1398, 286, 262, 266, 25674, 272, 869, 1051, 30, 46506, 1398, 16034, 3084, 62, 3672, 62, 1485, 33411, 869, 62, 12683, 796, 366, 86, 25674, 272, 1 ]
i'd like to book two flights to WESTCHESTER COUNTY
SELECT DISTINCT flight_id FROM flight WHERE to_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'WESTCHESTER COUNTY'))
[ 72, 1549, 588, 284, 1492, 734, 13956, 284, 370, 6465, 3398, 1546, 5781, 41012, 46506, 360, 8808, 1268, 4177, 5474, 62, 312, 16034, 5474, 33411, 284, 62, 958, 634, 3268, 357, 46506, 31600, 15490, 62, 35009, 27389, 26011, 15, 13, 958, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 72, 1549, 588, 284, 1492, 734, 13956, 284, 370, 6465, 3398, 1546, 5781, 41012, 46506, 360, 8808, 1268, 4177, 5474, 62, 312, 16034, 5474, 33411, 284, 62, 958, 634, 3268, 357, 46506, 31600, 15490, 62, 35009, 27389, 26011, 15, 13, 958, 6...
What is the title for year 1991 and a date of March 21?
SELECT "Title" FROM table_66857 WHERE "Year" = '1991' AND "Date" = 'march 21'
[ 2061, 318, 262, 3670, 329, 614, 10249, 290, 257, 3128, 286, 2805, 2310, 30, 46506, 366, 19160, 1, 16034, 3084, 62, 35809, 3553, 33411, 366, 17688, 1, 796, 705, 24529, 6, 5357, 366, 10430, 1, 796, 705, 76, 998, 2310, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3670, 329, 614, 10249, 290, 257, 3128, 286, 2805, 2310, 30, 46506, 366, 19160, 1, 16034, 3084, 62, 35809, 3553, 33411, 366, 17688, 1, 796, 705, 24529, 6, 5357, 366, 10430, 1, 796, 705, 76, 998, 2310, 6 ]
Can you tell me if any AAS classes meet on another day besides Friday ?
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course_offering.friday = 'N' AND course.department = 'AAS' AND semester.semester = 'WN' AND se...
[ 6090, 345, 1560, 502, 611, 597, 317, 1921, 6097, 1826, 319, 1194, 1110, 13769, 3217, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 6090, 345, 1560, 502, 611, 597, 317, 1921, 6097, 1826, 319, 1194, 1110, 13769, 3217, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, ...
What are the distinct visit dates, and count them by a line chart, I want to display X-axis in asc order.
SELECT Visit_Date, COUNT(Visit_Date) FROM Visits ORDER BY Visit_Date
[ 2061, 389, 262, 7310, 3187, 9667, 11, 290, 954, 606, 416, 257, 1627, 8262, 11, 314, 765, 284, 3359, 1395, 12, 22704, 287, 10570, 1502, 13, 46506, 16440, 62, 10430, 11, 327, 28270, 7, 31141, 62, 10430, 8, 16034, 6911, 896, 38678, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 7310, 3187, 9667, 11, 290, 954, 606, 416, 257, 1627, 8262, 11, 314, 765, 284, 3359, 1395, 12, 22704, 287, 10570, 1502, 13, 46506, 16440, 62, 10430, 11, 327, 28270, 7, 31141, 62, 10430, 8, 16034, 6911, 896, 38678, 110...
which stadium can seat the most people ?
SELECT "stadium" FROM table_204_195 ORDER BY "capacity" DESC LIMIT 1
[ 4758, 10308, 460, 5852, 262, 749, 661, 5633, 46506, 366, 301, 6271, 1, 16034, 3084, 62, 18638, 62, 22186, 38678, 11050, 366, 42404, 1, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 10308, 460, 5852, 262, 749, 661, 5633, 46506, 366, 301, 6271, 1, 16034, 3084, 62, 18638, 62, 22186, 38678, 11050, 366, 42404, 1, 22196, 34, 27564, 2043, 352 ]