instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
What was the score when Calgary was visiting team and Niittymaki had the decision?
SELECT "Score" FROM table_45979 WHERE "Decision" = 'niittymaki' AND "Visitor" = 'calgary'
[ 2061, 373, 262, 4776, 618, 17842, 373, 10013, 1074, 290, 11556, 715, 4948, 8182, 550, 262, 2551, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 33459, 3720, 33411, 366, 10707, 1166, 1, 796, 705, 8461, 715, 4948, 8182, 6, 5357, 366, 15854,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 618, 17842, 373, 10013, 1074, 290, 11556, 715, 4948, 8182, 550, 262, 2551, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 33459, 3720, 33411, 366, 10707, 1166, 1, 796, 705, 8461, 715, 4948, 8182, 6, 5357, 366, 15854,...
What are the total amount of numbers on the Toronto team in 2005-06?
SELECT COUNT("No.") FROM table_72074 WHERE "Years in Toronto" = '2005-06'
[ 2061, 389, 262, 2472, 2033, 286, 3146, 319, 262, 6586, 1074, 287, 5075, 12, 3312, 30, 46506, 327, 28270, 7203, 2949, 19570, 16034, 3084, 62, 23906, 4524, 33411, 366, 40630, 287, 6586, 1, 796, 705, 14315, 12, 3312, 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 ]
[ 2061, 389, 262, 2472, 2033, 286, 3146, 319, 262, 6586, 1074, 287, 5075, 12, 3312, 30, 46506, 327, 28270, 7203, 2949, 19570, 16034, 3084, 62, 23906, 4524, 33411, 366, 40630, 287, 6586, 1, 796, 705, 14315, 12, 3312, 6 ]
How many catholic religious background patients had a wbc pleural lab test?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "CATHOLIC" AND lab.label = "WBC, Pleural"
[ 2437, 867, 32171, 4160, 4158, 4469, 3871, 550, 257, 266, 15630, 3339, 1523, 2248, 1332, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 32171, 4160, 4158, 4469, 3871, 550, 257, 266, 15630, 3339, 1523, 2248, 1332, 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, ...
what is the yearly minimum amount of platelet count of patient 88441?
SELECT MIN(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 88441) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'platelet count') GROUP BY STRFTIME('%y', labevents.charttime)
[ 10919, 318, 262, 24169, 5288, 2033, 286, 7480, 1616, 954, 286, 5827, 9193, 39710, 30, 46506, 20625, 7, 23912, 31534, 13, 2100, 84, 44709, 8, 16034, 2248, 31534, 33411, 2248, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 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...
[ 10919, 318, 262, 24169, 5288, 2033, 286, 7480, 1616, 954, 286, 5827, 9193, 39710, 30, 46506, 20625, 7, 23912, 31534, 13, 2100, 84, 44709, 8, 16034, 2248, 31534, 33411, 2248, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, ...
How much Total has a Player of todd hamilton, and a To par smaller than 15?
SELECT COUNT(total) FROM table_name_55 WHERE player = "todd hamilton" AND to_par < 15
[ 2437, 881, 7472, 468, 257, 7853, 286, 23646, 8891, 9044, 11, 290, 257, 1675, 1582, 4833, 621, 1315, 30, 46506, 327, 28270, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 2816, 33411, 2137, 796, 366, 83, 5088, 8891, 9044, 1, 5357, 284, 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 ]
[ 2437, 881, 7472, 468, 257, 7853, 286, 23646, 8891, 9044, 11, 290, 257, 1675, 1582, 4833, 621, 1315, 30, 46506, 327, 28270, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 2816, 33411, 2137, 796, 366, 83, 5088, 8891, 9044, 1, 5357, 284, 62, ...
What district is incumbent ike skelton from?
SELECT district FROM table_1341604_26 WHERE incumbent = "Ike Skelton"
[ 2061, 4783, 318, 23526, 220, 522, 6146, 75, 1122, 422, 30, 46506, 4783, 16034, 3084, 62, 19880, 1433, 3023, 62, 2075, 33411, 23526, 796, 366, 40, 365, 311, 7750, 1122, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 4783, 318, 23526, 220, 522, 6146, 75, 1122, 422, 30, 46506, 4783, 16034, 3084, 62, 19880, 1433, 3023, 62, 2075, 33411, 23526, 796, 366, 40, 365, 311, 7750, 1122, 1 ]
What is the maximum elevation in netherlands?
SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = "Netherlands"
[ 2061, 318, 262, 5415, 22910, 287, 2010, 372, 4447, 30, 46506, 5415, 62, 68, 2768, 341, 16034, 3084, 62, 1731, 26279, 26007, 62, 16, 33411, 1499, 62, 273, 62, 36996, 796, 366, 45, 6750, 4447, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5415, 22910, 287, 2010, 372, 4447, 30, 46506, 5415, 62, 68, 2768, 341, 16034, 3084, 62, 1731, 26279, 26007, 62, 16, 33411, 1499, 62, 273, 62, 36996, 796, 366, 45, 6750, 4447, 1 ]
Which entrant has a year after 1955?
SELECT entrant FROM table_name_59 WHERE year > 1955
[ 13828, 920, 5250, 468, 257, 614, 706, 25325, 30, 46506, 920, 5250, 16034, 3084, 62, 3672, 62, 3270, 33411, 614, 1875, 25325 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 920, 5250, 468, 257, 614, 706, 25325, 30, 46506, 920, 5250, 16034, 3084, 62, 3672, 62, 3270, 33411, 614, 1875, 25325 ]
Who was the away team at the home game of north melbourne?
SELECT away_team FROM table_name_63 WHERE home_team = "north melbourne"
[ 8241, 373, 262, 1497, 1074, 379, 262, 1363, 983, 286, 5093, 7758, 12544, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 5066, 33411, 1363, 62, 15097, 796, 366, 43588, 7758, 12544, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1497, 1074, 379, 262, 1363, 983, 286, 5093, 7758, 12544, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 5066, 33411, 1363, 62, 15097, 796, 366, 43588, 7758, 12544, 1 ]
How many airlines have the star alliance and are in brazil?
SELECT COUNT(rank) FROM table_name_13 WHERE alliance = "star alliance" AND country = "brazil"
[ 2437, 867, 26225, 423, 262, 3491, 12801, 290, 389, 287, 275, 7098, 30, 46506, 327, 28270, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 1485, 33411, 12801, 796, 366, 7364, 12801, 1, 5357, 1499, 796, 366, 65, 7098, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26225, 423, 262, 3491, 12801, 290, 389, 287, 275, 7098, 30, 46506, 327, 28270, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 1485, 33411, 12801, 796, 366, 7364, 12801, 1, 5357, 1499, 796, 366, 65, 7098, 1 ]
What's the call sign that has 20kw of power?
SELECT "Call-Sign" FROM table_65418 WHERE "Power (kw)" = '20kw'
[ 2061, 338, 262, 869, 1051, 326, 468, 1160, 46265, 286, 1176, 30, 46506, 366, 14134, 12, 11712, 1, 16034, 3084, 62, 39111, 1507, 33411, 366, 13434, 357, 46265, 16725, 796, 705, 1238, 46265, 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, 338, 262, 869, 1051, 326, 468, 1160, 46265, 286, 1176, 30, 46506, 366, 14134, 12, 11712, 1, 16034, 3084, 62, 39111, 1507, 33411, 366, 13434, 357, 46265, 16725, 796, 705, 1238, 46265, 6 ]
What is the number of wins when the goals against is larger than 41, points is 29, and draws are larger than 5?
SELECT COUNT(wins) FROM table_name_53 WHERE goals_against > 41 AND points = 29 AND draws > 5
[ 2061, 318, 262, 1271, 286, 7864, 618, 262, 4661, 1028, 318, 4025, 621, 6073, 11, 2173, 318, 2808, 11, 290, 14293, 389, 4025, 621, 642, 30, 46506, 327, 28270, 7, 86, 1040, 8, 16034, 3084, 62, 3672, 62, 4310, 33411, 4661, 62, 32826, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 7864, 618, 262, 4661, 1028, 318, 4025, 621, 6073, 11, 2173, 318, 2808, 11, 290, 14293, 389, 4025, 621, 642, 30, 46506, 327, 28270, 7, 86, 1040, 8, 16034, 3084, 62, 3672, 62, 4310, 33411, 4661, 62, 32826, ...
Who was he opponent on december 11?
SELECT team FROM table_22893781_5 WHERE date = "December 11"
[ 8241, 373, 339, 6125, 319, 390, 3273, 1367, 30, 46506, 1074, 16034, 3084, 62, 1828, 4531, 2718, 6659, 62, 20, 33411, 3128, 796, 366, 20588, 1367, 1 ]
[ 1, 1, 1, 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, 339, 6125, 319, 390, 3273, 1367, 30, 46506, 1074, 16034, 3084, 62, 1828, 4531, 2718, 6659, 62, 20, 33411, 3128, 796, 366, 20588, 1367, 1 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the average of department_id bin hire_date by weekday, and could you list in descending by the y-axis?
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(DEPARTMENT_ID) DESC
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 5011, 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, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 5011, 62, 312, 9874, 11078, 62, 4475, 416,...
who is the the mens doubles with year being 1978
SELECT mens_doubles FROM table_13857700_1 WHERE year = 1978
[ 8727, 318, 262, 262, 285, 641, 21938, 351, 614, 852, 15524, 46506, 285, 641, 62, 67, 280, 7689, 16034, 3084, 62, 1485, 5332, 3324, 405, 62, 16, 33411, 614, 796, 15524 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8727, 318, 262, 262, 285, 641, 21938, 351, 614, 852, 15524, 46506, 285, 641, 62, 67, 280, 7689, 16034, 3084, 62, 1485, 5332, 3324, 405, 62, 16, 33411, 614, 796, 15524 ]
Who is the away team for the game played on December 24, 1977?
SELECT "Away team" FROM table_35598 WHERE "Date" = 'december 24, 1977'
[ 8241, 318, 262, 1497, 1074, 329, 262, 983, 2826, 319, 3426, 1987, 11, 15589, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 2327, 41292, 33411, 366, 10430, 1, 796, 705, 2934, 3273, 1987, 11, 15589, 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 ]
[ 8241, 318, 262, 1497, 1074, 329, 262, 983, 2826, 319, 3426, 1987, 11, 15589, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 2327, 41292, 33411, 366, 10430, 1, 796, 705, 2934, 3273, 1987, 11, 15589, 6 ]
How many verbs mean to bear
SELECT COUNT("Part 4") FROM table_21724 WHERE "Verb meaning" = 'to bear'
[ 2437, 867, 41781, 1612, 284, 6842, 46506, 327, 28270, 7203, 7841, 604, 4943, 16034, 3084, 62, 24591, 1731, 33411, 366, 13414, 65, 3616, 1, 796, 705, 1462, 6842, 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 ]
[ 2437, 867, 41781, 1612, 284, 6842, 46506, 327, 28270, 7203, 7841, 604, 4943, 16034, 3084, 62, 24591, 1731, 33411, 366, 13414, 65, 3616, 1, 796, 705, 1462, 6842, 6 ]
Which date has a Home team score of 6.12 (48)?
SELECT "Date" FROM table_56919 WHERE "Home team score" = '6.12 (48)'
[ 13828, 3128, 468, 257, 5995, 1074, 4776, 286, 718, 13, 1065, 357, 2780, 19427, 46506, 366, 10430, 1, 16034, 3084, 62, 20, 3388, 1129, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 21, 13, 1065, 357, 2780, 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, 1 ]
[ 13828, 3128, 468, 257, 5995, 1074, 4776, 286, 718, 13, 1065, 357, 2780, 19427, 46506, 366, 10430, 1, 16034, 3084, 62, 20, 3388, 1129, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 21, 13, 1065, 357, 2780, 33047 ]
What is 9:00 am, when 6:30 pm is 'Local Programs'?
SELECT "9:00 am" FROM table_61764 WHERE "6:30 pm" = 'local programs'
[ 2061, 318, 860, 25, 405, 716, 11, 618, 718, 25, 1270, 9114, 318, 705, 14565, 26179, 30960, 46506, 366, 24, 25, 405, 716, 1, 16034, 3084, 62, 47941, 2414, 33411, 366, 21, 25, 1270, 9114, 1, 796, 705, 12001, 4056, 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, 860, 25, 405, 716, 11, 618, 718, 25, 1270, 9114, 318, 705, 14565, 26179, 30960, 46506, 366, 24, 25, 405, 716, 1, 16034, 3084, 62, 47941, 2414, 33411, 366, 21, 25, 1270, 9114, 1, 796, 705, 12001, 4056, 6 ]
what is the price of a one way fare from BOSTON to DENVER on CO
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city...
[ 10919, 318, 262, 2756, 286, 257, 530, 835, 14505, 422, 347, 10892, 1340, 284, 37692, 5959, 319, 327, 14058, 16779, 360, 8808, 1268, 4177, 14505, 13, 9496, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2756, 286, 257, 530, 835, 14505, 422, 347, 10892, 1340, 284, 37692, 5959, 319, 327, 14058, 16779, 360, 8808, 1268, 4177, 14505, 13, 9496, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, ...
For those employees who was hired before 2002-06-21, show me about the distribution of job_id and the sum of salary , and group by attribute job_id in a bar chart, show in desc by the x-axis.
SELECT JOB_ID, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 905, 502, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 287, 257, 2318, 8262, 11, 905, 287, 1715, 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, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 905, 502, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 287, 257, 2318, 8262, 11, 905, 287, 1715, 416,...
what is the company with the highest revenue in the automotive industry ?
SELECT "company" FROM table_203_83 WHERE "industry" = 'automotive' ORDER BY "revenue (usd billions)" DESC LIMIT 1
[ 10919, 318, 262, 1664, 351, 262, 4511, 6426, 287, 262, 29393, 2831, 5633, 46506, 366, 39722, 1, 16034, 3084, 62, 22416, 62, 5999, 33411, 366, 23213, 563, 1, 796, 705, 2306, 296, 19138, 6, 38678, 11050, 366, 260, 4080, 357, 385, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1664, 351, 262, 4511, 6426, 287, 262, 29393, 2831, 5633, 46506, 366, 39722, 1, 16034, 3084, 62, 22416, 62, 5999, 33411, 366, 23213, 563, 1, 796, 705, 2306, 296, 19138, 6, 38678, 11050, 366, 260, 4080, 357, 385, 67, ...
How many goals against were scored when the position was higher than 1 and the played was higher than 10?
SELECT COUNT(goals_against) FROM table_name_17 WHERE position > 1 AND played > 10
[ 2437, 867, 4661, 1028, 547, 7781, 618, 262, 2292, 373, 2440, 621, 352, 290, 262, 2826, 373, 2440, 621, 838, 30, 46506, 327, 28270, 7, 2188, 874, 62, 32826, 8, 16034, 3084, 62, 3672, 62, 1558, 33411, 2292, 1875, 352, 5357, 2826, 1875...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4661, 1028, 547, 7781, 618, 262, 2292, 373, 2440, 621, 352, 290, 262, 2826, 373, 2440, 621, 838, 30, 46506, 327, 28270, 7, 2188, 874, 62, 32826, 8, 16034, 3084, 62, 3672, 62, 1558, 33411, 2292, 1875, 352, 5357, 2826, 1875...
What was the result associated with the cinemaa awards, and gabbar singh film?
SELECT result FROM table_name_93 WHERE award = "cinemaa awards" AND film = "gabbar singh"
[ 2061, 373, 262, 1255, 3917, 351, 262, 13483, 7252, 13304, 11, 290, 308, 397, 5657, 1702, 71, 2646, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 6052, 33411, 5764, 796, 366, 66, 7749, 7252, 13304, 1, 5357, 2646, 796, 366, 70, 397, 565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3917, 351, 262, 13483, 7252, 13304, 11, 290, 308, 397, 5657, 1702, 71, 2646, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 6052, 33411, 5764, 796, 366, 66, 7749, 7252, 13304, 1, 5357, 2646, 796, 366, 70, 397, 565...
which type of drug is prescribed to patient with patient id 2560?
SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.subject_id = "2560"
[ 4758, 2099, 286, 2563, 318, 14798, 284, 5827, 351, 5827, 4686, 1679, 1899, 30, 46506, 34092, 13, 30349, 62, 4906, 16034, 34092, 33411, 34092, 13, 32796, 62, 312, 796, 366, 1495, 1899, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2099, 286, 2563, 318, 14798, 284, 5827, 351, 5827, 4686, 1679, 1899, 30, 46506, 34092, 13, 30349, 62, 4906, 16034, 34092, 33411, 34092, 13, 32796, 62, 312, 796, 366, 1495, 1899, 1 ]
What is the number of patients diagnosed with unspecified schizoaffective disorder and were discharged to snf?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SNF" AND diagnoses.long_title = "Schizoaffective disorder, unspecified"
[ 2061, 318, 262, 1271, 286, 3871, 14641, 351, 29547, 5513, 41282, 2001, 13967, 8967, 290, 547, 26476, 284, 3013, 69, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 3871, 14641, 351, 29547, 5513, 41282, 2001, 13967, 8967, 290, 547, 26476, 284, 3013, 69, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, ...
Show the number of document type for different document type description in a bar chart.
SELECT Document_Type_Description, COUNT(Document_Type_Description) FROM Ref_Document_Types GROUP BY Document_Type_Description
[ 15307, 262, 1271, 286, 3188, 2099, 329, 1180, 3188, 2099, 6764, 287, 257, 2318, 8262, 13, 46506, 16854, 62, 6030, 62, 11828, 11, 327, 28270, 7, 24941, 62, 6030, 62, 11828, 8, 16034, 6524, 62, 24941, 62, 31431, 44441, 11050, 16854, 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 ]
[ 15307, 262, 1271, 286, 3188, 2099, 329, 1180, 3188, 2099, 6764, 287, 257, 2318, 8262, 13, 46506, 16854, 62, 6030, 62, 11828, 11, 327, 28270, 7, 24941, 62, 6030, 62, 11828, 8, 16034, 6524, 62, 24941, 62, 31431, 44441, 11050, 16854, 62,...
give me the number of patients whose diagnoses icd9 code is 4142 and drug type is main?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "4142" AND prescriptions.drug_type = "MAIN"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 40567, 14158, 67, 24, 2438, 318, 604, 23726, 290, 2563, 2099, 318, 1388, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 405...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 40567, 14158, 67, 24, 2438, 318, 604, 23726, 290, 2563, 2099, 318, 1388, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 405...
Who was the writer of the episode number in series 4?
SELECT "Written by" FROM table_1490 WHERE "No. in series" = '4'
[ 8241, 373, 262, 6260, 286, 262, 4471, 1271, 287, 2168, 604, 30, 46506, 366, 25354, 416, 1, 16034, 3084, 62, 1415, 3829, 33411, 366, 2949, 13, 287, 2168, 1, 796, 705, 19, 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 ]
[ 8241, 373, 262, 6260, 286, 262, 4471, 1271, 287, 2168, 604, 30, 46506, 366, 25354, 416, 1, 16034, 3084, 62, 1415, 3829, 33411, 366, 2949, 13, 287, 2168, 1, 796, 705, 19, 6 ]
what number of hours have passed since patient 015-23047's hospital admission?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '015-23047' AND patient.hospitaldischargetime IS NULL
[ 10919, 1271, 286, 2250, 423, 3804, 1201, 5827, 5534, 20, 12, 19214, 2857, 338, 4436, 13938, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, 12789, 10786, 4, 73, 3256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 2250, 423, 3804, 1201, 5827, 5534, 20, 12, 19214, 2857, 338, 4436, 13938, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, 12789, 10786, 4, 73, 3256, ...
What is the product category description and unit of measurement of category 'Herbs'?
SELECT product_category_description, unit_of_measure FROM ref_product_categories WHERE product_category_code = "Herbs"
[ 2061, 318, 262, 1720, 6536, 6764, 290, 4326, 286, 15558, 286, 6536, 705, 9360, 1443, 30960, 46506, 1720, 62, 22872, 62, 11213, 11, 4326, 62, 1659, 62, 1326, 5015, 16034, 1006, 62, 11167, 62, 66, 26129, 33411, 1720, 62, 22872, 62, 8189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1720, 6536, 6764, 290, 4326, 286, 15558, 286, 6536, 705, 9360, 1443, 30960, 46506, 1720, 62, 22872, 62, 11213, 11, 4326, 62, 1659, 62, 1326, 5015, 16034, 1006, 62, 11167, 62, 66, 26129, 33411, 1720, 62, 22872, 62, 8189...
find the drug route of phenylephrine 0.5 % nasal spray.
SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Phenylephrine 0.5% Nasal Spray"
[ 19796, 262, 2563, 6339, 286, 6566, 2349, 47723, 657, 13, 20, 4064, 40829, 11662, 13, 46506, 34092, 13, 38629, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 47, 831, 2349, 47723, 220, 657, 13, 20, 4, 22767, 282, 43536, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 19796, 262, 2563, 6339, 286, 6566, 2349, 47723, 657, 13, 20, 4064, 40829, 11662, 13, 46506, 34092, 13, 38629, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 47, 831, 2349, 47723, 220, 657, 13, 20, 4, 22767, 282, 43536, 1 ]
Name the winning driver for havana
SELECT "Winning driver" FROM table_53314 WHERE "Circuit" = 'havana'
[ 5376, 262, 5442, 4639, 329, 387, 33175, 46506, 366, 16643, 768, 4639, 1, 16034, 3084, 62, 44994, 1415, 33411, 366, 31560, 5013, 1, 796, 705, 71, 615, 2271, 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, 5442, 4639, 329, 387, 33175, 46506, 366, 16643, 768, 4639, 1, 16034, 3084, 62, 44994, 1415, 33411, 366, 31560, 5013, 1, 796, 705, 71, 615, 2271, 6 ]
Which Player has a School/Club Team of Illinois?
SELECT "Player" FROM table_40968 WHERE "School/Club Team" = 'illinois'
[ 13828, 7853, 468, 257, 3961, 14, 42350, 4816, 286, 9486, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 29416, 3104, 33411, 366, 26130, 14, 42350, 4816, 1, 796, 705, 359, 8981, 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 ]
[ 13828, 7853, 468, 257, 3961, 14, 42350, 4816, 286, 9486, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 29416, 3104, 33411, 366, 26130, 14, 42350, 4816, 1, 796, 705, 359, 8981, 6 ]
What week was the record 0-5?
SELECT week FROM table_name_96 WHERE record = "0-5"
[ 2061, 1285, 373, 262, 1700, 657, 12, 20, 30, 46506, 1285, 16034, 3084, 62, 3672, 62, 4846, 33411, 1700, 796, 366, 15, 12, 20, 1 ]
[ 1, 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, 1285, 373, 262, 1700, 657, 12, 20, 30, 46506, 1285, 16034, 3084, 62, 3672, 62, 4846, 33411, 1700, 796, 366, 15, 12, 20, 1 ]
What is the depth at the UTC time of 12:19:36?
SELECT depth FROM table_26950408_1 WHERE time___utc__ = "12:19:36"
[ 2061, 318, 262, 6795, 379, 262, 18119, 640, 286, 1105, 25, 1129, 25, 2623, 30, 46506, 6795, 16034, 3084, 62, 26276, 1120, 26200, 62, 16, 33411, 640, 17569, 315, 66, 834, 796, 366, 1065, 25, 1129, 25, 2623, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6795, 379, 262, 18119, 640, 286, 1105, 25, 1129, 25, 2623, 30, 46506, 6795, 16034, 3084, 62, 26276, 1120, 26200, 62, 16, 33411, 640, 17569, 315, 66, 834, 796, 366, 1065, 25, 1129, 25, 2623, 1 ]
What is the smallest frames per minute when the pixels are 5.0
SELECT "least compression at 24 fps" FROM table_522 WHERE "Mpix" = '5.0'
[ 2061, 318, 262, 18197, 13431, 583, 5664, 618, 262, 17848, 389, 642, 13, 15, 46506, 366, 293, 459, 19794, 379, 1987, 32977, 1, 16034, 3084, 62, 49542, 33411, 366, 28861, 844, 1, 796, 705, 20, 13, 15, 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 ]
[ 2061, 318, 262, 18197, 13431, 583, 5664, 618, 262, 17848, 389, 642, 13, 15, 46506, 366, 293, 459, 19794, 379, 1987, 32977, 1, 16034, 3084, 62, 49542, 33411, 366, 28861, 844, 1, 796, 705, 20, 13, 15, 6 ]
How many runs did Vijay Hazare and Gul Mohammad score?
SELECT "Runs" FROM table_45682 WHERE "Batting partners" = 'vijay hazare and gul mohammad'
[ 2437, 867, 4539, 750, 49219, 323, 17064, 533, 290, 23472, 29674, 4776, 30, 46506, 366, 10987, 82, 1, 16034, 3084, 62, 2231, 43950, 33411, 366, 24541, 889, 4887, 1, 796, 705, 85, 2926, 323, 11595, 533, 290, 47161, 285, 1219, 26035, 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 ]
[ 2437, 867, 4539, 750, 49219, 323, 17064, 533, 290, 23472, 29674, 4776, 30, 46506, 366, 10987, 82, 1, 16034, 3084, 62, 2231, 43950, 33411, 366, 24541, 889, 4887, 1, 796, 705, 85, 2926, 323, 11595, 533, 290, 47161, 285, 1219, 26035, 6 ]
I want to know the home team score for essendon away team
SELECT "Home team score" FROM table_55245 WHERE "Away team" = 'essendon'
[ 40, 765, 284, 760, 262, 1363, 1074, 4776, 329, 3209, 43153, 1497, 1074, 46506, 366, 16060, 1074, 4776, 1, 16034, 3084, 62, 2816, 22995, 33411, 366, 32, 1014, 1074, 1, 796, 705, 408, 43153, 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 ]
[ 40, 765, 284, 760, 262, 1363, 1074, 4776, 329, 3209, 43153, 1497, 1074, 46506, 366, 16060, 1074, 4776, 1, 16034, 3084, 62, 2816, 22995, 33411, 366, 32, 1014, 1074, 1, 796, 705, 408, 43153, 6 ]
What venue has an against over 14, an opposing team of scotland, and a status of five nations?
SELECT venue FROM table_name_16 WHERE against > 14 AND opposing_teams = "scotland" AND status = "five nations"
[ 2061, 14359, 468, 281, 1028, 625, 1478, 11, 281, 12330, 1074, 286, 629, 313, 1044, 11, 290, 257, 3722, 286, 1936, 7027, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 1433, 33411, 1028, 1875, 1478, 5357, 12330, 62, 660, 4105, 796, 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, 1, 1, 1, 1, 1 ]
[ 2061, 14359, 468, 281, 1028, 625, 1478, 11, 281, 12330, 1074, 286, 629, 313, 1044, 11, 290, 257, 3722, 286, 1936, 7027, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 1433, 33411, 1028, 1875, 1478, 5357, 12330, 62, 660, 4105, 796, 366, ...
What is the tournament with a hard surface and Ruben de Kleijn as the opponent?
SELECT "Tournament" FROM table_35954 WHERE "Surface" = 'hard' AND "Opponent" = 'ruben de kleijn'
[ 2061, 318, 262, 7756, 351, 257, 1327, 4417, 290, 6256, 268, 390, 15983, 48848, 355, 262, 6125, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 2327, 48372, 33411, 366, 14214, 2550, 1, 796, 705, 10424, 6, 5357, 366, 27524, 3471, 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, 1, 1, 1, 1 ]
[ 2061, 318, 262, 7756, 351, 257, 1327, 4417, 290, 6256, 268, 390, 15983, 48848, 355, 262, 6125, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 2327, 48372, 33411, 366, 14214, 2550, 1, 796, 705, 10424, 6, 5357, 366, 27524, 3471, 1, 796...
what are the numbers of patients who took a carbamazepine test until 4 years ago?
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'carbamazepine' AND DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TIME(), '-4 year'))
[ 10919, 389, 262, 3146, 286, 3871, 508, 1718, 257, 13265, 45983, 538, 500, 1332, 1566, 604, 812, 2084, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 5827, 13, 26029, 20850, 31712,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 262, 3146, 286, 3871, 508, 1718, 257, 13265, 45983, 538, 500, 1332, 1566, 604, 812, 2084, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 5827, 13, 26029, 20850, 31712,...
How many people are under 40 for each gender Plot them as bar chart, and could you show by the X in descending?
SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender ORDER BY gender DESC
[ 2437, 867, 661, 389, 739, 2319, 329, 1123, 5279, 28114, 606, 355, 2318, 8262, 11, 290, 714, 345, 905, 416, 262, 1395, 287, 31491, 30, 46506, 5279, 11, 327, 28270, 7, 28104, 16034, 7755, 33411, 2479, 1279, 2319, 44441, 11050, 5279, 386...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 661, 389, 739, 2319, 329, 1123, 5279, 28114, 606, 355, 2318, 8262, 11, 290, 714, 345, 905, 416, 262, 1395, 287, 31491, 30, 46506, 5279, 11, 327, 28270, 7, 28104, 16034, 7755, 33411, 2479, 1279, 2319, 44441, 11050, 5279, 386...
which Record has a Home of ottawa senators on Date of december 21?
SELECT "Record" FROM table_8375 WHERE "Home" = 'ottawa senators' AND "Date" = 'december 21'
[ 4758, 13266, 468, 257, 5995, 286, 267, 926, 6909, 15469, 319, 7536, 286, 390, 3273, 2310, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 5999, 2425, 33411, 366, 16060, 1, 796, 705, 1252, 6909, 15469, 6, 5357, 366, 10430, 1, 796, 705, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13266, 468, 257, 5995, 286, 267, 926, 6909, 15469, 319, 7536, 286, 390, 3273, 2310, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 5999, 2425, 33411, 366, 16060, 1, 796, 705, 1252, 6909, 15469, 6, 5357, 366, 10430, 1, 796, 705, 29...
provide the number of patients whose marital status is single and procedure long title is cardiopulmonary resuscitation, not otherwise specified?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.long_title = "Cardiopulmonary resuscitation, not otherwise specified"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 29555, 3722, 318, 2060, 290, 8771, 890, 3670, 318, 2657, 14922, 377, 36639, 48636, 3780, 11, 407, 4306, 7368, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 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, 1, 1, 1...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 29555, 3722, 318, 2060, 290, 8771, 890, 3670, 318, 2657, 14922, 377, 36639, 48636, 3780, 11, 407, 4306, 7368, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034,...
how many children were born in february ?
SELECT COUNT("name") FROM table_204_626 WHERE "birth date" = 2
[ 4919, 867, 1751, 547, 4642, 287, 730, 65, 3728, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 45191, 33411, 366, 24280, 3128, 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, 1 ]
[ 4919, 867, 1751, 547, 4642, 287, 730, 65, 3728, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 45191, 33411, 366, 24280, 3128, 1, 796, 362 ]
How many rounds did Jo o Victor Horto achieved the fastest lap?
SELECT COUNT(round) FROM table_25459168_2 WHERE fastest_lap = "João Victor Horto"
[ 2437, 867, 9196, 750, 5302, 267, 12622, 31693, 78, 8793, 262, 14162, 14779, 30, 46506, 327, 28270, 7, 744, 8, 16034, 3084, 62, 1495, 33459, 14656, 62, 17, 33411, 14162, 62, 37796, 796, 366, 9908, 28749, 12622, 31693, 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 ]
[ 2437, 867, 9196, 750, 5302, 267, 12622, 31693, 78, 8793, 262, 14162, 14779, 30, 46506, 327, 28270, 7, 744, 8, 16034, 3084, 62, 1495, 33459, 14656, 62, 17, 33411, 14162, 62, 37796, 796, 366, 9908, 28749, 12622, 31693, 78, 1 ]
What's the Score listed that has a Result of 1-0?
SELECT score FROM table_name_70 WHERE result = "1-0"
[ 2061, 338, 262, 15178, 5610, 326, 468, 257, 25414, 286, 352, 12, 15, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 2154, 33411, 1255, 796, 366, 16, 12, 15, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 15178, 5610, 326, 468, 257, 25414, 286, 352, 12, 15, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 2154, 33411, 1255, 796, 366, 16, 12, 15, 1 ]
Where did Geelong play as the away team?
SELECT venue FROM table_name_75 WHERE away_team = "geelong"
[ 8496, 750, 2269, 21537, 711, 355, 262, 1497, 1074, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 2425, 33411, 1497, 62, 15097, 796, 366, 469, 21537, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8496, 750, 2269, 21537, 711, 355, 262, 1497, 1074, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 2425, 33411, 1497, 62, 15097, 796, 366, 469, 21537, 1 ]
What is the original air date for 'one rat, one ranger'?
SELECT "Original air date" FROM table_27835 WHERE "Title" = 'One Rat, One Ranger'
[ 2061, 318, 262, 2656, 1633, 3128, 329, 705, 505, 4227, 11, 530, 43570, 30960, 46506, 366, 20556, 1633, 3128, 1, 16034, 3084, 62, 25870, 2327, 33411, 366, 19160, 1, 796, 705, 3198, 11738, 11, 1881, 21888, 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, 318, 262, 2656, 1633, 3128, 329, 705, 505, 4227, 11, 530, 43570, 30960, 46506, 366, 20556, 1633, 3128, 1, 16034, 3084, 62, 25870, 2327, 33411, 366, 19160, 1, 796, 705, 3198, 11738, 11, 1881, 21888, 6 ]
During next semester , what classes will Dr. Jonathan Bulkley be teaching ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Jonathan Bulkley%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor....
[ 7191, 1306, 24878, 837, 644, 6097, 481, 1583, 13, 11232, 47900, 1636, 307, 7743, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 21187, 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...
[ 7191, 1306, 24878, 837, 644, 6097, 481, 1583, 13, 11232, 47900, 1636, 307, 7743, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 21187, 11,...
What is W/m , when (%) is greater than 16.5, and when Technology is MJ?
SELECT "W/m\u00b2" FROM table_45894 WHERE "\u03b7 (%)" > '16.5' AND "Technology" = 'mj'
[ 2061, 318, 370, 14, 76, 837, 618, 11509, 318, 3744, 621, 1467, 13, 20, 11, 290, 618, 8987, 318, 33974, 30, 46506, 366, 54, 14, 76, 59, 84, 405, 65, 17, 1, 16034, 3084, 62, 2231, 4531, 19, 33411, 37082, 84, 3070, 65, 22, 11509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 370, 14, 76, 837, 618, 11509, 318, 3744, 621, 1467, 13, 20, 11, 290, 618, 8987, 318, 33974, 30, 46506, 366, 54, 14, 76, 59, 84, 405, 65, 17, 1, 16034, 3084, 62, 2231, 4531, 19, 33411, 37082, 84, 3070, 65, 22, 11509, ...
are the heart rate of patient 4495 last measured on the first icu visit less than second to last measured on the first icu visit?
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4495) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemi...
[ 533, 262, 2612, 2494, 286, 5827, 604, 33781, 938, 8630, 319, 262, 717, 14158, 84, 3187, 1342, 621, 1218, 284, 938, 8630, 319, 262, 717, 14158, 84, 3187, 30, 46506, 357, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 3341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 533, 262, 2612, 2494, 286, 5827, 604, 33781, 938, 8630, 319, 262, 717, 14158, 84, 3187, 1342, 621, 1218, 284, 938, 8630, 319, 262, 717, 14158, 84, 3187, 30, 46506, 357, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 3341...
Name the total number of frequency Mhz for when it has ERP W of 1 and call sign of w215bj
SELECT COUNT("Frequency MHz") FROM table_66822 WHERE "ERP W" = '1' AND "Call sign" = 'w215bj'
[ 5376, 262, 2472, 1271, 286, 8373, 337, 32179, 329, 618, 340, 468, 13793, 47, 370, 286, 352, 290, 869, 1051, 286, 266, 23349, 50007, 46506, 327, 28270, 7203, 37, 28707, 19805, 4943, 16034, 3084, 62, 35809, 1828, 33411, 366, 1137, 47, 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 ]
[ 5376, 262, 2472, 1271, 286, 8373, 337, 32179, 329, 618, 340, 468, 13793, 47, 370, 286, 352, 290, 869, 1051, 286, 266, 23349, 50007, 46506, 327, 28270, 7203, 37, 28707, 19805, 4943, 16034, 3084, 62, 35809, 1828, 33411, 366, 1137, 47, 3...
How big was the crowd when collingwood visited?
SELECT COUNT(crowd) FROM table_name_46 WHERE away_team = "collingwood"
[ 2437, 1263, 373, 262, 4315, 618, 2927, 278, 3822, 8672, 30, 46506, 327, 28270, 7, 66, 3986, 8, 16034, 3084, 62, 3672, 62, 3510, 33411, 1497, 62, 15097, 796, 366, 26000, 278, 3822, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1263, 373, 262, 4315, 618, 2927, 278, 3822, 8672, 30, 46506, 327, 28270, 7, 66, 3986, 8, 16034, 3084, 62, 3672, 62, 3510, 33411, 1497, 62, 15097, 796, 366, 26000, 278, 3822, 1 ]
I want the sum of stories for guadalajara done after 2007
SELECT SUM("Stories") FROM table_11186 WHERE "City" = 'guadalajara' AND "Completed" > '2007'
[ 40, 765, 262, 2160, 286, 3923, 329, 915, 31682, 1228, 3301, 1760, 706, 4343, 46506, 35683, 7203, 1273, 1749, 4943, 16034, 3084, 62, 1157, 25096, 33411, 366, 14941, 1, 796, 705, 5162, 31682, 1228, 3301, 6, 5357, 366, 43768, 1, 1875, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 40, 765, 262, 2160, 286, 3923, 329, 915, 31682, 1228, 3301, 1760, 706, 4343, 46506, 35683, 7203, 1273, 1749, 4943, 16034, 3084, 62, 1157, 25096, 33411, 366, 14941, 1, 796, 705, 5162, 31682, 1228, 3301, 6, 5357, 366, 43768, 1, 1875, 70...
What is DMK's total number of votes?
SELECT "Total Votes" FROM table_26524 WHERE "Party Name" = 'DMK'
[ 2061, 318, 14848, 42, 338, 2472, 1271, 286, 5690, 30, 46506, 366, 14957, 39584, 1, 16034, 3084, 62, 22980, 1731, 33411, 366, 33553, 6530, 1, 796, 705, 23127, 42, 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, 14848, 42, 338, 2472, 1271, 286, 5690, 30, 46506, 366, 14957, 39584, 1, 16034, 3084, 62, 22980, 1731, 33411, 366, 33553, 6530, 1, 796, 705, 23127, 42, 6 ]
Average number of answers for questions.
SELECT AVG(1.0 * AnswerCount) FROM Posts WHERE PostTypeId = 1 AND Score > 0
[ 26287, 1271, 286, 7429, 329, 2683, 13, 46506, 35224, 7, 16, 13, 15, 1635, 23998, 12332, 8, 16034, 12043, 33411, 2947, 6030, 7390, 796, 352, 5357, 15178, 1875, 657 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 26287, 1271, 286, 7429, 329, 2683, 13, 46506, 35224, 7, 16, 13, 15, 1635, 23998, 12332, 8, 16034, 12043, 33411, 2947, 6030, 7390, 796, 352, 5357, 15178, 1875, 657 ]
What was the average round score of the player who won in 1978?
SELECT AVG("Total") FROM table_79153 WHERE "Year(s) won" = '1978'
[ 2061, 373, 262, 2811, 2835, 4776, 286, 262, 2137, 508, 1839, 287, 15524, 30, 46506, 35224, 7203, 14957, 4943, 16034, 3084, 62, 3720, 21395, 33411, 366, 17688, 7, 82, 8, 1839, 1, 796, 705, 37950, 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 ]
[ 2061, 373, 262, 2811, 2835, 4776, 286, 262, 2137, 508, 1839, 287, 15524, 30, 46506, 35224, 7203, 14957, 4943, 16034, 3084, 62, 3720, 21395, 33411, 366, 17688, 7, 82, 8, 1839, 1, 796, 705, 37950, 6 ]
how many white-russian patients were born before the year 2073?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.dob_year < "2073"
[ 4919, 867, 2330, 12, 81, 31562, 3871, 547, 4642, 878, 262, 614, 1160, 4790, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 38546, 414, 796, 366, 12418, 12709, 532, 371, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2330, 12, 81, 31562, 3871, 547, 4642, 878, 262, 614, 1160, 4790, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 38546, 414, 796, 366, 12418, 12709, 532, 371, ...
what is the top three most frequently prescribed drugs that patients were prescribed in the same hospital encounter after being diagnosed with anuria since 2105?
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'anuria' AND STR...
[ 10919, 318, 262, 1353, 1115, 749, 6777, 14798, 5010, 326, 3871, 547, 14798, 287, 262, 976, 4436, 8791, 706, 852, 14641, 351, 281, 34484, 1201, 362, 13348, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 357, 46506, 256, 17, 13, 30349, 367...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1353, 1115, 749, 6777, 14798, 5010, 326, 3871, 547, 14798, 287, 262, 976, 4436, 8791, 706, 852, 14641, 351, 281, 34484, 1201, 362, 13348, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 357, 46506, 256, 17, 13, 30349, 367...
What was the transfer fee when winter was the transfer window?
SELECT "Transfer fee" FROM table_44674 WHERE "Transfer window" = 'winter'
[ 2061, 373, 262, 4351, 6838, 618, 7374, 373, 262, 4351, 4324, 30, 46506, 366, 43260, 6838, 1, 16034, 3084, 62, 2598, 45385, 33411, 366, 43260, 4324, 1, 796, 705, 40078, 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, 373, 262, 4351, 6838, 618, 7374, 373, 262, 4351, 4324, 30, 46506, 366, 43260, 6838, 1, 16034, 3084, 62, 2598, 45385, 33411, 366, 43260, 4324, 1, 796, 705, 40078, 6 ]
how many patients whose primary disease is syncope;telemetry and year of death is less than or equal to 2158?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "SYNCOPE;TELEMETRY" AND demographic.dod_year <= "2158.0"
[ 4919, 867, 3871, 3025, 4165, 4369, 318, 17510, 3008, 26, 46813, 41935, 290, 614, 286, 1918, 318, 1342, 621, 393, 4961, 284, 362, 21273, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 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...
[ 4919, 867, 3871, 3025, 4165, 4369, 318, 17510, 3008, 26, 46813, 41935, 290, 614, 286, 1918, 318, 1342, 621, 393, 4961, 284, 362, 21273, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411,...
What is the lowest Share, when Rating is greater than 1.3, and when Air Date is May 28, 2008?
SELECT MIN(share) FROM table_name_63 WHERE rating > 1.3 AND air_date = "may 28, 2008"
[ 2061, 318, 262, 9016, 8734, 11, 618, 12028, 318, 3744, 621, 352, 13, 18, 11, 290, 618, 3701, 7536, 318, 1737, 2579, 11, 3648, 30, 46506, 20625, 7, 20077, 8, 16034, 3084, 62, 3672, 62, 5066, 33411, 7955, 1875, 352, 13, 18, 5357, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 8734, 11, 618, 12028, 318, 3744, 621, 352, 13, 18, 11, 290, 618, 3701, 7536, 318, 1737, 2579, 11, 3648, 30, 46506, 20625, 7, 20077, 8, 16034, 3084, 62, 3672, 62, 5066, 33411, 7955, 1875, 352, 13, 18, 5357, 16...
What time has a Set 1 of 18 25?
SELECT time FROM table_name_30 WHERE set_1 = "18–25"
[ 2061, 640, 468, 257, 5345, 352, 286, 1248, 1679, 30, 46506, 640, 16034, 3084, 62, 3672, 62, 1270, 33411, 900, 62, 16, 796, 366, 1507, 1906, 1495, 1 ]
[ 1, 1, 1, 1, 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, 640, 468, 257, 5345, 352, 286, 1248, 1679, 30, 46506, 640, 16034, 3084, 62, 3672, 62, 1270, 33411, 900, 62, 16, 796, 366, 1507, 1906, 1495, 1 ]
in how many titles on this list did he not play the role of phineas bogg ?
SELECT COUNT("title") FROM table_202_205 WHERE "role" <> 'phineas bogg'
[ 259, 703, 867, 8714, 319, 428, 1351, 750, 339, 407, 711, 262, 2597, 286, 872, 500, 292, 275, 10332, 5633, 46506, 327, 28270, 7203, 7839, 4943, 16034, 3084, 62, 19004, 62, 21261, 33411, 366, 18090, 1, 1279, 29, 705, 746, 500, 292, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 259, 703, 867, 8714, 319, 428, 1351, 750, 339, 407, 711, 262, 2597, 286, 872, 500, 292, 275, 10332, 5633, 46506, 327, 28270, 7203, 7839, 4943, 16034, 3084, 62, 19004, 62, 21261, 33411, 366, 18090, 1, 1279, 29, 705, 746, 500, 292, 27...
which year 's were the most japanese titles produced ?
SELECT "year" FROM table_203_133 GROUP BY "year" HAVING COUNT("japanese title") = (SELECT COUNT("japanese title") FROM table_203_133 GROUP BY "year" ORDER BY COUNT("japanese title") DESC LIMIT 1)
[ 4758, 614, 705, 82, 547, 262, 749, 474, 2674, 2771, 8714, 4635, 5633, 46506, 366, 1941, 1, 16034, 3084, 62, 22416, 62, 16945, 44441, 11050, 366, 1941, 1, 367, 10116, 2751, 327, 28270, 7203, 73, 2674, 2771, 3670, 4943, 796, 357, 46506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 614, 705, 82, 547, 262, 749, 474, 2674, 2771, 8714, 4635, 5633, 46506, 366, 1941, 1, 16034, 3084, 62, 22416, 62, 16945, 44441, 11050, 366, 1941, 1, 367, 10116, 2751, 327, 28270, 7203, 73, 2674, 2771, 3670, 4943, 796, 357, 46506,...
What's the shank type of the buttonholer with red plastic box as storage case?
SELECT "For shank type" FROM table_74304 WHERE "Storage case" = 'red plastic box'
[ 2061, 338, 262, 427, 962, 2099, 286, 262, 4936, 3937, 263, 351, 2266, 7309, 3091, 355, 6143, 1339, 30, 46506, 366, 1890, 427, 962, 2099, 1, 16034, 3084, 62, 4524, 21288, 33411, 366, 31425, 1339, 1, 796, 705, 445, 7309, 3091, 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 ]
[ 2061, 338, 262, 427, 962, 2099, 286, 262, 4936, 3937, 263, 351, 2266, 7309, 3091, 355, 6143, 1339, 30, 46506, 366, 1890, 427, 962, 2099, 1, 16034, 3084, 62, 4524, 21288, 33411, 366, 31425, 1339, 1, 796, 705, 445, 7309, 3091, 6 ]
Which player plays forward and is from Kentucky?
SELECT "Player" FROM table_4721 WHERE "Position" = 'forward' AND "School/Country" = 'kentucky'
[ 13828, 2137, 5341, 2651, 290, 318, 422, 11867, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 2857, 2481, 33411, 366, 26545, 1, 796, 705, 11813, 6, 5357, 366, 26130, 14, 33921, 1, 796, 705, 74, 298, 5309, 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 ]
[ 13828, 2137, 5341, 2651, 290, 318, 422, 11867, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 2857, 2481, 33411, 366, 26545, 1, 796, 705, 11813, 6, 5357, 366, 26130, 14, 33921, 1, 796, 705, 74, 298, 5309, 6 ]
how many patients during the last year received bronchoscopy thru stoma within 2 months after they were diagnosed with mitral valve disorder?
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'mitral valve disor...
[ 4919, 867, 3871, 1141, 262, 938, 614, 2722, 18443, 354, 17500, 11081, 33834, 336, 6086, 1626, 362, 1933, 706, 484, 547, 14641, 351, 10255, 1373, 22580, 8967, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 32796, 62, 312,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1141, 262, 938, 614, 2722, 18443, 354, 17500, 11081, 33834, 336, 6086, 1626, 362, 1933, 706, 484, 547, 14641, 351, 10255, 1373, 22580, 8967, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 32796, 62, 312,...
What name has the role of midfielder for 1999-2003?
SELECT name FROM table_name_76 WHERE role = "midfielder" AND period = "1999-2003"
[ 2061, 1438, 468, 262, 2597, 286, 18707, 329, 7358, 12, 16088, 30, 46506, 1438, 16034, 3084, 62, 3672, 62, 4304, 33411, 2597, 796, 366, 13602, 3245, 263, 1, 5357, 2278, 796, 366, 18946, 12, 16088, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 468, 262, 2597, 286, 18707, 329, 7358, 12, 16088, 30, 46506, 1438, 16034, 3084, 62, 3672, 62, 4304, 33411, 2597, 796, 366, 13602, 3245, 263, 1, 5357, 2278, 796, 366, 18946, 12, 16088, 1 ]
When were the Brewers 27-31?
SELECT date FROM table_name_43 WHERE record = "27-31"
[ 2215, 547, 262, 35295, 2681, 12, 3132, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 3559, 33411, 1700, 796, 366, 1983, 12, 3132, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 547, 262, 35295, 2681, 12, 3132, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 3559, 33411, 1700, 796, 366, 1983, 12, 3132, 1 ]
What is the lowest Lost, when Goals For is greater than 52, when Points 1 is '44', and when Drawn is less than 8?
SELECT MIN("Lost") FROM table_60509 WHERE "Goals For" > '52' AND "Points 1" = '44' AND "Drawn" < '8'
[ 2061, 318, 262, 9016, 9164, 11, 618, 28510, 1114, 318, 3744, 621, 6740, 11, 618, 11045, 352, 318, 705, 2598, 3256, 290, 618, 50061, 318, 1342, 621, 807, 30, 46506, 20625, 7203, 31042, 4943, 16034, 3084, 62, 1899, 29022, 33411, 366, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9164, 11, 618, 28510, 1114, 318, 3744, 621, 6740, 11, 618, 11045, 352, 318, 705, 2598, 3256, 290, 618, 50061, 318, 1342, 621, 807, 30, 46506, 20625, 7203, 31042, 4943, 16034, 3084, 62, 1899, 29022, 33411, 366, 52...
How many series numbers are there when there were 15.8 u.s. viewers (millions)?
SELECT COUNT(series__number) FROM table_27833469_1 WHERE us_viewers__millions_ = "15.8"
[ 2437, 867, 2168, 3146, 389, 612, 618, 612, 547, 1315, 13, 23, 334, 13, 82, 13, 10209, 357, 17805, 507, 19427, 46506, 327, 28270, 7, 25076, 834, 17618, 8, 16034, 3084, 62, 25870, 31380, 3388, 62, 16, 33411, 514, 62, 1177, 364, 834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2168, 3146, 389, 612, 618, 612, 547, 1315, 13, 23, 334, 13, 82, 13, 10209, 357, 17805, 507, 19427, 46506, 327, 28270, 7, 25076, 834, 17618, 8, 16034, 3084, 62, 25870, 31380, 3388, 62, 16, 33411, 514, 62, 1177, 364, 834, ...
How many courses for each course description? Show me a bar chart, and rank by the y axis in asc.
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 JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY CRS_DESCRIPTION ORDER BY COUNT(CRS_DESCRIPTION)
[ 2437, 867, 10902, 329, 1123, 1781, 6764, 30, 5438, 502, 257, 2318, 8262, 11, 290, 4279, 416, 262, 331, 16488, 287, 10570, 13, 46506, 327, 6998, 62, 30910, 40165, 11, 327, 28270, 7, 34, 6998, 62, 30910, 40165, 8, 16034, 42715, 7054, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2318, 8262, 11, 290, 4279, 416, 262, 331, 16488, 287, 10570, 13, 46506, 327, 6998, 62, 30910, 40165, 11, 327, 28270, 7, 34, 6998, 62, 30910, 40165, 8, 16034, 42715, 7054, ...
Before noon , what all upper level electives are being offered ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.end_time <= '12:00:00' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semest...
[ 8421, 19613, 837, 644, 477, 6727, 1241, 1742, 1083, 389, 852, 4438, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 1430, 62, 17319, 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...
[ 8421, 19613, 837, 644, 477, 6727, 1241, 1742, 1083, 389, 852, 4438, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 1430, 62, 17319, 11, ...
Date of first question with Bounty.
SELECT PostId, MIN(CreationDate) AS DaDate FROM (SELECT PostId, CreationDate FROM Votes WHERE NOT BountyAmount IS NULL AND VoteTypeId = 8) AS B GROUP BY PostId ORDER BY DaDate LIMIT 10
[ 10430, 286, 717, 1808, 351, 38166, 13, 46506, 2947, 7390, 11, 20625, 7, 12443, 341, 10430, 8, 7054, 9637, 10430, 16034, 357, 46506, 2947, 7390, 11, 21582, 10430, 16034, 39584, 33411, 5626, 38166, 31264, 3180, 15697, 5357, 19175, 6030, 739...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10430, 286, 717, 1808, 351, 38166, 13, 46506, 2947, 7390, 11, 20625, 7, 12443, 341, 10430, 8, 7054, 9637, 10430, 16034, 357, 46506, 2947, 7390, 11, 21582, 10430, 16034, 39584, 33411, 5626, 38166, 31264, 3180, 15697, 5357, 19175, 6030, 739...
what are the four most commonly given procedures for patients who have an age 30s?
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age B...
[ 10919, 389, 262, 1440, 749, 8811, 1813, 9021, 329, 3871, 508, 423, 281, 2479, 1542, 82, 30, 46506, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 1676, 771, 942, 33411, 288, 62, 291, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 262, 1440, 749, 8811, 1813, 9021, 329, 3871, 508, 423, 281, 2479, 1542, 82, 30, 46506, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 1676, 771, 942, 33411, 288, 62, 291, 67, ...
What is the Set 1 with a Set 2 that is 25-19?
SELECT "Set 1" FROM table_42318 WHERE "Set 2" = '25-19'
[ 2061, 318, 262, 5345, 352, 351, 257, 5345, 362, 326, 318, 1679, 12, 1129, 30, 46506, 366, 7248, 352, 1, 16034, 3084, 62, 43356, 1507, 33411, 366, 7248, 362, 1, 796, 705, 1495, 12, 1129, 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 ]
[ 2061, 318, 262, 5345, 352, 351, 257, 5345, 362, 326, 318, 1679, 12, 1129, 30, 46506, 366, 7248, 352, 1, 16034, 3084, 62, 43356, 1507, 33411, 366, 7248, 362, 1, 796, 705, 1495, 12, 1129, 6 ]
Which Leading Scorer has a Record of 3-3?
SELECT Leading AS scorer FROM table_name_70 WHERE record = "3-3"
[ 13828, 43225, 1446, 11934, 468, 257, 13266, 286, 513, 12, 18, 30, 46506, 43225, 7054, 30664, 16034, 3084, 62, 3672, 62, 2154, 33411, 1700, 796, 366, 18, 12, 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 ]
[ 13828, 43225, 1446, 11934, 468, 257, 13266, 286, 513, 12, 18, 30, 46506, 43225, 7054, 30664, 16034, 3084, 62, 3672, 62, 2154, 33411, 1700, 796, 366, 18, 12, 18, 1 ]
What is the most elevated TF1 # that has an Official # larger than 47, and an Air date (France) of 13 july 2010?
SELECT MAX(tf1__number) FROM table_name_95 WHERE official__number > 47 AND air_date__france_ = "13 july 2010"
[ 2061, 318, 262, 749, 15321, 24958, 16, 1303, 326, 468, 281, 15934, 1303, 4025, 621, 6298, 11, 290, 281, 3701, 3128, 357, 28572, 8, 286, 1511, 474, 2062, 3050, 30, 46506, 25882, 7, 27110, 16, 834, 17618, 8, 16034, 3084, 62, 3672, 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, 318, 262, 749, 15321, 24958, 16, 1303, 326, 468, 281, 15934, 1303, 4025, 621, 6298, 11, 290, 281, 3701, 3128, 357, 28572, 8, 286, 1511, 474, 2062, 3050, 30, 46506, 25882, 7, 27110, 16, 834, 17618, 8, 16034, 3084, 62, 3672, 62,...
What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4?
SELECT MIN("Bronze") FROM table_69602 WHERE "Ranking" = '22nd of 32' AND "Gold" > '4'
[ 2061, 318, 262, 9016, 19461, 351, 257, 45407, 286, 2534, 358, 286, 3933, 290, 3561, 4025, 621, 604, 30, 46506, 20625, 7203, 18760, 2736, 4943, 16034, 3084, 62, 3388, 31418, 33411, 366, 49, 15230, 1, 796, 705, 1828, 358, 286, 3933, 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 ]
[ 2061, 318, 262, 9016, 19461, 351, 257, 45407, 286, 2534, 358, 286, 3933, 290, 3561, 4025, 621, 604, 30, 46506, 20625, 7203, 18760, 2736, 4943, 16034, 3084, 62, 3388, 31418, 33411, 366, 49, 15230, 1, 796, 705, 1828, 358, 286, 3933, 6, ...
What is the lowest population in 2011 for the settlement of ortanovci?
SELECT MIN("Population (2011)") FROM table_27909 WHERE "Settlement" = 'Čortanovci'
[ 2061, 318, 262, 9016, 3265, 287, 2813, 329, 262, 9443, 286, 393, 38006, 709, 979, 30, 46506, 20625, 7203, 45251, 357, 9804, 8, 4943, 16034, 3084, 62, 26050, 2931, 33411, 366, 50, 27331, 1, 796, 705, 128, 234, 419, 272, 709, 979, 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 ]
[ 2061, 318, 262, 9016, 3265, 287, 2813, 329, 262, 9443, 286, 393, 38006, 709, 979, 30, 46506, 20625, 7203, 45251, 357, 9804, 8, 4943, 16034, 3084, 62, 26050, 2931, 33411, 366, 50, 27331, 1, 796, 705, 128, 234, 419, 272, 709, 979, 6 ]
For those records from the products and each product's manufacturer, a bar chart shows the distribution of headquarter and the average of code , and group by attribute headquarter, and I want to rank from high to low by the Headquarter.
SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T2.Headquarter DESC
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1182, 24385, 290, 262, 2811, 286, 2438, 837, 290, 1448, 416, 11688, 1182, 24385, 11, 290, 314, 765, 284, 4279, 422, 1029, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 257, 2318, 8262, 2523, 262, 6082, 286, 1182, 24385, 290, 262, 2811, 286, 2438, 837, 290, 1448, 416, 11688, 1182, 24385, 11, 290, 314, 765, 284, 4279, 422, 1029, 284, ...
When steve mcclaren is the replacer what is the manner of departure?
SELECT manner_of_departure FROM table_24162080_3 WHERE replaced_by = "Steve McClaren"
[ 2215, 2876, 303, 285, 535, 75, 5757, 318, 262, 2186, 11736, 644, 318, 262, 5642, 286, 12928, 30, 46506, 5642, 62, 1659, 62, 10378, 433, 495, 16034, 3084, 62, 1731, 1433, 1238, 1795, 62, 18, 33411, 6928, 62, 1525, 796, 366, 19206, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 2876, 303, 285, 535, 75, 5757, 318, 262, 2186, 11736, 644, 318, 262, 5642, 286, 12928, 30, 46506, 5642, 62, 1659, 62, 10378, 433, 495, 16034, 3084, 62, 1731, 1433, 1238, 1795, 62, 18, 33411, 6928, 62, 1525, 796, 366, 19206, 23...
Who won Silver in 2000?
SELECT "Silver" FROM table_59409 WHERE "Year" = '2000'
[ 8241, 1839, 7698, 287, 4751, 30, 46506, 366, 26766, 1, 16034, 3084, 62, 3270, 29416, 33411, 366, 17688, 1, 796, 705, 11024, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 1839, 7698, 287, 4751, 30, 46506, 366, 26766, 1, 16034, 3084, 62, 3270, 29416, 33411, 366, 17688, 1, 796, 705, 11024, 6 ]
jane anderson , martha coolidge , and anne heche all directed which film this years ?
SELECT "title" FROM table_204_652 WHERE "director" = 'jane anderson'
[ 73, 1531, 290, 882, 837, 1667, 12898, 3608, 3130, 837, 290, 281, 710, 339, 2395, 477, 7924, 543, 2646, 428, 812, 5633, 46506, 366, 7839, 1, 16034, 3084, 62, 18638, 62, 43193, 33411, 366, 35248, 1, 796, 705, 73, 1531, 290, 882, 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 ]
[ 73, 1531, 290, 882, 837, 1667, 12898, 3608, 3130, 837, 290, 281, 710, 339, 2395, 477, 7924, 543, 2646, 428, 812, 5633, 46506, 366, 7839, 1, 16034, 3084, 62, 18638, 62, 43193, 33411, 366, 35248, 1, 796, 705, 73, 1531, 290, 882, 6 ]
When the clippers are the team how many games are there?
SELECT COUNT("Game") FROM table_25870 WHERE "Team" = 'Clippers'
[ 2215, 262, 537, 16415, 389, 262, 1074, 703, 867, 1830, 389, 612, 30, 46506, 327, 28270, 7203, 8777, 4943, 16034, 3084, 62, 25600, 2154, 33411, 366, 15592, 1, 796, 705, 2601, 16415, 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 ]
[ 2215, 262, 537, 16415, 389, 262, 1074, 703, 867, 1830, 389, 612, 30, 46506, 327, 28270, 7203, 8777, 4943, 16034, 3084, 62, 25600, 2154, 33411, 366, 15592, 1, 796, 705, 2601, 16415, 6 ]
What is the Label of the release in CD Maxi Format?
SELECT "Label" FROM table_38897 WHERE "Format" = 'cd maxi'
[ 2061, 318, 262, 36052, 286, 262, 2650, 287, 6458, 5436, 72, 18980, 30, 46506, 366, 33986, 1, 16034, 3084, 62, 2548, 4531, 22, 33411, 366, 26227, 1, 796, 705, 10210, 3509, 72, 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 ]
[ 2061, 318, 262, 36052, 286, 262, 2650, 287, 6458, 5436, 72, 18980, 30, 46506, 366, 33986, 1, 16034, 3084, 62, 2548, 4531, 22, 33411, 366, 26227, 1, 796, 705, 10210, 3509, 72, 6 ]
What 2nd leg has pelister as team 1?
SELECT "2nd leg" FROM table_13051 WHERE "Team 1" = 'pelister'
[ 2061, 362, 358, 1232, 468, 16176, 1694, 355, 1074, 352, 30, 46506, 366, 17, 358, 1232, 1, 16034, 3084, 62, 12952, 4349, 33411, 366, 15592, 352, 1, 796, 705, 30242, 1694, 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 ]
[ 2061, 362, 358, 1232, 468, 16176, 1694, 355, 1074, 352, 30, 46506, 366, 17, 358, 1232, 1, 16034, 3084, 62, 12952, 4349, 33411, 366, 15592, 352, 1, 796, 705, 30242, 1694, 6 ]
Which Score has a Opponent of Boston red sox and a Save of sager?
SELECT score FROM table_name_8 WHERE opponent = "boston red sox" AND save = "sager"
[ 13828, 15178, 468, 257, 9385, 3471, 286, 6182, 2266, 523, 87, 290, 257, 12793, 286, 264, 3536, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 23, 33411, 6125, 796, 366, 65, 5744, 2266, 523, 87, 1, 5357, 3613, 796, 366, 82, 3536, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15178, 468, 257, 9385, 3471, 286, 6182, 2266, 523, 87, 290, 257, 12793, 286, 264, 3536, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 23, 33411, 6125, 796, 366, 65, 5744, 2266, 523, 87, 1, 5357, 3613, 796, 366, 82, 3536, 1 ]
What are the different names, locations, and products of the enzymes that are capable inhibitor interactions?
SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'
[ 2061, 389, 262, 1180, 3891, 11, 7064, 11, 290, 3186, 286, 262, 29120, 326, 389, 6007, 41704, 12213, 30, 46506, 360, 8808, 1268, 4177, 309, 16, 13, 3672, 11, 309, 16, 13, 24886, 11, 309, 16, 13, 11167, 16034, 27679, 7054, 309, 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, 1, 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, 1180, 3891, 11, 7064, 11, 290, 3186, 286, 262, 29120, 326, 389, 6007, 41704, 12213, 30, 46506, 360, 8808, 1268, 4177, 309, 16, 13, 3672, 11, 309, 16, 13, 24886, 11, 309, 16, 13, 11167, 16034, 27679, 7054, 309, 16, ...
How many scientists are there?
SELECT COUNT(*) FROM scientists
[ 2437, 867, 5519, 389, 612, 30, 46506, 327, 28270, 7, 28104, 16034, 5519 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 5519, 389, 612, 30, 46506, 327, 28270, 7, 28104, 16034, 5519 ]
what is the least expensive BUSINESS class flight between BOSTON and SAN FRANCISCO
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare AS FARE_0, fare AS FARE_1, fare_basis, flight, flight_fare AS FLIGHT_FARE_0, flight_fare AS FLIGHT_FARE_1 WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY...
[ 10919, 318, 262, 1551, 5789, 43949, 44180, 1398, 5474, 1022, 347, 10892, 1340, 290, 37376, 8782, 20940, 37719, 14058, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 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...
[ 10919, 318, 262, 1551, 5789, 43949, 44180, 1398, 5474, 1022, 347, 10892, 1340, 290, 37376, 8782, 20940, 37719, 14058, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62...
What is all the information of all the products that have a price between 60 and 120?
SELECT * FROM products WHERE price BETWEEN 60 AND 120
[ 2061, 318, 477, 262, 1321, 286, 477, 262, 3186, 326, 423, 257, 2756, 1022, 3126, 290, 7982, 30, 46506, 1635, 16034, 3186, 33411, 2756, 38651, 8845, 1677, 3126, 5357, 7982 ]
[ 1, 1, 1, 1, 1, 1, 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, 477, 262, 1321, 286, 477, 262, 3186, 326, 423, 257, 2756, 1022, 3126, 290, 7982, 30, 46506, 1635, 16034, 3186, 33411, 2756, 38651, 8845, 1677, 3126, 5357, 7982 ]
Give me the comparison about the average of School_ID over the ACC_Road , and group by attribute ACC_Road by a bar chart.
SELECT ACC_Road, AVG(School_ID) FROM basketball_match GROUP BY ACC_Road
[ 23318, 502, 262, 7208, 546, 262, 2811, 286, 3961, 62, 2389, 625, 262, 15859, 62, 29197, 837, 290, 1448, 416, 11688, 15859, 62, 29197, 416, 257, 2318, 8262, 13, 46506, 15859, 62, 29197, 11, 35224, 7, 26130, 62, 2389, 8, 16034, 9669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 502, 262, 7208, 546, 262, 2811, 286, 3961, 62, 2389, 625, 262, 15859, 62, 29197, 837, 290, 1448, 416, 11688, 15859, 62, 29197, 416, 257, 2318, 8262, 13, 46506, 15859, 62, 29197, 11, 35224, 7, 26130, 62, 2389, 8, 16034, 9669, ...
Name the district for others being 18.3
SELECT "District" FROM table_25730 WHERE "Others" = '18.3'
[ 5376, 262, 4783, 329, 1854, 852, 1248, 13, 18, 46506, 366, 44857, 1, 16034, 3084, 62, 28676, 1270, 33411, 366, 25599, 1, 796, 705, 1507, 13, 18, 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 ]
[ 5376, 262, 4783, 329, 1854, 852, 1248, 13, 18, 46506, 366, 44857, 1, 16034, 3084, 62, 28676, 1270, 33411, 366, 25599, 1, 796, 705, 1507, 13, 18, 6 ]
when is the last time that patient 006-113829 has been prescribed calcium carbonate antacid 500 mg po chew and potassium chloride er at the same time in 06/2103?
SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'calcium carbonate antacid 500 mg po chew' AND patient.uniquepid = '006-113829' AND STRFTIME('%y-%m', medication.drugstart...
[ 12518, 318, 262, 938, 640, 326, 5827, 3571, 21, 12, 1157, 2548, 1959, 468, 587, 14798, 19700, 6588, 378, 1885, 46309, 5323, 10527, 745, 34722, 290, 33156, 44921, 1931, 379, 262, 976, 640, 287, 9130, 14, 17, 15197, 30, 46506, 256, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 318, 262, 938, 640, 326, 5827, 3571, 21, 12, 1157, 2548, 1959, 468, 587, 14798, 19700, 6588, 378, 1885, 46309, 5323, 10527, 745, 34722, 290, 33156, 44921, 1931, 379, 262, 976, 640, 287, 9130, 14, 17, 15197, 30, 46506, 256, 16, ...
what were the five most frequently prescribed medications for patients who have previously been diagnosed with sepsis - severe within 2 months since 1 year ago?
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sepsis - severe' AND DATETIME(diagnosis.diagnosist...
[ 10919, 547, 262, 1936, 749, 6777, 14798, 17638, 329, 3871, 508, 423, 4271, 587, 14641, 351, 384, 862, 271, 532, 6049, 1626, 362, 1933, 1201, 352, 614, 2084, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 357, 46506, 256, 17, 13, 30349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 547, 262, 1936, 749, 6777, 14798, 17638, 329, 3871, 508, 423, 4271, 587, 14641, 351, 384, 862, 271, 532, 6049, 1626, 362, 1933, 1201, 352, 614, 2084, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 357, 46506, 256, 17, 13, 30349, ...
what is the yearly minimum amount of gastric gastric tube that patient 62977 had until 34 months ago?
SELECT MIN(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 62977)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'gas...
[ 10919, 318, 262, 24169, 5288, 2033, 286, 21956, 1173, 21956, 1173, 12403, 326, 5827, 718, 1959, 3324, 550, 1566, 4974, 1933, 2084, 30, 46506, 20625, 7, 448, 79, 1133, 85, 658, 13, 8367, 8, 16034, 38701, 1133, 85, 658, 33411, 38701, 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...
[ 10919, 318, 262, 24169, 5288, 2033, 286, 21956, 1173, 21956, 1173, 12403, 326, 5827, 718, 1959, 3324, 550, 1566, 4974, 1933, 2084, 30, 46506, 20625, 7, 448, 79, 1133, 85, 658, 13, 8367, 8, 16034, 38701, 1133, 85, 658, 33411, 38701, 11...