instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
How many trains have 'Express' in their names?
SELECT COUNT(*) FROM train WHERE name LIKE "%Express%"
[ 2437, 867, 13404, 423, 705, 38839, 6, 287, 511, 3891, 30, 46506, 327, 28270, 7, 28104, 16034, 4512, 33411, 1438, 34178, 36521, 38839, 39658 ]
[ 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, 13404, 423, 705, 38839, 6, 287, 511, 3891, 30, 46506, 327, 28270, 7, 28104, 16034, 4512, 33411, 1438, 34178, 36521, 38839, 39658 ]
How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?
SELECT COUNT("South Asians 2011") FROM table_49793 WHERE "Province" = 'quebec' AND "South Asians 2001" < '59,510'
[ 2437, 867, 2520, 30852, 547, 612, 287, 2813, 287, 14778, 618, 612, 547, 7380, 621, 7863, 11, 33690, 287, 5878, 30, 46506, 327, 28270, 7203, 14942, 30852, 2813, 4943, 16034, 3084, 62, 2920, 44750, 33411, 366, 15946, 924, 1, 796, 705, 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 ]
[ 2437, 867, 2520, 30852, 547, 612, 287, 2813, 287, 14778, 618, 612, 547, 7380, 621, 7863, 11, 33690, 287, 5878, 30, 46506, 327, 28270, 7203, 14942, 30852, 2813, 4943, 16034, 3084, 62, 2920, 44750, 33411, 366, 15946, 924, 1, 796, 705, 4...
What is the number of the grid when there was a Time/Retired of engine and less than 9 laps?
SELECT SUM("Grid") FROM table_53607 WHERE "Time/Retired" = 'engine' AND "Laps" < '9'
[ 2061, 318, 262, 1271, 286, 262, 10706, 618, 612, 373, 257, 3862, 14, 9781, 1202, 286, 3113, 290, 1342, 621, 860, 24590, 30, 46506, 35683, 7203, 41339, 4943, 16034, 3084, 62, 4310, 31980, 33411, 366, 7575, 14, 9781, 1202, 1, 796, 705, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 10706, 618, 612, 373, 257, 3862, 14, 9781, 1202, 286, 3113, 290, 1342, 621, 860, 24590, 30, 46506, 35683, 7203, 41339, 4943, 16034, 3084, 62, 4310, 31980, 33411, 366, 7575, 14, 9781, 1202, 1, 796, 705, ...
Mike Crowley plays defense for league?
SELECT "College/Junior/Club Team (League)" FROM table_5923 WHERE "Position" = 'defense' AND "Player" = 'mike crowley'
[ 16073, 35332, 5341, 3761, 329, 4652, 30, 46506, 366, 38951, 14, 22396, 1504, 14, 42350, 4816, 357, 24623, 16725, 16034, 3084, 62, 3270, 1954, 33411, 366, 26545, 1, 796, 705, 19774, 6, 5357, 366, 14140, 1, 796, 705, 76, 522, 37593, 163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16073, 35332, 5341, 3761, 329, 4652, 30, 46506, 366, 38951, 14, 22396, 1504, 14, 42350, 4816, 357, 24623, 16725, 16034, 3084, 62, 3270, 1954, 33411, 366, 26545, 1, 796, 705, 19774, 6, 5357, 366, 14140, 1, 796, 705, 76, 522, 37593, 163...
find out the icu stay id of the patient colton andrade.
SELECT prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Colton Andrade"
[ 19796, 503, 262, 14158, 84, 2652, 4686, 286, 262, 5827, 951, 1122, 290, 27585, 13, 46506, 34092, 13, 291, 436, 323, 62, 312, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76, 62, 312, 796, 34092, 13, 18108, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 19796, 503, 262, 14158, 84, 2652, 4686, 286, 262, 5827, 951, 1122, 290, 27585, 13, 46506, 34092, 13, 291, 436, 323, 62, 312, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76, 62, 312, 796, 34092, 13, 18108, 76...
Who was the runner-up for the show that premiered on March 25, 2002?
SELECT "Runner(s)-Up" FROM table_9123 WHERE "Premiered" = 'march 25, 2002'
[ 8241, 373, 262, 17490, 12, 929, 329, 262, 905, 326, 44119, 319, 2805, 1679, 11, 6244, 30, 46506, 366, 49493, 7, 82, 13219, 4933, 1, 16034, 3084, 62, 24, 10163, 33411, 366, 24914, 494, 445, 1, 796, 705, 76, 998, 1679, 11, 6244, 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 ]
[ 8241, 373, 262, 17490, 12, 929, 329, 262, 905, 326, 44119, 319, 2805, 1679, 11, 6244, 30, 46506, 366, 49493, 7, 82, 13219, 4933, 1, 16034, 3084, 62, 24, 10163, 33411, 366, 24914, 494, 445, 1, 796, 705, 76, 998, 1679, 11, 6244, 6 ]
What are the memories and carriers of phones. Show bar chart.
SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier
[ 2061, 389, 262, 9846, 290, 16651, 286, 9512, 13, 5438, 2318, 8262, 13, 46506, 30252, 11, 35224, 7, 30871, 62, 259, 62, 38, 8, 16034, 3072, 44441, 11050, 30252 ]
[ 1, 1, 1, 1, 1, 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, 9846, 290, 16651, 286, 9512, 13, 5438, 2318, 8262, 13, 46506, 30252, 11, 35224, 7, 30871, 62, 259, 62, 38, 8, 16034, 3072, 44441, 11050, 30252 ]
Who wrote the episode with ip03012 as the production code?
SELECT written_by FROM table_29273182_1 WHERE production_code = "IP03012"
[ 8241, 2630, 262, 4471, 351, 20966, 3070, 30206, 355, 262, 3227, 2438, 30, 46506, 3194, 62, 1525, 16034, 3084, 62, 1959, 27367, 24294, 62, 16, 33411, 3227, 62, 8189, 796, 366, 4061, 3070, 30206, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2630, 262, 4471, 351, 20966, 3070, 30206, 355, 262, 3227, 2438, 30, 46506, 3194, 62, 1525, 16034, 3084, 62, 1959, 27367, 24294, 62, 16, 33411, 3227, 62, 8189, 796, 366, 4061, 3070, 30206, 1 ]
provide me with the total amount of impact that patient 17667 has taken since 06/18/2105.
SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17667)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.lab...
[ 15234, 485, 502, 351, 262, 2472, 2033, 286, 2928, 326, 5827, 1596, 28933, 468, 2077, 1201, 9130, 14, 1507, 14, 17, 13348, 13, 46506, 35683, 7, 259, 79, 1133, 85, 658, 62, 33967, 13, 17287, 8, 16034, 287, 79, 1133, 85, 658, 62, 339...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 502, 351, 262, 2472, 2033, 286, 2928, 326, 5827, 1596, 28933, 468, 2077, 1201, 9130, 14, 1507, 14, 17, 13348, 13, 46506, 35683, 7, 259, 79, 1133, 85, 658, 62, 33967, 13, 17287, 8, 16034, 287, 79, 1133, 85, 658, 62, 339...
how many patients whose days of hospital stay is greater than 15 and lab test name is bicarbonate?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.label = "Bicarbonate"
[ 4919, 867, 3871, 3025, 1528, 286, 4436, 2652, 318, 3744, 621, 1315, 290, 2248, 1332, 1438, 318, 275, 291, 42084, 378, 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...
[ 4919, 867, 3871, 3025, 1528, 286, 4436, 2652, 318, 3744, 621, 1315, 290, 2248, 1332, 1438, 318, 275, 291, 42084, 378, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268...
In what city or town is Stratford (limited service)?
SELECT "Town/City" FROM table_3404 WHERE "Station" = 'Stratford (Limited service)'
[ 818, 644, 1748, 393, 3240, 318, 29186, 3841, 357, 10698, 2139, 19427, 46506, 366, 38097, 14, 14941, 1, 16034, 3084, 62, 23601, 19, 33411, 366, 12367, 1, 796, 705, 1273, 10366, 3841, 357, 37214, 2139, 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 ]
[ 818, 644, 1748, 393, 3240, 318, 29186, 3841, 357, 10698, 2139, 19427, 46506, 366, 38097, 14, 14941, 1, 16034, 3084, 62, 23601, 19, 33411, 366, 12367, 1, 796, 705, 1273, 10366, 3841, 357, 37214, 2139, 33047 ]
Find how many reputation a particular user have?.
SELECT Reputation FROM Users WHERE Id = 2118383
[ 16742, 703, 867, 8507, 257, 1948, 2836, 423, 30, 13, 46506, 1432, 7094, 16034, 18987, 33411, 5121, 796, 362, 16817, 34741 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16742, 703, 867, 8507, 257, 1948, 2836, 423, 30, 13, 46506, 1432, 7094, 16034, 18987, 33411, 5121, 796, 362, 16817, 34741 ]
give me the number of patients whose admission year is less than 2177 and procedure long title is implant of pulsation balloon?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2177" AND procedures.long_title = "Implant of pulsation balloon"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 13938, 614, 318, 1342, 621, 362, 22413, 290, 8771, 890, 3670, 318, 29016, 286, 22271, 341, 21190, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13938, 614, 318, 1342, 621, 362, 22413, 290, 8771, 890, 3670, 318, 29016, 286, 22271, 341, 21190, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268...
Name the subject of shiyan
SELECT subject FROM table_name_12 WHERE pinyin = "shiyan"
[ 5376, 262, 2426, 286, 427, 72, 4121, 46506, 2426, 16034, 3084, 62, 3672, 62, 1065, 33411, 279, 3541, 259, 796, 366, 44019, 4121, 1 ]
[ 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, 2426, 286, 427, 72, 4121, 46506, 2426, 16034, 3084, 62, 3672, 62, 1065, 33411, 279, 3541, 259, 796, 366, 44019, 4121, 1 ]
Who won Funny Car in 2012?
SELECT "Funny Car" FROM table_45046 WHERE "Year" = '2012'
[ 8241, 1839, 40473, 1879, 287, 2321, 30, 46506, 366, 37, 16948, 1879, 1, 16034, 3084, 62, 17885, 3510, 33411, 366, 17688, 1, 796, 705, 6999, 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 ]
[ 8241, 1839, 40473, 1879, 287, 2321, 30, 46506, 366, 37, 16948, 1879, 1, 16034, 3084, 62, 17885, 3510, 33411, 366, 17688, 1, 796, 705, 6999, 6 ]
what was the last lab test when they visited the hospital first time given to patient 77213?
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 77213 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) ORDER BY labevents.charttime DE...
[ 10919, 373, 262, 938, 2248, 1332, 618, 484, 8672, 262, 4436, 717, 640, 1813, 284, 5827, 767, 4761, 1485, 30, 46506, 288, 62, 23912, 23814, 13, 18242, 16034, 288, 62, 23912, 23814, 33411, 288, 62, 23912, 23814, 13, 9186, 312, 3268, 357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 938, 2248, 1332, 618, 484, 8672, 262, 4436, 717, 640, 1813, 284, 5827, 767, 4761, 1485, 30, 46506, 288, 62, 23912, 23814, 13, 18242, 16034, 288, 62, 23912, 23814, 33411, 288, 62, 23912, 23814, 13, 9186, 312, 3268, 357...
give the number of patients who passed away in or before the year 2154 had femoral artery thrombosis.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "FEMORAL ARTERY THROMBOSIS" AND demographic.dod_year <= "2154.0"
[ 26535, 262, 1271, 286, 3871, 508, 3804, 1497, 287, 393, 878, 262, 614, 362, 21526, 550, 2796, 6864, 37646, 294, 398, 65, 5958, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 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...
[ 26535, 262, 1271, 286, 3871, 508, 3804, 1497, 287, 393, 878, 262, 614, 362, 21526, 550, 2796, 6864, 37646, 294, 398, 65, 5958, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, ...
is patient 31615's arterial bp [diastolic] second measured on the last intensive care unit visit greater than the first value measured on the last intensive care unit 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 = 31615) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents...
[ 271, 5827, 34131, 1314, 338, 30675, 498, 275, 79, 685, 10989, 459, 4160, 60, 1218, 8630, 319, 262, 938, 18590, 1337, 4326, 3187, 3744, 621, 262, 717, 1988, 8630, 319, 262, 938, 18590, 1337, 4326, 3187, 30, 46506, 357, 46506, 8262, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 271, 5827, 34131, 1314, 338, 30675, 498, 275, 79, 685, 10989, 459, 4160, 60, 1218, 8630, 319, 262, 938, 18590, 1337, 4326, 3187, 3744, 621, 262, 717, 1988, 8630, 319, 262, 938, 18590, 1337, 4326, 3187, 30, 46506, 357, 46506, 8262, 315...
What venue is listed as having a competition titled Friendly?
SELECT venue FROM table_name_88 WHERE competition = "friendly"
[ 2061, 14359, 318, 5610, 355, 1719, 257, 5449, 11946, 38683, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 3459, 33411, 5449, 796, 366, 13120, 1 ]
[ 1, 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, 318, 5610, 355, 1719, 257, 5449, 11946, 38683, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 3459, 33411, 5449, 796, 366, 13120, 1 ]
Which organisation hired the most number of research staff? List the organisation id, type and detail.
SELECT T1.organisation_id, T1.organisation_type, T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1
[ 13828, 12684, 9657, 262, 749, 1271, 286, 2267, 3085, 30, 7343, 262, 12684, 4686, 11, 2099, 290, 3703, 13, 46506, 309, 16, 13, 9971, 5612, 62, 312, 11, 309, 16, 13, 9971, 5612, 62, 4906, 11, 309, 16, 13, 9971, 5612, 62, 36604, 1603...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12684, 9657, 262, 749, 1271, 286, 2267, 3085, 30, 7343, 262, 12684, 4686, 11, 2099, 290, 3703, 13, 46506, 309, 16, 13, 9971, 5612, 62, 312, 11, 309, 16, 13, 9971, 5612, 62, 4906, 11, 309, 16, 13, 9971, 5612, 62, 36604, 1603...
until 2103, what are the top four most frequent lab tests ordered for patients within the same hospital visit after the diagnosis of pericardial effusion.
SELECT t3.labname FROM (SELECT t2.labname, 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 = 'pericardial effus...
[ 28446, 362, 15197, 11, 644, 389, 262, 1353, 1440, 749, 10792, 2248, 5254, 6149, 329, 3871, 1626, 262, 976, 4436, 3187, 706, 262, 13669, 286, 583, 291, 446, 498, 914, 4241, 13, 46506, 256, 18, 13, 23912, 3672, 16034, 357, 46506, 256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 28446, 362, 15197, 11, 644, 389, 262, 1353, 1440, 749, 10792, 2248, 5254, 6149, 329, 3871, 1626, 262, 976, 4436, 3187, 706, 262, 13669, 286, 583, 291, 446, 498, 914, 4241, 13, 46506, 256, 18, 13, 23912, 3672, 16034, 357, 46506, 256, ...
For the COMM 311 course , what are the morning times ?
SELECT DISTINCT course_offering.end_time, course_offering.start_time, semester.semester, semester.year FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'COMM' AND cou...
[ 1890, 262, 22240, 35592, 1781, 837, 644, 389, 262, 3329, 1661, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 9688, 62, 2435, 11, 24878, 13, 325, 6880, 353, 11, 24878, 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...
[ 1890, 262, 22240, 35592, 1781, 837, 644, 389, 262, 3329, 1661, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 9688, 62, 2435, 11, 24878, 13, 325, 6880, 353, 11, 24878, 13, ...
Can I take the 314 course next term ?
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 314 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
[ 6090, 314, 1011, 262, 34085, 1781, 1306, 3381, 5633, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 13, 17319, 62, 312, 796, 1781, 62, 2364, 1586, 13, 17319, 62, 312, 5357, 1781,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 6090, 314, 1011, 262, 34085, 1781, 1306, 3381, 5633, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 13, 17319, 62, 312, 796, 1781, 62, 2364, 1586, 13, 17319, 62, 312, 5357, 1781,...
Return a line chart on what is the average number of attendance at home games for each year?, show from low to high by the year.
SELECT year, AVG(attendance) FROM home_game GROUP BY year ORDER BY year
[ 13615, 257, 1627, 8262, 319, 644, 318, 262, 2811, 1271, 286, 14858, 379, 1363, 1830, 329, 1123, 614, 21747, 905, 422, 1877, 284, 1029, 416, 262, 614, 13, 46506, 614, 11, 35224, 7, 1078, 437, 590, 8, 16034, 1363, 62, 6057, 44441, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13615, 257, 1627, 8262, 319, 644, 318, 262, 2811, 1271, 286, 14858, 379, 1363, 1830, 329, 1123, 614, 21747, 905, 422, 1877, 284, 1029, 416, 262, 614, 13, 46506, 614, 11, 35224, 7, 1078, 437, 590, 8, 16034, 1363, 62, 6057, 44441, 110...
What are the nicknames of schools whose division is not 1?
SELECT nickname FROM school_details WHERE division <> "Division 1"
[ 2061, 389, 262, 14428, 14933, 286, 4266, 3025, 7297, 318, 407, 352, 30, 46506, 21814, 16034, 1524, 62, 36604, 33411, 7297, 1279, 29, 366, 24095, 1166, 352, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 14428, 14933, 286, 4266, 3025, 7297, 318, 407, 352, 30, 46506, 21814, 16034, 1524, 62, 36604, 33411, 7297, 1279, 29, 366, 24095, 1166, 352, 1 ]
when was the episode premiere if the production code is 11.19?
SELECT COUNT(original_air_date) FROM table_2226817_12 WHERE production_code = "11.19"
[ 12518, 373, 262, 4471, 19245, 611, 262, 3227, 2438, 318, 1367, 13, 1129, 30, 46506, 327, 28270, 7, 14986, 62, 958, 62, 4475, 8, 16034, 3084, 62, 1828, 25022, 1558, 62, 1065, 33411, 3227, 62, 8189, 796, 366, 1157, 13, 1129, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 373, 262, 4471, 19245, 611, 262, 3227, 2438, 318, 1367, 13, 1129, 30, 46506, 327, 28270, 7, 14986, 62, 958, 62, 4475, 8, 16034, 3084, 62, 1828, 25022, 1558, 62, 1065, 33411, 3227, 62, 8189, 796, 366, 1157, 13, 1129, 1 ]
Against the Houston Oilers after week 14, what was the result of the game?
SELECT result FROM table_name_64 WHERE week > 14 AND opponent = "houston oilers"
[ 39276, 262, 6995, 35004, 706, 1285, 1478, 11, 644, 373, 262, 1255, 286, 262, 983, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 2414, 33411, 1285, 1875, 1478, 5357, 6125, 796, 366, 71, 6526, 3056, 364, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 39276, 262, 6995, 35004, 706, 1285, 1478, 11, 644, 373, 262, 1255, 286, 262, 983, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 2414, 33411, 1285, 1875, 1478, 5357, 6125, 796, 366, 71, 6526, 3056, 364, 1 ]
Name the total number of year named for athena , greek goddess of wisdom .
SELECT COUNT("Year named") FROM table_21091 WHERE "Name origin" = 'Athena , Greek goddess of wisdom .'
[ 5376, 262, 2472, 1271, 286, 614, 3706, 329, 379, 831, 64, 837, 308, 10316, 22215, 286, 11501, 764, 46506, 327, 28270, 7203, 17688, 3706, 4943, 16034, 3084, 62, 21536, 6420, 33411, 366, 5376, 8159, 1, 796, 705, 2953, 831, 64, 837, 8312...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 614, 3706, 329, 379, 831, 64, 837, 308, 10316, 22215, 286, 11501, 764, 46506, 327, 28270, 7203, 17688, 3706, 4943, 16034, 3084, 62, 21536, 6420, 33411, 366, 5376, 8159, 1, 796, 705, 2953, 831, 64, 837, 8312...
Which college has fewer than 2 rounds?
SELECT college FROM table_name_7 WHERE round < 2
[ 13828, 4152, 468, 7380, 621, 362, 9196, 30, 46506, 4152, 16034, 3084, 62, 3672, 62, 22, 33411, 2835, 1279, 362 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 4152, 468, 7380, 621, 362, 9196, 30, 46506, 4152, 16034, 3084, 62, 3672, 62, 22, 33411, 2835, 1279, 362 ]
How many in the majority when Dan Sullivan won?
SELECT COUNT(majority) FROM table_name_9 WHERE winner = "dan sullivan"
[ 2437, 867, 287, 262, 3741, 618, 6035, 18501, 1839, 30, 46506, 327, 28270, 7, 35839, 8, 16034, 3084, 62, 3672, 62, 24, 33411, 8464, 796, 366, 25604, 424, 297, 13809, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 287, 262, 3741, 618, 6035, 18501, 1839, 30, 46506, 327, 28270, 7, 35839, 8, 16034, 3084, 62, 3672, 62, 24, 33411, 8464, 796, 366, 25604, 424, 297, 13809, 1 ]
What's the score of the QF round?
SELECT score FROM table_13328239_4 WHERE round = "QF"
[ 2061, 338, 262, 4776, 286, 262, 1195, 37, 2835, 30, 46506, 4776, 16034, 3084, 62, 16945, 2078, 23516, 62, 19, 33411, 2835, 796, 366, 48, 37, 1 ]
[ 1, 1, 1, 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, 4776, 286, 262, 1195, 37, 2835, 30, 46506, 4776, 16034, 3084, 62, 16945, 2078, 23516, 62, 19, 33411, 2835, 796, 366, 48, 37, 1 ]
How many wins for the year that is later than 1987 and has points less than 188?
SELECT wins FROM table_name_47 WHERE year > 1987 AND points < 188
[ 2437, 867, 7864, 329, 262, 614, 326, 318, 1568, 621, 12923, 290, 468, 2173, 1342, 621, 27778, 30, 46506, 7864, 16034, 3084, 62, 3672, 62, 2857, 33411, 614, 1875, 12923, 5357, 2173, 1279, 27778 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7864, 329, 262, 614, 326, 318, 1568, 621, 12923, 290, 468, 2173, 1342, 621, 27778, 30, 46506, 7864, 16034, 3084, 62, 3672, 62, 2857, 33411, 614, 1875, 12923, 5357, 2173, 1279, 27778 ]
Which date has an Away team of richmond?
SELECT date FROM table_name_21 WHERE away_team = "richmond"
[ 13828, 3128, 468, 281, 21986, 1074, 286, 5527, 6327, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2481, 33411, 1497, 62, 15097, 796, 366, 7527, 6327, 1 ]
[ 1, 1, 1, 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, 281, 21986, 1074, 286, 5527, 6327, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2481, 33411, 1497, 62, 15097, 796, 366, 7527, 6327, 1 ]
how many wins did the red raiders have ?
SELECT COUNT(*) FROM table_204_197 WHERE "result" = 'w'
[ 4919, 867, 7864, 750, 262, 2266, 9513, 364, 423, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 24991, 33411, 366, 20274, 1, 796, 705, 86, 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 ]
[ 4919, 867, 7864, 750, 262, 2266, 9513, 364, 423, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 24991, 33411, 366, 20274, 1, 796, 705, 86, 6 ]
Who was the champion in the game played at the St. Andrews Links with Dick Chapman as the runner-up?
SELECT "Champion" FROM table_42941 WHERE "Runner-up" = 'dick chapman' AND "Venue" = 'st. andrews links'
[ 8241, 373, 262, 8783, 287, 262, 983, 2826, 379, 262, 520, 13, 26414, 21691, 351, 11740, 29045, 355, 262, 17490, 12, 929, 30, 46506, 366, 1925, 6734, 1, 16034, 3084, 62, 11785, 3901, 33411, 366, 49493, 12, 929, 1, 796, 705, 67, 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, 1, 1, 1, 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, 8783, 287, 262, 983, 2826, 379, 262, 520, 13, 26414, 21691, 351, 11740, 29045, 355, 262, 17490, 12, 929, 30, 46506, 366, 1925, 6734, 1, 16034, 3084, 62, 11785, 3901, 33411, 366, 49493, 12, 929, 1, 796, 705, 67, 624, ...
count the number of patients with urgent hospital admission who had diagnosis icd9 code 5939.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.icd9_code = "5939"
[ 9127, 262, 1271, 286, 3871, 351, 18039, 4436, 13938, 508, 550, 13669, 14158, 67, 24, 2438, 7863, 2670, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9127, 262, 1271, 286, 3871, 351, 18039, 4436, 13938, 508, 550, 13669, 14158, 67, 24, 2438, 7863, 2670, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, ...
how much does a ldl lab test cost?
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'lab' AND cost.eventid IN (SELECT lab.labid FROM lab WHERE lab.labname = 'ldl')
[ 4919, 881, 857, 257, 300, 25404, 2248, 1332, 1575, 30, 46506, 360, 8808, 1268, 4177, 1575, 13, 15805, 16034, 1575, 33411, 1575, 13, 15596, 4906, 796, 705, 23912, 6, 5357, 1575, 13, 15596, 312, 3268, 357, 46506, 2248, 13, 23912, 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 ]
[ 4919, 881, 857, 257, 300, 25404, 2248, 1332, 1575, 30, 46506, 360, 8808, 1268, 4177, 1575, 13, 15805, 16034, 1575, 33411, 1575, 13, 15596, 4906, 796, 705, 23912, 6, 5357, 1575, 13, 15596, 312, 3268, 357, 46506, 2248, 13, 23912, 312, 1...
What was the score of the home game at Tampa Bay?
SELECT score FROM table_name_56 WHERE home = "tampa bay"
[ 2061, 373, 262, 4776, 286, 262, 1363, 983, 379, 15528, 4696, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 3980, 33411, 1363, 796, 366, 83, 13299, 15489, 1 ]
[ 1, 1, 1, 1, 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, 1363, 983, 379, 15528, 4696, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 3980, 33411, 1363, 796, 366, 83, 13299, 15489, 1 ]
Display a pie chart for how many songs were released for each format?
SELECT formats, COUNT(*) FROM files GROUP BY formats
[ 23114, 257, 2508, 8262, 329, 703, 867, 7259, 547, 2716, 329, 1123, 5794, 30, 46506, 17519, 11, 327, 28270, 7, 28104, 16034, 3696, 44441, 11050, 17519 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 23114, 257, 2508, 8262, 329, 703, 867, 7259, 547, 2716, 329, 1123, 5794, 30, 46506, 17519, 11, 327, 28270, 7, 28104, 16034, 3696, 44441, 11050, 17519 ]
Who held the pole position in misano world circuit?
SELECT pole_position FROM table_23315271_2 WHERE circuit = "Misano World circuit"
[ 8241, 2714, 262, 16825, 2292, 287, 2984, 5733, 995, 10349, 30, 46506, 16825, 62, 9150, 16034, 3084, 62, 25429, 1314, 28977, 62, 17, 33411, 10349, 796, 366, 31281, 5733, 2159, 10349, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 2714, 262, 16825, 2292, 287, 2984, 5733, 995, 10349, 30, 46506, 16825, 62, 9150, 16034, 3084, 62, 25429, 1314, 28977, 62, 17, 33411, 10349, 796, 366, 31281, 5733, 2159, 10349, 1 ]
Return a histogram on how many actors have appeared in each musical?, and order y-axis in desc order please.
SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID ORDER BY COUNT(*) DESC
[ 13615, 257, 1554, 21857, 319, 703, 867, 10544, 423, 4120, 287, 1123, 10530, 21747, 290, 1502, 331, 12, 22704, 287, 1715, 1502, 3387, 13, 46506, 309, 17, 13, 5376, 11, 327, 28270, 7, 28104, 16034, 8674, 7054, 309, 16, 32357, 1268, 1053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13615, 257, 1554, 21857, 319, 703, 867, 10544, 423, 4120, 287, 1123, 10530, 21747, 290, 1502, 331, 12, 22704, 287, 1715, 1502, 3387, 13, 46506, 309, 17, 13, 5376, 11, 327, 28270, 7, 28104, 16034, 8674, 7054, 309, 16, 32357, 1268, 1053...
What red list is in the artiodactyla order and the cervidae family with a Species Authority of odocoileus virginianus zimmermann, 1780?
SELECT "Red List" FROM table_14749 WHERE "Order" = 'artiodactyla' AND "Family" = 'cervidae' AND "Species Authority" = 'odocoileus virginianus zimmermann, 1780'
[ 2061, 2266, 1351, 318, 287, 262, 1242, 2101, 529, 2645, 64, 1502, 290, 262, 28987, 31718, 1641, 351, 257, 28540, 11416, 286, 267, 15390, 78, 576, 385, 21772, 666, 385, 1976, 10957, 9038, 11, 1596, 1795, 30, 46506, 366, 7738, 7343, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2266, 1351, 318, 287, 262, 1242, 2101, 529, 2645, 64, 1502, 290, 262, 28987, 31718, 1641, 351, 257, 28540, 11416, 286, 267, 15390, 78, 576, 385, 21772, 666, 385, 1976, 10957, 9038, 11, 1596, 1795, 30, 46506, 366, 7738, 7343, 1, ...
this year, count the number of hospital visits of patient 025-13899.
SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '025-13899' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
[ 5661, 614, 11, 954, 262, 1271, 286, 4436, 11864, 286, 5827, 657, 1495, 12, 20107, 2079, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 26029, 13948, 10057, 31712, 312, 8, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 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...
[ 5661, 614, 11, 954, 262, 1271, 286, 4436, 11864, 286, 5827, 657, 1495, 12, 20107, 2079, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 26029, 13948, 10057, 31712, 312, 8, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, ...
A bar chart showing the average price of each cinema.
SELECT Name, AVG(Price) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Name
[ 32, 2318, 8262, 4478, 262, 2811, 2756, 286, 1123, 22041, 13, 46506, 6530, 11, 35224, 7, 18124, 8, 16034, 7269, 7054, 309, 16, 32357, 1268, 2646, 7054, 309, 17, 6177, 309, 16, 13, 39750, 62, 2389, 796, 309, 17, 13, 39750, 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...
[ 32, 2318, 8262, 4478, 262, 2811, 2756, 286, 1123, 22041, 13, 46506, 6530, 11, 35224, 7, 18124, 8, 16034, 7269, 7054, 309, 16, 32357, 1268, 2646, 7054, 309, 17, 6177, 309, 16, 13, 39750, 62, 2389, 796, 309, 17, 13, 39750, 62, 2389, ...
What is the lowest 2004 population when there were 5158 households?
SELECT MIN(population__2004_) FROM table_name_8 WHERE households = 5158
[ 2061, 318, 262, 9016, 5472, 3265, 618, 612, 547, 642, 21273, 12503, 30, 46506, 20625, 7, 39748, 834, 15724, 62, 8, 16034, 3084, 62, 3672, 62, 23, 33411, 12503, 796, 642, 21273 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 5472, 3265, 618, 612, 547, 642, 21273, 12503, 30, 46506, 20625, 7, 39748, 834, 15724, 62, 8, 16034, 3084, 62, 3672, 62, 23, 33411, 12503, 796, 642, 21273 ]
What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?
SELECT T2.employee_name, T3.employee_name FROM documents_to_be_destroyed AS T1 JOIN employees AS T2 ON T1.destruction_authorised_by_employee_id = T2.employee_id JOIN employees AS T3 ON T1.destroyed_by_employee_id = T3.employee_id
[ 2061, 389, 262, 3891, 286, 262, 4409, 508, 39019, 262, 8166, 290, 262, 4409, 508, 6572, 262, 11188, 4963, 30, 46506, 309, 17, 13, 7033, 1453, 62, 3672, 11, 309, 18, 13, 7033, 1453, 62, 3672, 16034, 4963, 62, 1462, 62, 1350, 62, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 3891, 286, 262, 4409, 508, 39019, 262, 8166, 290, 262, 4409, 508, 6572, 262, 11188, 4963, 30, 46506, 309, 17, 13, 7033, 1453, 62, 3672, 11, 309, 18, 13, 7033, 1453, 62, 3672, 16034, 4963, 62, 1462, 62, 1350, 62, 41...
how many points scored by sportivo luque o
SELECT COUNT(points) FROM table_16788123_5 WHERE team = "Sportivo Luqueño"
[ 4919, 867, 2173, 7781, 416, 6332, 23593, 300, 84, 4188, 267, 46506, 327, 28270, 7, 13033, 8, 16034, 3084, 62, 21940, 3459, 10163, 62, 20, 33411, 1074, 796, 366, 42576, 23593, 6026, 4188, 31329, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2173, 7781, 416, 6332, 23593, 300, 84, 4188, 267, 46506, 327, 28270, 7, 13033, 8, 16034, 3084, 62, 21940, 3459, 10163, 62, 20, 33411, 1074, 796, 366, 42576, 23593, 6026, 4188, 31329, 1 ]
Which Points have a Score of 4 1, and a Game smaller than 39?
SELECT SUM(points) FROM table_name_91 WHERE score = "4–1" AND game < 39
[ 13828, 11045, 423, 257, 15178, 286, 604, 352, 11, 290, 257, 3776, 4833, 621, 5014, 30, 46506, 35683, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 4776, 796, 366, 19, 1906, 16, 1, 5357, 983, 1279, 5014 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11045, 423, 257, 15178, 286, 604, 352, 11, 290, 257, 3776, 4833, 621, 5014, 30, 46506, 35683, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 4776, 796, 366, 19, 1906, 16, 1, 5357, 983, 1279, 5014 ]
During what week was the game attended by 20114 people?
SELECT MAX("Week") FROM table_26270 WHERE "Attendance" = '20114'
[ 7191, 644, 1285, 373, 262, 983, 9141, 416, 580, 1415, 661, 30, 46506, 25882, 7203, 20916, 4943, 16034, 3084, 62, 2075, 20233, 33411, 366, 8086, 437, 590, 1, 796, 705, 1264, 1415, 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 ]
[ 7191, 644, 1285, 373, 262, 983, 9141, 416, 580, 1415, 661, 30, 46506, 25882, 7203, 20916, 4943, 16034, 3084, 62, 2075, 20233, 33411, 366, 8086, 437, 590, 1, 796, 705, 1264, 1415, 6 ]
Which Points have a Drawn larger than 1?
SELECT AVG("Points") FROM table_36136 WHERE "Drawn" > '1'
[ 13828, 11045, 423, 257, 50061, 4025, 621, 352, 30, 46506, 35224, 7203, 40710, 4943, 16034, 3084, 62, 2623, 20809, 33411, 366, 35, 5791, 1, 1875, 705, 16, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 11045, 423, 257, 50061, 4025, 621, 352, 30, 46506, 35224, 7203, 40710, 4943, 16034, 3084, 62, 2623, 20809, 33411, 366, 35, 5791, 1, 1875, 705, 16, 6 ]
Which player has rank 1?
SELECT player FROM table_name_24 WHERE rank = 1
[ 13828, 2137, 468, 4279, 352, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 1731, 33411, 4279, 796, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 2137, 468, 4279, 352, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 1731, 33411, 4279, 796, 352 ]
give me flights from ATLANTA to BALTIMORE
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 = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIM...
[ 26535, 502, 13956, 422, 5161, 25697, 5603, 284, 347, 31429, 3955, 1581, 33635, 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, 3160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13956, 422, 5161, 25697, 5603, 284, 347, 31429, 3955, 1581, 33635, 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, 3160...
What residence has representative Quincy Murphy?
SELECT "Residence" FROM table_47351 WHERE "Representative" = 'quincy murphy'
[ 2061, 11566, 468, 8852, 46884, 14424, 30, 46506, 366, 4965, 1704, 1, 16034, 3084, 62, 2857, 35273, 33411, 366, 40171, 876, 1, 796, 705, 21915, 948, 4636, 6883, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 11566, 468, 8852, 46884, 14424, 30, 46506, 366, 4965, 1704, 1, 16034, 3084, 62, 2857, 35273, 33411, 366, 40171, 876, 1, 796, 705, 21915, 948, 4636, 6883, 6 ]
What are the first names and ages of all students who are playing both Football and Lacrosse?
SELECT fname, age FROM student WHERE stuid IN (SELECT stuid FROM sportsinfo WHERE sportname = "Football" INTERSECT SELECT stuid FROM sportsinfo WHERE sportname = "Lacrosse")
[ 2061, 389, 262, 717, 3891, 290, 9337, 286, 477, 2444, 508, 389, 2712, 1111, 9957, 290, 23115, 39314, 30, 46506, 277, 3672, 11, 2479, 16034, 3710, 33411, 336, 27112, 3268, 357, 46506, 336, 27112, 16034, 5701, 10951, 33411, 6332, 3672, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 717, 3891, 290, 9337, 286, 477, 2444, 508, 389, 2712, 1111, 9957, 290, 23115, 39314, 30, 46506, 277, 3672, 11, 2479, 16034, 3710, 33411, 336, 27112, 3268, 357, 46506, 336, 27112, 16034, 5701, 10951, 33411, 6332, 3672, 79...
How many venues had a race called the Australia Stakes?
SELECT COUNT("Venue") FROM table_19756 WHERE "Race" = 'Australia Stakes'
[ 2437, 867, 22276, 550, 257, 3234, 1444, 262, 4505, 520, 1124, 30, 46506, 327, 28270, 7203, 37522, 518, 4943, 16034, 3084, 62, 1129, 38219, 33411, 366, 35157, 1, 796, 705, 27429, 520, 1124, 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 ]
[ 2437, 867, 22276, 550, 257, 3234, 1444, 262, 4505, 520, 1124, 30, 46506, 327, 28270, 7203, 37522, 518, 4943, 16034, 3084, 62, 1129, 38219, 33411, 366, 35157, 1, 796, 705, 27429, 520, 1124, 6 ]
had a sodium chloride, spironolactone, or labetalol been prescribed for patient 83225 since 5 years ago?
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83225) AND prescriptions.drug IN ('sodium chloride', 'spironolactone', 'labetalol') AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-5 year')
[ 18108, 257, 21072, 44921, 11, 599, 1934, 349, 529, 505, 11, 393, 2248, 316, 282, 349, 587, 14798, 329, 5827, 807, 2624, 1495, 1201, 642, 812, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 34092, 33411, 34092, 13, 18108, 76,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 18108, 257, 21072, 44921, 11, 599, 1934, 349, 529, 505, 11, 393, 2248, 316, 282, 349, 587, 14798, 329, 5827, 807, 2624, 1495, 1201, 642, 812, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 34092, 33411, 34092, 13, 18108, 76,...
How many patients' prescriptions are made by physician John Dorian?
SELECT COUNT(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = "John Dorian"
[ 2437, 867, 3871, 6, 34092, 389, 925, 416, 14325, 1757, 12528, 666, 30, 46506, 327, 28270, 7, 51, 16, 13, 5432, 45, 8, 16034, 5827, 7054, 309, 16, 32357, 1268, 10859, 22090, 7054, 309, 17, 6177, 309, 16, 13, 5432, 45, 796, 309, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 3871, 6, 34092, 389, 925, 416, 14325, 1757, 12528, 666, 30, 46506, 327, 28270, 7, 51, 16, 13, 5432, 45, 8, 16034, 5827, 7054, 309, 16, 32357, 1268, 10859, 22090, 7054, 309, 17, 6177, 309, 16, 13, 5432, 45, 796, 309, 17,...
What date has ny islanders as the visitor?
SELECT date FROM table_name_66 WHERE visitor = "ny islanders"
[ 2061, 3128, 468, 299, 88, 7022, 364, 355, 262, 21493, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2791, 33411, 21493, 796, 366, 3281, 7022, 364, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 3128, 468, 299, 88, 7022, 364, 355, 262, 21493, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2791, 33411, 21493, 796, 366, 3281, 7022, 364, 1 ]
What's the category in 1998 with the role/episode of David Duchovny?
SELECT "Category" FROM table_64776 WHERE "Year" = '1998' AND "Role/Episode" = 'david duchovny'
[ 2061, 338, 262, 6536, 287, 7795, 351, 262, 2597, 14, 38668, 286, 3271, 360, 794, 709, 3281, 30, 46506, 366, 27313, 1, 16034, 3084, 62, 2414, 39509, 33411, 366, 17688, 1, 796, 705, 21113, 6, 5357, 366, 47445, 14, 23758, 1, 796, 705, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6536, 287, 7795, 351, 262, 2597, 14, 38668, 286, 3271, 360, 794, 709, 3281, 30, 46506, 366, 27313, 1, 16034, 3084, 62, 2414, 39509, 33411, 366, 17688, 1, 796, 705, 21113, 6, 5357, 366, 47445, 14, 23758, 1, 796, 705, ...
List the name of all products along with the number of complaints that they have received with a bar chart, and show from high to low by the Y-axis.
SELECT product_name, COUNT(*) FROM Products AS t1 JOIN Complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name ORDER BY COUNT(*) DESC
[ 8053, 262, 1438, 286, 477, 3186, 1863, 351, 262, 1271, 286, 9687, 326, 484, 423, 2722, 351, 257, 2318, 8262, 11, 290, 905, 422, 1029, 284, 1877, 416, 262, 575, 12, 22704, 13, 46506, 1720, 62, 3672, 11, 327, 28270, 7, 28104, 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...
[ 8053, 262, 1438, 286, 477, 3186, 1863, 351, 262, 1271, 286, 9687, 326, 484, 423, 2722, 351, 257, 2318, 8262, 11, 290, 905, 422, 1029, 284, 1877, 416, 262, 575, 12, 22704, 13, 46506, 1720, 62, 3672, 11, 327, 28270, 7, 28104, 16034, ...
What is HDTV, when Television Service is MTV Rocks?
SELECT hdtv FROM table_name_21 WHERE television_service = "mtv rocks"
[ 2061, 318, 5572, 6849, 11, 618, 21516, 4809, 318, 31214, 34243, 30, 46506, 289, 67, 14981, 16034, 3084, 62, 3672, 62, 2481, 33411, 5581, 62, 15271, 796, 366, 76, 14981, 12586, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 5572, 6849, 11, 618, 21516, 4809, 318, 31214, 34243, 30, 46506, 289, 67, 14981, 16034, 3084, 62, 3672, 62, 2481, 33411, 5581, 62, 15271, 796, 366, 76, 14981, 12586, 1 ]
was there any organism found in the last other microbiological test of patient 031-3355 on the current hospital visit?
SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) AND microlab.culturesite...
[ 9776, 612, 597, 26433, 1043, 287, 262, 938, 584, 24559, 2770, 1332, 286, 5827, 657, 3132, 12, 2091, 2816, 319, 262, 1459, 4436, 3187, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9776, 612, 597, 26433, 1043, 287, 262, 938, 584, 24559, 2770, 1332, 286, 5827, 657, 3132, 12, 2091, 2816, 319, 262, 1459, 4436, 3187, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, ...
Where the total trade is 14,954.86, what are the exports?
SELECT "Exports" FROM table_28337 WHERE "Total Trade" = '14,954.86'
[ 8496, 262, 2472, 3292, 318, 1478, 11, 48372, 13, 4521, 11, 644, 389, 262, 15319, 30, 46506, 366, 3109, 3742, 1, 16034, 3084, 62, 2078, 31496, 33411, 366, 14957, 9601, 1, 796, 705, 1415, 11, 48372, 13, 4521, 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 ]
[ 8496, 262, 2472, 3292, 318, 1478, 11, 48372, 13, 4521, 11, 644, 389, 262, 15319, 30, 46506, 366, 3109, 3742, 1, 16034, 3084, 62, 2078, 31496, 33411, 366, 14957, 9601, 1, 796, 705, 1415, 11, 48372, 13, 4521, 6 ]
How many pages were in the book by Stefano D'Arrigo?
SELECT page_count FROM table_name_39 WHERE author = "stefano d'arrigo"
[ 2437, 867, 5468, 547, 287, 262, 1492, 416, 22350, 5733, 360, 6, 3163, 4359, 78, 30, 46506, 2443, 62, 9127, 16034, 3084, 62, 3672, 62, 2670, 33411, 1772, 796, 366, 301, 891, 5733, 288, 6, 3258, 14031, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5468, 547, 287, 262, 1492, 416, 22350, 5733, 360, 6, 3163, 4359, 78, 30, 46506, 2443, 62, 9127, 16034, 3084, 62, 3672, 62, 2670, 33411, 1772, 796, 366, 301, 891, 5733, 288, 6, 3258, 14031, 1 ]
Posts by a deleted user. A query to bring up questions/answers of deleted users
SELECT CreationDate, Id AS "post_link" FROM Posts WHERE OwnerUserId = '##Name:int##' ORDER BY Score DESC
[ 21496, 416, 257, 13140, 2836, 13, 317, 12405, 284, 2222, 510, 2683, 14, 504, 86, 364, 286, 13140, 2985, 46506, 21582, 10430, 11, 5121, 7054, 366, 7353, 62, 8726, 1, 16034, 12043, 33411, 23853, 12982, 7390, 796, 705, 2235, 5376, 25, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 21496, 416, 257, 13140, 2836, 13, 317, 12405, 284, 2222, 510, 2683, 14, 504, 86, 364, 286, 13140, 2985, 46506, 21582, 10430, 11, 5121, 7054, 366, 7353, 62, 8726, 1, 16034, 12043, 33411, 23853, 12982, 7390, 796, 705, 2235, 5376, 25, 60...
What are all values for male population in 2001 when sex ratio in 1991 is 896?
SELECT "Male Population 2001" FROM table_23095 WHERE "Sex Ratio \u2021 1991" = '896'
[ 2061, 389, 477, 3815, 329, 4257, 3265, 287, 5878, 618, 1714, 8064, 287, 10249, 318, 807, 4846, 30, 46506, 366, 25486, 20133, 5878, 1, 16034, 3084, 62, 19214, 3865, 33411, 366, 23398, 33956, 3467, 84, 1238, 2481, 10249, 1, 796, 705, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 477, 3815, 329, 4257, 3265, 287, 5878, 618, 1714, 8064, 287, 10249, 318, 807, 4846, 30, 46506, 366, 25486, 20133, 5878, 1, 16034, 3084, 62, 19214, 3865, 33411, 366, 23398, 33956, 3467, 84, 1238, 2481, 10249, 1, 796, 705, 48...
Give me a bar chart for the total number of each product type code
SELECT Product_Type_Code, COUNT(*) FROM Products GROUP BY Product_Type_Code
[ 23318, 502, 257, 2318, 8262, 329, 262, 2472, 1271, 286, 1123, 1720, 2099, 2438, 46506, 8721, 62, 6030, 62, 10669, 11, 327, 28270, 7, 28104, 16034, 18675, 44441, 11050, 8721, 62, 6030, 62, 10669 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1720, 2099, 2438, 46506, 8721, 62, 6030, 62, 10669, 11, 327, 28270, 7, 28104, 16034, 18675, 44441, 11050, 8721, 62, 6030, 62, 10669 ]
What is the highest Rank, when Publication is Dagsavisen, and when Year is less than 2005?
SELECT MAX("Rank") FROM table_7603 WHERE "Publication" = 'dagsavisen' AND "Year" < '2005'
[ 2061, 318, 262, 4511, 10916, 11, 618, 45065, 318, 360, 3775, 615, 13254, 11, 290, 618, 6280, 318, 1342, 621, 5075, 30, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 22, 35642, 33411, 366, 15202, 341, 1, 796, 705, 67, 3775, 615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4511, 10916, 11, 618, 45065, 318, 360, 3775, 615, 13254, 11, 290, 618, 6280, 318, 1342, 621, 5075, 30, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 22, 35642, 33411, 366, 15202, 341, 1, 796, 705, 67, 3775, 615, ...
How many faculty lines are there in the university that conferred the least number of degrees in year 2001?
SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.Id = t2.campus JOIN degrees AS T3 ON T1.Id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1
[ 2437, 867, 12829, 3951, 389, 612, 287, 262, 6403, 326, 39376, 262, 1551, 1271, 286, 7370, 287, 614, 5878, 30, 46506, 309, 17, 13, 38942, 10672, 16034, 23003, 7054, 309, 16, 32357, 1268, 12829, 7054, 309, 17, 6177, 309, 16, 13, 7390, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12829, 3951, 389, 612, 287, 262, 6403, 326, 39376, 262, 1551, 1271, 286, 7370, 287, 614, 5878, 30, 46506, 309, 17, 13, 38942, 10672, 16034, 23003, 7054, 309, 16, 32357, 1268, 12829, 7054, 309, 17, 6177, 309, 16, 13, 7390, ...
what is the number of patients whose gender is m and discharge location is rehab/distinct part hosp?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.discharge_location = "REHAB/DISTINCT PART HOSP"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 5279, 318, 285, 290, 17655, 4067, 318, 14321, 14, 17080, 4612, 636, 10496, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 8388, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 5279, 318, 285, 290, 17655, 4067, 318, 14321, 14, 17080, 4612, 636, 10496, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 8388, 796...
Games started of 4 is in what hometown?
SELECT hometown FROM table_name_79 WHERE games_started = "4"
[ 24474, 2067, 286, 604, 318, 287, 644, 20994, 30, 46506, 20994, 16034, 3084, 62, 3672, 62, 3720, 33411, 1830, 62, 46981, 796, 366, 19, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24474, 2067, 286, 604, 318, 287, 644, 20994, 30, 46506, 20994, 16034, 3084, 62, 3672, 62, 3720, 33411, 1830, 62, 46981, 796, 366, 19, 1 ]
count the number of patients whose admission year is less than 2178 and diagnoses short title is athscl extrm ntv art nos?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2178" AND diagnoses.short_title = "Athscl extrm ntv art NOS"
[ 9127, 262, 1271, 286, 3871, 3025, 13938, 614, 318, 1342, 621, 362, 23188, 290, 40567, 1790, 3670, 318, 5782, 38528, 22820, 76, 299, 14981, 1242, 43630, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 1603...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9127, 262, 1271, 286, 3871, 3025, 13938, 614, 318, 1342, 621, 362, 23188, 290, 40567, 1790, 3670, 318, 5782, 38528, 22820, 76, 299, 14981, 1242, 43630, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 1603...
Tell me the lowest edition for winner of arsenal and third of celtic
SELECT MIN(edition) FROM table_name_13 WHERE winner = "arsenal" AND third = "celtic"
[ 24446, 502, 262, 9016, 8313, 329, 8464, 286, 24375, 290, 2368, 286, 269, 2120, 291, 46506, 20625, 7, 28736, 8, 16034, 3084, 62, 3672, 62, 1485, 33411, 8464, 796, 366, 945, 268, 282, 1, 5357, 2368, 796, 366, 344, 2528, 291, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24446, 502, 262, 9016, 8313, 329, 8464, 286, 24375, 290, 2368, 286, 269, 2120, 291, 46506, 20625, 7, 28736, 8, 16034, 3084, 62, 3672, 62, 1485, 33411, 8464, 796, 366, 945, 268, 282, 1, 5357, 2368, 796, 366, 344, 2528, 291, 1 ]
Which country is Lemd the ICAO of?
SELECT "Country" FROM table_41619 WHERE "ICAO" = 'lemd'
[ 13828, 1499, 318, 20607, 67, 262, 314, 8141, 46, 286, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 35218, 1129, 33411, 366, 25241, 46, 1, 796, 705, 293, 9132, 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, 1499, 318, 20607, 67, 262, 314, 8141, 46, 286, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 35218, 1129, 33411, 366, 25241, 46, 1, 796, 705, 293, 9132, 6 ]
OAKLAND to PHILADELPHIA
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 = 'OAKLAND' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILAD...
[ 46, 10206, 28182, 284, 9370, 4146, 2885, 3698, 11909, 40, 11159, 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, 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...
[ 46, 10206, 28182, 284, 9370, 4146, 2885, 3698, 11909, 40, 11159, 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, 62, ...
When did the Chiefs have their first bye?
SELECT MIN(week) FROM table_name_47 WHERE attendance = "bye"
[ 2215, 750, 262, 18733, 423, 511, 717, 33847, 30, 46506, 20625, 7, 10464, 8, 16034, 3084, 62, 3672, 62, 2857, 33411, 14858, 796, 366, 16390, 1 ]
[ 1, 1, 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, 750, 262, 18733, 423, 511, 717, 33847, 30, 46506, 20625, 7, 10464, 8, 16034, 3084, 62, 3672, 62, 2857, 33411, 14858, 796, 366, 16390, 1 ]
Who was the home team on January 8?
SELECT "Home" FROM table_67248 WHERE "Date" = 'january 8'
[ 8241, 373, 262, 1363, 1074, 319, 3269, 807, 30, 46506, 366, 16060, 1, 16034, 3084, 62, 3134, 23045, 33411, 366, 10430, 1, 796, 705, 13881, 2838, 807, 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 ]
[ 8241, 373, 262, 1363, 1074, 319, 3269, 807, 30, 46506, 366, 16060, 1, 16034, 3084, 62, 3134, 23045, 33411, 366, 10430, 1, 796, 705, 13881, 2838, 807, 6 ]
Who is the vacator when south carolina 4th is the district?
SELECT "Vacator" FROM table_73404 WHERE "District" = 'South Carolina 4th'
[ 8241, 318, 262, 6658, 1352, 618, 5366, 1097, 47196, 604, 400, 318, 262, 4783, 30, 46506, 366, 53, 330, 1352, 1, 16034, 3084, 62, 4790, 26429, 33411, 366, 44857, 1, 796, 705, 14942, 5913, 604, 400, 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 ]
[ 8241, 318, 262, 6658, 1352, 618, 5366, 1097, 47196, 604, 400, 318, 262, 4783, 30, 46506, 366, 53, 330, 1352, 1, 16034, 3084, 62, 4790, 26429, 33411, 366, 44857, 1, 796, 705, 14942, 5913, 604, 400, 6 ]
get me a FIRST class flight on AA to SAN FRANCISCO on tuesday next week
SELECT DISTINCT flight.flight_id FROM airport_service, city, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, flight, flight_fare WHERE ((DATE_DAY_0.day_number = 22 AND DATE_DAY_0.month_number = 3 AND DATE_DAY_0.year = 1991 AND...
[ 1136, 502, 257, 31328, 1398, 5474, 319, 15923, 284, 37376, 8782, 20940, 1797, 8220, 319, 256, 3322, 1306, 1285, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 11, 1748, 11, 3128, 62, 820, 7054, 360, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1136, 502, 257, 31328, 1398, 5474, 319, 15923, 284, 37376, 8782, 20940, 1797, 8220, 319, 256, 3322, 1306, 1285, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 11, 1748, 11, 3128, 62, 820, 7054, 360, 61...
What is the result on 29 September 2007?
SELECT "Result" FROM table_50506 WHERE "Date" = '29 september 2007'
[ 2061, 318, 262, 1255, 319, 2808, 2693, 4343, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 1120, 35638, 33411, 366, 10430, 1, 796, 705, 1959, 384, 457, 1491, 4343, 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, 1255, 319, 2808, 2693, 4343, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 1120, 35638, 33411, 366, 10430, 1, 796, 705, 1959, 384, 457, 1491, 4343, 6 ]
What was the Attendance on December 21, 1986 before Week 16?
SELECT SUM(attendance) FROM table_name_91 WHERE date = "december 21, 1986" AND week < 16
[ 2061, 373, 262, 46502, 590, 319, 3426, 2310, 11, 12113, 878, 6119, 1467, 30, 46506, 35683, 7, 1078, 437, 590, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 3128, 796, 366, 2934, 3273, 2310, 11, 12113, 1, 5357, 1285, 1279, 1467 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 46502, 590, 319, 3426, 2310, 11, 12113, 878, 6119, 1467, 30, 46506, 35683, 7, 1078, 437, 590, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 3128, 796, 366, 2934, 3273, 2310, 11, 12113, 1, 5357, 1285, 1279, 1467 ]
valencia cc and who else won the most division ii community college ?
SELECT "division ii community college" FROM table_204_879 WHERE "division ii community college" <> 'valencia cc' GROUP BY "division ii community college" ORDER BY COUNT(*) DESC LIMIT 1
[ 2100, 29634, 36624, 290, 508, 2073, 1839, 262, 749, 7297, 21065, 2055, 4152, 5633, 46506, 366, 21426, 21065, 2055, 4152, 1, 16034, 3084, 62, 18638, 62, 23, 3720, 33411, 366, 21426, 21065, 2055, 4152, 1, 1279, 29, 705, 2100, 29634, 36624...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2100, 29634, 36624, 290, 508, 2073, 1839, 262, 749, 7297, 21065, 2055, 4152, 5633, 46506, 366, 21426, 21065, 2055, 4152, 1, 16034, 3084, 62, 18638, 62, 23, 3720, 33411, 366, 21426, 21065, 2055, 4152, 1, 1279, 29, 705, 2100, 29634, 36624...
give the number of patients who are greek orthodox and their lab test item id uptake ratio.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "GREEK ORTHODOX" AND lab.label = "Uptake Ratio"
[ 26535, 262, 1271, 286, 3871, 508, 389, 308, 10316, 28299, 290, 511, 2248, 1332, 2378, 4686, 35340, 8064, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 262, 1271, 286, 3871, 508, 389, 308, 10316, 28299, 290, 511, 2248, 1332, 2378, 4686, 35340, 8064, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, ...
how many years did this team become league champion ?
SELECT COUNT("season") FROM table_204_636 WHERE "notes" = 'league champion'
[ 4919, 867, 812, 750, 428, 1074, 1716, 4652, 8783, 5633, 46506, 327, 28270, 7203, 6230, 4943, 16034, 3084, 62, 18638, 62, 21, 2623, 33411, 366, 17815, 1, 796, 705, 19316, 8783, 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 ]
[ 4919, 867, 812, 750, 428, 1074, 1716, 4652, 8783, 5633, 46506, 327, 28270, 7203, 6230, 4943, 16034, 3084, 62, 18638, 62, 21, 2623, 33411, 366, 17815, 1, 796, 705, 19316, 8783, 6 ]
What is the smallest 07-08 oi best value?
SELECT MIN("07-08 OI best") FROM table_26415
[ 2061, 318, 262, 18197, 8753, 12, 2919, 267, 72, 1266, 1988, 30, 46506, 20625, 7203, 2998, 12, 2919, 440, 40, 1266, 4943, 16034, 3084, 62, 18897, 1314 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 18197, 8753, 12, 2919, 267, 72, 1266, 1988, 30, 46506, 20625, 7203, 2998, 12, 2919, 440, 40, 1266, 4943, 16034, 3084, 62, 18897, 1314 ]
What is the name of the person with a 2008 club of Nc Bejaia?
SELECT "Name" FROM table_44040 WHERE "2008 club" = 'nc bejaia'
[ 2061, 318, 262, 1438, 286, 262, 1048, 351, 257, 3648, 3430, 286, 399, 66, 1355, 6592, 544, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 25644, 1821, 33411, 366, 11528, 3430, 1, 796, 705, 10782, 307, 6592, 544, 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, 318, 262, 1438, 286, 262, 1048, 351, 257, 3648, 3430, 286, 399, 66, 1355, 6592, 544, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 25644, 1821, 33411, 366, 11528, 3430, 1, 796, 705, 10782, 307, 6592, 544, 6 ]
which area of england was the last to be featured on the program ?
SELECT "area" FROM table_203_287 ORDER BY "date" DESC LIMIT 1
[ 4758, 1989, 286, 1786, 1044, 373, 262, 938, 284, 307, 8096, 319, 262, 1430, 5633, 46506, 366, 20337, 1, 16034, 3084, 62, 22416, 62, 27800, 38678, 11050, 366, 4475, 1, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 1989, 286, 1786, 1044, 373, 262, 938, 284, 307, 8096, 319, 262, 1430, 5633, 46506, 366, 20337, 1, 16034, 3084, 62, 22416, 62, 27800, 38678, 11050, 366, 4475, 1, 22196, 34, 27564, 2043, 352 ]
How many students are in each department Plot them as bar chart, and I want to show in descending by the total number.
SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY COUNT(*) DESC
[ 2437, 867, 2444, 389, 287, 1123, 5011, 28114, 606, 355, 2318, 8262, 11, 290, 314, 765, 284, 905, 287, 31491, 416, 262, 2472, 1271, 13, 46506, 390, 457, 62, 3672, 11, 327, 28270, 7, 28104, 16034, 3710, 44441, 11050, 390, 457, 62, 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 ]
[ 2437, 867, 2444, 389, 287, 1123, 5011, 28114, 606, 355, 2318, 8262, 11, 290, 314, 765, 284, 905, 287, 31491, 416, 262, 2472, 1271, 13, 46506, 390, 457, 62, 3672, 11, 327, 28270, 7, 28104, 16034, 3710, 44441, 11050, 390, 457, 62, 367...
How many tries did the club Croesyceiliog rfc have?
SELECT "Tries for" FROM table_80437 WHERE "Club" = 'croesyceiliog rfc'
[ 2437, 867, 8404, 750, 262, 3430, 9325, 9259, 344, 2403, 519, 374, 16072, 423, 30, 46506, 366, 51, 1678, 329, 1, 16034, 3084, 62, 36088, 2718, 33411, 366, 42350, 1, 796, 705, 19915, 9259, 344, 2403, 519, 374, 16072, 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 ]
[ 2437, 867, 8404, 750, 262, 3430, 9325, 9259, 344, 2403, 519, 374, 16072, 423, 30, 46506, 366, 51, 1678, 329, 1, 16034, 3084, 62, 36088, 2718, 33411, 366, 42350, 1, 796, 705, 19915, 9259, 344, 2403, 519, 374, 16072, 6 ]
what room was previous to week 5 ?
SELECT "room" FROM table_204_269 WHERE "week" < 5 ORDER BY "week" DESC LIMIT 1
[ 10919, 2119, 373, 2180, 284, 1285, 642, 5633, 46506, 366, 3823, 1, 16034, 3084, 62, 18638, 62, 26276, 33411, 366, 10464, 1, 1279, 642, 38678, 11050, 366, 10464, 1, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 2119, 373, 2180, 284, 1285, 642, 5633, 46506, 366, 3823, 1, 16034, 3084, 62, 18638, 62, 26276, 33411, 366, 10464, 1, 1279, 642, 38678, 11050, 366, 10464, 1, 22196, 34, 27564, 2043, 352 ]
Who is the player with a 75-68-70=213 score?
SELECT player FROM table_name_79 WHERE score = 75 - 68 - 70 = 213
[ 8241, 318, 262, 2137, 351, 257, 5441, 12, 3104, 12, 2154, 28, 26427, 4776, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 3720, 33411, 4776, 796, 5441, 532, 8257, 532, 4317, 796, 28658 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2137, 351, 257, 5441, 12, 3104, 12, 2154, 28, 26427, 4776, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 3720, 33411, 4776, 796, 5441, 532, 8257, 532, 4317, 796, 28658 ]
What even was Jerry Lynn the inductee?
SELECT "Event" FROM table_10597 WHERE "Inductee(s)" = 'jerry lynn'
[ 2061, 772, 373, 13075, 24868, 262, 28948, 1453, 30, 46506, 366, 9237, 1, 16034, 3084, 62, 940, 43239, 33411, 366, 5497, 4782, 1453, 7, 82, 16725, 796, 705, 73, 6996, 31432, 77, 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, 772, 373, 13075, 24868, 262, 28948, 1453, 30, 46506, 366, 9237, 1, 16034, 3084, 62, 940, 43239, 33411, 366, 5497, 4782, 1453, 7, 82, 16725, 796, 705, 73, 6996, 31432, 77, 6 ]
How many patients with acute myocardial infarction of inferolateral wall initial episode of care diagnoses had a hematology lab test category?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Acute myocardial infarction of inferolateral wall, initial episode of care" AND lab."CATEGORY" = "Hematology"
[ 2437, 867, 3871, 351, 14352, 616, 44412, 498, 1167, 283, 596, 286, 13249, 349, 10534, 3355, 4238, 4471, 286, 1337, 40567, 550, 257, 339, 6759, 1435, 2248, 1332, 6536, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 3871, 351, 14352, 616, 44412, 498, 1167, 283, 596, 286, 13249, 349, 10534, 3355, 4238, 4471, 286, 1337, 40567, 550, 257, 339, 6759, 1435, 2248, 1332, 6536, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 6...
Which venue's home team is geelong?
SELECT venue FROM table_name_33 WHERE home_team = "geelong"
[ 13828, 14359, 338, 1363, 1074, 318, 4903, 21537, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 2091, 33411, 1363, 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 ]
[ 13828, 14359, 338, 1363, 1074, 318, 4903, 21537, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 2091, 33411, 1363, 62, 15097, 796, 366, 469, 21537, 1 ]
If first elected on 2003 (appt.), when was the term limited?
SELECT MIN("Term Limited") FROM table_3476 WHERE "First Elected" = '2003 (Appt.)'
[ 1532, 717, 7018, 319, 5816, 357, 1324, 83, 12179, 618, 373, 262, 3381, 3614, 30, 46506, 20625, 7203, 40596, 15302, 4943, 16034, 3084, 62, 2682, 4304, 33411, 366, 5962, 5903, 276, 1, 796, 705, 16088, 357, 4677, 83, 2014, 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 ]
[ 1532, 717, 7018, 319, 5816, 357, 1324, 83, 12179, 618, 373, 262, 3381, 3614, 30, 46506, 20625, 7203, 40596, 15302, 4943, 16034, 3084, 62, 2682, 4304, 33411, 366, 5962, 5903, 276, 1, 796, 705, 16088, 357, 4677, 83, 2014, 6 ]
What is the result of the game with 57,234 people in attendance?
SELECT result FROM table_name_17 WHERE attendance = "57,234"
[ 2061, 318, 262, 1255, 286, 262, 983, 351, 7632, 11, 24409, 661, 287, 14858, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 1558, 33411, 14858, 796, 366, 3553, 11, 24409, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 1255, 286, 262, 983, 351, 7632, 11, 24409, 661, 287, 14858, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 1558, 33411, 14858, 796, 366, 3553, 11, 24409, 1 ]
What is the round of pick 63?
SELECT round FROM table_name_36 WHERE pick = 63
[ 2061, 318, 262, 2835, 286, 2298, 8093, 30, 46506, 2835, 16034, 3084, 62, 3672, 62, 2623, 33411, 2298, 796, 8093 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2835, 286, 2298, 8093, 30, 46506, 2835, 16034, 3084, 62, 3672, 62, 2623, 33411, 2298, 796, 8093 ]
What are the characters from the movie Suppressed Duck?
SELECT characters FROM table_name_80 WHERE title = "suppressed duck"
[ 2061, 389, 262, 3435, 422, 262, 3807, 8105, 2790, 21867, 30, 46506, 3435, 16034, 3084, 62, 3672, 62, 1795, 33411, 3670, 796, 366, 18608, 2790, 22045, 1 ]
[ 1, 1, 1, 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, 3435, 422, 262, 3807, 8105, 2790, 21867, 30, 46506, 3435, 16034, 3084, 62, 3672, 62, 1795, 33411, 3670, 796, 366, 18608, 2790, 22045, 1 ]
Who wrote Infiltration?
SELECT writer FROM table_name_86 WHERE title = "infiltration"
[ 8241, 2630, 4806, 36055, 30, 46506, 6260, 16034, 3084, 62, 3672, 62, 4521, 33411, 3670, 796, 366, 10745, 36055, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 2630, 4806, 36055, 30, 46506, 6260, 16034, 3084, 62, 3672, 62, 4521, 33411, 3670, 796, 366, 10745, 36055, 1 ]
What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?
SELECT MAX(rank) FROM table_name_98 WHERE gold < 3 AND silver > 2 AND total < 5
[ 2061, 318, 262, 4511, 4279, 257, 1499, 351, 1342, 621, 513, 3869, 11, 517, 621, 362, 8465, 11, 290, 1342, 621, 642, 2472, 28057, 468, 30, 46506, 25882, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 4089, 33411, 3869, 1279, 513, 5357, 8465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4511, 4279, 257, 1499, 351, 1342, 621, 513, 3869, 11, 517, 621, 362, 8465, 11, 290, 1342, 621, 642, 2472, 28057, 468, 30, 46506, 25882, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 4089, 33411, 3869, 1279, 513, 5357, 8465...