instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?
SELECT "Name" FROM table_66283 WHERE "Heat" > '4' AND "Lane" = '4' AND "Nationality" = 'australia'
[ 2061, 318, 262, 1438, 286, 262, 9422, 647, 422, 4505, 287, 11193, 604, 351, 257, 4894, 4025, 621, 604, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 2791, 30290, 33411, 366, 39596, 1, 1875, 705, 19, 6, 5357, 366, 43, 1531, 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, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1438, 286, 262, 9422, 647, 422, 4505, 287, 11193, 604, 351, 257, 4894, 4025, 621, 604, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 2791, 30290, 33411, 366, 39596, 1, 1875, 705, 19, 6, 5357, 366, 43, 1531, 1, 796, 705...
count the number of patients whose days of hospital stay is greater than 2 and procedure icd9 code is 9744?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "2" AND procedures.icd9_code = "9744"
[ 9127, 262, 1271, 286, 3871, 3025, 1528, 286, 4436, 2652, 318, 3744, 621, 362, 290, 8771, 14158, 67, 24, 2438, 318, 10111, 2598, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1528, 286, 4436, 2652, 318, 3744, 621, 362, 290, 8771, 14158, 67, 24, 2438, 318, 10111, 2598, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, ...
Influential pure [discussion]s with no meaningful answers.
SELECT q.Id AS "post_link", q.Score, q.ViewCount, q.AnswerCount FROM PostTags AS t INNER JOIN Posts AS q ON t.PostId = q.Id WHERE 0 = (SELECT COUNT(*) FROM Posts WHERE ParentId = q.Id AND (Score <= -5 OR Score >= 10)) AND (q.Score >= 10 AND q.PostTypeId = 1) AND (t.TagId = 4 AND 0 = (SELECT COUNT(*) FROM PostTags WHERE...
[ 18943, 2290, 1843, 5899, 685, 15410, 11956, 60, 82, 351, 645, 11570, 7429, 13, 46506, 10662, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 10662, 13, 26595, 11, 10662, 13, 7680, 12332, 11, 10662, 13, 33706, 12332, 16034, 2947, 36142, 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...
[ 18943, 2290, 1843, 5899, 685, 15410, 11956, 60, 82, 351, 645, 11570, 7429, 13, 46506, 10662, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 10662, 13, 26595, 11, 10662, 13, 7680, 12332, 11, 10662, 13, 33706, 12332, 16034, 2947, 36142, 7054,...
What engine has g tyres and is driven by elio de angelis?
SELECT "Engine" FROM table_57348 WHERE "Tyres" = 'g' AND "Driver" = 'elio de angelis'
[ 2061, 3113, 468, 308, 40498, 290, 318, 7986, 416, 1288, 952, 390, 18304, 271, 30, 46506, 366, 13798, 1, 16034, 3084, 62, 3553, 28978, 33411, 366, 25492, 411, 1, 796, 705, 70, 6, 5357, 366, 32103, 1, 796, 705, 417, 952, 390, 18304, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3113, 468, 308, 40498, 290, 318, 7986, 416, 1288, 952, 390, 18304, 271, 30, 46506, 366, 13798, 1, 16034, 3084, 62, 3553, 28978, 33411, 366, 25492, 411, 1, 796, 705, 70, 6, 5357, 366, 32103, 1, 796, 705, 417, 952, 390, 18304, ...
What format is at frequency 99.5 FM?
SELECT format FROM table_name_14 WHERE frequency = "99.5 fm"
[ 2061, 5794, 318, 379, 8373, 7388, 13, 20, 18695, 30, 46506, 5794, 16034, 3084, 62, 3672, 62, 1415, 33411, 8373, 796, 366, 2079, 13, 20, 277, 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 ]
[ 2061, 5794, 318, 379, 8373, 7388, 13, 20, 18695, 30, 46506, 5794, 16034, 3084, 62, 3672, 62, 1415, 33411, 8373, 796, 366, 2079, 13, 20, 277, 76, 1 ]
On the episode that had a run time of 24:57, how many million viewers were there?
SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57"
[ 2202, 262, 4471, 326, 550, 257, 1057, 640, 286, 1987, 25, 3553, 11, 703, 867, 1510, 10209, 547, 612, 30, 46506, 10209, 834, 259, 62, 17805, 507, 62, 16034, 3084, 62, 3672, 62, 20, 33411, 1057, 62, 2435, 796, 366, 1731, 25, 3553, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2202, 262, 4471, 326, 550, 257, 1057, 640, 286, 1987, 25, 3553, 11, 703, 867, 1510, 10209, 547, 612, 30, 46506, 10209, 834, 259, 62, 17805, 507, 62, 16034, 3084, 62, 3672, 62, 20, 33411, 1057, 62, 2435, 796, 366, 1731, 25, 3553, 1...
For those records from the products and each product's manufacturer, a bar chart shows the distribution of headquarter and the average of revenue , and group by attribute headquarter, sort by the total number in asc please.
SELECT Headquarter, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Revenue)
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1182, 24385, 290, 262, 2811, 286, 6426, 837, 290, 1448, 416, 11688, 1182, 24385, 11, 3297, 416, 262, 2472, 1271, 287, 10570, 3387...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1182, 24385, 290, 262, 2811, 286, 6426, 837, 290, 1448, 416, 11688, 1182, 24385, 11, 3297, 416, 262, 2472, 1271, 287, 10570, 3387...
Which number of Years has a Venue of old trafford, and an Opposition of yorkshire?
SELECT COUNT(year) FROM table_name_30 WHERE venue = "old trafford" AND opposition = "yorkshire"
[ 13828, 1271, 286, 13212, 468, 257, 9932, 518, 286, 1468, 11878, 585, 11, 290, 281, 29560, 286, 331, 29918, 30, 46506, 327, 28270, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 1270, 33411, 14359, 796, 366, 727, 11878, 585, 1, 5357, 5471, 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 ]
[ 13828, 1271, 286, 13212, 468, 257, 9932, 518, 286, 1468, 11878, 585, 11, 290, 281, 29560, 286, 331, 29918, 30, 46506, 327, 28270, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 1270, 33411, 14359, 796, 366, 727, 11878, 585, 1, 5357, 5471, 7...
What was the aggregate total for the match against Koper?
SELECT "Agg." FROM table_7712 WHERE "Opponent" = 'koper'
[ 2061, 373, 262, 19406, 2472, 329, 262, 2872, 1028, 509, 3575, 30, 46506, 366, 46384, 526, 16034, 3084, 62, 3324, 1065, 33411, 366, 27524, 3471, 1, 796, 705, 74, 3575, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 19406, 2472, 329, 262, 2872, 1028, 509, 3575, 30, 46506, 366, 46384, 526, 16034, 3084, 62, 3324, 1065, 33411, 366, 27524, 3471, 1, 796, 705, 74, 3575, 6 ]
What was North Melbourne's score as an away team?
SELECT "Away team score" FROM table_33116 WHERE "Away team" = 'north melbourne'
[ 2061, 373, 2258, 14819, 338, 4776, 355, 281, 1497, 1074, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 2091, 18298, 33411, 366, 32, 1014, 1074, 1, 796, 705, 43588, 7758, 12544, 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, 373, 2258, 14819, 338, 4776, 355, 281, 1497, 1074, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 2091, 18298, 33411, 366, 32, 1014, 1074, 1, 796, 705, 43588, 7758, 12544, 6 ]
what is the number of patients whose lab test chart time is 2150-03-05 06:48:00?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.charttime = "2150-03-05 06:48:00"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 2248, 1332, 8262, 640, 318, 2310, 1120, 12, 3070, 12, 2713, 9130, 25, 2780, 25, 405, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2248, 1332, 8262, 640, 318, 2310, 1120, 12, 3070, 12, 2713, 9130, 25, 2780, 25, 405, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32...
Who's the incumbent of the district with first election held in 1950?
SELECT "Incumbent" FROM table_18394 WHERE "First elected" = '1950'
[ 8241, 338, 262, 23526, 286, 262, 4783, 351, 717, 3071, 2714, 287, 11445, 30, 46506, 366, 25517, 2178, 298, 1, 16034, 3084, 62, 1507, 34626, 33411, 366, 5962, 7018, 1, 796, 705, 42751, 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 ]
[ 8241, 338, 262, 23526, 286, 262, 4783, 351, 717, 3071, 2714, 287, 11445, 30, 46506, 366, 25517, 2178, 298, 1, 16034, 3084, 62, 1507, 34626, 33411, 366, 5962, 7018, 1, 796, 705, 42751, 6 ]
What is the time/retired for the driver emerson fittipaldi?
SELECT time_retired FROM table_name_55 WHERE driver = "emerson fittipaldi"
[ 2061, 318, 262, 640, 14, 1186, 1202, 329, 262, 4639, 795, 882, 43500, 541, 37566, 30, 46506, 640, 62, 1186, 1202, 16034, 3084, 62, 3672, 62, 2816, 33411, 4639, 796, 366, 368, 882, 43500, 541, 37566, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 640, 14, 1186, 1202, 329, 262, 4639, 795, 882, 43500, 541, 37566, 30, 46506, 640, 62, 1186, 1202, 16034, 3084, 62, 3672, 62, 2816, 33411, 4639, 796, 366, 368, 882, 43500, 541, 37566, 1 ]
Tell me the totla number of goal difference for goals against of 30 and played less than 18
SELECT COUNT("Goal Difference") FROM table_54448 WHERE "Goals Against" = '30' AND "Played" < '18'
[ 24446, 502, 262, 2006, 5031, 1271, 286, 3061, 3580, 329, 4661, 1028, 286, 1542, 290, 2826, 1342, 621, 1248, 46506, 327, 28270, 7203, 49045, 43795, 4943, 16034, 3084, 62, 47576, 2780, 33411, 366, 5247, 874, 12914, 1, 796, 705, 1270, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24446, 502, 262, 2006, 5031, 1271, 286, 3061, 3580, 329, 4661, 1028, 286, 1542, 290, 2826, 1342, 621, 1248, 46506, 327, 28270, 7203, 49045, 43795, 4943, 16034, 3084, 62, 47576, 2780, 33411, 366, 5247, 874, 12914, 1, 796, 705, 1270, 6, ...
what was the yearly minimum value of weight for patient 027-153669 until 2103?
SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-153669') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y', patient.unitadmittime) <= '2103' GROUP BY STRFTIME('%y', patient.unitadmit...
[ 10919, 373, 262, 24169, 5288, 1988, 286, 3463, 329, 5827, 657, 1983, 12, 1314, 2623, 3388, 1566, 362, 15197, 30, 46506, 20625, 7, 26029, 13, 324, 3411, 6551, 8, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 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, 24169, 5288, 1988, 286, 3463, 329, 5827, 657, 1983, 12, 1314, 2623, 3388, 1566, 362, 15197, 30, 46506, 20625, 7, 26029, 13, 324, 3411, 6551, 8, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, ...
In 1991, what was the lowest total?
SELECT MIN(total) FROM table_name_31 WHERE year_s__won = "1991"
[ 818, 10249, 11, 644, 373, 262, 9016, 2472, 30, 46506, 20625, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 3132, 33411, 614, 62, 82, 834, 26502, 796, 366, 24529, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 10249, 11, 644, 373, 262, 9016, 2472, 30, 46506, 20625, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 3132, 33411, 614, 62, 82, 834, 26502, 796, 366, 24529, 1 ]
What is the Retail name with a Chipset based on with radeon 9200?
SELECT retail_name FROM table_name_1 WHERE chipset_based_on = "radeon 9200"
[ 2061, 318, 262, 26702, 1438, 351, 257, 45864, 316, 1912, 319, 351, 374, 12424, 860, 2167, 30, 46506, 6308, 62, 3672, 16034, 3084, 62, 3672, 62, 16, 33411, 49013, 62, 3106, 62, 261, 796, 366, 81, 12424, 860, 2167, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26702, 1438, 351, 257, 45864, 316, 1912, 319, 351, 374, 12424, 860, 2167, 30, 46506, 6308, 62, 3672, 16034, 3084, 62, 3672, 62, 16, 33411, 49013, 62, 3106, 62, 261, 796, 366, 81, 12424, 860, 2167, 1 ]
in this year, how many patients were prescribed vitamin a?
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'vitamin a' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
[ 259, 428, 614, 11, 703, 867, 3871, 547, 14798, 14411, 257, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357, 46506, 34092, 13, 18108, 76, 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...
[ 259, 428, 614, 11, 703, 867, 3871, 547, 14798, 14411, 257, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357, 46506, 34092, 13, 18108, 76, 62,...
how many patients were diagnosed with hypoglycemia and they didn't come back to the hospital in the same month until 1 year ago?
SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypoglycemia' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-1 year')) AS t1) -...
[ 4919, 867, 3871, 547, 14641, 351, 5328, 34619, 344, 20730, 290, 484, 1422, 470, 1282, 736, 284, 262, 4436, 287, 262, 976, 1227, 1566, 352, 614, 2084, 30, 46506, 357, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 403, 1557...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 547, 14641, 351, 5328, 34619, 344, 20730, 290, 484, 1422, 470, 1282, 736, 284, 262, 4436, 287, 262, 976, 1227, 1566, 352, 614, 2084, 30, 46506, 357, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 403, 1557...
what flights from BURBANK to MILWAUKEE leave BURBANK tomorrow
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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MILWAUKEE' AND date_day.day_number = 20 AND date_day.month_number = 1 AND...
[ 10919, 13956, 422, 45604, 33, 15154, 284, 31515, 15543, 15039, 6500, 2666, 45604, 33, 15154, 9439, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 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...
[ 10919, 13956, 422, 45604, 33, 15154, 284, 31515, 15543, 15039, 6500, 2666, 45604, 33, 15154, 9439, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 6...
What CERCLIS ID was listed 10/14/1992?
SELECT "CERCLIS ID" FROM table_9430 WHERE "Listed" = '10/14/1992'
[ 2061, 327, 1137, 5097, 1797, 4522, 373, 5610, 838, 14, 1415, 14, 23847, 30, 46506, 366, 34, 1137, 5097, 1797, 4522, 1, 16034, 3084, 62, 5824, 1270, 33411, 366, 43, 6347, 1, 796, 705, 940, 14, 1415, 14, 23847, 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, 327, 1137, 5097, 1797, 4522, 373, 5610, 838, 14, 1415, 14, 23847, 30, 46506, 366, 34, 1137, 5097, 1797, 4522, 1, 16034, 3084, 62, 5824, 1270, 33411, 366, 43, 6347, 1, 796, 705, 940, 14, 1415, 14, 23847, 6 ]
Stacked bar chart of how many date in location from for with each Location_Code in each date in location from
SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations GROUP BY Location_Code
[ 1273, 6021, 2318, 8262, 286, 703, 867, 3128, 287, 4067, 422, 329, 351, 1123, 13397, 62, 10669, 287, 1123, 3128, 287, 4067, 422, 46506, 7536, 62, 259, 62, 14749, 62, 4863, 11, 327, 28270, 7, 10430, 62, 259, 62, 14749, 62, 4863, 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, 1, 1, 1, 1, 1 ]
[ 1273, 6021, 2318, 8262, 286, 703, 867, 3128, 287, 4067, 422, 329, 351, 1123, 13397, 62, 10669, 287, 1123, 3128, 287, 4067, 422, 46506, 7536, 62, 259, 62, 14749, 62, 4863, 11, 327, 28270, 7, 10430, 62, 259, 62, 14749, 62, 4863, 8, ...
what does Y mean
SELECT DISTINCT fare_basis_code FROM fare_basis WHERE fare_basis_code = 'Y'
[ 10919, 857, 575, 1612, 46506, 360, 8808, 1268, 4177, 14505, 62, 12093, 271, 62, 8189, 16034, 14505, 62, 12093, 271, 33411, 14505, 62, 12093, 271, 62, 8189, 796, 705, 56, 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 ]
[ 10919, 857, 575, 1612, 46506, 360, 8808, 1268, 4177, 14505, 62, 12093, 271, 62, 8189, 16034, 14505, 62, 12093, 271, 33411, 14505, 62, 12093, 271, 62, 8189, 796, 705, 56, 6 ]
how many patients are diagnosed for abnormal coagulation profile and tested under the chemistry lab 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 = "Abnormal coagulation profile" AND lab."CATEGORY" = "Chemistry"
[ 4919, 867, 3871, 389, 14641, 329, 18801, 763, 363, 1741, 7034, 290, 6789, 739, 262, 16585, 2248, 6536, 30, 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...
[ 4919, 867, 3871, 389, 14641, 329, 18801, 763, 363, 1741, 7034, 290, 6789, 739, 262, 16585, 2248, 6536, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, ...
Could I take DESCI 990 for PreMajor ?
SELECT COUNT(*) > 0 FROM course, program, program_course WHERE course.department = 'DESCI' AND course.number = 990 AND program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id
[ 23722, 314, 1011, 22196, 25690, 860, 3829, 329, 3771, 24206, 5633, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 1781, 11, 1430, 11, 1430, 62, 17319, 33411, 1781, 13, 10378, 1823, 796, 705, 30910, 25690, 6, 5357, 1781, 13, 17618, 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...
[ 23722, 314, 1011, 22196, 25690, 860, 3829, 329, 3771, 24206, 5633, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 1781, 11, 1430, 11, 1430, 62, 17319, 33411, 1781, 13, 10378, 1823, 796, 705, 30910, 25690, 6, 5357, 1781, 13, 17618, 796, ...
Which venue had a losing team of south sydney rabbitohs?
SELECT "Venue" FROM table_44424 WHERE "Losing Team" = 'south sydney rabbitohs'
[ 13828, 14359, 550, 257, 6078, 1074, 286, 5366, 827, 67, 1681, 22746, 1219, 82, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 30272, 1731, 33411, 366, 43, 2752, 4816, 1, 796, 705, 35782, 827, 67, 1681, 22746, 1219, 82, 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 ]
[ 13828, 14359, 550, 257, 6078, 1074, 286, 5366, 827, 67, 1681, 22746, 1219, 82, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 30272, 1731, 33411, 366, 43, 2752, 4816, 1, 796, 705, 35782, 827, 67, 1681, 22746, 1219, 82, 6 ]
What is the bodyweight for the player with a clean & jerk of 82.5 and total smaller than 152.5?
SELECT SUM(bodyweight) FROM table_name_91 WHERE clean_ & _jerk = 82.5 AND total__kg_ < 152.5
[ 2061, 318, 262, 1767, 6551, 329, 262, 2137, 351, 257, 3424, 1222, 29757, 286, 9415, 13, 20, 290, 2472, 4833, 621, 24848, 13, 20, 30, 46506, 35683, 7, 2618, 6551, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 3424, 62, 1222, 4808, 73, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1767, 6551, 329, 262, 2137, 351, 257, 3424, 1222, 29757, 286, 9415, 13, 20, 290, 2472, 4833, 621, 24848, 13, 20, 30, 46506, 35683, 7, 2618, 6551, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 3424, 62, 1222, 4808, 73, ...
Who was the artist for the origin Shake it, Europe?
SELECT artist FROM table_19523708_1 WHERE original = "Shake It, Europe"
[ 8241, 373, 262, 6802, 329, 262, 8159, 41113, 340, 11, 2031, 30, 46506, 6802, 16034, 3084, 62, 22186, 1954, 32583, 62, 16, 33411, 2656, 796, 366, 2484, 539, 632, 11, 2031, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 6802, 329, 262, 8159, 41113, 340, 11, 2031, 30, 46506, 6802, 16034, 3084, 62, 22186, 1954, 32583, 62, 16, 33411, 2656, 796, 366, 2484, 539, 632, 11, 2031, 1 ]
What is the percentage of others when the number for Bush is 1329?
SELECT "Others%" FROM table_21584 WHERE "Bush#" = '1329'
[ 2061, 318, 262, 5873, 286, 1854, 618, 262, 1271, 329, 5511, 318, 1511, 1959, 30, 46506, 366, 25599, 39658, 16034, 3084, 62, 23349, 5705, 33411, 366, 36113, 2, 1, 796, 705, 1485, 1959, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 5873, 286, 1854, 618, 262, 1271, 329, 5511, 318, 1511, 1959, 30, 46506, 366, 25599, 39658, 16034, 3084, 62, 23349, 5705, 33411, 366, 36113, 2, 1, 796, 705, 1485, 1959, 6 ]
What To par has a Place of t2, and a Country of united states?
SELECT to_par FROM table_name_11 WHERE place = "t2" AND country = "united states"
[ 2061, 1675, 1582, 468, 257, 8474, 286, 256, 17, 11, 290, 257, 12946, 286, 16503, 2585, 30, 46506, 284, 62, 1845, 16034, 3084, 62, 3672, 62, 1157, 33411, 1295, 796, 366, 83, 17, 1, 5357, 1499, 796, 366, 41187, 2585, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1675, 1582, 468, 257, 8474, 286, 256, 17, 11, 290, 257, 12946, 286, 16503, 2585, 30, 46506, 284, 62, 1845, 16034, 3084, 62, 3672, 62, 1157, 33411, 1295, 796, 366, 83, 17, 1, 5357, 1499, 796, 366, 41187, 2585, 1 ]
Which opponent has a Season of 2010/11?
SELECT opponent FROM table_name_7 WHERE season = "2010/11"
[ 13828, 6125, 468, 257, 7369, 286, 3050, 14, 1157, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 22, 33411, 1622, 796, 366, 10333, 14, 1157, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 6125, 468, 257, 7369, 286, 3050, 14, 1157, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 22, 33411, 1622, 796, 366, 10333, 14, 1157, 1 ]
What episode number in the series is 'the drum major'?
SELECT "No. in series" FROM table_3989 WHERE "Title" = 'The Drum Major'
[ 2061, 4471, 1271, 287, 262, 2168, 318, 705, 1169, 13026, 1688, 30960, 46506, 366, 2949, 13, 287, 2168, 1, 16034, 3084, 62, 2670, 4531, 33411, 366, 19160, 1, 796, 705, 464, 25331, 8386, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 4471, 1271, 287, 262, 2168, 318, 705, 1169, 13026, 1688, 30960, 46506, 366, 2949, 13, 287, 2168, 1, 16034, 3084, 62, 2670, 4531, 33411, 366, 19160, 1, 796, 705, 464, 25331, 8386, 6 ]
Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live?
SELECT "Callsign" FROM table_36233 WHERE "Webcast" = 'listen live' AND "Frequency" < '1210' AND "Brand" = 'newsradio 740 ktrh'
[ 13828, 4889, 12683, 3407, 257, 8373, 739, 1105, 940, 11, 3000, 37004, 767, 1821, 509, 5446, 39, 11, 290, 3992, 40924, 351, 6004, 2107, 30, 46506, 366, 34, 5691, 570, 1, 16034, 3084, 62, 2623, 25429, 33411, 366, 13908, 2701, 1, 796, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13828, 4889, 12683, 3407, 257, 8373, 739, 1105, 940, 11, 3000, 37004, 767, 1821, 509, 5446, 39, 11, 290, 3992, 40924, 351, 6004, 2107, 30, 46506, 366, 34, 5691, 570, 1, 16034, 3084, 62, 2623, 25429, 33411, 366, 13908, 2701, 1, 796, ...
What are the official name(s) of places with an area of 304.06 km2?
SELECT "Official Name" FROM table_72919 WHERE "Area km 2" = '304.06'
[ 2061, 389, 262, 1743, 1438, 7, 82, 8, 286, 4113, 351, 281, 1989, 286, 31672, 13, 3312, 10571, 17, 30, 46506, 366, 28529, 6530, 1, 16034, 3084, 62, 48555, 1129, 33411, 366, 30547, 10571, 362, 1, 796, 705, 21288, 13, 3312, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 1743, 1438, 7, 82, 8, 286, 4113, 351, 281, 1989, 286, 31672, 13, 3312, 10571, 17, 30, 46506, 366, 28529, 6530, 1, 16034, 3084, 62, 48555, 1129, 33411, 366, 30547, 10571, 362, 1, 796, 705, 21288, 13, 3312, 6 ]
What is the 9th runner-up with a top 18/20/24/30 greater than 17 and a 5th runner-up of 2?
SELECT SUM("9th runner-up") FROM table_75075 WHERE "5th runner-up" = '2' AND "Top 18/20/24/30" > '17'
[ 2061, 318, 262, 860, 400, 17490, 12, 929, 351, 257, 1353, 1248, 14, 1238, 14, 1731, 14, 1270, 3744, 621, 1596, 290, 257, 642, 400, 17490, 12, 929, 286, 362, 30, 46506, 35683, 7203, 24, 400, 17490, 12, 929, 4943, 16034, 3084, 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, 1...
[ 2061, 318, 262, 860, 400, 17490, 12, 929, 351, 257, 1353, 1248, 14, 1238, 14, 1731, 14, 1270, 3744, 621, 1596, 290, 257, 642, 400, 17490, 12, 929, 286, 362, 30, 46506, 35683, 7203, 24, 400, 17490, 12, 929, 4943, 16034, 3084, 62, 1...
Scores of questions by a specific user.
SELECT Id AS "post_link", Title, Score FROM Posts WHERE OwnerUserId = '##id?210401##' AND PostTypeId = 1 ORDER BY Id
[ 3351, 2850, 286, 2683, 416, 257, 2176, 2836, 13, 46506, 5121, 7054, 366, 7353, 62, 8726, 1600, 11851, 11, 15178, 16034, 12043, 33411, 23853, 12982, 7390, 796, 705, 2235, 312, 30, 17, 13464, 486, 2235, 6, 5357, 2947, 6030, 7390, 796, 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 ]
[ 3351, 2850, 286, 2683, 416, 257, 2176, 2836, 13, 46506, 5121, 7054, 366, 7353, 62, 8726, 1600, 11851, 11, 15178, 16034, 12043, 33411, 23853, 12982, 7390, 796, 705, 2235, 312, 30, 17, 13464, 486, 2235, 6, 5357, 2947, 6030, 7390, 796, 3...
Number of users which made their last comment in a given month.
WITH last_cte AS (SELECT UserId, MAX(Id) AS MaxId FROM Comments GROUP BY UserId), dates_cte AS (SELECT c.UserId AS odn, c.Id AS cid, c.CreationDate AS CDate FROM Comments AS c INNER JOIN last_cte ON c.Id = maxid) SELECT LAST_DATE_OF_MONTH(CDate), COUNT(odn) FROM dates_cte GROUP BY LAST_DATE_OF_MONTH(CDate) ORDER BY LAS...
[ 15057, 286, 2985, 543, 925, 511, 938, 2912, 287, 257, 1813, 1227, 13, 54, 10554, 938, 62, 310, 68, 7054, 357, 46506, 11787, 7390, 11, 25882, 7, 7390, 8, 7054, 5436, 7390, 16034, 19502, 44441, 11050, 11787, 7390, 828, 9667, 62, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15057, 286, 2985, 543, 925, 511, 938, 2912, 287, 257, 1813, 1227, 13, 54, 10554, 938, 62, 310, 68, 7054, 357, 46506, 11787, 7390, 11, 25882, 7, 7390, 8, 7054, 5436, 7390, 16034, 19502, 44441, 11050, 11787, 7390, 828, 9667, 62, 310, ...
What are the Votes for the Song by Artist Filipa Batista?
SELECT votes FROM table_name_11 WHERE artist = "filipa batista"
[ 2061, 389, 262, 39584, 329, 262, 10940, 416, 18902, 24600, 64, 6577, 12523, 30, 46506, 5690, 16034, 3084, 62, 3672, 62, 1157, 33411, 6802, 796, 366, 10379, 541, 64, 7365, 12523, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 39584, 329, 262, 10940, 416, 18902, 24600, 64, 6577, 12523, 30, 46506, 5690, 16034, 3084, 62, 3672, 62, 1157, 33411, 6802, 796, 366, 10379, 541, 64, 7365, 12523, 1 ]
Which player is the 24 pick?
SELECT "Player" FROM table_54066 WHERE "Pick" = '24'
[ 13828, 2137, 318, 262, 1987, 2298, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 35005, 2791, 33411, 366, 31686, 1, 796, 705, 1731, 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 ]
[ 13828, 2137, 318, 262, 1987, 2298, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 35005, 2791, 33411, 366, 31686, 1, 796, 705, 1731, 6 ]
Who was the Home captain that played at the venue Oval?
SELECT "Home captain" FROM table_42816 WHERE "Venue" = 'oval'
[ 8241, 373, 262, 5995, 10654, 326, 2826, 379, 262, 14359, 25165, 30, 46506, 366, 16060, 10654, 1, 16034, 3084, 62, 40173, 1433, 33411, 366, 37522, 518, 1, 796, 705, 8325, 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 ]
[ 8241, 373, 262, 5995, 10654, 326, 2826, 379, 262, 14359, 25165, 30, 46506, 366, 16060, 10654, 1, 16034, 3084, 62, 40173, 1433, 33411, 366, 37522, 518, 1, 796, 705, 8325, 6 ]
What is 04-05, when 05-06 is 205,189?
SELECT "04-05" FROM table_40391 WHERE "05-06" = '205,189'
[ 2061, 318, 8702, 12, 2713, 11, 618, 8870, 12, 3312, 318, 22538, 11, 23362, 30, 46506, 366, 3023, 12, 2713, 1, 16034, 3084, 62, 1821, 37710, 33411, 366, 2713, 12, 3312, 1, 796, 705, 21261, 11, 23362, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 8702, 12, 2713, 11, 618, 8870, 12, 3312, 318, 22538, 11, 23362, 30, 46506, 366, 3023, 12, 2713, 1, 16034, 3084, 62, 1821, 37710, 33411, 366, 2713, 12, 3312, 1, 796, 705, 21261, 11, 23362, 6 ]
Show all role codes and the number of employees in each role.
SELECT role_code, COUNT(*) FROM employees GROUP BY role_code
[ 15307, 477, 2597, 12416, 290, 262, 1271, 286, 4409, 287, 1123, 2597, 13, 46506, 2597, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 4409, 44441, 11050, 2597, 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 ]
[ 15307, 477, 2597, 12416, 290, 262, 1271, 286, 4409, 287, 1123, 2597, 13, 46506, 2597, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 4409, 44441, 11050, 2597, 62, 8189 ]
Who was the winner of the race at Belmont?
SELECT "Winner/2nd" FROM table_18846 WHERE "Venue" = 'Belmont'
[ 8241, 373, 262, 8464, 286, 262, 3234, 379, 3944, 8691, 30, 46506, 366, 48056, 14, 17, 358, 1, 16034, 3084, 62, 20356, 3510, 33411, 366, 37522, 518, 1, 796, 705, 12193, 8691, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 8464, 286, 262, 3234, 379, 3944, 8691, 30, 46506, 366, 48056, 14, 17, 358, 1, 16034, 3084, 62, 20356, 3510, 33411, 366, 37522, 518, 1, 796, 705, 12193, 8691, 6 ]
What was # of the first game played on August 20?
SELECT MIN(game) FROM table_18904831_7 WHERE date = "August 20"
[ 2061, 373, 1303, 286, 262, 717, 983, 2826, 319, 2932, 1160, 30, 46506, 20625, 7, 6057, 8, 16034, 3084, 62, 1507, 3829, 2780, 3132, 62, 22, 33411, 3128, 796, 366, 17908, 1160, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1303, 286, 262, 717, 983, 2826, 319, 2932, 1160, 30, 46506, 20625, 7, 6057, 8, 16034, 3084, 62, 1507, 3829, 2780, 3132, 62, 22, 33411, 3128, 796, 366, 17908, 1160, 1 ]
Tell me the lowest date for result of win and method of points with notes of opening round
SELECT MIN(date) FROM table_name_59 WHERE result = "win" AND method = "points" AND notes = "opening round"
[ 24446, 502, 262, 9016, 3128, 329, 1255, 286, 1592, 290, 2446, 286, 2173, 351, 4710, 286, 4756, 2835, 46506, 20625, 7, 4475, 8, 16034, 3084, 62, 3672, 62, 3270, 33411, 1255, 796, 366, 5404, 1, 5357, 2446, 796, 366, 13033, 1, 5357, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3128, 329, 1255, 286, 1592, 290, 2446, 286, 2173, 351, 4710, 286, 4756, 2835, 46506, 20625, 7, 4475, 8, 16034, 3084, 62, 3672, 62, 3270, 33411, 1255, 796, 366, 5404, 1, 5357, 2446, 796, 366, 13033, 1, 5357, 47...
has there been any record of a microbiology test for patient 031-3355's other during this year?
SELECT COUNT(*) 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 microlab.culturesite = 'other' AND DATETIME(microlab.culturetakent...
[ 10134, 612, 587, 597, 1700, 286, 257, 24559, 1435, 1332, 329, 5827, 657, 3132, 12, 2091, 2816, 338, 584, 1141, 428, 614, 30, 46506, 327, 28270, 7, 28104, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, 31712, 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...
[ 10134, 612, 587, 597, 1700, 286, 257, 24559, 1435, 1332, 329, 5827, 657, 3132, 12, 2091, 2816, 338, 584, 1141, 428, 614, 30, 46506, 327, 28270, 7, 28104, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, 31712, 312, 3268, 357, ...
What was the Peak Position on July 11, 2001?
SELECT peak_position FROM table_name_12 WHERE date = "july 11, 2001"
[ 2061, 373, 262, 23974, 23158, 319, 2901, 1367, 11, 5878, 30, 46506, 9103, 62, 9150, 16034, 3084, 62, 3672, 62, 1065, 33411, 3128, 796, 366, 73, 2062, 1367, 11, 5878, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 23974, 23158, 319, 2901, 1367, 11, 5878, 30, 46506, 9103, 62, 9150, 16034, 3084, 62, 3672, 62, 1065, 33411, 3128, 796, 366, 73, 2062, 1367, 11, 5878, 1 ]
What is the Tournament with a Opponents in the final with rod laver fred stolle?
SELECT tournament FROM table_name_15 WHERE opponents_in_the_final = "rod laver fred stolle"
[ 2061, 318, 262, 9595, 351, 257, 9385, 3906, 287, 262, 2457, 351, 15299, 8591, 332, 277, 445, 336, 349, 293, 30, 46506, 7756, 16034, 3084, 62, 3672, 62, 1314, 33411, 7691, 62, 259, 62, 1169, 62, 20311, 796, 366, 14892, 8591, 332, 277...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9595, 351, 257, 9385, 3906, 287, 262, 2457, 351, 15299, 8591, 332, 277, 445, 336, 349, 293, 30, 46506, 7756, 16034, 3084, 62, 3672, 62, 1314, 33411, 7691, 62, 259, 62, 1169, 62, 20311, 796, 366, 14892, 8591, 332, 277...
What is the record at Palasport Olimpico?
SELECT "Record" FROM table_79219 WHERE "Arena" = 'palasport olimpico'
[ 2061, 318, 262, 1700, 379, 3175, 292, 634, 440, 2475, 79, 3713, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 3720, 28896, 33411, 366, 43199, 64, 1, 796, 705, 18596, 292, 634, 267, 2475, 79, 3713, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1700, 379, 3175, 292, 634, 440, 2475, 79, 3713, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 3720, 28896, 33411, 366, 43199, 64, 1, 796, 705, 18596, 292, 634, 267, 2475, 79, 3713, 6 ]
display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40.
SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct <> "null" OR department_id <> 40
[ 13812, 477, 262, 1321, 286, 4409, 3025, 9588, 318, 287, 262, 2837, 286, 38055, 290, 1105, 830, 290, 5810, 318, 407, 9242, 393, 5011, 1271, 857, 407, 4961, 284, 2319, 13, 46506, 1635, 16034, 4409, 33411, 9588, 38651, 8845, 1677, 38055, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13812, 477, 262, 1321, 286, 4409, 3025, 9588, 318, 287, 262, 2837, 286, 38055, 290, 1105, 830, 290, 5810, 318, 407, 9242, 393, 5011, 1271, 857, 407, 4961, 284, 2319, 13, 46506, 1635, 16034, 4409, 33411, 9588, 38651, 8845, 1677, 38055, ...
provide the number of patients whose primary disease is morbid obesity/sda and year of birth is less than 1850?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "MORBID OBESITY/SDA" AND demographic.dob_year < "1850"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 34813, 13825, 14, 82, 6814, 290, 614, 286, 4082, 318, 1342, 621, 35745, 30, 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...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 34813, 13825, 14, 82, 6814, 290, 614, 286, 4082, 318, 1342, 621, 35745, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728,...
What's the name of the episode associated with Nick production number 342?
SELECT episode_title FROM table_2655016_4 WHERE nick_prod__number = 342
[ 2061, 338, 262, 1438, 286, 262, 4471, 3917, 351, 8047, 3227, 1271, 44341, 30, 46506, 4471, 62, 7839, 16034, 3084, 62, 2075, 2816, 27037, 62, 19, 33411, 14428, 62, 1676, 67, 834, 17618, 796, 44341 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 286, 262, 4471, 3917, 351, 8047, 3227, 1271, 44341, 30, 46506, 4471, 62, 7839, 16034, 3084, 62, 2075, 2816, 27037, 62, 19, 33411, 14428, 62, 1676, 67, 834, 17618, 796, 44341 ]
show me the flights from DENVER 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADE...
[ 12860, 502, 262, 13956, 422, 37692, 5959, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12860, 502, 262, 13956, 422, 37692, 5959, 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, ...
Who had the high rebounds when Chris Bosh (16) had the high points?
SELECT high_rebounds FROM table_11960407_4 WHERE high_points = "Chris Bosh (16)"
[ 8241, 550, 262, 1029, 18841, 618, 5180, 42776, 357, 1433, 8, 550, 262, 1029, 2173, 30, 46506, 1029, 62, 34806, 3733, 16034, 3084, 62, 16315, 1899, 30120, 62, 19, 33411, 1029, 62, 13033, 796, 366, 15645, 42776, 357, 1433, 16725 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 550, 262, 1029, 18841, 618, 5180, 42776, 357, 1433, 8, 550, 262, 1029, 2173, 30, 46506, 1029, 62, 34806, 3733, 16034, 3084, 62, 16315, 1899, 30120, 62, 19, 33411, 1029, 62, 13033, 796, 366, 15645, 42776, 357, 1433, 16725 ]
Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats.
SELECT location FROM track WHERE seating > 90000 INTERSECT SELECT location FROM track WHERE seating < 70000
[ 16742, 262, 7064, 810, 423, 1111, 8339, 351, 517, 621, 860, 2388, 8632, 290, 8339, 351, 1342, 621, 767, 2388, 8632, 13, 46506, 4067, 16034, 2610, 33411, 24800, 1875, 860, 2388, 17828, 4877, 9782, 33493, 4067, 16034, 2610, 33411, 24800, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7064, 810, 423, 1111, 8339, 351, 517, 621, 860, 2388, 8632, 290, 8339, 351, 1342, 621, 767, 2388, 8632, 13, 46506, 4067, 16034, 2610, 33411, 24800, 1875, 860, 2388, 17828, 4877, 9782, 33493, 4067, 16034, 2610, 33411, 24800, ...
What is the high grid total for maserati?
SELECT MAX(grid) FROM table_name_68 WHERE constructor = "maserati"
[ 2061, 318, 262, 1029, 10706, 2472, 329, 285, 6005, 7246, 30, 46506, 25882, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 3104, 33411, 23772, 796, 366, 5356, 263, 7246, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 1029, 10706, 2472, 329, 285, 6005, 7246, 30, 46506, 25882, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 3104, 33411, 23772, 796, 366, 5356, 263, 7246, 1 ]
Can I get 7 credits from taking any of these courses ?
SELECT DISTINCT name, number FROM course WHERE credits = 7 AND department = 'EECS'
[ 6090, 314, 651, 767, 10824, 422, 2263, 597, 286, 777, 10902, 5633, 46506, 360, 8808, 1268, 4177, 1438, 11, 1271, 16034, 1781, 33411, 10824, 796, 767, 5357, 5011, 796, 705, 36, 2943, 50, 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 ]
[ 6090, 314, 651, 767, 10824, 422, 2263, 597, 286, 777, 10902, 5633, 46506, 360, 8808, 1268, 4177, 1438, 11, 1271, 16034, 1781, 33411, 10824, 796, 767, 5357, 5011, 796, 705, 36, 2943, 50, 6 ]
Get the number of patients with coronary artery disease or coronary artery bypass graft myomectomy/sda primary disease who had a urine lab test.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" AND lab.fluid = "Urine"
[ 3855, 262, 1271, 286, 3871, 351, 37151, 37646, 4369, 393, 37151, 37646, 17286, 38455, 616, 462, 310, 9145, 14, 82, 6814, 4165, 4369, 508, 550, 257, 18922, 2248, 1332, 13, 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...
[ 3855, 262, 1271, 286, 3871, 351, 37151, 37646, 4369, 393, 37151, 37646, 17286, 38455, 616, 462, 310, 9145, 14, 82, 6814, 4165, 4369, 508, 550, 257, 18922, 2248, 1332, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 6...
what is the location of game 4?
SELECT location FROM table_name_20 WHERE game = 4
[ 10919, 318, 262, 4067, 286, 983, 604, 30, 46506, 4067, 16034, 3084, 62, 3672, 62, 1238, 33411, 983, 796, 604 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 4067, 286, 983, 604, 30, 46506, 4067, 16034, 3084, 62, 3672, 62, 1238, 33411, 983, 796, 604 ]
Who has friends that are older than the average age? Print their name and their ages as well using a bar chart.
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM Person)
[ 8241, 468, 2460, 326, 389, 4697, 621, 262, 2811, 2479, 30, 12578, 511, 1438, 290, 511, 9337, 355, 880, 1262, 257, 2318, 8262, 13, 46506, 309, 16, 13, 3672, 11, 309, 16, 13, 496, 16034, 7755, 7054, 309, 16, 32357, 1268, 7755, 23331, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2460, 326, 389, 4697, 621, 262, 2811, 2479, 30, 12578, 511, 1438, 290, 511, 9337, 355, 880, 1262, 257, 2318, 8262, 13, 46506, 309, 16, 13, 3672, 11, 309, 16, 13, 496, 16034, 7755, 7054, 309, 16, 32357, 1268, 7755, 23331, ...
List the name of the school with the smallest enrollment.
SELECT school_name FROM school ORDER BY enrollment LIMIT 1
[ 8053, 262, 1438, 286, 262, 1524, 351, 262, 18197, 20753, 13, 46506, 1524, 62, 3672, 16034, 1524, 38678, 11050, 20753, 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 ]
[ 8053, 262, 1438, 286, 262, 1524, 351, 262, 18197, 20753, 13, 46506, 1524, 62, 3672, 16034, 1524, 38678, 11050, 20753, 27564, 2043, 352 ]
What is Name, when Location is Tanzania, and when Novelty is Gen Nov?
SELECT name FROM table_name_88 WHERE location = "tanzania" AND novelty = "gen nov"
[ 2061, 318, 6530, 11, 618, 13397, 318, 37270, 11, 290, 618, 24467, 774, 318, 5215, 5267, 30, 46506, 1438, 16034, 3084, 62, 3672, 62, 3459, 33411, 4067, 796, 366, 83, 35410, 5411, 1, 5357, 31650, 796, 366, 5235, 645, 85, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6530, 11, 618, 13397, 318, 37270, 11, 290, 618, 24467, 774, 318, 5215, 5267, 30, 46506, 1438, 16034, 3084, 62, 3672, 62, 3459, 33411, 4067, 796, 366, 83, 35410, 5411, 1, 5357, 31650, 796, 366, 5235, 645, 85, 1 ]
bleeding / hemorrhage as likely cause of hypotension
SELECT * FROM table_train_7 WHERE bleeding = 1 OR hypotension = 1
[ 903, 8228, 1220, 42203, 496, 355, 1884, 2728, 286, 8813, 3004, 46506, 1635, 16034, 3084, 62, 27432, 62, 22, 33411, 16832, 796, 352, 6375, 8813, 3004, 796, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 903, 8228, 1220, 42203, 496, 355, 1884, 2728, 286, 8813, 3004, 46506, 1635, 16034, 3084, 62, 27432, 62, 22, 33411, 16832, 796, 352, 6375, 8813, 3004, 796, 352 ]
What is the Length (ft.) for a 2008 nfi d40lf?
SELECT length__ft_ FROM table_name_67 WHERE manufacturer = "nfi" AND model = "d40lf" AND order_year = "2008"
[ 2061, 318, 262, 22313, 357, 701, 2014, 329, 257, 3648, 299, 12463, 288, 1821, 1652, 30, 46506, 4129, 834, 701, 62, 16034, 3084, 62, 3672, 62, 3134, 33411, 11554, 796, 366, 77, 12463, 1, 5357, 2746, 796, 366, 67, 1821, 1652, 1, 5357,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22313, 357, 701, 2014, 329, 257, 3648, 299, 12463, 288, 1821, 1652, 30, 46506, 4129, 834, 701, 62, 16034, 3084, 62, 3672, 62, 3134, 33411, 11554, 796, 366, 77, 12463, 1, 5357, 2746, 796, 366, 67, 1821, 1652, 1, 5357,...
A pie chart for what are the number of the category of music festivals with result 'Awarded'?
SELECT Category, COUNT(Category) FROM music_festival WHERE Result = "Awarded" GROUP BY Category
[ 32, 2508, 8262, 329, 644, 389, 262, 1271, 286, 262, 6536, 286, 2647, 25575, 351, 1255, 705, 32, 904, 276, 30960, 46506, 21743, 11, 327, 28270, 7, 27313, 8, 16034, 2647, 62, 69, 6743, 33411, 25414, 796, 366, 32, 904, 276, 1, 44441, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2508, 8262, 329, 644, 389, 262, 1271, 286, 262, 6536, 286, 2647, 25575, 351, 1255, 705, 32, 904, 276, 30960, 46506, 21743, 11, 327, 28270, 7, 27313, 8, 16034, 2647, 62, 69, 6743, 33411, 25414, 796, 366, 32, 904, 276, 1, 44441, ...
What are the most viewed questions for a given tag?.
SELECT TOP(100) AS ViewCount, Id AS "post_link" FROM Posts WHERE Id IN (SELECT PostId FROM PostTags WHERE TagId = (SELECT Id FROM Tags WHERE TagName = @TagString)) AND CreationDate > GETDATE() - '##Days##' AND CreationDate < GETDATE() - '##Olddays##' GROUP BY ViewCount, Id ORDER BY ViewCount DESC
[ 2061, 389, 262, 749, 9569, 2683, 329, 257, 1813, 7621, 30, 13, 46506, 28662, 7, 3064, 8, 7054, 3582, 12332, 11, 5121, 7054, 366, 7353, 62, 8726, 1, 16034, 12043, 33411, 5121, 3268, 357, 46506, 2947, 7390, 16034, 2947, 36142, 33411, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 749, 9569, 2683, 329, 257, 1813, 7621, 30, 13, 46506, 28662, 7, 3064, 8, 7054, 3582, 12332, 11, 5121, 7054, 366, 7353, 62, 8726, 1, 16034, 12043, 33411, 5121, 3268, 357, 46506, 2947, 7390, 16034, 2947, 36142, 33411, 17...
Find the names of all person sorted in the descending order using age.
SELECT name FROM person ORDER BY age DESC
[ 16742, 262, 3891, 286, 477, 1048, 23243, 287, 262, 31491, 1502, 1262, 2479, 13, 46506, 1438, 16034, 1048, 38678, 11050, 2479, 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 ]
[ 16742, 262, 3891, 286, 477, 1048, 23243, 287, 262, 31491, 1502, 1262, 2479, 13, 46506, 1438, 16034, 1048, 38678, 11050, 2479, 22196, 34 ]
Who was the player with a 36.74 average?
SELECT "Player" FROM table_28289 WHERE "Average" = '36.74'
[ 8241, 373, 262, 2137, 351, 257, 4570, 13, 4524, 2811, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 2078, 27693, 33411, 366, 26287, 1, 796, 705, 2623, 13, 4524, 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 ]
[ 8241, 373, 262, 2137, 351, 257, 4570, 13, 4524, 2811, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 2078, 27693, 33411, 366, 26287, 1, 796, 705, 2623, 13, 4524, 6 ]
How many division championships did the Pittsburgh Steelers have?
SELECT "Division Championships" FROM table_2060 WHERE "Teams With Division Titles" = 'Pittsburgh Steelers'
[ 2437, 867, 7297, 27459, 750, 262, 12767, 21323, 423, 30, 46506, 366, 24095, 1166, 24782, 1, 16034, 3084, 62, 1238, 1899, 33411, 366, 6767, 4105, 2080, 7458, 7659, 829, 1, 796, 705, 47627, 11931, 21323, 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 ]
[ 2437, 867, 7297, 27459, 750, 262, 12767, 21323, 423, 30, 46506, 366, 24095, 1166, 24782, 1, 16034, 3084, 62, 1238, 1899, 33411, 366, 6767, 4105, 2080, 7458, 7659, 829, 1, 796, 705, 47627, 11931, 21323, 6 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of job_id and commission_pct , order in ascending by the total number.
SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 5810, 62, 79, 310, 837, 1502, 287, 41988, 416, 262, 2472, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 5810, 62, 79, 310, 837, 1502, 287, 41988, 416, 262, 2472, ...
Name the original title directed by luis bu uel
SELECT original_title FROM table_name_85 WHERE director = "luis buñuel"
[ 5376, 262, 2656, 3670, 7924, 416, 300, 84, 271, 809, 334, 417, 46506, 2656, 62, 7839, 16034, 3084, 62, 3672, 62, 5332, 33411, 3437, 796, 366, 2290, 271, 809, 12654, 2731, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 2656, 3670, 7924, 416, 300, 84, 271, 809, 334, 417, 46506, 2656, 62, 7839, 16034, 3084, 62, 3672, 62, 5332, 33411, 3437, 796, 366, 2290, 271, 809, 12654, 2731, 1 ]
give me the number of patients whose age is less than 72 and days of hospital stay is greater than 17?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "72" AND demographic.days_stay > "17"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 7724, 290, 1528, 286, 4436, 2652, 318, 3744, 621, 1596, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2479, 318, 1342, 621, 7724, 290, 1528, 286, 4436, 2652, 318, 3744, 621, 1596, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 496, ...
What is the Japanese name of the Province with a Korean name of Chungcheong-Bukdo?
SELECT "Japanese name" FROM table_40623 WHERE "Korean name" = 'chungcheong-bukdo'
[ 2061, 318, 262, 4960, 1438, 286, 262, 22783, 351, 257, 6983, 1438, 286, 43915, 2395, 506, 12, 33, 2724, 4598, 30, 46506, 366, 25324, 1438, 1, 16034, 3084, 62, 29703, 1954, 33411, 366, 42, 29456, 1438, 1, 796, 705, 354, 2150, 2395, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4960, 1438, 286, 262, 22783, 351, 257, 6983, 1438, 286, 43915, 2395, 506, 12, 33, 2724, 4598, 30, 46506, 366, 25324, 1438, 1, 16034, 3084, 62, 29703, 1954, 33411, 366, 42, 29456, 1438, 1, 796, 705, 354, 2150, 2395, 5...
on january 7 what is the record?
SELECT record FROM table_name_63 WHERE date = "january 7"
[ 261, 42897, 2838, 767, 644, 318, 262, 1700, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 5066, 33411, 3128, 796, 366, 13881, 2838, 767, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 261, 42897, 2838, 767, 644, 318, 262, 1700, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 5066, 33411, 3128, 796, 366, 13881, 2838, 767, 1 ]
provide the number of patients whose admission location is phys referral/normal deli and item id is 51249?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND lab.itemid = "51249"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 13938, 4067, 318, 2281, 31413, 14, 11265, 1619, 72, 290, 2378, 4686, 318, 22243, 2920, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13938, 4067, 318, 2281, 31413, 14, 11265, 1619, 72, 290, 2378, 4686, 318, 22243, 2920, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32...
What is 2002 when 2009 is 54.0?
SELECT 2002 FROM table_27146868_1 WHERE 2009 = "54.0"
[ 2061, 318, 6244, 618, 3717, 318, 7175, 13, 15, 30, 46506, 6244, 16034, 3084, 62, 1983, 1415, 3104, 3104, 62, 16, 33411, 3717, 796, 366, 4051, 13, 15, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 6244, 618, 3717, 318, 7175, 13, 15, 30, 46506, 6244, 16034, 3084, 62, 1983, 1415, 3104, 3104, 62, 16, 33411, 3717, 796, 366, 4051, 13, 15, 1 ]
Which Points is the average one that has Drawn of 3, and a Played smaller than 22?
SELECT AVG(points) FROM table_name_74 WHERE drawn = 3 AND played < 22
[ 13828, 11045, 318, 262, 2811, 530, 326, 468, 50061, 286, 513, 11, 290, 257, 33101, 4833, 621, 2534, 30, 46506, 35224, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 4524, 33411, 7428, 796, 513, 5357, 2826, 1279, 2534 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 262, 2811, 530, 326, 468, 50061, 286, 513, 11, 290, 257, 33101, 4833, 621, 2534, 30, 46506, 35224, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 4524, 33411, 7428, 796, 513, 5357, 2826, 1279, 2534 ]
Which First has a Surname of searle?
SELECT "First" FROM table_5662 WHERE "Surname" = 'searle'
[ 13828, 3274, 468, 257, 311, 700, 480, 286, 9622, 293, 30, 46506, 366, 5962, 1, 16034, 3084, 62, 20, 39380, 33411, 366, 50, 700, 480, 1, 796, 705, 325, 283, 293, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 3274, 468, 257, 311, 700, 480, 286, 9622, 293, 30, 46506, 366, 5962, 1, 16034, 3084, 62, 20, 39380, 33411, 366, 50, 700, 480, 1, 796, 705, 325, 283, 293, 6 ]
What's the district that Otto Passman is the incumbent of?
SELECT "District" FROM table_731 WHERE "Incumbent" = 'Otto Passman'
[ 2061, 338, 262, 4783, 326, 30755, 6251, 805, 318, 262, 23526, 286, 30, 46506, 366, 44857, 1, 16034, 3084, 62, 22, 3132, 33411, 366, 25517, 2178, 298, 1, 796, 705, 46, 33955, 6251, 805, 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, 338, 262, 4783, 326, 30755, 6251, 805, 318, 262, 23526, 286, 30, 46506, 366, 44857, 1, 16034, 3084, 62, 22, 3132, 33411, 366, 25517, 2178, 298, 1, 796, 705, 46, 33955, 6251, 805, 6 ]
what is the candidates name who is ranked 8th?
SELECT "Candidate's Name" FROM table_66989 WHERE "Rank" = '8th'
[ 10919, 318, 262, 5871, 1438, 508, 318, 10307, 807, 400, 30, 46506, 366, 41572, 20540, 338, 6530, 1, 16034, 3084, 62, 2791, 42520, 33411, 366, 27520, 1, 796, 705, 23, 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 ]
[ 10919, 318, 262, 5871, 1438, 508, 318, 10307, 807, 400, 30, 46506, 366, 41572, 20540, 338, 6530, 1, 16034, 3084, 62, 2791, 42520, 33411, 366, 27520, 1, 796, 705, 23, 400, 6 ]
now show me the flights from MEMPHIS to CLEVELAND
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 = 'MEMPHIS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CLEVEL...
[ 2197, 905, 502, 262, 13956, 422, 35153, 11909, 1797, 284, 30301, 18697, 6981, 46506, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2197, 905, 502, 262, 13956, 422, 35153, 11909, 1797, 284, 30301, 18697, 6981, 46506, 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...
Which location is in the Belgian Congo Tanganyika?
SELECT "Location" FROM table_12651 WHERE "Country" = 'belgian congo tanganyika'
[ 13828, 4067, 318, 287, 262, 21402, 25935, 18816, 1092, 9232, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 1065, 40639, 33411, 366, 33921, 1, 796, 705, 6667, 18299, 369, 2188, 13875, 1092, 9232, 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, 4067, 318, 287, 262, 21402, 25935, 18816, 1092, 9232, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 1065, 40639, 33411, 366, 33921, 1, 796, 705, 6667, 18299, 369, 2188, 13875, 1092, 9232, 6 ]
When was the order placed whose shipment tracking number is 3452? Give me the date.
SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452
[ 2215, 373, 262, 1502, 4624, 3025, 28652, 9646, 1271, 318, 513, 37730, 30, 13786, 502, 262, 3128, 13, 46506, 309, 16, 13, 4475, 62, 2875, 62, 21820, 16034, 6266, 7054, 309, 16, 32357, 1268, 29311, 7054, 309, 17, 6177, 309, 16, 13, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 1502, 4624, 3025, 28652, 9646, 1271, 318, 513, 37730, 30, 13786, 502, 262, 3128, 13, 46506, 309, 16, 13, 4475, 62, 2875, 62, 21820, 16034, 6266, 7054, 309, 16, 32357, 1268, 29311, 7054, 309, 17, 6177, 309, 16, 13, 28...
For all organizations that have grants of more than 6000 dollars, compare the number of details of the organizations with a bar chart, display y-axis in ascending order.
SELECT organisation_details, COUNT(organisation_details) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY organisation_details ORDER BY COUNT(organisation_details)
[ 1890, 477, 5745, 326, 423, 11455, 286, 517, 621, 39064, 5054, 11, 8996, 262, 1271, 286, 3307, 286, 262, 5745, 351, 257, 2318, 8262, 11, 3359, 331, 12, 22704, 287, 41988, 1502, 13, 46506, 12684, 62, 36604, 11, 327, 28270, 7, 9971, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 477, 5745, 326, 423, 11455, 286, 517, 621, 39064, 5054, 11, 8996, 262, 1271, 286, 3307, 286, 262, 5745, 351, 257, 2318, 8262, 11, 3359, 331, 12, 22704, 287, 41988, 1502, 13, 46506, 12684, 62, 36604, 11, 327, 28270, 7, 9971, 56...
what is the number of townships with a population larger than 2,000 ?
SELECT COUNT("township") FROM table_204_616 WHERE "population" > 2000
[ 10919, 318, 262, 1271, 286, 11684, 5748, 351, 257, 3265, 4025, 621, 362, 11, 830, 5633, 46506, 327, 28270, 7203, 12735, 6720, 4943, 16034, 3084, 62, 18638, 62, 44214, 33411, 366, 39748, 1, 1875, 4751 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11684, 5748, 351, 257, 3265, 4025, 621, 362, 11, 830, 5633, 46506, 327, 28270, 7203, 12735, 6720, 4943, 16034, 3084, 62, 18638, 62, 44214, 33411, 366, 39748, 1, 1875, 4751 ]
what were the top four most prescribed drugs for patients who had also been prescribed sodium chloride 0.9 % iv : 500 ml at the same time until 3 years ago?
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'sodium chloride 0.9 % iv : 500 ml' AND DATETIME(med...
[ 10919, 547, 262, 1353, 1440, 749, 14798, 5010, 329, 3871, 508, 550, 635, 587, 14798, 21072, 44921, 657, 13, 24, 4064, 21628, 1058, 5323, 25962, 379, 262, 976, 640, 1566, 513, 812, 2084, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 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, 547, 262, 1353, 1440, 749, 14798, 5010, 329, 3871, 508, 550, 635, 587, 14798, 21072, 44921, 657, 13, 24, 4064, 21628, 1058, 5323, 25962, 379, 262, 976, 640, 1566, 513, 812, 2084, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 357,...
What are the number of the names of catalog entries with level number 8?, sort by the Y in ascending.
SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY COUNT(catalog_entry_name)
[ 2061, 389, 262, 1271, 286, 262, 3891, 286, 18388, 12784, 351, 1241, 1271, 807, 21747, 3297, 416, 262, 575, 287, 41988, 13, 46506, 18388, 62, 13000, 62, 3672, 11, 327, 28270, 7, 9246, 11794, 62, 13000, 62, 3672, 8, 16034, 44515, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 1271, 286, 262, 3891, 286, 18388, 12784, 351, 1241, 1271, 807, 21747, 3297, 416, 262, 575, 287, 41988, 13, 46506, 18388, 62, 13000, 62, 3672, 11, 327, 28270, 7, 9246, 11794, 62, 13000, 62, 3672, 8, 16034, 44515, 62, ...
what are the three diagnoses with the lowest three year survival rate?
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t4.icd9_code FROM (SELECT t3.icd9_code, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.icd9_code, 100 - SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.chartt...
[ 10919, 389, 262, 1115, 40567, 351, 262, 9016, 1115, 614, 9441, 2494, 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, 4629, 13, 291, 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...
[ 10919, 389, 262, 1115, 40567, 351, 262, 9016, 1115, 614, 9441, 2494, 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, 4629, 13, 291, 6...
How many patients aged below 43 had a test for cerebrospinal fluid (csf)?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "43" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
[ 2437, 867, 3871, 9722, 2174, 5946, 550, 257, 1332, 329, 6736, 7957, 2777, 1292, 11711, 357, 6359, 69, 19427, 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...
[ 2437, 867, 3871, 9722, 2174, 5946, 550, 257, 1332, 329, 6736, 7957, 2777, 1292, 11711, 357, 6359, 69, 19427, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, ...
WHich Places have a score smaller than 69?
SELECT "Place" FROM table_15793 WHERE "Score" < '69'
[ 12418, 488, 37291, 423, 257, 4776, 4833, 621, 8644, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 1314, 44750, 33411, 366, 26595, 1, 1279, 705, 3388, 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 ]
[ 12418, 488, 37291, 423, 257, 4776, 4833, 621, 8644, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 1314, 44750, 33411, 366, 26595, 1, 1279, 705, 3388, 6 ]
What's the method for a record of 4-2 and round smaller than 3?
SELECT method FROM table_name_78 WHERE round < 3 AND record = "4-2"
[ 2061, 338, 262, 2446, 329, 257, 1700, 286, 604, 12, 17, 290, 2835, 4833, 621, 513, 30, 46506, 2446, 16034, 3084, 62, 3672, 62, 3695, 33411, 2835, 1279, 513, 5357, 1700, 796, 366, 19, 12, 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 ]
[ 2061, 338, 262, 2446, 329, 257, 1700, 286, 604, 12, 17, 290, 2835, 4833, 621, 513, 30, 46506, 2446, 16034, 3084, 62, 3672, 62, 3695, 33411, 2835, 1279, 513, 5357, 1700, 796, 366, 19, 12, 17, 1 ]
What draft pick number was Andy Brereton?
SELECT MIN("Pick #") FROM table_30259 WHERE "Player" = 'Andy Brereton'
[ 2061, 4538, 2298, 1271, 373, 12382, 3719, 260, 1122, 30, 46506, 20625, 7203, 31686, 1303, 4943, 16034, 3084, 62, 1270, 25191, 33411, 366, 14140, 1, 796, 705, 35314, 3719, 260, 1122, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 4538, 2298, 1271, 373, 12382, 3719, 260, 1122, 30, 46506, 20625, 7203, 31686, 1303, 4943, 16034, 3084, 62, 1270, 25191, 33411, 366, 14140, 1, 796, 705, 35314, 3719, 260, 1122, 6 ]
What are the duration of the longest and shortest pop tracks in milliseconds?
SELECT MAX(Milliseconds), MIN(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop"
[ 2061, 389, 262, 9478, 286, 262, 14069, 290, 35581, 1461, 8339, 287, 38694, 30, 46506, 25882, 7, 22603, 27866, 24764, 828, 20625, 7, 22603, 27866, 24764, 8, 16034, 24700, 2200, 7054, 309, 16, 32357, 1268, 7579, 8120, 7054, 309, 17, 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 ]
[ 2061, 389, 262, 9478, 286, 262, 14069, 290, 35581, 1461, 8339, 287, 38694, 30, 46506, 25882, 7, 22603, 27866, 24764, 828, 20625, 7, 22603, 27866, 24764, 8, 16034, 24700, 2200, 7054, 309, 16, 32357, 1268, 7579, 8120, 7054, 309, 17, 6177,...
What is the Rank for Viktors Dobrecovs with less than 325 Matches?
SELECT AVG("Rank") FROM table_40981 WHERE "Name" = 'viktors dobrecovs' AND "Matches" < '325'
[ 2061, 318, 262, 10916, 329, 10447, 83, 669, 30947, 8344, 709, 82, 351, 1342, 621, 29524, 6550, 2052, 30, 46506, 35224, 7203, 27520, 4943, 16034, 3084, 62, 1821, 4089, 16, 33411, 366, 5376, 1, 796, 705, 28930, 83, 669, 466, 4679, 66, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10916, 329, 10447, 83, 669, 30947, 8344, 709, 82, 351, 1342, 621, 29524, 6550, 2052, 30, 46506, 35224, 7203, 27520, 4943, 16034, 3084, 62, 1821, 4089, 16, 33411, 366, 5376, 1, 796, 705, 28930, 83, 669, 466, 4679, 66, ...
What is the rank every company in the banking industry ordered by sales and profits? Show a bar chart.
SELECT Company, Rank FROM company WHERE Main_Industry = 'Banking' ORDER BY Sales_billion, Profits_billion
[ 2061, 318, 262, 4279, 790, 1664, 287, 262, 11754, 2831, 6149, 416, 4200, 290, 10177, 30, 5438, 257, 2318, 8262, 13, 46506, 5834, 11, 10916, 16034, 1664, 33411, 8774, 62, 35848, 563, 796, 705, 33, 15230, 6, 38678, 11050, 17329, 62, 245...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4279, 790, 1664, 287, 262, 11754, 2831, 6149, 416, 4200, 290, 10177, 30, 5438, 257, 2318, 8262, 13, 46506, 5834, 11, 10916, 16034, 1664, 33411, 8774, 62, 35848, 563, 796, 705, 33, 15230, 6, 38678, 11050, 17329, 62, 245...
what were the top five most prescribed drugs for patients who had also been prescribed senokot-s tab at the same time in 2103?
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'senokot-s tab' AND STRFTIME('%y', medication.drugst...
[ 10919, 547, 262, 1353, 1936, 749, 14798, 5010, 329, 3871, 508, 550, 635, 587, 14798, 3308, 482, 313, 12, 82, 7400, 379, 262, 976, 640, 287, 362, 15197, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 357, 46506, 256, 17, 13, 30349, 3672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 547, 262, 1353, 1936, 749, 14798, 5010, 329, 3871, 508, 550, 635, 587, 14798, 3308, 482, 313, 12, 82, 7400, 379, 262, 976, 640, 287, 362, 15197, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 357, 46506, 256, 17, 13, 30349, 3672...
what were the top four most frequent specimen tests given to patients within 2 months after the diagnosis of aspergillosis in this year?
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_...
[ 10919, 547, 262, 1353, 1440, 749, 10792, 31674, 5254, 1813, 284, 3871, 1626, 362, 1933, 706, 262, 13669, 286, 355, 525, 70, 359, 5958, 287, 428, 614, 30, 46506, 256, 18, 13, 16684, 62, 4906, 62, 20147, 16034, 357, 46506, 256, 17, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 547, 262, 1353, 1440, 749, 10792, 31674, 5254, 1813, 284, 3871, 1626, 362, 1933, 706, 262, 13669, 286, 355, 525, 70, 359, 5958, 287, 428, 614, 30, 46506, 256, 18, 13, 16684, 62, 4906, 62, 20147, 16034, 357, 46506, 256, 17, 13...
what is the transliteration during the period covered is 1125-1223?
SELECT "Transliteration" FROM table_25013 WHERE "Period covered" = '1125-1223'
[ 10919, 318, 262, 4779, 2676, 341, 1141, 262, 2278, 5017, 318, 352, 11623, 12, 1065, 1954, 30, 46506, 366, 8291, 17201, 341, 1, 16034, 3084, 62, 1495, 30273, 33411, 366, 5990, 2101, 5017, 1, 796, 705, 16, 11623, 12, 1065, 1954, 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 ]
[ 10919, 318, 262, 4779, 2676, 341, 1141, 262, 2278, 5017, 318, 352, 11623, 12, 1065, 1954, 30, 46506, 366, 8291, 17201, 341, 1, 16034, 3084, 62, 1495, 30273, 33411, 366, 5990, 2101, 5017, 1, 796, 705, 16, 11623, 12, 1065, 1954, 6 ]
What was the time of the driver with a finish position of 19?
SELECT "Time/Retired" FROM table_45012 WHERE "Fin. Pos" = '19'
[ 2061, 373, 262, 640, 286, 262, 4639, 351, 257, 5461, 2292, 286, 678, 30, 46506, 366, 7575, 14, 9781, 1202, 1, 16034, 3084, 62, 2231, 30206, 33411, 366, 18467, 13, 18574, 1, 796, 705, 1129, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 640, 286, 262, 4639, 351, 257, 5461, 2292, 286, 678, 30, 46506, 366, 7575, 14, 9781, 1202, 1, 16034, 3084, 62, 2231, 30206, 33411, 366, 18467, 13, 18574, 1, 796, 705, 1129, 6 ]
What is the average latitude for townships in Dickey county with water under 2.106 sqmi and population under 95?
SELECT AVG(latitude) FROM table_name_15 WHERE water__sqmi_ < 2.106 AND county = "dickey" AND pop__2010_ < 95
[ 2061, 318, 262, 2811, 32477, 329, 11684, 5748, 287, 360, 40389, 7968, 351, 1660, 739, 362, 13, 15801, 19862, 11632, 290, 3265, 739, 6957, 30, 46506, 35224, 7, 15460, 3984, 8, 16034, 3084, 62, 3672, 62, 1314, 33411, 1660, 834, 31166, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 32477, 329, 11684, 5748, 287, 360, 40389, 7968, 351, 1660, 739, 362, 13, 15801, 19862, 11632, 290, 3265, 739, 6957, 30, 46506, 35224, 7, 15460, 3984, 8, 16034, 3084, 62, 3672, 62, 1314, 33411, 1660, 834, 31166, 1...