instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
How many railways are there?
SELECT COUNT(*) FROM railway
[ 2437, 867, 45247, 389, 612, 30, 46506, 327, 28270, 7, 28104, 16034, 20515 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 45247, 389, 612, 30, 46506, 327, 28270, 7, 28104, 16034, 20515 ]
what was the maximum yearly number of patients diagnosed with part epil w/o intr epil until 1 year ago?
SELECT MAX(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'part epil w/o intr epil') AND DATETIME(diagnoses_icd.charttime) <= DATETIME(CURRENT_TIME(), '-1 year')...
[ 10919, 373, 262, 5415, 24169, 1271, 286, 3871, 14641, 351, 636, 2462, 346, 266, 14, 78, 9913, 2462, 346, 1566, 352, 614, 2084, 30, 46506, 25882, 7, 83, 16, 13, 66, 16, 8, 16034, 357, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 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...
[ 10919, 373, 262, 5415, 24169, 1271, 286, 3871, 14641, 351, 636, 2462, 346, 266, 14, 78, 9913, 2462, 346, 1566, 352, 614, 2084, 30, 46506, 25882, 7, 83, 16, 13, 66, 16, 8, 16034, 357, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 405...
What is the weapon for the mecha of motorcycle?
SELECT "Weapon" FROM table_48540 WHERE "Mecha" = 'motorcycle'
[ 2061, 318, 262, 4282, 329, 262, 502, 11693, 286, 18757, 30, 46506, 366, 27632, 1, 16034, 3084, 62, 32642, 1821, 33411, 366, 28452, 64, 1, 796, 705, 76, 20965, 13696, 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, 318, 262, 4282, 329, 262, 502, 11693, 286, 18757, 30, 46506, 366, 27632, 1, 16034, 3084, 62, 32642, 1821, 33411, 366, 28452, 64, 1, 796, 705, 76, 20965, 13696, 6 ]
Show the dates of performances with attending members whose roles are 'Violin', and count them by a bar chart
SELECT Date, COUNT(Date) FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = "Violin" GROUP BY Date
[ 15307, 262, 9667, 286, 13289, 351, 11969, 1866, 3025, 9176, 389, 705, 33894, 259, 3256, 290, 954, 606, 416, 257, 2318, 8262, 46506, 7536, 11, 327, 28270, 7, 10430, 8, 16034, 2888, 62, 1078, 437, 590, 7054, 309, 16, 32357, 1268, 2888, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9667, 286, 13289, 351, 11969, 1866, 3025, 9176, 389, 705, 33894, 259, 3256, 290, 954, 606, 416, 257, 2318, 8262, 46506, 7536, 11, 327, 28270, 7, 10430, 8, 16034, 2888, 62, 1078, 437, 590, 7054, 309, 16, 32357, 1268, 2888, ...
Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els?
SELECT country FROM table_name_95 WHERE place = "t9" AND score = 71 - 71 - 72 = 214 AND player = "ernie els"
[ 13828, 12946, 468, 257, 8474, 286, 256, 24, 11, 290, 257, 15178, 286, 9166, 12, 4869, 12, 4761, 28, 22291, 11, 290, 257, 7853, 286, 220, 1142, 494, 1288, 82, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3865, 33411, 1295, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13828, 12946, 468, 257, 8474, 286, 256, 24, 11, 290, 257, 15178, 286, 9166, 12, 4869, 12, 4761, 28, 22291, 11, 290, 257, 7853, 286, 220, 1142, 494, 1288, 82, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3865, 33411, 1295, 796, 366, ...
Which episode was watched by 7.2 million viewers?
SELECT "Episode" FROM table_24045 WHERE "Viewers (in millions)" = '7.2'
[ 13828, 4471, 373, 7342, 416, 767, 13, 17, 1510, 10209, 30, 46506, 366, 23758, 1, 16034, 3084, 62, 16102, 2231, 33411, 366, 7680, 364, 357, 259, 5242, 16725, 796, 705, 22, 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 ]
[ 13828, 4471, 373, 7342, 416, 767, 13, 17, 1510, 10209, 30, 46506, 366, 23758, 1, 16034, 3084, 62, 16102, 2231, 33411, 366, 7680, 364, 357, 259, 5242, 16725, 796, 705, 22, 13, 17, 6 ]
What is the value of the lowest Week with a Record of 2 9?
SELECT MIN("Week") FROM table_38170 WHERE "Record" = '2–9'
[ 2061, 318, 262, 1988, 286, 262, 9016, 6119, 351, 257, 13266, 286, 362, 860, 30, 46506, 20625, 7203, 20916, 4943, 16034, 3084, 62, 2548, 17279, 33411, 366, 23739, 1, 796, 705, 17, 1906, 24, 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 ]
[ 2061, 318, 262, 1988, 286, 262, 9016, 6119, 351, 257, 13266, 286, 362, 860, 30, 46506, 20625, 7203, 20916, 4943, 16034, 3084, 62, 2548, 17279, 33411, 366, 23739, 1, 796, 705, 17, 1906, 24, 6 ]
What's Luis Siri's shooting score?
SELECT shooting FROM table_12407546_1 WHERE athlete__noc_ = "Luis Siri"
[ 2061, 338, 20894, 34461, 338, 4395, 4776, 30, 46506, 4395, 16034, 3084, 62, 1065, 1821, 2425, 3510, 62, 16, 33411, 16076, 834, 77, 420, 62, 796, 366, 25596, 271, 34461, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 20894, 34461, 338, 4395, 4776, 30, 46506, 4395, 16034, 3084, 62, 1065, 1821, 2425, 3510, 62, 16, 33411, 16076, 834, 77, 420, 62, 796, 366, 25596, 271, 34461, 1 ]
What is the Score of the match on a clay surface with an outcome of winner, at the tournament ciudad ju rez, and an Opponent in the final of estefania craci n?
SELECT "Score" FROM table_41658 WHERE "Surface" = 'clay' AND "Outcome" = 'winner' AND "Tournament" = 'ciudad juárez' AND "Opponent in the final" = 'estefania craciún'
[ 2061, 318, 262, 15178, 286, 262, 2872, 319, 257, 21558, 4417, 351, 281, 8055, 286, 8464, 11, 379, 262, 7756, 269, 72, 463, 324, 7544, 302, 89, 11, 290, 281, 9385, 3471, 287, 262, 2457, 286, 1556, 891, 5411, 1067, 32009, 299, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 318, 262, 15178, 286, 262, 2872, 319, 257, 21558, 4417, 351, 281, 8055, 286, 8464, 11, 379, 262, 7756, 269, 72, 463, 324, 7544, 302, 89, 11, 290, 281, 9385, 3471, 287, 262, 2457, 286, 1556, 891, 5411, 1067, 32009, 299, 30, 4...
give me the number of patients with coronary artery primary disease who were admitted before 2195.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE" AND demographic.admityear < "2195"
[ 26535, 502, 262, 1271, 286, 3871, 351, 37151, 37646, 4165, 4369, 508, 547, 6848, 878, 362, 22186, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 448...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 351, 37151, 37646, 4165, 4369, 508, 547, 6848, 878, 362, 22186, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 448...
count the number of drugs until 3 years ago patient 62983 was prescribed.
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 62983) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-3 year')
[ 9127, 262, 1271, 286, 5010, 1566, 513, 812, 2084, 5827, 718, 1959, 5999, 373, 14798, 13, 46506, 327, 28270, 7, 28104, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 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...
[ 9127, 262, 1271, 286, 5010, 1566, 513, 812, 2084, 5827, 718, 1959, 5999, 373, 14798, 13, 46506, 327, 28270, 7, 28104, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 3...
For those records from the products and each product's manufacturer, find name and manufacturer , and group by attribute name, and visualize them by a bar chart, and rank names in ascending order.
SELECT T1.Name, T1.Manufacturer 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, 1064, 1438, 290, 11554, 837, 290, 1448, 416, 11688, 1438, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 290, 4279, 3891, 287, 41988, 1502, 13, 46506, 309, 16, 13, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1064, 1438, 290, 11554, 837, 290, 1448, 416, 11688, 1438, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 290, 4279, 3891, 287, 41988, 1502, 13, 46506, 309, 16, 13, 53...
Who was the visitor at the pittsburgh penguins at 7:00 pm that had a record of 0-2-2?
SELECT visitor FROM table_name_14 WHERE home = "pittsburgh penguins" AND time = "7:00 pm" AND record = "0-2-2"
[ 8241, 373, 262, 21493, 379, 262, 279, 715, 11931, 38373, 1040, 379, 767, 25, 405, 9114, 326, 550, 257, 1700, 286, 657, 12, 17, 12, 17, 30, 46506, 21493, 16034, 3084, 62, 3672, 62, 1415, 33411, 1363, 796, 366, 79, 715, 11931, 38373, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21493, 379, 262, 279, 715, 11931, 38373, 1040, 379, 767, 25, 405, 9114, 326, 550, 257, 1700, 286, 657, 12, 17, 12, 17, 30, 46506, 21493, 16034, 3084, 62, 3672, 62, 1415, 33411, 1363, 796, 366, 79, 715, 11931, 38373, ...
What is the duration of the flight with end time of 21:06?
SELECT "Duration" FROM table_70276 WHERE "End Time" = '21:06'
[ 2061, 318, 262, 9478, 286, 262, 5474, 351, 886, 640, 286, 2310, 25, 3312, 30, 46506, 366, 26054, 1, 16034, 3084, 62, 2154, 27988, 33411, 366, 12915, 3862, 1, 796, 705, 2481, 25, 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 ]
[ 2061, 318, 262, 9478, 286, 262, 5474, 351, 886, 640, 286, 2310, 25, 3312, 30, 46506, 366, 26054, 1, 16034, 3084, 62, 2154, 27988, 33411, 366, 12915, 3862, 1, 796, 705, 2481, 25, 3312, 6 ]
Who was the opposing team when the status is second test?
SELECT opposing_teams FROM table_name_76 WHERE status = "second test"
[ 8241, 373, 262, 12330, 1074, 618, 262, 3722, 318, 1218, 1332, 30, 46506, 12330, 62, 660, 4105, 16034, 3084, 62, 3672, 62, 4304, 33411, 3722, 796, 366, 12227, 1332, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 12330, 1074, 618, 262, 3722, 318, 1218, 1332, 30, 46506, 12330, 62, 660, 4105, 16034, 3084, 62, 3672, 62, 4304, 33411, 3722, 796, 366, 12227, 1332, 1 ]
Find employee with ID and name of the country presently where (s)he is working Visualize by bar chart, could you list Y in descending order?
SELECT COUNTRY_NAME, SUM(EMPLOYEE_ID) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID JOIN locations AS T3 ON T2.LOCATION_ID = T3.LOCATION_ID JOIN countries AS T4 ON T3.COUNTRY_ID = T4.COUNTRY_ID GROUP BY COUNTRY_NAME ORDER BY SUM(EMPLOYEE_ID) DESC
[ 16742, 6538, 351, 4522, 290, 1438, 286, 262, 1499, 27606, 810, 357, 82, 8, 258, 318, 1762, 15612, 1096, 416, 2318, 8262, 11, 714, 345, 1351, 575, 287, 31491, 1502, 30, 46506, 31404, 40405, 62, 20608, 11, 35683, 7, 3620, 6489, 21414, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6538, 351, 4522, 290, 1438, 286, 262, 1499, 27606, 810, 357, 82, 8, 258, 318, 1762, 15612, 1096, 416, 2318, 8262, 11, 714, 345, 1351, 575, 287, 31491, 1502, 30, 46506, 31404, 40405, 62, 20608, 11, 35683, 7, 3620, 6489, 21414, ...
Show how many delegates in each county with a bar chart, and could you sort y-axis in ascending order?
SELECT County_name, COUNT(County_name) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY County_name ORDER BY COUNT(County_name)
[ 15307, 703, 867, 15265, 287, 1123, 7968, 351, 257, 2318, 8262, 11, 290, 714, 345, 3297, 331, 12, 22704, 287, 41988, 1502, 30, 46506, 3418, 62, 3672, 11, 327, 28270, 7, 12332, 88, 62, 3672, 8, 16034, 7968, 7054, 309, 16, 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...
[ 15307, 703, 867, 15265, 287, 1123, 7968, 351, 257, 2318, 8262, 11, 290, 714, 345, 3297, 331, 12, 22704, 287, 41988, 1502, 30, 46506, 3418, 62, 3672, 11, 327, 28270, 7, 12332, 88, 62, 3672, 8, 16034, 7968, 7054, 309, 16, 32357, 1268,...
what was florent 's average number of assists per game during the 2006 fiba world championship ?
SELECT "assists per game" FROM table_203_527 WHERE "tournament" = '2006 fiba world championship'
[ 10919, 373, 781, 382, 429, 705, 82, 2811, 1271, 286, 13648, 583, 983, 1141, 262, 4793, 12900, 64, 995, 12184, 5633, 46506, 366, 562, 1023, 583, 983, 1, 16034, 3084, 62, 22416, 62, 20, 1983, 33411, 366, 83, 5138, 1, 796, 705, 13330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 373, 781, 382, 429, 705, 82, 2811, 1271, 286, 13648, 583, 983, 1141, 262, 4793, 12900, 64, 995, 12184, 5633, 46506, 366, 562, 1023, 583, 983, 1, 16034, 3084, 62, 22416, 62, 20, 1983, 33411, 366, 83, 5138, 1, 796, 705, 13330, ...
who directed the episode that elaine ko wrote?
SELECT directed_by FROM table_27332038_1 WHERE written_by = "Elaine Ko"
[ 8727, 7924, 262, 4471, 326, 1288, 5718, 41727, 2630, 30, 46506, 7924, 62, 1525, 16034, 3084, 62, 1983, 2091, 1238, 2548, 62, 16, 33411, 3194, 62, 1525, 796, 366, 9527, 5718, 17634, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7924, 262, 4471, 326, 1288, 5718, 41727, 2630, 30, 46506, 7924, 62, 1525, 16034, 3084, 62, 1983, 2091, 1238, 2548, 62, 16, 33411, 3194, 62, 1525, 796, 366, 9527, 5718, 17634, 1 ]
what was the next female tennis winner after lee duk hee .
SELECT "gold" FROM table_204_765 WHERE "year" > (SELECT "year" FROM table_204_765 WHERE "gold" = 'lee duk-hee') ORDER BY "year" LIMIT 1
[ 10919, 373, 262, 1306, 4048, 20790, 8464, 706, 443, 68, 288, 2724, 339, 68, 764, 46506, 366, 24267, 1, 16034, 3084, 62, 18638, 62, 29143, 33411, 366, 1941, 1, 1875, 357, 46506, 366, 1941, 1, 16034, 3084, 62, 18638, 62, 29143, 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 ]
[ 10919, 373, 262, 1306, 4048, 20790, 8464, 706, 443, 68, 288, 2724, 339, 68, 764, 46506, 366, 24267, 1, 16034, 3084, 62, 18638, 62, 29143, 33411, 366, 1941, 1, 1875, 357, 46506, 366, 1941, 1, 16034, 3084, 62, 18638, 62, 29143, 33411, ...
What is the number of each allergie that the student with first name Lisa has? Draw a bar chart, and could you list by the x-axis in ascending?
SELECT T1.Allergy, COUNT(T1.Allergy) FROM Allergy_Type AS T1 JOIN Has_Allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" GROUP BY T1.Allergy ORDER BY T1.Allergy
[ 2061, 318, 262, 1271, 286, 1123, 30975, 494, 326, 262, 3710, 351, 717, 1438, 15378, 468, 30, 15315, 257, 2318, 8262, 11, 290, 714, 345, 1351, 416, 262, 2124, 12, 22704, 287, 41988, 30, 46506, 309, 16, 13, 3237, 26079, 11, 327, 28270...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1123, 30975, 494, 326, 262, 3710, 351, 717, 1438, 15378, 468, 30, 15315, 257, 2318, 8262, 11, 290, 714, 345, 1351, 416, 262, 2124, 12, 22704, 287, 41988, 30, 46506, 309, 16, 13, 3237, 26079, 11, 327, 28270...
what is date of birth and admission time of subject name jerry deberry?
SELECT demographic.dob, demographic.admittime FROM demographic WHERE demographic.name = "Jerry Deberry"
[ 10919, 318, 3128, 286, 4082, 290, 13938, 640, 286, 2426, 1438, 474, 6996, 390, 8396, 30, 46506, 16728, 13, 67, 672, 11, 16728, 13, 324, 20124, 524, 16034, 16728, 33411, 16728, 13, 3672, 796, 366, 43462, 1024, 8396, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3128, 286, 4082, 290, 13938, 640, 286, 2426, 1438, 474, 6996, 390, 8396, 30, 46506, 16728, 13, 67, 672, 11, 16728, 13, 324, 20124, 524, 16034, 16728, 33411, 16728, 13, 3672, 796, 366, 43462, 1024, 8396, 1 ]
how many patients died in or before year 2174 with the drug code ibup600?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2174.0" AND prescriptions.formulary_drug_cd = "IBUP600"
[ 4919, 867, 3871, 3724, 287, 393, 878, 614, 362, 22985, 351, 262, 2563, 2438, 24283, 929, 8054, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 287, 393, 878, 614, 362, 22985, 351, 262, 2563, 2438, 24283, 929, 8054, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 1...
participant's triglyceride level is < 250 mg / dl and ldl cholesterol is <= 150 mg / dl at screening.
SELECT * FROM table_train_255 WHERE triglyceride_tg < 250 AND ldl_cholesterol <= 150
[ 48013, 415, 338, 47937, 485, 1241, 318, 1279, 8646, 10527, 1220, 288, 75, 290, 300, 25404, 18759, 318, 19841, 6640, 10527, 1220, 288, 75, 379, 14135, 13, 46506, 1635, 16034, 3084, 62, 27432, 62, 13381, 33411, 47937, 485, 62, 25297, 1279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 48013, 415, 338, 47937, 485, 1241, 318, 1279, 8646, 10527, 1220, 288, 75, 290, 300, 25404, 18759, 318, 19841, 6640, 10527, 1220, 288, 75, 379, 14135, 13, 46506, 1635, 16034, 3084, 62, 27432, 62, 13381, 33411, 47937, 485, 62, 25297, 1279...
Who performed the most rebounds on games against the Minnesota Timberwolves?
SELECT high_rebounds FROM table_27902171_9 WHERE team = "Minnesota Timberwolves"
[ 8241, 6157, 262, 749, 18841, 319, 1830, 1028, 262, 8919, 48983, 30, 46506, 1029, 62, 34806, 3733, 16034, 3084, 62, 26050, 2999, 27192, 62, 24, 33411, 1074, 796, 366, 45670, 48983, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 6157, 262, 749, 18841, 319, 1830, 1028, 262, 8919, 48983, 30, 46506, 1029, 62, 34806, 3733, 16034, 3084, 62, 26050, 2999, 27192, 62, 24, 33411, 1074, 796, 366, 45670, 48983, 1 ]
what is the total number of years for singles by philips label ?
SELECT COUNT("year") FROM table_204_672 WHERE "label" = 'philips'
[ 10919, 318, 262, 2472, 1271, 286, 812, 329, 25287, 416, 5206, 2419, 6167, 5633, 46506, 327, 28270, 7203, 1941, 4943, 16034, 3084, 62, 18638, 62, 43864, 33411, 366, 18242, 1, 796, 705, 28864, 2419, 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 ]
[ 10919, 318, 262, 2472, 1271, 286, 812, 329, 25287, 416, 5206, 2419, 6167, 5633, 46506, 327, 28270, 7203, 1941, 4943, 16034, 3084, 62, 18638, 62, 43864, 33411, 366, 18242, 1, 796, 705, 28864, 2419, 6 ]
A bar chart shows the distribution of Date_of_Birth and Height , and order X-axis from low to high order please.
SELECT Date_of_Birth, Height FROM people ORDER BY Date_of_Birth
[ 32, 2318, 8262, 2523, 262, 6082, 286, 7536, 62, 1659, 62, 38480, 290, 27280, 837, 290, 1502, 1395, 12, 22704, 422, 1877, 284, 1029, 1502, 3387, 13, 46506, 7536, 62, 1659, 62, 38480, 11, 27280, 16034, 661, 38678, 11050, 7536, 62, 1659,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 32, 2318, 8262, 2523, 262, 6082, 286, 7536, 62, 1659, 62, 38480, 290, 27280, 837, 290, 1502, 1395, 12, 22704, 422, 1877, 284, 1029, 1502, 3387, 13, 46506, 7536, 62, 1659, 62, 38480, 11, 27280, 16034, 661, 38678, 11050, 7536, 62, 1659,...
what was patient 5828 first height in their current hospital encounter?
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 = 5828 AND admissions.dischtime IS NULL)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items ...
[ 10919, 373, 5827, 7618, 2078, 717, 6001, 287, 511, 1459, 4436, 8791, 30, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 323, 62, 312, 3268, 357, 46506, 14158, 436, 592, 13, 291, 436, 323...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 373, 5827, 7618, 2078, 717, 6001, 287, 511, 1459, 4436, 8791, 30, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 323, 62, 312, 3268, 357, 46506, 14158, 436, 592, 13, 291, 436, 323...
What is the Conference for the 1967 68 season?
SELECT "Conference" FROM table_40427 WHERE "Season" = '1967–68'
[ 2061, 318, 262, 8785, 329, 262, 15904, 8257, 1622, 30, 46506, 366, 3103, 4288, 1, 16034, 3084, 62, 26429, 1983, 33411, 366, 18960, 1, 796, 705, 42830, 1906, 3104, 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, 8785, 329, 262, 15904, 8257, 1622, 30, 46506, 366, 3103, 4288, 1, 16034, 3084, 62, 26429, 1983, 33411, 366, 18960, 1, 796, 705, 42830, 1906, 3104, 6 ]
Who has a larger than 70.99 km2?
SELECT comune FROM table_name_52 WHERE total__km²_ > 70.99
[ 8241, 468, 257, 4025, 621, 4317, 13, 2079, 10571, 17, 30, 46506, 401, 1726, 16034, 3084, 62, 3672, 62, 4309, 33411, 2472, 834, 13276, 31185, 62, 1875, 4317, 13, 2079 ]
[ 1, 1, 1, 1, 1, 1, 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, 257, 4025, 621, 4317, 13, 2079, 10571, 17, 30, 46506, 401, 1726, 16034, 3084, 62, 3672, 62, 4309, 33411, 2472, 834, 13276, 31185, 62, 1875, 4317, 13, 2079 ]
Which episodes did Nelson McCormick direct?
SELECT written_by FROM table_17355820_1 WHERE directed_by = "Nelson McCormick"
[ 13828, 8640, 750, 12996, 42037, 624, 1277, 30, 46506, 3194, 62, 1525, 16034, 3084, 62, 1558, 2327, 3365, 1238, 62, 16, 33411, 7924, 62, 1525, 796, 366, 45, 10151, 42037, 624, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 8640, 750, 12996, 42037, 624, 1277, 30, 46506, 3194, 62, 1525, 16034, 3084, 62, 1558, 2327, 3365, 1238, 62, 16, 33411, 7924, 62, 1525, 796, 366, 45, 10151, 42037, 624, 1 ]
Find the founder of the company whose name begins with the letter 'S'.
SELECT founder FROM manufacturers WHERE name LIKE 'S%'
[ 16742, 262, 9119, 286, 262, 1664, 3025, 1438, 6140, 351, 262, 3850, 705, 50, 4458, 46506, 9119, 16034, 11372, 33411, 1438, 34178, 705, 50, 4, 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 ]
[ 16742, 262, 9119, 286, 262, 1664, 3025, 1438, 6140, 351, 262, 3850, 705, 50, 4458, 46506, 9119, 16034, 11372, 33411, 1438, 34178, 705, 50, 4, 6 ]
count the number of patients whose ethnicity is white - russian and year of death is less than or equal to 2168?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.dod_year <= "2168.0"
[ 9127, 262, 1271, 286, 3871, 3025, 26289, 318, 2330, 532, 374, 31562, 290, 614, 286, 1918, 318, 1342, 621, 393, 4961, 284, 362, 14656, 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...
[ 9127, 262, 1271, 286, 3871, 3025, 26289, 318, 2330, 532, 374, 31562, 290, 614, 286, 1918, 318, 1342, 621, 393, 4961, 284, 362, 14656, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, ...
What is the Torque of the Model 320td (diesel)?
SELECT "Torque" FROM table_56300 WHERE "Model" = '320td (diesel)'
[ 2061, 318, 262, 4022, 4188, 286, 262, 9104, 20959, 8671, 357, 25990, 417, 19427, 46506, 366, 15884, 4188, 1, 16034, 3084, 62, 3980, 6200, 33411, 366, 17633, 1, 796, 705, 19504, 8671, 357, 25990, 417, 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 ]
[ 2061, 318, 262, 4022, 4188, 286, 262, 9104, 20959, 8671, 357, 25990, 417, 19427, 46506, 366, 15884, 4188, 1, 16034, 3084, 62, 3980, 6200, 33411, 366, 17633, 1, 796, 705, 19504, 8671, 357, 25990, 417, 33047 ]
In what season was Sch dlich the top goalscorer?
SELECT "Season" FROM table_65033 WHERE "Top Goalscorer" = 'schädlich'
[ 818, 644, 1622, 373, 3059, 288, 33467, 262, 1353, 4661, 7295, 81, 30, 46506, 366, 18960, 1, 16034, 3084, 62, 17544, 2091, 33411, 366, 9126, 28510, 7295, 81, 1, 796, 705, 20601, 11033, 25404, 488, 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 ]
[ 818, 644, 1622, 373, 3059, 288, 33467, 262, 1353, 4661, 7295, 81, 30, 46506, 366, 18960, 1, 16034, 3084, 62, 17544, 2091, 33411, 366, 9126, 28510, 7295, 81, 1, 796, 705, 20601, 11033, 25404, 488, 6 ]
Who is the main presenter of the series Twelve (2012)?
SELECT "Main presenter" FROM table_19285 WHERE "Series" = 'Twelve (2012)'
[ 8241, 318, 262, 1388, 39597, 286, 262, 2168, 30775, 357, 6999, 19427, 46506, 366, 13383, 39597, 1, 16034, 3084, 62, 1129, 26279, 33411, 366, 27996, 1, 796, 705, 5080, 9954, 357, 6999, 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 ]
[ 8241, 318, 262, 1388, 39597, 286, 262, 2168, 30775, 357, 6999, 19427, 46506, 366, 13383, 39597, 1, 16034, 3084, 62, 1129, 26279, 33411, 366, 27996, 1, 796, 705, 5080, 9954, 357, 6999, 33047 ]
calculate the total amount of enteral formula volume/bolus amt (ml) that patient 021-111547 took on the current intensive care unit visit.
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-111547') AND patient.unitdischargetime IS NU...
[ 9948, 3129, 378, 262, 2472, 2033, 286, 920, 1691, 10451, 6115, 14, 28984, 385, 716, 83, 357, 4029, 8, 326, 5827, 657, 2481, 12, 1157, 1314, 2857, 1718, 319, 262, 1459, 18590, 1337, 4326, 3187, 13, 46506, 35683, 7, 600, 539, 22915, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 2033, 286, 920, 1691, 10451, 6115, 14, 28984, 385, 716, 83, 357, 4029, 8, 326, 5827, 657, 2481, 12, 1157, 1314, 2857, 1718, 319, 262, 1459, 18590, 1337, 4326, 3187, 13, 46506, 35683, 7, 600, 539, 22915, 1...
how many patients whose primary disease is atrial septal defect\mitral valve replacement;repair atrial-septal defect/sda and procedure short title is cath base invasv ep test?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA" AND procedures.short_title = "Cath base invasv ep test"
[ 4919, 867, 3871, 3025, 4165, 4369, 318, 379, 4454, 384, 457, 282, 11855, 59, 2781, 1373, 22580, 9014, 26, 49932, 379, 4454, 12, 325, 457, 282, 11855, 14, 82, 6814, 290, 8771, 1790, 3670, 318, 32171, 2779, 800, 292, 85, 2462, 1332, 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...
[ 4919, 867, 3871, 3025, 4165, 4369, 318, 379, 4454, 384, 457, 282, 11855, 59, 2781, 1373, 22580, 9014, 26, 49932, 379, 4454, 12, 325, 457, 282, 11855, 14, 82, 6814, 290, 8771, 1790, 3670, 318, 32171, 2779, 800, 292, 85, 2462, 1332, 3...
After 21:45 P.M. is there an ANTHRCUL 427 section ?
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '21:45' AND course.course_id = course_offering.course_id AND course.department = 'ANTHRCUL' AND course.number = 427 AND semester.semester = 'WN' ...
[ 3260, 2310, 25, 2231, 350, 13, 44, 13, 318, 612, 281, 3537, 4221, 7397, 6239, 45345, 2665, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 5458, 62, 17618, 11, 1781, 62, 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...
[ 3260, 2310, 25, 2231, 350, 13, 44, 13, 318, 612, 281, 3537, 4221, 7397, 6239, 45345, 2665, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 5458, 62, 17618, 11, 1781, 62, 2...
what is age and date of birth of subject id 16438?
SELECT demographic.age, demographic.dob FROM demographic WHERE demographic.subject_id = "16438"
[ 10919, 318, 2479, 290, 3128, 286, 4082, 286, 2426, 4686, 25307, 2548, 30, 46506, 16728, 13, 496, 11, 16728, 13, 67, 672, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 23237, 2548, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2479, 290, 3128, 286, 4082, 286, 2426, 4686, 25307, 2548, 30, 46506, 16728, 13, 496, 11, 16728, 13, 67, 672, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 23237, 2548, 1 ]
find out the number of patients who had joint fluid lab test and stayed in hospital for more than 10 days.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "10" AND lab.fluid = "Joint Fluid"
[ 19796, 503, 262, 1271, 286, 3871, 508, 550, 6466, 11711, 2248, 1332, 290, 9658, 287, 4436, 329, 517, 621, 838, 1528, 13, 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...
[ 19796, 503, 262, 1271, 286, 3871, 508, 550, 6466, 11711, 2248, 1332, 290, 9658, 287, 4436, 329, 517, 621, 838, 1528, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268,...
Which year did Ray Crawford the Kurtis Kraft 500g chassis?
SELECT "Year" FROM table_70108 WHERE "Chassis" = 'kurtis kraft 500g'
[ 13828, 614, 750, 7760, 24499, 262, 20642, 271, 41828, 5323, 70, 24587, 30, 46506, 366, 17688, 1, 16034, 3084, 62, 41583, 2919, 33411, 366, 1925, 20297, 1, 796, 705, 74, 3325, 271, 479, 1617, 5323, 70, 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 ]
[ 13828, 614, 750, 7760, 24499, 262, 20642, 271, 41828, 5323, 70, 24587, 30, 46506, 366, 17688, 1, 16034, 3084, 62, 41583, 2919, 33411, 366, 1925, 20297, 1, 796, 705, 74, 3325, 271, 479, 1617, 5323, 70, 6 ]
Which Television service has a Content of general television?
SELECT "Television service" FROM table_7755 WHERE "Content" = 'general television'
[ 13828, 21516, 2139, 468, 257, 14041, 286, 2276, 5581, 30, 46506, 366, 6767, 5024, 2139, 1, 16034, 3084, 62, 34483, 20, 33411, 366, 19746, 1, 796, 705, 24622, 5581, 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 ]
[ 13828, 21516, 2139, 468, 257, 14041, 286, 2276, 5581, 30, 46506, 366, 6767, 5024, 2139, 1, 16034, 3084, 62, 34483, 20, 33411, 366, 19746, 1, 796, 705, 24622, 5581, 6 ]
What is the name of the episode that was directed by Dennis Smith?
SELECT title FROM table_2828803_1 WHERE directed_by = "Dennis Smith"
[ 2061, 318, 262, 1438, 286, 262, 4471, 326, 373, 7924, 416, 16902, 4176, 30, 46506, 3670, 16034, 3084, 62, 2078, 2078, 43564, 62, 16, 33411, 7924, 62, 1525, 796, 366, 35, 10679, 4176, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 286, 262, 4471, 326, 373, 7924, 416, 16902, 4176, 30, 46506, 3670, 16034, 3084, 62, 2078, 2078, 43564, 62, 16, 33411, 7924, 62, 1525, 796, 366, 35, 10679, 4176, 1 ]
Get popular answers recommending mysql_ functions.
SELECT DISTINCT answers.Id AS "post_link", answers.Score, questions.ViewCount FROM Posts AS answers JOIN PostTypes ON PostTypes.Id = answers.PostTypeId AND PostTypes.Name LIKE 'Answer' JOIN Tags ON Tags.TagName IN ('mysql', 'php', 'mysqli') JOIN PostTags ON PostTags.TagId = Tags.Id JOIN Posts AS questions ON questions....
[ 3855, 2968, 7429, 34639, 48761, 62, 5499, 13, 46506, 360, 8808, 1268, 4177, 7429, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 7429, 13, 26595, 11, 2683, 13, 7680, 12332, 16034, 12043, 7054, 7429, 32357, 1268, 2947, 31431, 6177, 2947, 314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3855, 2968, 7429, 34639, 48761, 62, 5499, 13, 46506, 360, 8808, 1268, 4177, 7429, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 7429, 13, 26595, 11, 2683, 13, 7680, 12332, 16034, 12043, 7054, 7429, 32357, 1268, 2947, 31431, 6177, 2947, 314...
Compute the total total number of enrollment across affiliation as a pie chart.
SELECT Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation
[ 7293, 1133, 262, 2472, 2472, 1271, 286, 20753, 1973, 26218, 355, 257, 2508, 8262, 13, 46506, 6708, 15547, 11, 35683, 7, 4834, 48108, 8, 16034, 6403, 44441, 11050, 6708, 15547 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 7293, 1133, 262, 2472, 2472, 1271, 286, 20753, 1973, 26218, 355, 257, 2508, 8262, 13, 46506, 6708, 15547, 11, 35683, 7, 4834, 48108, 8, 16034, 6403, 44441, 11050, 6708, 15547 ]
When salyut 7 ve-4 eva 1 is the spacecraft, what is the duration?
SELECT duration FROM table_245801_2 WHERE spacecraft = "Salyut 7 – VE-4 – EVA 1"
[ 2215, 264, 3400, 315, 767, 1569, 12, 19, 819, 64, 352, 318, 262, 16807, 11, 644, 318, 262, 9478, 30, 46506, 9478, 16034, 3084, 62, 1731, 3365, 486, 62, 17, 33411, 16807, 796, 366, 50, 3400, 315, 767, 784, 569, 36, 12, 19, 784, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 264, 3400, 315, 767, 1569, 12, 19, 819, 64, 352, 318, 262, 16807, 11, 644, 318, 262, 9478, 30, 46506, 9478, 16034, 3084, 62, 1731, 3365, 486, 62, 17, 33411, 16807, 796, 366, 50, 3400, 315, 767, 784, 569, 36, 12, 19, 784, 8...
Name the record for oakland-alameda county coliseum arena 15,025
SELECT "Record" FROM table_30050 WHERE "Location Attendance" = 'Oakland-Alameda County Coliseum Arena 15,025'
[ 5376, 262, 1700, 329, 26210, 1044, 12, 282, 49637, 7968, 951, 38277, 13478, 1315, 11, 36629, 46506, 366, 23739, 1, 16034, 3084, 62, 6200, 1120, 33411, 366, 14749, 46502, 590, 1, 796, 705, 42426, 1044, 12, 2348, 49637, 3418, 40846, 10937...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1700, 329, 26210, 1044, 12, 282, 49637, 7968, 951, 38277, 13478, 1315, 11, 36629, 46506, 366, 23739, 1, 16034, 3084, 62, 6200, 1120, 33411, 366, 14749, 46502, 590, 1, 796, 705, 42426, 1044, 12, 2348, 49637, 3418, 40846, 10937...
how many times is this other skeletal traction procedure done in 2105?
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'other skeletal traction') AND STRFTIME('%y', procedures_icd.charttime) = '2105'
[ 4919, 867, 1661, 318, 428, 584, 30142, 23692, 8771, 1760, 287, 362, 13348, 30, 46506, 327, 28270, 7, 28104, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796, 357, 46506, 288, 62, 291, 67, 62, 1676...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1661, 318, 428, 584, 30142, 23692, 8771, 1760, 287, 362, 13348, 30, 46506, 327, 28270, 7, 28104, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796, 357, 46506, 288, 62, 291, 67, 62, 1676...
What is the poison/klesha word for moha avijja in pali?
SELECT poison_klesha FROM table_name_29 WHERE pali = "moha avijja"
[ 2061, 318, 262, 8764, 14, 74, 829, 3099, 1573, 329, 285, 28083, 1196, 2926, 6592, 287, 6340, 72, 30, 46506, 8764, 62, 74, 829, 3099, 16034, 3084, 62, 3672, 62, 1959, 33411, 6340, 72, 796, 366, 76, 28083, 1196, 2926, 6592, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8764, 14, 74, 829, 3099, 1573, 329, 285, 28083, 1196, 2926, 6592, 287, 6340, 72, 30, 46506, 8764, 62, 74, 829, 3099, 16034, 3084, 62, 3672, 62, 1959, 33411, 6340, 72, 796, 366, 76, 28083, 1196, 2926, 6592, 1 ]
What team was Sigachev on when he had 38 points?
SELECT team_name FROM table_25421463_1 WHERE points = "38"
[ 2061, 1074, 373, 21984, 42961, 319, 618, 339, 550, 4353, 2173, 30, 46506, 1074, 62, 3672, 16034, 3084, 62, 1495, 3682, 1415, 5066, 62, 16, 33411, 2173, 796, 366, 2548, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 1074, 373, 21984, 42961, 319, 618, 339, 550, 4353, 2173, 30, 46506, 1074, 62, 3672, 16034, 3084, 62, 1495, 3682, 1415, 5066, 62, 16, 33411, 2173, 796, 366, 2548, 1 ]
Which round was the Spanish Grand Prix?
SELECT "Round" FROM table_203 WHERE "Grand Prix" = 'Spanish Grand Prix'
[ 13828, 2835, 373, 262, 7897, 5675, 23832, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 22416, 33411, 366, 23581, 23832, 1, 796, 705, 43584, 5675, 23832, 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 ]
[ 13828, 2835, 373, 262, 7897, 5675, 23832, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 22416, 33411, 366, 23581, 23832, 1, 796, 705, 43584, 5675, 23832, 6 ]
What kind of Live births has a Migration of -14 873?
SELECT live_births FROM table_name_85 WHERE migration = "-14 873"
[ 2061, 1611, 286, 7547, 27244, 468, 257, 36991, 286, 532, 1415, 807, 4790, 30, 46506, 2107, 62, 24280, 82, 16034, 3084, 62, 3672, 62, 5332, 33411, 13472, 796, 27444, 1415, 807, 4790, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1611, 286, 7547, 27244, 468, 257, 36991, 286, 532, 1415, 807, 4790, 30, 46506, 2107, 62, 24280, 82, 16034, 3084, 62, 3672, 62, 5332, 33411, 13472, 796, 27444, 1415, 807, 4790, 1 ]
which bishop served between the years of 1846 and 1866 ?
SELECT "name" FROM table_203_875 WHERE "office started" >= 1846 AND "office ended" <= 1866
[ 4758, 24233, 4983, 1022, 262, 812, 286, 1248, 3510, 290, 1248, 2791, 5633, 46506, 366, 3672, 1, 16034, 3084, 62, 22416, 62, 31360, 33411, 366, 31810, 2067, 1, 18189, 1248, 3510, 5357, 366, 31810, 4444, 1, 19841, 1248, 2791 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24233, 4983, 1022, 262, 812, 286, 1248, 3510, 290, 1248, 2791, 5633, 46506, 366, 3672, 1, 16034, 3084, 62, 22416, 62, 31360, 33411, 366, 31810, 2067, 1, 18189, 1248, 3510, 5357, 366, 31810, 4444, 1, 19841, 1248, 2791 ]
What was the score of the game on May 26?
SELECT score FROM table_name_24 WHERE date = "may 26"
[ 2061, 373, 262, 4776, 286, 262, 983, 319, 1737, 2608, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 1731, 33411, 3128, 796, 366, 11261, 2608, 1 ]
[ 1, 1, 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, 286, 262, 983, 319, 1737, 2608, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 1731, 33411, 3128, 796, 366, 11261, 2608, 1 ]
What was the winning score on May 3, 1998?
SELECT winning_score FROM table_name_23 WHERE date = "may 3, 1998"
[ 2061, 373, 262, 5442, 4776, 319, 1737, 513, 11, 7795, 30, 46506, 5442, 62, 26675, 16034, 3084, 62, 3672, 62, 1954, 33411, 3128, 796, 366, 11261, 513, 11, 7795, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 5442, 4776, 319, 1737, 513, 11, 7795, 30, 46506, 5442, 62, 26675, 16034, 3084, 62, 3672, 62, 1954, 33411, 3128, 796, 366, 11261, 513, 11, 7795, 1 ]
What is the name of the home team that has a venue called EMCG?
SELECT home_team FROM table_name_50 WHERE venue = "emcg"
[ 2061, 318, 262, 1438, 286, 262, 1363, 1074, 326, 468, 257, 14359, 1444, 412, 9655, 38, 30, 46506, 1363, 62, 15097, 16034, 3084, 62, 3672, 62, 1120, 33411, 14359, 796, 366, 368, 66, 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 ]
[ 2061, 318, 262, 1438, 286, 262, 1363, 1074, 326, 468, 257, 14359, 1444, 412, 9655, 38, 30, 46506, 1363, 62, 15097, 16034, 3084, 62, 3672, 62, 1120, 33411, 14359, 796, 366, 368, 66, 70, 1 ]
What was the result for the years after 2001?
SELECT "Result" FROM table_66513 WHERE "Year" > '2001'
[ 2061, 373, 262, 1255, 329, 262, 812, 706, 5878, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 36879, 1485, 33411, 366, 17688, 1, 1875, 705, 14585, 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, 373, 262, 1255, 329, 262, 812, 706, 5878, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 36879, 1485, 33411, 366, 17688, 1, 1875, 705, 14585, 6 ]
A score of 71-71=142 earned what place?
SELECT "Place" FROM table_48722 WHERE "Score" = '71-71=142'
[ 32, 4776, 286, 9166, 12, 4869, 28, 23726, 7366, 644, 1295, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 35133, 1828, 33411, 366, 26595, 1, 796, 705, 4869, 12, 4869, 28, 23726, 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 ]
[ 32, 4776, 286, 9166, 12, 4869, 28, 23726, 7366, 644, 1295, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 35133, 1828, 33411, 366, 26595, 1, 796, 705, 4869, 12, 4869, 28, 23726, 6 ]
provide the number of patients whose lab test name is specific gravity?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "Specific Gravity"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 2248, 1332, 1438, 318, 2176, 13522, 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, 62, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2248, 1332, 1438, 318, 2176, 13522, 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, 62, 31...
so, what was the first temperature c (calc) of patient 4085 on 09/18/this year?
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 = 4085)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'temperatur...
[ 568, 11, 644, 373, 262, 717, 5951, 269, 357, 9948, 66, 8, 286, 5827, 2319, 5332, 319, 7769, 14, 1507, 14, 5661, 614, 30, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 323, 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...
[ 568, 11, 644, 373, 262, 717, 5951, 269, 357, 9948, 66, 8, 286, 5827, 2319, 5332, 319, 7769, 14, 1507, 14, 5661, 614, 30, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 323, 62, 312, ...
What contestant had a starting BMI of 42.2?
SELECT contestant FROM table_name_10 WHERE start_bmi = 42.2
[ 2061, 44047, 550, 257, 3599, 22456, 286, 5433, 13, 17, 30, 46506, 44047, 16034, 3084, 62, 3672, 62, 940, 33411, 923, 62, 65, 11632, 796, 5433, 13, 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 ]
[ 2061, 44047, 550, 257, 3599, 22456, 286, 5433, 13, 17, 30, 46506, 44047, 16034, 3084, 62, 3672, 62, 940, 33411, 923, 62, 65, 11632, 796, 5433, 13, 17 ]
What is the transfer fee of assoumani, who has a summer transfer window?
SELECT "Transfer fee" FROM table_61724 WHERE "Transfer window" = 'summer' AND "Name" = 'assoumani'
[ 2061, 318, 262, 4351, 6838, 286, 840, 280, 805, 72, 11, 508, 468, 257, 3931, 4351, 4324, 30, 46506, 366, 43260, 6838, 1, 16034, 3084, 62, 47941, 1731, 33411, 366, 43260, 4324, 1, 796, 705, 16345, 647, 6, 5357, 366, 5376, 1, 796, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4351, 6838, 286, 840, 280, 805, 72, 11, 508, 468, 257, 3931, 4351, 4324, 30, 46506, 366, 43260, 6838, 1, 16034, 3084, 62, 47941, 1731, 33411, 366, 43260, 4324, 1, 796, 705, 16345, 647, 6, 5357, 366, 5376, 1, 796, 7...
Bar chart x axis location y axis how many location, I want to display names from high to low order please.
SELECT Location, COUNT(Location) FROM performance GROUP BY Location ORDER BY Location DESC
[ 10374, 8262, 2124, 16488, 4067, 331, 16488, 703, 867, 4067, 11, 314, 765, 284, 3359, 3891, 422, 1029, 284, 1877, 1502, 3387, 13, 46506, 13397, 11, 327, 28270, 7, 14749, 8, 16034, 2854, 44441, 11050, 13397, 38678, 11050, 13397, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10374, 8262, 2124, 16488, 4067, 331, 16488, 703, 867, 4067, 11, 314, 765, 284, 3359, 3891, 422, 1029, 284, 1877, 1502, 3387, 13, 46506, 13397, 11, 327, 28270, 7, 14749, 8, 16034, 2854, 44441, 11050, 13397, 38678, 11050, 13397, 22196, 34...
Who won best actress?
SELECT "Awardee(s)" FROM table_28195 WHERE "Name of Award" = 'Best Actress'
[ 8241, 1839, 1266, 14549, 30, 46506, 366, 32, 904, 1453, 7, 82, 16725, 16034, 3084, 62, 2078, 22186, 33411, 366, 5376, 286, 11289, 1, 796, 705, 13014, 47144, 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 ]
[ 8241, 1839, 1266, 14549, 30, 46506, 366, 32, 904, 1453, 7, 82, 16725, 16034, 3084, 62, 2078, 22186, 33411, 366, 5376, 286, 11289, 1, 796, 705, 13014, 47144, 6 ]
Who is the best player in the 1998 season?
SELECT best_player FROM table_2527617_1 WHERE season = 1998
[ 8241, 318, 262, 1266, 2137, 287, 262, 7795, 1622, 30, 46506, 1266, 62, 7829, 16034, 3084, 62, 1495, 27988, 1558, 62, 16, 33411, 1622, 796, 7795 ]
[ 1, 1, 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, 1266, 2137, 287, 262, 7795, 1622, 30, 46506, 1266, 62, 7829, 16034, 3084, 62, 1495, 27988, 1558, 62, 16, 33411, 1622, 796, 7795 ]
Do you know of any other human computer interaction courses that are easier than PHARMSCI 569 ?
SELECT DISTINCT course.department, course.name, course.number, program_course.workload FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE area.area LIKE '%human computer interaction%' AND program_course.workload < (SELECT MIN(P...
[ 5211, 345, 760, 286, 597, 584, 1692, 3644, 10375, 10902, 326, 389, 4577, 621, 9370, 1503, 5653, 25690, 642, 3388, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 1430, 62, 17319,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 5211, 345, 760, 286, 597, 584, 1692, 3644, 10375, 10902, 326, 389, 4577, 621, 9370, 1503, 5653, 25690, 642, 3388, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 1430, 62, 17319,...
What was the shooter when the rank points was olympic bronze medalist?
SELECT "Shooter" FROM table_12417 WHERE "Rank points" = 'olympic bronze medalist'
[ 2061, 373, 262, 14273, 618, 262, 4279, 2173, 373, 267, 6760, 291, 22101, 18279, 396, 30, 46506, 366, 2484, 25141, 1, 16034, 3084, 62, 17464, 1558, 33411, 366, 27520, 2173, 1, 796, 705, 3366, 3149, 291, 22101, 18279, 396, 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 ]
[ 2061, 373, 262, 14273, 618, 262, 4279, 2173, 373, 267, 6760, 291, 22101, 18279, 396, 30, 46506, 366, 2484, 25141, 1, 16034, 3084, 62, 17464, 1558, 33411, 366, 27520, 2173, 1, 796, 705, 3366, 3149, 291, 22101, 18279, 396, 6 ]
among people with age 20s , what is the top three most frequent diagnoses?
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN...
[ 35131, 661, 351, 2479, 1160, 82, 837, 644, 318, 262, 1353, 1115, 749, 10792, 40567, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, 288, 62, 291, 67, 62, 47356, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 35131, 661, 351, 2479, 1160, 82, 837, 644, 318, 262, 1353, 1115, 749, 10792, 40567, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, 288, 62, 291, 67, 62, 47356, 4...
What is the date of the U.S. Women's open?
SELECT date FROM table_name_61 WHERE tournament = "u.s. women's open"
[ 2061, 318, 262, 3128, 286, 262, 471, 13, 50, 13, 6926, 338, 1280, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 5333, 33411, 7756, 796, 366, 84, 13, 82, 13, 1466, 338, 1280, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 286, 262, 471, 13, 50, 13, 6926, 338, 1280, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 5333, 33411, 7756, 796, 366, 84, 13, 82, 13, 1466, 338, 1280, 1 ]
WHAT IS THE VAL-DE-MARNE WITH A Seine-Saint-Denis of 2.7%?
SELECT "Val-de-Marne" FROM table_9185 WHERE "Seine-Saint-Denis" = '2.7%'
[ 32971, 3180, 3336, 26173, 12, 7206, 12, 40569, 12161, 13315, 317, 1001, 500, 12, 48615, 12, 21306, 271, 286, 362, 13, 22, 4, 30, 46506, 366, 7762, 12, 2934, 12, 7676, 710, 1, 16034, 3084, 62, 24, 21652, 33411, 366, 4653, 500, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 32971, 3180, 3336, 26173, 12, 7206, 12, 40569, 12161, 13315, 317, 1001, 500, 12, 48615, 12, 21306, 271, 286, 362, 13, 22, 4, 30, 46506, 366, 7762, 12, 2934, 12, 7676, 710, 1, 16034, 3084, 62, 24, 21652, 33411, 366, 4653, 500, 12, ...
what is the largest number of films ?
SELECT MAX("film") FROM table_204_697
[ 10919, 318, 262, 4387, 1271, 286, 7328, 5633, 46506, 25882, 7203, 26240, 4943, 16034, 3084, 62, 18638, 62, 40035 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 4387, 1271, 286, 7328, 5633, 46506, 25882, 7203, 26240, 4943, 16034, 3084, 62, 18638, 62, 40035 ]
how many hours has it been since the first time patient 004-86136 stayed on their current hospital visit in ward 236?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '004-86136' AND patient.wardid = 236 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1
[ 4919, 867, 2250, 468, 340, 587, 1201, 262, 717, 640, 5827, 3571, 19, 12, 4521, 20809, 9658, 319, 511, 1459, 4436, 3187, 287, 15305, 34044, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 2895...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2250, 468, 340, 587, 1201, 262, 717, 640, 5827, 3571, 19, 12, 4521, 20809, 9658, 319, 511, 1459, 4436, 3187, 287, 15305, 34044, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 2895...
what flights from TAMPA to CINCINNATI
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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'TAMPA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CINCINNA...
[ 10919, 13956, 422, 33112, 4537, 284, 327, 30158, 1268, 34259, 24352, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13956, 422, 33112, 4537, 284, 327, 30158, 1268, 34259, 24352, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, ...
Which Year(s) won has a To par of +8?
SELECT "Year(s) won" FROM table_9754 WHERE "To par" = '+8'
[ 13828, 6280, 7, 82, 8, 1839, 468, 257, 1675, 1582, 286, 1343, 23, 30, 46506, 366, 17688, 7, 82, 8, 1839, 1, 16034, 3084, 62, 24, 41874, 33411, 366, 2514, 1582, 1, 796, 705, 10, 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, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 6280, 7, 82, 8, 1839, 468, 257, 1675, 1582, 286, 1343, 23, 30, 46506, 366, 17688, 7, 82, 8, 1839, 1, 16034, 3084, 62, 24, 41874, 33411, 366, 2514, 1582, 1, 796, 705, 10, 23, 6 ]
Show me the total number by product category in a histogram, rank x-axis from high to low order please.
SELECT product_category, COUNT(*) FROM Mailshot_Campaigns GROUP BY product_category ORDER BY product_category DESC
[ 15307, 502, 262, 2472, 1271, 416, 1720, 6536, 287, 257, 1554, 21857, 11, 4279, 2124, 12, 22704, 422, 1029, 284, 1877, 1502, 3387, 13, 46506, 1720, 62, 22872, 11, 327, 28270, 7, 28104, 16034, 11099, 9442, 62, 46102, 82, 44441, 11050, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 502, 262, 2472, 1271, 416, 1720, 6536, 287, 257, 1554, 21857, 11, 4279, 2124, 12, 22704, 422, 1029, 284, 1877, 1502, 3387, 13, 46506, 1720, 62, 22872, 11, 327, 28270, 7, 28104, 16034, 11099, 9442, 62, 46102, 82, 44441, 11050, 1...
What is the total number of Block for the Player with less than 85 Weight and more than 187 Height?
SELECT COUNT(block) FROM table_name_73 WHERE weight < 85 AND height > 187
[ 2061, 318, 262, 2472, 1271, 286, 9726, 329, 262, 7853, 351, 1342, 621, 7600, 14331, 290, 517, 621, 27649, 27280, 30, 46506, 327, 28270, 7, 9967, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 3463, 1279, 7600, 5357, 6001, 1875, 27649 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 1271, 286, 9726, 329, 262, 7853, 351, 1342, 621, 7600, 14331, 290, 517, 621, 27649, 27280, 30, 46506, 327, 28270, 7, 9967, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 3463, 1279, 7600, 5357, 6001, 1875, 27649 ]
Show institution names along with the number of proteins for each institution in a bar chart, and rank by the X in descending.
SELECT Institution, COUNT(*) FROM Institution AS T1 JOIN protein AS T2 ON T1.Institution_id = T2.Institution_id GROUP BY T1.Institution_id ORDER BY Institution DESC
[ 15307, 9901, 3891, 1863, 351, 262, 1271, 286, 15568, 329, 1123, 9901, 287, 257, 2318, 8262, 11, 290, 4279, 416, 262, 1395, 287, 31491, 13, 46506, 29426, 11, 327, 28270, 7, 28104, 16034, 29426, 7054, 309, 16, 32357, 1268, 7532, 7054, 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...
[ 15307, 9901, 3891, 1863, 351, 262, 1271, 286, 15568, 329, 1123, 9901, 287, 257, 2318, 8262, 11, 290, 4279, 416, 262, 1395, 287, 31491, 13, 46506, 29426, 11, 327, 28270, 7, 28104, 16034, 29426, 7054, 309, 16, 32357, 1268, 7532, 7054, 3...
Questions with only the API tag.
SELECT Id AS "post_link", CreationDate FROM Posts WHERE PostTypeId = 1 AND Tags = '<api>'
[ 35741, 351, 691, 262, 7824, 7621, 13, 46506, 5121, 7054, 366, 7353, 62, 8726, 1600, 21582, 10430, 16034, 12043, 33411, 2947, 6030, 7390, 796, 352, 5357, 44789, 796, 705, 27, 15042, 29, 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 ]
[ 35741, 351, 691, 262, 7824, 7621, 13, 46506, 5121, 7054, 366, 7353, 62, 8726, 1600, 21582, 10430, 16034, 12043, 33411, 2947, 6030, 7390, 796, 352, 5357, 44789, 796, 705, 27, 15042, 29, 6 ]
Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones.
SELECT T2.date_of_birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.investor = "Simon Woodroffe" OR T1.investor = "Peter Jones"
[ 13615, 262, 9667, 286, 4082, 329, 17038, 508, 423, 2035, 262, 15811, 11288, 5326, 305, 16658, 393, 5613, 5437, 13, 46506, 309, 17, 13, 4475, 62, 1659, 62, 24280, 16034, 19500, 7054, 309, 16, 32357, 1268, 661, 7054, 309, 17, 6177, 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...
[ 13615, 262, 9667, 286, 4082, 329, 17038, 508, 423, 2035, 262, 15811, 11288, 5326, 305, 16658, 393, 5613, 5437, 13, 46506, 309, 17, 13, 4475, 62, 1659, 62, 24280, 16034, 19500, 7054, 309, 16, 32357, 1268, 661, 7054, 309, 17, 6177, 309,...
What are the percentages in 2001 in all the provinces where the percentage in 2011 is 0.2%?
SELECT "% 2001" FROM table_2048 WHERE "% 2011" = '0.2%'
[ 2061, 389, 262, 28071, 287, 5878, 287, 477, 262, 17812, 810, 262, 5873, 287, 2813, 318, 657, 13, 17, 4, 30, 46506, 36521, 5878, 1, 16034, 3084, 62, 1238, 2780, 33411, 36521, 2813, 1, 796, 705, 15, 13, 17, 4, 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, 389, 262, 28071, 287, 5878, 287, 477, 262, 17812, 810, 262, 5873, 287, 2813, 318, 657, 13, 17, 4, 30, 46506, 36521, 5878, 1, 16034, 3084, 62, 1238, 2780, 33411, 36521, 2813, 1, 796, 705, 15, 13, 17, 4, 6 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a scatter chart about the correlation between manager_id and department_id .
SELECT MANAGER_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 3197, 257, 41058, 8262, 546, 262, 16096, 1022, 4706, 62, 312, 290, 5011, 62, 312, 764, 46506, 17254, 4760, 1137, 62, 2389, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 41058, 8262, 546, 262, 16096, 1022, 4706, 62, 312, 290, 5011, 62, 312, 764, 46506, 17254, 4760, 1137, 62, 2389, 1...
What is the route of administration that has several ongoing and complete?
SELECT route_of_administration FROM table_name_4 WHERE status = "several ongoing and complete"
[ 2061, 318, 262, 6339, 286, 3662, 326, 468, 1811, 7044, 290, 1844, 30, 46506, 6339, 62, 1659, 62, 39081, 1358, 16034, 3084, 62, 3672, 62, 19, 33411, 3722, 796, 366, 28116, 282, 7044, 290, 1844, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6339, 286, 3662, 326, 468, 1811, 7044, 290, 1844, 30, 46506, 6339, 62, 1659, 62, 39081, 1358, 16034, 3084, 62, 3672, 62, 19, 33411, 3722, 796, 366, 28116, 282, 7044, 290, 1844, 1 ]
Top answerers by total answer count.
SELECT Users.Id AS "user_link", COUNT(Posts.Id) AS Answers, CAST(AVG(CAST(Score AS FLOAT)) AS FLOAT(6, 2)) AS "average_answer_score", Users.Reputation FROM Posts INNER JOIN Users ON Users.Id = OwnerUserId WHERE PostTypeId = 2 AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL GROUP BY Users.Id, DisplayName, Users.Re...
[ 9126, 2590, 19288, 416, 2472, 3280, 954, 13, 46506, 18987, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 327, 28270, 7, 21496, 13, 7390, 8, 7054, 42612, 11, 327, 11262, 7, 10116, 38, 7, 44647, 7, 26595, 7054, 9977, 46, 1404, 4008, 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...
[ 9126, 2590, 19288, 416, 2472, 3280, 954, 13, 46506, 18987, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 327, 28270, 7, 21496, 13, 7390, 8, 7054, 42612, 11, 327, 11262, 7, 10116, 38, 7, 44647, 7, 26595, 7054, 9977, 46, 1404, 4008, 7054...
Who played Collingwood?
SELECT away_team FROM table_name_72 WHERE home_team = "collingwood"
[ 8241, 2826, 7778, 278, 3822, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 4761, 33411, 1363, 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 ]
[ 8241, 2826, 7778, 278, 3822, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 4761, 33411, 1363, 62, 15097, 796, 366, 26000, 278, 3822, 1 ]
Give me a bar chart for the total number of each payment method code
SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code
[ 23318, 502, 257, 2318, 8262, 329, 262, 2472, 1271, 286, 1123, 6074, 2446, 2438, 46506, 6074, 62, 24396, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 10001, 78, 1063, 44441, 11050, 6074, 62, 24396, 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 ]
[ 23318, 502, 257, 2318, 8262, 329, 262, 2472, 1271, 286, 1123, 6074, 2446, 2438, 46506, 6074, 62, 24396, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 10001, 78, 1063, 44441, 11050, 6074, 62, 24396, 62, 8189 ]
When was Color of green last issued?
SELECT MAX(first_issued) FROM table_name_26 WHERE color = "green"
[ 2215, 373, 5315, 286, 4077, 938, 4884, 30, 46506, 25882, 7, 11085, 62, 39361, 8, 16034, 3084, 62, 3672, 62, 2075, 33411, 3124, 796, 366, 14809, 1 ]
[ 1, 1, 1, 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, 373, 5315, 286, 4077, 938, 4884, 30, 46506, 25882, 7, 11085, 62, 39361, 8, 16034, 3084, 62, 3672, 62, 2075, 33411, 3124, 796, 366, 14809, 1 ]
SELECT * FROM Posts WHERE Id = 1.
SELECT * FROM Posts WHERE Id = 1500
[ 46506, 1635, 16034, 12043, 33411, 5121, 796, 352, 13, 46506, 1635, 16034, 12043, 33411, 5121, 796, 20007 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 46506, 1635, 16034, 12043, 33411, 5121, 796, 352, 13, 46506, 1635, 16034, 12043, 33411, 5121, 796, 20007 ]
Group and count the move in date in a bar chart, and I want to bin the X into Year interval, and I want to sort y-axis from high to low order.
SELECT date_moved_in, COUNT(date_moved_in) FROM Customer_Events ORDER BY COUNT(date_moved_in) DESC
[ 13247, 290, 954, 262, 1445, 287, 3128, 287, 257, 2318, 8262, 11, 290, 314, 765, 284, 9874, 262, 1395, 656, 6280, 16654, 11, 290, 314, 765, 284, 3297, 331, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 3128, 62, 76, 2668, 62, 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...
[ 13247, 290, 954, 262, 1445, 287, 3128, 287, 257, 2318, 8262, 11, 290, 314, 765, 284, 9874, 262, 1395, 656, 6280, 16654, 11, 290, 314, 765, 284, 3297, 331, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 3128, 62, 76, 2668, 62, 2...
Return a histogram on what is the total credit does each department offer?, I want to show from low to high by the DEPT_CODE please.
SELECT DEPT_CODE, SUM(CRS_CREDIT) FROM COURSE GROUP BY DEPT_CODE ORDER BY DEPT_CODE
[ 13615, 257, 1554, 21857, 319, 644, 318, 262, 2472, 3884, 857, 1123, 5011, 2897, 21747, 314, 765, 284, 905, 422, 1877, 284, 1029, 416, 262, 5550, 11571, 62, 34, 16820, 3387, 13, 46506, 5550, 11571, 62, 34, 16820, 11, 35683, 7, 34, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 644, 318, 262, 2472, 3884, 857, 1123, 5011, 2897, 21747, 314, 765, 284, 905, 422, 1877, 284, 1029, 416, 262, 5550, 11571, 62, 34, 16820, 3387, 13, 46506, 5550, 11571, 62, 34, 16820, 11, 35683, 7, 34, 69...
Which Condition has a Bleeding time of unaffected, and a Partial thromboplastin time of prolonged, and a Prothrombin time of unaffected?
SELECT "Condition" FROM table_74970 WHERE "Bleeding time" = 'unaffected' AND "Partial thromboplastin time" = 'prolonged' AND "Prothrombin time" = 'unaffected'
[ 13828, 24295, 468, 257, 17175, 8228, 640, 286, 35290, 11, 290, 257, 43689, 294, 398, 65, 404, 12957, 259, 640, 286, 20573, 11, 290, 257, 1041, 400, 398, 8800, 640, 286, 35290, 30, 46506, 366, 48362, 1, 16034, 3084, 62, 22, 2920, 215...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24295, 468, 257, 17175, 8228, 640, 286, 35290, 11, 290, 257, 43689, 294, 398, 65, 404, 12957, 259, 640, 286, 20573, 11, 290, 257, 1041, 400, 398, 8800, 640, 286, 35290, 30, 46506, 366, 48362, 1, 16034, 3084, 62, 22, 2920, 215...
What was the average of againsts on 21/5/1997?
SELECT AVG(against) FROM table_name_45 WHERE date = "21/5/1997"
[ 2061, 373, 262, 2811, 286, 1028, 82, 319, 2310, 14, 20, 14, 21498, 30, 46506, 35224, 7, 32826, 8, 16034, 3084, 62, 3672, 62, 2231, 33411, 3128, 796, 366, 2481, 14, 20, 14, 21498, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 286, 1028, 82, 319, 2310, 14, 20, 14, 21498, 30, 46506, 35224, 7, 32826, 8, 16034, 3084, 62, 3672, 62, 2231, 33411, 3128, 796, 366, 2481, 14, 20, 14, 21498, 1 ]
combined , how many winning golfers does england and wales have in the masters ?
SELECT SUM("masters") FROM table_204_396 WHERE "country" IN ('england', 'wales')
[ 24011, 1389, 837, 703, 867, 5442, 13126, 364, 857, 1786, 1044, 290, 266, 2040, 423, 287, 262, 18159, 5633, 46506, 35683, 7203, 40706, 4943, 16034, 3084, 62, 18638, 62, 34107, 33411, 366, 19315, 1, 3268, 19203, 1516, 1044, 3256, 705, 86,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24011, 1389, 837, 703, 867, 5442, 13126, 364, 857, 1786, 1044, 290, 266, 2040, 423, 287, 262, 18159, 5633, 46506, 35683, 7203, 40706, 4943, 16034, 3084, 62, 18638, 62, 34107, 33411, 366, 19315, 1, 3268, 19203, 1516, 1044, 3256, 705, 86,...
Who was the turbine manufacturer of the wind farm that started service on 2005?
SELECT turbine_manufacturer FROM table_24837750_1 WHERE date_in_service = "2005"
[ 8241, 373, 262, 36489, 11554, 286, 262, 2344, 5318, 326, 2067, 2139, 319, 5075, 30, 46506, 36489, 62, 48119, 15051, 16034, 3084, 62, 23045, 2718, 15426, 62, 16, 33411, 3128, 62, 259, 62, 15271, 796, 366, 14315, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 36489, 11554, 286, 262, 2344, 5318, 326, 2067, 2139, 319, 5075, 30, 46506, 36489, 62, 48119, 15051, 16034, 3084, 62, 23045, 2718, 15426, 62, 16, 33411, 3128, 62, 259, 62, 15271, 796, 366, 14315, 1 ]
What is the score when the scorers show match report?
SELECT "Score" FROM table_48124 WHERE "Scorers" = 'match report'
[ 2061, 318, 262, 4776, 618, 262, 4776, 3808, 905, 2872, 989, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2780, 17464, 33411, 366, 26595, 3808, 1, 796, 705, 15699, 989, 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, 318, 262, 4776, 618, 262, 4776, 3808, 905, 2872, 989, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2780, 17464, 33411, 366, 26595, 3808, 1, 796, 705, 15699, 989, 6 ]
Who was the opponent with a 32-25 record?
SELECT opponent FROM table_name_50 WHERE record = "32-25"
[ 8241, 373, 262, 6125, 351, 257, 3933, 12, 1495, 1700, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 1120, 33411, 1700, 796, 366, 2624, 12, 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 ]
[ 8241, 373, 262, 6125, 351, 257, 3933, 12, 1495, 1700, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 1120, 33411, 1700, 796, 366, 2624, 12, 1495, 1 ]
what is drawn when the club is hirwaun rfc?
SELECT drawn FROM table_name_80 WHERE club = "hirwaun rfc"
[ 10919, 318, 7428, 618, 262, 3430, 318, 289, 343, 86, 1942, 374, 16072, 30, 46506, 7428, 16034, 3084, 62, 3672, 62, 1795, 33411, 3430, 796, 366, 71, 343, 86, 1942, 374, 16072, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7428, 618, 262, 3430, 318, 289, 343, 86, 1942, 374, 16072, 30, 46506, 7428, 16034, 3084, 62, 3672, 62, 1795, 33411, 3430, 796, 366, 71, 343, 86, 1942, 374, 16072, 1 ]
Which championship was won on July 7, 2010?
SELECT championship FROM table_name_92 WHERE date_won = "july 7, 2010"
[ 13828, 12184, 373, 1839, 319, 2901, 767, 11, 3050, 30, 46506, 12184, 16034, 3084, 62, 3672, 62, 5892, 33411, 3128, 62, 26502, 796, 366, 73, 2062, 767, 11, 3050, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 12184, 373, 1839, 319, 2901, 767, 11, 3050, 30, 46506, 12184, 16034, 3084, 62, 3672, 62, 5892, 33411, 3128, 62, 26502, 796, 366, 73, 2062, 767, 11, 3050, 1 ]
Which country has a Lead of sarah wazney?
SELECT country FROM table_name_50 WHERE lead = "sarah wazney"
[ 13828, 1499, 468, 257, 20116, 286, 264, 23066, 266, 1031, 1681, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 1120, 33411, 1085, 796, 366, 82, 23066, 266, 1031, 1681, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 1499, 468, 257, 20116, 286, 264, 23066, 266, 1031, 1681, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 1120, 33411, 1085, 796, 366, 82, 23066, 266, 1031, 1681, 1 ]
Show the faculty id of each faculty member, along with the number of students he or she advises.
SELECT T1.FacID, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID
[ 15307, 262, 12829, 4686, 286, 1123, 12829, 2888, 11, 1863, 351, 262, 1271, 286, 2444, 339, 393, 673, 34138, 13, 46506, 309, 16, 13, 47522, 2389, 11, 327, 28270, 7, 28104, 16034, 35262, 7054, 309, 16, 32357, 1268, 13613, 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 ]
[ 15307, 262, 12829, 4686, 286, 1123, 12829, 2888, 11, 1863, 351, 262, 1271, 286, 2444, 339, 393, 673, 34138, 13, 46506, 309, 16, 13, 47522, 2389, 11, 327, 28270, 7, 28104, 16034, 35262, 7054, 309, 16, 32357, 1268, 13613, 7054, 309, 17,...