instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
What Venue has a Year smaller than 1986, and a Position of 6th?
SELECT venue FROM table_name_62 WHERE year < 1986 AND position = "6th"
[ 2061, 9932, 518, 468, 257, 6280, 4833, 621, 12113, 11, 290, 257, 23158, 286, 718, 400, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 5237, 33411, 614, 1279, 12113, 5357, 2292, 796, 366, 21, 400, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9932, 518, 468, 257, 6280, 4833, 621, 12113, 11, 290, 257, 23158, 286, 718, 400, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 5237, 33411, 614, 1279, 12113, 5357, 2292, 796, 366, 21, 400, 1 ]
what is the five most frequent drugs that were prescribed during the same hospital visit to patients with age 50s after they had been diagnosed with hypertension nos until 2101?
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id 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, 318, 262, 1936, 749, 10792, 5010, 326, 547, 14798, 1141, 262, 976, 4436, 3187, 284, 3871, 351, 2479, 2026, 82, 706, 484, 550, 587, 14641, 351, 37454, 43630, 1566, 2310, 486, 30, 46506, 256, 18, 13, 30349, 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...
[ 10919, 318, 262, 1936, 749, 10792, 5010, 326, 547, 14798, 1141, 262, 976, 4436, 3187, 284, 3871, 351, 2479, 2026, 82, 706, 484, 550, 587, 14641, 351, 37454, 43630, 1566, 2310, 486, 30, 46506, 256, 18, 13, 30349, 16034, 357, 46506, 256...
what team was the visitor in the chicago game
SELECT visitor FROM table_name_33 WHERE home = "chicago"
[ 10919, 1074, 373, 262, 21493, 287, 262, 442, 4549, 983, 46506, 21493, 16034, 3084, 62, 3672, 62, 2091, 33411, 1363, 796, 366, 354, 4549, 1 ]
[ 1, 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, 1074, 373, 262, 21493, 287, 262, 442, 4549, 983, 46506, 21493, 16034, 3084, 62, 3672, 62, 2091, 33411, 1363, 796, 366, 354, 4549, 1 ]
What's the series number of the episode with production code 329?
SELECT no_in_series FROM table_18055005_1 WHERE prod_code = "329"
[ 2061, 338, 262, 2168, 1271, 286, 262, 4471, 351, 3227, 2438, 42141, 30, 46506, 645, 62, 259, 62, 25076, 16034, 3084, 62, 1507, 2713, 4059, 20, 62, 16, 33411, 40426, 62, 8189, 796, 366, 37967, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2168, 1271, 286, 262, 4471, 351, 3227, 2438, 42141, 30, 46506, 645, 62, 259, 62, 25076, 16034, 3084, 62, 1507, 2713, 4059, 20, 62, 16, 33411, 40426, 62, 8189, 796, 366, 37967, 1 ]
Who wrote the episode that had 6.05 million U.s. viewers?
SELECT "Written by" FROM table_30246 WHERE "U.S. viewers (million)" = '6.05'
[ 8241, 2630, 262, 4471, 326, 550, 718, 13, 2713, 1510, 471, 13, 82, 13, 10209, 30, 46506, 366, 25354, 416, 1, 16034, 3084, 62, 1270, 26912, 33411, 366, 52, 13, 50, 13, 10209, 357, 14100, 16725, 796, 705, 21, 13, 2713, 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 ]
[ 8241, 2630, 262, 4471, 326, 550, 718, 13, 2713, 1510, 471, 13, 82, 13, 10209, 30, 46506, 366, 25354, 416, 1, 16034, 3084, 62, 1270, 26912, 33411, 366, 52, 13, 50, 13, 10209, 357, 14100, 16725, 796, 705, 21, 13, 2713, 6 ]
Who was the home team at the game that had a crowd of over 24,520?
SELECT "Home team" FROM table_56097 WHERE "Crowd" > '24,520'
[ 8241, 373, 262, 1363, 1074, 379, 262, 983, 326, 550, 257, 4315, 286, 625, 1987, 11, 31211, 30, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 34135, 5607, 33411, 366, 34, 3986, 1, 1875, 705, 1731, 11, 31211, 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 ]
[ 8241, 373, 262, 1363, 1074, 379, 262, 983, 326, 550, 257, 4315, 286, 625, 1987, 11, 31211, 30, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 34135, 5607, 33411, 366, 34, 3986, 1, 1875, 705, 1731, 11, 31211, 6 ]
What was the double's performance data from the Monte Carlo Masters tournament in 2007?
SELECT 2007 FROM table_name_54 WHERE tournament = "monte carlo masters"
[ 2061, 373, 262, 4274, 338, 2854, 1366, 422, 262, 22489, 40089, 15812, 7756, 287, 4343, 30, 46506, 4343, 16034, 3084, 62, 3672, 62, 4051, 33411, 7756, 796, 366, 2144, 660, 1097, 5439, 18159, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4274, 338, 2854, 1366, 422, 262, 22489, 40089, 15812, 7756, 287, 4343, 30, 46506, 4343, 16034, 3084, 62, 3672, 62, 4051, 33411, 7756, 796, 366, 2144, 660, 1097, 5439, 18159, 1 ]
What is Bids, when Champions is '1'?
SELECT "Bids" FROM table_44686 WHERE "Champions" = '1'
[ 2061, 318, 347, 2340, 11, 618, 6662, 318, 705, 16, 30960, 46506, 366, 33, 2340, 1, 16034, 3084, 62, 2598, 33808, 33411, 366, 1925, 4350, 1, 796, 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, 1, 1 ]
[ 2061, 318, 347, 2340, 11, 618, 6662, 318, 705, 16, 30960, 46506, 366, 33, 2340, 1, 16034, 3084, 62, 2598, 33808, 33411, 366, 1925, 4350, 1, 796, 705, 16, 6 ]
What's the time of IFL: Championship Final?
SELECT time FROM table_name_98 WHERE event = "ifl: championship final"
[ 2061, 338, 262, 640, 286, 314, 3697, 25, 10749, 8125, 30, 46506, 640, 16034, 3084, 62, 3672, 62, 4089, 33411, 1785, 796, 366, 361, 75, 25, 12184, 2457, 1 ]
[ 1, 1, 1, 1, 1, 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, 640, 286, 314, 3697, 25, 10749, 8125, 30, 46506, 640, 16034, 3084, 62, 3672, 62, 4089, 33411, 1785, 796, 366, 361, 75, 25, 12184, 2457, 1 ]
Which Date has a Game site of shea stadium, and a Week of 5?
SELECT "Date" FROM table_34408 WHERE "Game site" = 'shea stadium' AND "Week" = '5'
[ 13828, 7536, 468, 257, 3776, 2524, 286, 673, 64, 10308, 11, 290, 257, 6119, 286, 642, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 2682, 26200, 33411, 366, 8777, 2524, 1, 796, 705, 7091, 64, 10308, 6, 5357, 366, 20916, 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 ]
[ 13828, 7536, 468, 257, 3776, 2524, 286, 673, 64, 10308, 11, 290, 257, 6119, 286, 642, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 2682, 26200, 33411, 366, 8777, 2524, 1, 796, 705, 7091, 64, 10308, 6, 5357, 366, 20916, 1, 796, 705, ...
what number of male patients were diagnosed with anemia in chronic kidney disease?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Anemia in chronic kidney disease"
[ 10919, 1271, 286, 4257, 3871, 547, 14641, 351, 281, 22859, 287, 10726, 21919, 4369, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 1271, 286, 4257, 3871, 547, 14641, 351, 281, 22859, 287, 10726, 21919, 4369, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76,...
What county is the St. Augustine bridge in?
SELECT county FROM table_name_98 WHERE location = "st. augustine"
[ 2061, 7968, 318, 262, 520, 13, 36158, 7696, 287, 30, 46506, 7968, 16034, 3084, 62, 3672, 62, 4089, 33411, 4067, 796, 366, 301, 13, 16339, 436, 500, 1 ]
[ 1, 1, 1, 1, 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, 7968, 318, 262, 520, 13, 36158, 7696, 287, 30, 46506, 7968, 16034, 3084, 62, 3672, 62, 4089, 33411, 4067, 796, 366, 301, 13, 16339, 436, 500, 1 ]
What was the score of the golfer representing Scotland?
SELECT "Score" FROM table_62666 WHERE "Country" = 'scotland'
[ 2061, 373, 262, 4776, 286, 262, 43791, 2232, 10200, 8838, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 45191, 2791, 33411, 366, 33921, 1, 796, 705, 1416, 313, 1044, 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, 373, 262, 4776, 286, 262, 43791, 2232, 10200, 8838, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 45191, 2791, 33411, 366, 33921, 1, 796, 705, 1416, 313, 1044, 6 ]
What round was the draft pick of tight end with an Overall larger than 21?
SELECT COUNT("Round") FROM table_33586 WHERE "Position" = 'tight end' AND "Overall" > '21'
[ 2061, 2835, 373, 262, 4538, 2298, 286, 5381, 886, 351, 281, 14674, 4025, 621, 2310, 30, 46506, 327, 28270, 7203, 22685, 4943, 16034, 3084, 62, 2091, 29796, 33411, 366, 26545, 1, 796, 705, 33464, 886, 6, 5357, 366, 16350, 1, 1875, 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 ]
[ 2061, 2835, 373, 262, 4538, 2298, 286, 5381, 886, 351, 281, 14674, 4025, 621, 2310, 30, 46506, 327, 28270, 7203, 22685, 4943, 16034, 3084, 62, 2091, 29796, 33411, 366, 26545, 1, 796, 705, 33464, 886, 6, 5357, 366, 16350, 1, 1875, 705,...
Name the driver for race 2 2
SELECT "Driver" FROM table_20115 WHERE "Race 2" = '2'
[ 5376, 262, 4639, 329, 3234, 362, 362, 46506, 366, 32103, 1, 16034, 3084, 62, 1264, 1314, 33411, 366, 35157, 362, 1, 796, 705, 17, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 4639, 329, 3234, 362, 362, 46506, 366, 32103, 1, 16034, 3084, 62, 1264, 1314, 33411, 366, 35157, 362, 1, 796, 705, 17, 6 ]
What is the rate limit when the desired rate (p) is 162?
SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate__p_ = "162"
[ 2061, 318, 262, 2494, 4179, 618, 262, 10348, 2494, 357, 79, 8, 318, 25090, 30, 46506, 2494, 62, 32374, 834, 79, 62, 16034, 3084, 62, 28592, 14656, 1065, 62, 16, 33411, 10348, 62, 4873, 834, 79, 62, 796, 366, 25061, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2494, 4179, 618, 262, 10348, 2494, 357, 79, 8, 318, 25090, 30, 46506, 2494, 62, 32374, 834, 79, 62, 16034, 3084, 62, 28592, 14656, 1065, 62, 16, 33411, 10348, 62, 4873, 834, 79, 62, 796, 366, 25061, 1 ]
What is the english translation of the traditional Chinese word, ?
SELECT "English translation" FROM table_12583 WHERE "Traditional Chinese" = '哀郢'
[ 2061, 318, 262, 46932, 11059, 286, 262, 4569, 3999, 1573, 11, 5633, 46506, 366, 15823, 11059, 1, 16034, 3084, 62, 1065, 46239, 33411, 366, 48485, 3999, 1, 796, 705, 161, 241, 222, 32849, 95, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 46932, 11059, 286, 262, 4569, 3999, 1573, 11, 5633, 46506, 366, 15823, 11059, 1, 16034, 3084, 62, 1065, 46239, 33411, 366, 48485, 3999, 1, 796, 705, 161, 241, 222, 32849, 95, 6 ]
What is the lowest car with more than 122 yards?
SELECT MIN(car) FROM table_name_37 WHERE yards > 122
[ 2061, 318, 262, 9016, 1097, 351, 517, 621, 19409, 5695, 30, 46506, 20625, 7, 7718, 8, 16034, 3084, 62, 3672, 62, 2718, 33411, 5695, 1875, 19409 ]
[ 1, 1, 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, 1097, 351, 517, 621, 19409, 5695, 30, 46506, 20625, 7, 7718, 8, 16034, 3084, 62, 3672, 62, 2718, 33411, 5695, 1875, 19409 ]
What is the IHSAA Football Class for county 67 putnam at Greencastle?
SELECT "IHSAA Football Class" FROM table_64092 WHERE "County" = '67 putnam' AND "School" = 'greencastle'
[ 2061, 318, 262, 314, 7998, 3838, 9957, 5016, 329, 7968, 8275, 1234, 7402, 379, 3469, 18676, 30, 46506, 366, 40, 7998, 3838, 9957, 5016, 1, 16034, 3084, 62, 31102, 5892, 33411, 366, 12332, 88, 1, 796, 705, 3134, 1234, 7402, 6, 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, 314, 7998, 3838, 9957, 5016, 329, 7968, 8275, 1234, 7402, 379, 3469, 18676, 30, 46506, 366, 40, 7998, 3838, 9957, 5016, 1, 16034, 3084, 62, 31102, 5892, 33411, 366, 12332, 88, 1, 796, 705, 3134, 1234, 7402, 6, 5357, ...
how many years did ifk finish in less than 4th place ?
SELECT COUNT("season") FROM table_204_42 WHERE "position" < 4
[ 4919, 867, 812, 750, 611, 74, 5461, 287, 1342, 621, 604, 400, 1295, 5633, 46506, 327, 28270, 7203, 6230, 4943, 16034, 3084, 62, 18638, 62, 3682, 33411, 366, 9150, 1, 1279, 604 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 611, 74, 5461, 287, 1342, 621, 604, 400, 1295, 5633, 46506, 327, 28270, 7203, 6230, 4943, 16034, 3084, 62, 18638, 62, 3682, 33411, 366, 9150, 1, 1279, 604 ]
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the amount of name , and group by attribute name, and list from low to high by the Name please.
SELECT T1.Name, COUNT(T1.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1438, 290, 262, 2033, 286, 1438, 837, 290, 1448, 416, 11688, 1438, 11, 290, 1351, 422, 1877, 284, 1029, 416, 262, 6530, 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, 1...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1438, 290, 262, 2033, 286, 1438, 837, 290, 1448, 416, 11688, 1438, 11, 290, 1351, 422, 1877, 284, 1029, 416, 262, 6530, 3387, 1...
provide the number of patients whose year of birth is less than 2034?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dob_year < "2034"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 614, 286, 4082, 318, 1342, 621, 1160, 2682, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 67, 672, 62, 1941, 1279, 366, 1238, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 614, 286, 4082, 318, 1342, 621, 1160, 2682, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 67, 672, 62, 1941, 1279, 366, 1238, 26...
What league has 2-3 as the away?
SELECT "League" FROM table_58912 WHERE "Away" = '2-3'
[ 2061, 4652, 468, 362, 12, 18, 355, 262, 1497, 30, 46506, 366, 24623, 1, 16034, 3084, 62, 44169, 1065, 33411, 366, 32, 1014, 1, 796, 705, 17, 12, 18, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 4652, 468, 362, 12, 18, 355, 262, 1497, 30, 46506, 366, 24623, 1, 16034, 3084, 62, 44169, 1065, 33411, 366, 32, 1014, 1, 796, 705, 17, 12, 18, 6 ]
How many wins did SD Eibar, which played less than 38 games, have?
SELECT SUM("Wins") FROM table_51882 WHERE "Club" = 'sd eibar' AND "Played" < '38'
[ 2437, 867, 7864, 750, 9834, 412, 571, 283, 11, 543, 2826, 1342, 621, 4353, 1830, 11, 423, 30, 46506, 35683, 7203, 54, 1040, 4943, 16034, 3084, 62, 44085, 6469, 33411, 366, 42350, 1, 796, 705, 21282, 304, 571, 283, 6, 5357, 366, 1100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 750, 9834, 412, 571, 283, 11, 543, 2826, 1342, 621, 4353, 1830, 11, 423, 30, 46506, 35683, 7203, 54, 1040, 4943, 16034, 3084, 62, 44085, 6469, 33411, 366, 42350, 1, 796, 705, 21282, 304, 571, 283, 6, 5357, 366, 1100...
Who was performer 3 with karen maruyama as performer 2?
SELECT performer_3 FROM table_name_67 WHERE performer_2 = "karen maruyama"
[ 8241, 373, 26960, 513, 351, 479, 5757, 1667, 4669, 1689, 355, 26960, 362, 30, 46506, 26960, 62, 18, 16034, 3084, 62, 3672, 62, 3134, 33411, 26960, 62, 17, 796, 366, 74, 5757, 1667, 4669, 1689, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 26960, 513, 351, 479, 5757, 1667, 4669, 1689, 355, 26960, 362, 30, 46506, 26960, 62, 18, 16034, 3084, 62, 3672, 62, 3134, 33411, 26960, 62, 17, 796, 366, 74, 5757, 1667, 4669, 1689, 1 ]
count the number of patients who were admitted until 2102 to the hospital.
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE STRFTIME('%y', patient.hospitaladmittime) <= '2102'
[ 9127, 262, 1271, 286, 3871, 508, 547, 6848, 1566, 362, 15377, 284, 262, 4436, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 19269, 9792, 12789, 10786, 4, 88, 3256, 5827, 13, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9127, 262, 1271, 286, 3871, 508, 547, 6848, 1566, 362, 15377, 284, 262, 4436, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 19269, 9792, 12789, 10786, 4, 88, 3256, 5827, 13, 49...
Which Record has a Date of 3 march 2013?
SELECT "Record" FROM table_42249 WHERE "Date" = '3 march 2013'
[ 13828, 13266, 468, 257, 7536, 286, 513, 9960, 2211, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 3682, 21626, 33411, 366, 10430, 1, 796, 705, 18, 9960, 2211, 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 ]
[ 13828, 13266, 468, 257, 7536, 286, 513, 9960, 2211, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 3682, 21626, 33411, 366, 10430, 1, 796, 705, 18, 9960, 2211, 6 ]
What is the total points listed that includes P listed Tyres after 1986?
SELECT SUM(points) FROM table_name_76 WHERE tyres = "p" AND year > 1986
[ 2061, 318, 262, 2472, 2173, 5610, 326, 3407, 350, 5610, 7039, 411, 706, 12113, 30, 46506, 35683, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 4304, 33411, 40498, 796, 366, 79, 1, 5357, 614, 1875, 12113 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2472, 2173, 5610, 326, 3407, 350, 5610, 7039, 411, 706, 12113, 30, 46506, 35683, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 4304, 33411, 40498, 796, 366, 79, 1, 5357, 614, 1875, 12113 ]
Can you tell me if there is a 11 -credit ASIAN 400 -level course ?
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE program_course.catego...
[ 6090, 345, 1560, 502, 611, 612, 318, 257, 1367, 532, 43082, 7054, 16868, 7337, 532, 5715, 1781, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 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...
[ 6090, 345, 1560, 502, 611, 612, 318, 257, 1367, 532, 43082, 7054, 16868, 7337, 532, 5715, 1781, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 3268, 21479, 32357, 1268, ...
What is the lowest number of games played for deportivo espa ol?
SELECT MIN(played) FROM table_14460085_3 WHERE team = "Deportivo Español"
[ 2061, 318, 262, 9016, 1271, 286, 1830, 2826, 329, 29489, 23593, 1658, 8957, 25776, 30, 46506, 20625, 7, 21542, 8, 16034, 3084, 62, 1415, 3510, 405, 5332, 62, 18, 33411, 1074, 796, 366, 12156, 419, 23593, 20386, 64, 12654, 349, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 1830, 2826, 329, 29489, 23593, 1658, 8957, 25776, 30, 46506, 20625, 7, 21542, 8, 16034, 3084, 62, 1415, 3510, 405, 5332, 62, 18, 33411, 1074, 796, 366, 12156, 419, 23593, 20386, 64, 12654, 349, 1 ]
For the top 3 days with the largest max gust speeds, please bin the date into day of the week and then sum the mean humidity to visualize a bar chart.
SELECT date, SUM(mean_humidity) FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3
[ 1890, 262, 1353, 513, 1528, 351, 262, 4387, 3509, 35253, 12055, 11, 3387, 9874, 262, 3128, 656, 1110, 286, 262, 1285, 290, 788, 2160, 262, 1612, 27716, 284, 38350, 257, 2318, 8262, 13, 46506, 3128, 11, 35683, 7, 32604, 62, 17047, 1799...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1353, 513, 1528, 351, 262, 4387, 3509, 35253, 12055, 11, 3387, 9874, 262, 3128, 656, 1110, 286, 262, 1285, 290, 788, 2160, 262, 1612, 27716, 284, 38350, 257, 2318, 8262, 13, 46506, 3128, 11, 35683, 7, 32604, 62, 17047, 1799...
count the number of patients whose procedure icd9 code is 9907?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "9907"
[ 9127, 262, 1271, 286, 3871, 3025, 8771, 14158, 67, 24, 2438, 318, 7388, 2998, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 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 ]
[ 9127, 262, 1271, 286, 3871, 3025, 8771, 14158, 67, 24, 2438, 318, 7388, 2998, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76, 62, ...
What is the resolution of the network Carismatv?
SELECT resolution FROM table_name_47 WHERE network = "carismatv"
[ 2061, 318, 262, 6323, 286, 262, 3127, 1879, 1042, 265, 85, 30, 46506, 6323, 16034, 3084, 62, 3672, 62, 2857, 33411, 3127, 796, 366, 7718, 1042, 265, 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 ]
[ 2061, 318, 262, 6323, 286, 262, 3127, 1879, 1042, 265, 85, 30, 46506, 6323, 16034, 3084, 62, 3672, 62, 2857, 33411, 3127, 796, 366, 7718, 1042, 265, 85, 1 ]
state the round that had a game attended attended by 9359 people
SELECT round FROM table_21256068_3 WHERE attendance = 9359
[ 5219, 262, 2835, 326, 550, 257, 983, 9141, 9141, 416, 860, 30743, 661, 46506, 2835, 16034, 3084, 62, 17, 11623, 1899, 3104, 62, 18, 33411, 14858, 796, 860, 30743 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5219, 262, 2835, 326, 550, 257, 983, 9141, 9141, 416, 860, 30743, 661, 46506, 2835, 16034, 3084, 62, 17, 11623, 1899, 3104, 62, 18, 33411, 14858, 796, 860, 30743 ]
How many points did Stuart have when he had less than 1 touchdown?
SELECT SUM(points) FROM table_name_80 WHERE player = "stuart" AND touchdowns < 1
[ 2437, 867, 2173, 750, 22559, 423, 618, 339, 550, 1342, 621, 352, 10242, 30, 46506, 35683, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 1795, 33411, 2137, 796, 366, 301, 19986, 1, 5357, 17692, 1279, 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, 1 ]
[ 2437, 867, 2173, 750, 22559, 423, 618, 339, 550, 1342, 621, 352, 10242, 30, 46506, 35683, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 1795, 33411, 2137, 796, 366, 301, 19986, 1, 5357, 17692, 1279, 352 ]
What is the Series of the Filmography with Release date of 1946-01-05?
SELECT "Series" FROM table_65111 WHERE "Release date" = '1946-01-05'
[ 2061, 318, 262, 7171, 286, 262, 13741, 4867, 351, 13868, 3128, 286, 22717, 12, 486, 12, 2713, 30, 46506, 366, 27996, 1, 16034, 3084, 62, 2996, 16243, 33411, 366, 26362, 3128, 1, 796, 705, 1129, 3510, 12, 486, 12, 2713, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 7171, 286, 262, 13741, 4867, 351, 13868, 3128, 286, 22717, 12, 486, 12, 2713, 30, 46506, 366, 27996, 1, 16034, 3084, 62, 2996, 16243, 33411, 366, 26362, 3128, 1, 796, 705, 1129, 3510, 12, 486, 12, 2713, 6 ]
How many different total results are there for the model with parchment/black interior/roof?
SELECT COUNT("Totals") FROM table_23796 WHERE "Interior/Roof" = 'Parchment/black'
[ 2437, 867, 1180, 2472, 2482, 389, 612, 329, 262, 2746, 351, 38414, 14, 13424, 11087, 14, 305, 1659, 30, 46506, 327, 28270, 7203, 51, 313, 874, 4943, 16034, 3084, 62, 1954, 41060, 33411, 366, 9492, 1504, 14, 15450, 1659, 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 ]
[ 2437, 867, 1180, 2472, 2482, 389, 612, 329, 262, 2746, 351, 38414, 14, 13424, 11087, 14, 305, 1659, 30, 46506, 327, 28270, 7203, 51, 313, 874, 4943, 16034, 3084, 62, 1954, 41060, 33411, 366, 9492, 1504, 14, 15450, 1659, 1, 796, 705, ...
What party has a district of 28 and was elected after 1983?
SELECT "Party" FROM table_5859 WHERE "Elected" > '1983' AND "District" = '28'
[ 2061, 2151, 468, 257, 4783, 286, 2579, 290, 373, 7018, 706, 13540, 30, 46506, 366, 33553, 1, 16034, 3084, 62, 3365, 3270, 33411, 366, 36, 12609, 1, 1875, 705, 29279, 6, 5357, 366, 44857, 1, 796, 705, 2078, 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, 2151, 468, 257, 4783, 286, 2579, 290, 373, 7018, 706, 13540, 30, 46506, 366, 33553, 1, 16034, 3084, 62, 3365, 3270, 33411, 366, 36, 12609, 1, 1875, 705, 29279, 6, 5357, 366, 44857, 1, 796, 705, 2078, 6 ]
Show the ids and names of festivals that have at least two nominations for artworks by a bar chart.
SELECT T3.Festival_Name, T1.Festival_ID FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID
[ 15307, 262, 220, 2340, 290, 3891, 286, 25575, 326, 423, 379, 1551, 734, 30994, 329, 1242, 5225, 416, 257, 2318, 8262, 13, 46506, 309, 18, 13, 37, 6743, 62, 5376, 11, 309, 16, 13, 37, 6743, 62, 2389, 16034, 11872, 7054, 309, 16, 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...
[ 15307, 262, 220, 2340, 290, 3891, 286, 25575, 326, 423, 379, 1551, 734, 30994, 329, 1242, 5225, 416, 257, 2318, 8262, 13, 46506, 309, 18, 13, 37, 6743, 62, 5376, 11, 309, 16, 13, 37, 6743, 62, 2389, 16034, 11872, 7054, 309, 16, 32...
Plot the number of investor details by grouped by investor details as a bar graph, and order in ascending by the bar.
SELECT Investor_details, COUNT(Investor_details) FROM Investors GROUP BY Investor_details ORDER BY Investor_details
[ 43328, 262, 1271, 286, 15811, 3307, 416, 32824, 416, 15811, 3307, 355, 257, 2318, 4823, 11, 290, 1502, 287, 41988, 416, 262, 2318, 13, 46506, 47979, 62, 36604, 11, 327, 28270, 7, 19070, 273, 62, 36604, 8, 16034, 38898, 44441, 11050, 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 ]
[ 43328, 262, 1271, 286, 15811, 3307, 416, 32824, 416, 15811, 3307, 355, 257, 2318, 4823, 11, 290, 1502, 287, 41988, 416, 262, 2318, 13, 46506, 47979, 62, 36604, 11, 327, 28270, 7, 19070, 273, 62, 36604, 8, 16034, 38898, 44441, 11050, 4...
What is the type of sco country?
SELECT type FROM table_name_92 WHERE country = "sco"
[ 2061, 318, 262, 2099, 286, 629, 78, 1499, 30, 46506, 2099, 16034, 3084, 62, 3672, 62, 5892, 33411, 1499, 796, 366, 82, 1073, 1 ]
[ 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, 2099, 286, 629, 78, 1499, 30, 46506, 2099, 16034, 3084, 62, 3672, 62, 5892, 33411, 1499, 796, 366, 82, 1073, 1 ]
When To par was less than 2, what was the score?
SELECT score FROM table_name_51 WHERE to_par < 2
[ 2215, 1675, 1582, 373, 1342, 621, 362, 11, 644, 373, 262, 4776, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 4349, 33411, 284, 62, 1845, 1279, 362 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 1675, 1582, 373, 1342, 621, 362, 11, 644, 373, 262, 4776, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 4349, 33411, 284, 62, 1845, 1279, 362 ]
What is the sum of the values for N, Laakso-Taagepera, when Largest Component, Fractional Share is 0.35000000000000003, and when Constellation is E?
SELECT SUM("N, Laakso-Taagepera") FROM table_43953 WHERE "Largest component, fractional share" = '0.35000000000000003' AND "Constellation" = 'e'
[ 2061, 318, 262, 2160, 286, 262, 3815, 329, 399, 11, 4689, 461, 568, 12, 38586, 496, 525, 64, 11, 618, 406, 853, 395, 35100, 11, 376, 7861, 282, 8734, 318, 657, 13, 2327, 8269, 10535, 18, 11, 290, 618, 4757, 28828, 318, 412, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 318, 262, 2160, 286, 262, 3815, 329, 399, 11, 4689, 461, 568, 12, 38586, 496, 525, 64, 11, 618, 406, 853, 395, 35100, 11, 376, 7861, 282, 8734, 318, 657, 13, 2327, 8269, 10535, 18, 11, 290, 618, 4757, 28828, 318, 412, 30, ...
excessive alcohol intake
SELECT * FROM table_dev_25 WHERE alcohol_abuse = 1
[ 1069, 45428, 5548, 10337, 46506, 1635, 16034, 3084, 62, 7959, 62, 1495, 33411, 5548, 62, 47158, 796, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1069, 45428, 5548, 10337, 46506, 1635, 16034, 3084, 62, 7959, 62, 1495, 33411, 5548, 62, 47158, 796, 352 ]
A bar chart about what are the average prices of products, grouped by manufacturer name?, I want to rank by the names in descending.
SELECT T2.Name, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC
[ 32, 2318, 8262, 546, 644, 389, 262, 2811, 4536, 286, 3186, 11, 32824, 416, 11554, 1438, 21747, 314, 765, 284, 4279, 416, 262, 3891, 287, 31491, 13, 46506, 309, 17, 13, 5376, 11, 35224, 7, 51, 16, 13, 18124, 8, 16034, 18675, 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...
[ 32, 2318, 8262, 546, 644, 389, 262, 2811, 4536, 286, 3186, 11, 32824, 416, 11554, 1438, 21747, 314, 765, 284, 4279, 416, 262, 3891, 287, 31491, 13, 46506, 309, 17, 13, 5376, 11, 35224, 7, 51, 16, 13, 18124, 8, 16034, 18675, 7054, ...
What is the B score for the person with a total of 16.325 and an A score of more than 7.3?
SELECT AVG(b_score) FROM table_name_85 WHERE total = 16.325 AND a_score > 7.3
[ 2061, 318, 262, 347, 4776, 329, 262, 1048, 351, 257, 2472, 286, 1467, 13, 26582, 290, 281, 317, 4776, 286, 517, 621, 767, 13, 18, 30, 46506, 35224, 7, 65, 62, 26675, 8, 16034, 3084, 62, 3672, 62, 5332, 33411, 2472, 796, 1467, 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 ]
[ 2061, 318, 262, 347, 4776, 329, 262, 1048, 351, 257, 2472, 286, 1467, 13, 26582, 290, 281, 317, 4776, 286, 517, 621, 767, 13, 18, 30, 46506, 35224, 7, 65, 62, 26675, 8, 16034, 3084, 62, 3672, 62, 5332, 33411, 2472, 796, 1467, 13, ...
what number of patients were prescribed mycophenolate mofetil within the same hospital visit after receiving a extracorporeal circulat procedure?
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_...
[ 10919, 1271, 286, 3871, 547, 14798, 616, 22163, 831, 27976, 285, 1659, 316, 346, 1626, 262, 976, 4436, 3187, 706, 6464, 257, 1070, 11510, 16300, 39396, 2498, 377, 265, 8771, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 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, 1271, 286, 3871, 547, 14798, 616, 22163, 831, 27976, 285, 1659, 316, 346, 1626, 262, 976, 4436, 3187, 706, 6464, 257, 1070, 11510, 16300, 39396, 2498, 377, 265, 8771, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13,...
What is the result of Courtney Walsh ?
SELECT "Result" FROM table_80199 WHERE "Home captain" = 'courtney walsh'
[ 2061, 318, 262, 1255, 286, 36677, 24104, 5633, 46506, 366, 23004, 1, 16034, 3084, 62, 41531, 2079, 33411, 366, 16060, 10654, 1, 796, 705, 22230, 1681, 266, 22114, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1255, 286, 36677, 24104, 5633, 46506, 366, 23004, 1, 16034, 3084, 62, 41531, 2079, 33411, 366, 16060, 10654, 1, 796, 705, 22230, 1681, 266, 22114, 6 ]
What is the grid total for alain prost with over 14 laps?
SELECT SUM(grid) FROM table_name_91 WHERE laps > 14 AND driver = "alain prost"
[ 2061, 318, 262, 10706, 2472, 329, 435, 391, 11825, 351, 625, 1478, 24590, 30, 46506, 35683, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 24590, 1875, 1478, 5357, 4639, 796, 366, 282, 391, 11825, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10706, 2472, 329, 435, 391, 11825, 351, 625, 1478, 24590, 30, 46506, 35683, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 24590, 1875, 1478, 5357, 4639, 796, 366, 282, 391, 11825, 1 ]
Show ids, customer ids, names for all accounts.
SELECT account_id, customer_id, account_name FROM Accounts
[ 15307, 220, 2340, 11, 6491, 220, 2340, 11, 3891, 329, 477, 5504, 13, 46506, 1848, 62, 312, 11, 6491, 62, 312, 11, 1848, 62, 3672, 16034, 35584 ]
[ 1, 1, 1, 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, 220, 2340, 11, 6491, 220, 2340, 11, 3891, 329, 477, 5504, 13, 46506, 1848, 62, 312, 11, 6491, 62, 312, 11, 1848, 62, 3672, 16034, 35584 ]
give me the number of patients whose death status is 1 and diagnoses icd9 code is v5883?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.icd9_code = "V5883"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 1918, 3722, 318, 352, 290, 40567, 14158, 67, 24, 2438, 318, 410, 3365, 5999, 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...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 1918, 3722, 318, 352, 290, 40567, 14158, 67, 24, 2438, 318, 410, 3365, 5999, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268,...
Which courses in Directed Russian Literature satisfy the current MDE requirement ?
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%Directed Russian Literature%' OR course.description LIKE '%Directed Russian Literature%' OR cour...
[ 13828, 10902, 287, 4128, 276, 3394, 33818, 15959, 262, 1459, 337, 7206, 9079, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 3268, 21479, 32357, 1268, 1989, 6177, 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, 1...
[ 13828, 10902, 287, 4128, 276, 3394, 33818, 15959, 262, 1459, 337, 7206, 9079, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 3268, 21479, 32357, 1268, 1989, 6177, 1781, 1...
What courses will be offered this Fall ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND semester.semester = 'Fall' AND semester.semester_id = course_offering.semester AND semester.year = 2016
[ 2061, 10902, 481, 307, 4438, 428, 7218, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 13, 17319, 62, 312, 796, 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...
[ 2061, 10902, 481, 307, 4438, 428, 7218, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 13, 17319, 62, 312, 796, 1781, ...
What is the # of candidates of liberal majority with 51 wins and larger number of 2008 in general elections?
SELECT AVG("# of candidates") FROM table_33387 WHERE "Result" = 'liberal majority' AND "# of seats won" = '51' AND "General election" > '2008'
[ 2061, 318, 262, 1303, 286, 5871, 286, 7270, 3741, 351, 6885, 7864, 290, 4025, 1271, 286, 3648, 287, 2276, 7024, 30, 46506, 35224, 7203, 2, 286, 5871, 4943, 16034, 3084, 62, 2091, 32220, 33411, 366, 23004, 1, 796, 705, 35739, 3741, 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 ]
[ 2061, 318, 262, 1303, 286, 5871, 286, 7270, 3741, 351, 6885, 7864, 290, 4025, 1271, 286, 3648, 287, 2276, 7024, 30, 46506, 35224, 7203, 2, 286, 5871, 4943, 16034, 3084, 62, 2091, 32220, 33411, 366, 23004, 1, 796, 705, 35739, 3741, 6, ...
what is the language when the english translation is come to me?
SELECT language FROM table_name_18 WHERE english_translation = "come to me"
[ 10919, 318, 262, 3303, 618, 262, 46932, 11059, 318, 1282, 284, 502, 30, 46506, 3303, 16034, 3084, 62, 3672, 62, 1507, 33411, 46932, 62, 41519, 796, 366, 2958, 284, 502, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 3303, 618, 262, 46932, 11059, 318, 1282, 284, 502, 30, 46506, 3303, 16034, 3084, 62, 3672, 62, 1507, 33411, 46932, 62, 41519, 796, 366, 2958, 284, 502, 1 ]
Which home team has an Away team score of 18.21 (129)?
SELECT "Home team" FROM table_56250 WHERE "Away team score" = '18.21 (129)'
[ 13828, 1363, 1074, 468, 281, 21986, 1074, 4776, 286, 1248, 13, 2481, 357, 18741, 19427, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 3980, 9031, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 1507, 13, 2481, 357, 18741, 33047 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 1363, 1074, 468, 281, 21986, 1074, 4776, 286, 1248, 13, 2481, 357, 18741, 19427, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 3980, 9031, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 1507, 13, 2481, 357, 18741, 33047 ]
when was the first time patient 22449 was having less than 111.0 arterial bp [systolic] since 1302 days ago?
SELECT chartevents.charttime 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 = 22449)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial...
[ 12518, 373, 262, 717, 640, 5827, 26063, 2920, 373, 1719, 1342, 621, 13374, 13, 15, 30675, 498, 275, 79, 685, 1837, 301, 4160, 60, 1201, 11323, 17, 1528, 2084, 30, 46506, 8262, 31534, 13, 40926, 2435, 16034, 8262, 31534, 33411, 8262, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 373, 262, 717, 640, 5827, 26063, 2920, 373, 1719, 1342, 621, 13374, 13, 15, 30675, 498, 275, 79, 685, 1837, 301, 4160, 60, 1201, 11323, 17, 1528, 2084, 30, 46506, 8262, 31534, 13, 40926, 2435, 16034, 8262, 31534, 33411, 8262, 3...
What denomination was produced in 2006?
SELECT denomination FROM table_name_80 WHERE year = 2006
[ 2061, 47491, 373, 4635, 287, 4793, 30, 46506, 47491, 16034, 3084, 62, 3672, 62, 1795, 33411, 614, 796, 4793 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 47491, 373, 4635, 287, 4793, 30, 46506, 47491, 16034, 3084, 62, 3672, 62, 1795, 33411, 614, 796, 4793 ]
What is the highest rank for less than 15 Wickets?
SELECT MAX("Rank") FROM table_13233 WHERE "Wickets" < '15'
[ 2061, 318, 262, 4511, 4279, 329, 1342, 621, 1315, 370, 15970, 30, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 1485, 25429, 33411, 366, 54, 15970, 1, 1279, 705, 1314, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 4279, 329, 1342, 621, 1315, 370, 15970, 30, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 1485, 25429, 33411, 366, 54, 15970, 1, 1279, 705, 1314, 6 ]
What is the date for Zouave?
SELECT "Date" FROM table_55911 WHERE "Name" = 'zouave'
[ 2061, 318, 262, 3128, 329, 1168, 280, 1015, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 2816, 35549, 33411, 366, 5376, 1, 796, 705, 89, 280, 1015, 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 ]
[ 2061, 318, 262, 3128, 329, 1168, 280, 1015, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 2816, 35549, 33411, 366, 5376, 1, 796, 705, 89, 280, 1015, 6 ]
how many times did patient 027-142835 actually get a foley cath until 12/26/2105?
SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-142835')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.c...
[ 4919, 867, 1661, 750, 5827, 657, 1983, 12, 1415, 2078, 2327, 1682, 651, 257, 11511, 1636, 32171, 1566, 1105, 14, 2075, 14, 17, 13348, 30, 46506, 327, 28270, 7, 28104, 16034, 10337, 22915, 33411, 10337, 22915, 13, 26029, 20850, 31712, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 1661, 750, 5827, 657, 1983, 12, 1415, 2078, 2327, 1682, 651, 257, 11511, 1636, 32171, 1566, 1105, 14, 2075, 14, 17, 13348, 30, 46506, 327, 28270, 7, 28104, 16034, 10337, 22915, 33411, 10337, 22915, 13, 26029, 20850, 31712, 31...
what procedure did patient 025-13899 receive the last time this year.
SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-13899')) AND DATETIME(treatment.treatmenttime, 'start of year...
[ 10919, 8771, 750, 5827, 657, 1495, 12, 20107, 2079, 3328, 262, 938, 640, 428, 614, 13, 46506, 3513, 13, 42487, 3672, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8771, 750, 5827, 657, 1495, 12, 20107, 2079, 3328, 262, 938, 640, 428, 614, 13, 46506, 3513, 13, 42487, 3672, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 58...
What courses can I take in the Fall or Winter semester to satisfy my MDE requirement ?
SELECT DISTINCT COURSEalias0.department, COURSEalias0.name, COURSEalias0.number, SEMESTERalias0.semester FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, program_course AS PROGRAM_COURSEalias0...
[ 2061, 10902, 460, 314, 1011, 287, 262, 7218, 393, 10633, 24878, 284, 15959, 616, 337, 7206, 9079, 5633, 46506, 360, 8808, 1268, 4177, 37384, 5188, 26011, 15, 13, 10378, 1823, 11, 37384, 5188, 26011, 15, 13, 3672, 11, 37384, 5188, 26011,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10902, 460, 314, 1011, 287, 262, 7218, 393, 10633, 24878, 284, 15959, 616, 337, 7206, 9079, 5633, 46506, 360, 8808, 1268, 4177, 37384, 5188, 26011, 15, 13, 10378, 1823, 11, 37384, 5188, 26011, 15, 13, 3672, 11, 37384, 5188, 26011,...
what is the number of patients whose ethnicity is white - russian and drug route is replace?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND prescriptions.route = "REPLACE"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 26289, 318, 2330, 532, 374, 31562, 290, 2563, 6339, 318, 6330, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 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...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 26289, 318, 2330, 532, 374, 31562, 290, 2563, 6339, 318, 6330, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, ...
what is the highest number of dismissals in a match with 8 innings
SELECT COUNT("Dismissals") FROM table_23381 WHERE "Innings" = '8'
[ 10919, 318, 262, 4511, 1271, 286, 6735, 874, 287, 257, 2872, 351, 807, 16267, 46506, 327, 28270, 7203, 35, 1042, 747, 874, 4943, 16034, 3084, 62, 1954, 36626, 33411, 366, 818, 23400, 1, 796, 705, 23, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 4511, 1271, 286, 6735, 874, 287, 257, 2872, 351, 807, 16267, 46506, 327, 28270, 7203, 35, 1042, 747, 874, 4943, 16034, 3084, 62, 1954, 36626, 33411, 366, 818, 23400, 1, 796, 705, 23, 6 ]
which drug is prescribed to patient with patient id 2560?
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.subject_id = "2560"
[ 4758, 2563, 318, 14798, 284, 5827, 351, 5827, 4686, 1679, 1899, 30, 46506, 34092, 13, 30349, 16034, 34092, 33411, 34092, 13, 32796, 62, 312, 796, 366, 1495, 1899, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 2563, 318, 14798, 284, 5827, 351, 5827, 4686, 1679, 1899, 30, 46506, 34092, 13, 30349, 16034, 34092, 33411, 34092, 13, 32796, 62, 312, 796, 366, 1495, 1899, 1 ]
When has Score of 4 5 and quebec nordiques as Visitor?
SELECT date FROM table_name_92 WHERE score = "4–5" AND visitor = "quebec nordiques"
[ 2215, 468, 15178, 286, 604, 642, 290, 627, 1765, 721, 299, 585, 6368, 355, 6911, 2072, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 5892, 33411, 4776, 796, 366, 19, 1906, 20, 1, 5357, 21493, 796, 366, 421, 1765, 721, 299, 585, 6368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 15178, 286, 604, 642, 290, 627, 1765, 721, 299, 585, 6368, 355, 6911, 2072, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 5892, 33411, 4776, 796, 366, 19, 1906, 20, 1, 5357, 21493, 796, 366, 421, 1765, 721, 299, 585, 6368, ...
Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Caf De Colombia 472?
SELECT "Winner" FROM table_30805 WHERE "Mountains classification" = 'Jaime Vergara' AND "Team classification" = 'Col es Pasion Café De Colombia 472'
[ 8241, 373, 262, 8464, 611, 262, 21124, 40984, 5764, 373, 1813, 284, 38028, 4643, 70, 3301, 290, 262, 4816, 40984, 5764, 318, 1813, 284, 1623, 1658, 350, 4247, 35046, 1024, 21291, 604, 4761, 30, 46506, 366, 48056, 1, 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...
[ 8241, 373, 262, 8464, 611, 262, 21124, 40984, 5764, 373, 1813, 284, 38028, 4643, 70, 3301, 290, 262, 4816, 40984, 5764, 318, 1813, 284, 1623, 1658, 350, 4247, 35046, 1024, 21291, 604, 4761, 30, 46506, 366, 48056, 1, 16034, 3084, 62, 1...
Who is the home team when hawthorn is the away team?
SELECT home_team FROM table_name_95 WHERE away_team = "hawthorn"
[ 8241, 318, 262, 1363, 1074, 618, 23185, 400, 1211, 318, 262, 1497, 1074, 30, 46506, 1363, 62, 15097, 16034, 3084, 62, 3672, 62, 3865, 33411, 1497, 62, 15097, 796, 366, 26615, 400, 1211, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1363, 1074, 618, 23185, 400, 1211, 318, 262, 1497, 1074, 30, 46506, 1363, 62, 15097, 16034, 3084, 62, 3672, 62, 3865, 33411, 1497, 62, 15097, 796, 366, 26615, 400, 1211, 1 ]
what is the status in vestal
SELECT status FROM table_18159601_1 WHERE city = "Vestal"
[ 10919, 318, 262, 3722, 287, 19750, 282, 46506, 3722, 16034, 3084, 62, 1507, 1314, 4846, 486, 62, 16, 33411, 1748, 796, 366, 53, 395, 282, 1 ]
[ 1, 1, 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, 3722, 287, 19750, 282, 46506, 3722, 16034, 3084, 62, 1507, 1314, 4846, 486, 62, 16, 33411, 1748, 796, 366, 53, 395, 282, 1 ]
Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.
SELECT SUM(Enrollment), affiliation FROM university WHERE founded > 1850 GROUP BY affiliation
[ 16742, 262, 2472, 1271, 286, 2444, 18724, 287, 262, 15273, 326, 547, 9393, 706, 262, 614, 286, 35745, 329, 1123, 26218, 2099, 13, 46506, 35683, 7, 4834, 48108, 828, 26218, 16034, 6403, 33411, 9393, 1875, 35745, 44441, 11050, 26218 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 1271, 286, 2444, 18724, 287, 262, 15273, 326, 547, 9393, 706, 262, 614, 286, 35745, 329, 1123, 26218, 2099, 13, 46506, 35683, 7, 4834, 48108, 828, 26218, 16034, 6403, 33411, 9393, 1875, 35745, 44441, 11050, 26218 ]
What is Date, when Score is 6-3, 4-6, 0-6?
SELECT "Date" FROM table_44610 WHERE "Score" = '6-3, 4-6, 0-6'
[ 2061, 318, 7536, 11, 618, 15178, 318, 718, 12, 18, 11, 604, 12, 21, 11, 657, 12, 21, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 27260, 940, 33411, 366, 26595, 1, 796, 705, 21, 12, 18, 11, 604, 12, 21, 11, 657, 12, 21, 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 ]
[ 2061, 318, 7536, 11, 618, 15178, 318, 718, 12, 18, 11, 604, 12, 21, 11, 657, 12, 21, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 27260, 940, 33411, 366, 26595, 1, 796, 705, 21, 12, 18, 11, 604, 12, 21, 11, 657, 12, 21, 6 ]
what was the name of the allergy that was patient 021-111547 had in this month?
SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-111547')) AND DATETIME(allergy.allergytime, 'start of month') = DATET...
[ 10919, 373, 262, 1438, 286, 262, 36197, 326, 373, 5827, 657, 2481, 12, 1157, 1314, 2857, 550, 287, 428, 1227, 30, 46506, 36197, 13, 439, 26079, 3672, 16034, 36197, 33411, 36197, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 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, 373, 262, 1438, 286, 262, 36197, 326, 373, 5827, 657, 2481, 12, 1157, 1314, 2857, 550, 287, 428, 1227, 30, 46506, 36197, 13, 439, 26079, 3672, 16034, 36197, 33411, 36197, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, ...
What is the total revenue of companies started by founder Plot them as bar chart, and show in desc by the total number of revenue.
SELECT Founder, SUM(Revenue) FROM Manufacturers GROUP BY Founder ORDER BY SUM(Revenue) DESC
[ 2061, 318, 262, 2472, 6426, 286, 2706, 2067, 416, 9119, 28114, 606, 355, 2318, 8262, 11, 290, 905, 287, 1715, 416, 262, 2472, 1271, 286, 6426, 13, 46506, 30153, 11, 35683, 7, 3041, 4080, 8, 16034, 17858, 17496, 44441, 11050, 30153, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2472, 6426, 286, 2706, 2067, 416, 9119, 28114, 606, 355, 2318, 8262, 11, 290, 905, 287, 1715, 416, 262, 2472, 1271, 286, 6426, 13, 46506, 30153, 11, 35683, 7, 3041, 4080, 8, 16034, 17858, 17496, 44441, 11050, 30153, 38...
display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.
SELECT first_name, last_name, salary, department_id, MAX(salary) FROM employees GROUP BY department_id
[ 13812, 262, 5011, 4522, 11, 1336, 1438, 357, 11085, 290, 938, 1438, 828, 9588, 329, 883, 4409, 508, 318, 4511, 9588, 287, 790, 5011, 13, 46506, 717, 62, 3672, 11, 938, 62, 3672, 11, 9588, 11, 5011, 62, 312, 11, 25882, 7, 21680, 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 ]
[ 13812, 262, 5011, 4522, 11, 1336, 1438, 357, 11085, 290, 938, 1438, 828, 9588, 329, 883, 4409, 508, 318, 4511, 9588, 287, 790, 5011, 13, 46506, 717, 62, 3672, 11, 938, 62, 3672, 11, 9588, 11, 5011, 62, 312, 11, 25882, 7, 21680, 56...
What is the number of averages having a balls faced over 297 and more than 7 innings?
SELECT COUNT("Average") FROM table_42205 WHERE "Balls Faced" > '297' AND "Innings" > '7'
[ 2061, 318, 262, 1271, 286, 25694, 1719, 257, 11333, 7452, 625, 41103, 290, 517, 621, 767, 16267, 30, 46506, 327, 28270, 7203, 26287, 4943, 16034, 3084, 62, 3682, 21261, 33411, 366, 33, 5691, 376, 2286, 1, 1875, 705, 26561, 6, 5357, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25694, 1719, 257, 11333, 7452, 625, 41103, 290, 517, 621, 767, 16267, 30, 46506, 327, 28270, 7203, 26287, 4943, 16034, 3084, 62, 3682, 21261, 33411, 366, 33, 5691, 376, 2286, 1, 1875, 705, 26561, 6, 5357, 36...
what were the allergies patient 030-10559 had since 125 months ago?
SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-10559')) AND DATETIME(allergy.allergytime) >= DATETIME(CURRENT_TIME()...
[ 10919, 547, 262, 36665, 5827, 657, 1270, 12, 940, 38605, 550, 1201, 13151, 1933, 2084, 30, 46506, 36197, 13, 439, 26079, 3672, 16034, 36197, 33411, 36197, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 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...
[ 10919, 547, 262, 36665, 5827, 657, 1270, 12, 940, 38605, 550, 1201, 13151, 1933, 2084, 30, 46506, 36197, 13, 439, 26079, 3672, 16034, 36197, 33411, 36197, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312,...
now i need a flight from DETROIT to SAN DIEGO leaving tuesday evening
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 = 'SAN DIEGO' AND date_day.day_number = 22 AND date_day.month_number = 3 AN...
[ 2197, 1312, 761, 257, 5474, 422, 38267, 13252, 2043, 284, 37376, 14766, 7156, 46, 4305, 256, 3322, 6180, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2197, 1312, 761, 257, 5474, 422, 38267, 13252, 2043, 284, 37376, 14766, 7156, 46, 4305, 256, 3322, 6180, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, ...
What is the highest number of matches with more than 18 points and more than 1 draw?
SELECT MAX(match) FROM table_name_37 WHERE points > 18 AND draw > 1
[ 2061, 318, 262, 4511, 1271, 286, 7466, 351, 517, 621, 1248, 2173, 290, 517, 621, 352, 3197, 30, 46506, 25882, 7, 15699, 8, 16034, 3084, 62, 3672, 62, 2718, 33411, 2173, 1875, 1248, 5357, 3197, 1875, 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, 1, 1 ]
[ 2061, 318, 262, 4511, 1271, 286, 7466, 351, 517, 621, 1248, 2173, 290, 517, 621, 352, 3197, 30, 46506, 25882, 7, 15699, 8, 16034, 3084, 62, 3672, 62, 2718, 33411, 2173, 1875, 1248, 5357, 3197, 1875, 352 ]
Show the outcome code of mailshots along with the number of mailshots in each outcome code in a bar chart, could you show in asc by the X-axis?
SELECT outcome_code, COUNT(*) FROM Mailshot_Customers GROUP BY outcome_code ORDER BY outcome_code
[ 15307, 262, 8055, 2438, 286, 6920, 20910, 1863, 351, 262, 1271, 286, 6920, 20910, 287, 1123, 8055, 2438, 287, 257, 2318, 8262, 11, 714, 345, 905, 287, 10570, 416, 262, 1395, 12, 22704, 30, 46506, 8055, 62, 8189, 11, 327, 28270, 7, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 262, 8055, 2438, 286, 6920, 20910, 1863, 351, 262, 1271, 286, 6920, 20910, 287, 1123, 8055, 2438, 287, 257, 2318, 8262, 11, 714, 345, 905, 287, 10570, 416, 262, 1395, 12, 22704, 30, 46506, 8055, 62, 8189, 11, 327, 28270, 7, 2...
Which Tie # that has an Attendance of 14 november 1998, and an Away team of hayes?
SELECT "Tie no" FROM table_6497 WHERE "Attendance" = '14 november 1998' AND "Away team" = 'hayes'
[ 13828, 36286, 1303, 326, 468, 281, 46502, 590, 286, 1478, 645, 303, 1916, 7795, 11, 290, 281, 21986, 1074, 286, 27678, 274, 30, 46506, 366, 51, 494, 645, 1, 16034, 3084, 62, 2414, 5607, 33411, 366, 8086, 437, 590, 1, 796, 705, 1415,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 36286, 1303, 326, 468, 281, 46502, 590, 286, 1478, 645, 303, 1916, 7795, 11, 290, 281, 21986, 1074, 286, 27678, 274, 30, 46506, 366, 51, 494, 645, 1, 16034, 3084, 62, 2414, 5607, 33411, 366, 8086, 437, 590, 1, 796, 705, 1415,...
Show average of budget in different year and group by department creation time with a line chart.
SELECT Creation, AVG(Budget_in_Billions) FROM department GROUP BY Creation
[ 15307, 2811, 286, 4466, 287, 1180, 614, 290, 1448, 416, 5011, 6282, 640, 351, 257, 1627, 8262, 13, 46506, 21582, 11, 35224, 7, 33, 29427, 62, 259, 62, 17798, 507, 8, 16034, 5011, 44441, 11050, 21582 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2811, 286, 4466, 287, 1180, 614, 290, 1448, 416, 5011, 6282, 640, 351, 257, 1627, 8262, 13, 46506, 21582, 11, 35224, 7, 33, 29427, 62, 259, 62, 17798, 507, 8, 16034, 5011, 44441, 11050, 21582 ]
Name the total number of r for coppa italia larger than 1.0
SELECT COUNT("R") FROM table_2782 WHERE "Coppa Italia" > '1.0'
[ 5376, 262, 2472, 1271, 286, 374, 329, 763, 44989, 340, 9752, 4025, 621, 352, 13, 15, 46506, 327, 28270, 7203, 49, 4943, 16034, 3084, 62, 1983, 6469, 33411, 366, 7222, 44989, 632, 9752, 1, 1875, 705, 16, 13, 15, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 2472, 1271, 286, 374, 329, 763, 44989, 340, 9752, 4025, 621, 352, 13, 15, 46506, 327, 28270, 7203, 49, 4943, 16034, 3084, 62, 1983, 6469, 33411, 366, 7222, 44989, 632, 9752, 1, 1875, 705, 16, 13, 15, 6 ]
Return all the committees that have delegates from Democratic party, and count them by a bar chart, and sort in asc by the y-axis.
SELECT Committee, COUNT(Committee) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" GROUP BY Committee ORDER BY COUNT(Committee)
[ 13615, 477, 262, 17460, 326, 423, 15265, 422, 4390, 2151, 11, 290, 954, 606, 416, 257, 2318, 8262, 11, 290, 3297, 287, 10570, 416, 262, 331, 12, 22704, 13, 46506, 4606, 11, 327, 28270, 7, 6935, 2979, 8, 16034, 3071, 7054, 309, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13615, 477, 262, 17460, 326, 423, 15265, 422, 4390, 2151, 11, 290, 954, 606, 416, 257, 2318, 8262, 11, 290, 3297, 287, 10570, 416, 262, 331, 12, 22704, 13, 46506, 4606, 11, 327, 28270, 7, 6935, 2979, 8, 16034, 3071, 7054, 309, 16, ...
how many patients' year of birth is before 2121 with joint fluid as the lab test fluid?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2121" AND lab.fluid = "Joint Fluid"
[ 4919, 867, 3871, 6, 614, 286, 4082, 318, 878, 362, 19244, 351, 6466, 11711, 355, 262, 2248, 1332, 11711, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 3871, 6, 614, 286, 4082, 318, 878, 362, 19244, 351, 6466, 11711, 355, 262, 2248, 1332, 11711, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177,...
count the number of patients less than 81 years who belong to american indian/alaska native ethnic background.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND demographic.age < "81"
[ 9127, 262, 1271, 286, 3871, 1342, 621, 9773, 812, 508, 5594, 284, 45630, 272, 773, 666, 14, 282, 8480, 6868, 9450, 4469, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9127, 262, 1271, 286, 3871, 1342, 621, 9773, 812, 508, 5594, 284, 45630, 272, 773, 666, 14, 282, 8480, 6868, 9450, 4469, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 3...
Show each gender code and the corresponding count of guests sorted by the count in descending order by a bar chart.
SELECT gender_code, COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC
[ 15307, 1123, 5279, 2438, 290, 262, 11188, 954, 286, 10650, 23243, 416, 262, 954, 287, 31491, 1502, 416, 257, 2318, 8262, 13, 46506, 5279, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 46936, 44441, 11050, 5279, 62, 8189, 38678, 11050, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1123, 5279, 2438, 290, 262, 11188, 954, 286, 10650, 23243, 416, 262, 954, 287, 31491, 1502, 416, 257, 2318, 8262, 13, 46506, 5279, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 46936, 44441, 11050, 5279, 62, 8189, 38678, 11050, 327,...
What is the height of the cornerback position?
SELECT COUNT(height) FROM table_20872722_1 WHERE position = "Cornerback"
[ 2061, 318, 262, 6001, 286, 262, 26683, 2292, 30, 46506, 327, 28270, 7, 17015, 8, 16034, 3084, 62, 1238, 5774, 1983, 1828, 62, 16, 33411, 2292, 796, 366, 10606, 1008, 1891, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 6001, 286, 262, 26683, 2292, 30, 46506, 327, 28270, 7, 17015, 8, 16034, 3084, 62, 1238, 5774, 1983, 1828, 62, 16, 33411, 2292, 796, 366, 10606, 1008, 1891, 1 ]
Where is the station that was launched on 17 July 1997 transmitting from?
SELECT "Transmitting from" FROM table_39700 WHERE "Launched" = '17 july 1997'
[ 8496, 318, 262, 4429, 326, 373, 5611, 319, 1596, 2901, 8309, 39573, 422, 30, 46506, 366, 8291, 16138, 422, 1, 16034, 3084, 62, 2670, 9879, 33411, 366, 46182, 1740, 1, 796, 705, 1558, 474, 2062, 8309, 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 ]
[ 8496, 318, 262, 4429, 326, 373, 5611, 319, 1596, 2901, 8309, 39573, 422, 30, 46506, 366, 8291, 16138, 422, 1, 16034, 3084, 62, 2670, 9879, 33411, 366, 46182, 1740, 1, 796, 705, 1558, 474, 2062, 8309, 6 ]
What game number had a record of 3-1?
SELECT "Game" FROM table_2353 WHERE "Record" = '3-1'
[ 2061, 983, 1271, 550, 257, 1700, 286, 513, 12, 16, 30, 46506, 366, 8777, 1, 16034, 3084, 62, 1954, 4310, 33411, 366, 23739, 1, 796, 705, 18, 12, 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, 1, 1 ]
[ 2061, 983, 1271, 550, 257, 1700, 286, 513, 12, 16, 30, 46506, 366, 8777, 1, 16034, 3084, 62, 1954, 4310, 33411, 366, 23739, 1, 796, 705, 18, 12, 16, 6 ]
what was their position the year after the year they withdrew due to rebel attacks ?
SELECT "position" FROM table_204_58 WHERE "year" > (SELECT "year" FROM table_204_58 WHERE "position" = 'withdrew due to rebel attack') ORDER BY "year" LIMIT 1
[ 10919, 373, 511, 2292, 262, 614, 706, 262, 614, 484, 25518, 2233, 284, 14034, 3434, 5633, 46506, 366, 9150, 1, 16034, 3084, 62, 18638, 62, 3365, 33411, 366, 1941, 1, 1875, 357, 46506, 366, 1941, 1, 16034, 3084, 62, 18638, 62, 3365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 511, 2292, 262, 614, 706, 262, 614, 484, 25518, 2233, 284, 14034, 3434, 5633, 46506, 366, 9150, 1, 16034, 3084, 62, 18638, 62, 3365, 33411, 366, 1941, 1, 1875, 357, 46506, 366, 1941, 1, 16034, 3084, 62, 18638, 62, 3365, ...
Which class was made in 1880?
SELECT "Class" FROM table_77595 WHERE "Year made" = '1880'
[ 13828, 1398, 373, 925, 287, 34865, 30, 46506, 366, 9487, 1, 16034, 3084, 62, 34483, 3865, 33411, 366, 17688, 925, 1, 796, 705, 1507, 1795, 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 ]
[ 13828, 1398, 373, 925, 287, 34865, 30, 46506, 366, 9487, 1, 16034, 3084, 62, 34483, 3865, 33411, 366, 17688, 925, 1, 796, 705, 1507, 1795, 6 ]
What is the highest draws when more than 6 are played and the points against are 54?
SELECT MAX("Drawn") FROM table_32865 WHERE "Against" = '54' AND "Played" > '6'
[ 2061, 318, 262, 4511, 14293, 618, 517, 621, 718, 389, 2826, 290, 262, 2173, 1028, 389, 7175, 30, 46506, 25882, 7203, 35, 5791, 4943, 16034, 3084, 62, 34256, 2996, 33411, 366, 39276, 1, 796, 705, 4051, 6, 5357, 366, 11002, 276, 1, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 14293, 618, 517, 621, 718, 389, 2826, 290, 262, 2173, 1028, 389, 7175, 30, 46506, 25882, 7203, 35, 5791, 4943, 16034, 3084, 62, 34256, 2996, 33411, 366, 39276, 1, 796, 705, 4051, 6, 5357, 366, 11002, 276, 1, 18...
How many table points are listed for the deficit is +194?
SELECT COUNT(table_points) FROM table_18505065_1 WHERE difference = "+194"
[ 2437, 867, 3084, 2173, 389, 5610, 329, 262, 11807, 318, 1343, 22913, 30, 46506, 327, 28270, 7, 11487, 62, 13033, 8, 16034, 3084, 62, 1507, 1120, 1120, 2996, 62, 16, 33411, 3580, 796, 43825, 22913, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3084, 2173, 389, 5610, 329, 262, 11807, 318, 1343, 22913, 30, 46506, 327, 28270, 7, 11487, 62, 13033, 8, 16034, 3084, 62, 1507, 1120, 1120, 2996, 62, 16, 33411, 3580, 796, 43825, 22913, 1 ]
At the VFL Reserves, who was the opponent when the score was 18.6 (114) - 21.14 (140)?
SELECT opponent FROM table_name_7 WHERE competition = "vfl reserves" AND score = "18.6 (114) - 21.14 (140)"
[ 2953, 262, 569, 3697, 1874, 11184, 11, 508, 373, 262, 6125, 618, 262, 4776, 373, 1248, 13, 21, 357, 16562, 8, 532, 2310, 13, 1415, 357, 15187, 19427, 46506, 6125, 16034, 3084, 62, 3672, 62, 22, 33411, 5449, 796, 366, 85, 2704, 14072...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2953, 262, 569, 3697, 1874, 11184, 11, 508, 373, 262, 6125, 618, 262, 4776, 373, 1248, 13, 21, 357, 16562, 8, 532, 2310, 13, 1415, 357, 15187, 19427, 46506, 6125, 16034, 3084, 62, 3672, 62, 22, 33411, 5449, 796, 366, 85, 2704, 14072...
What country has money ($) greater than 233,125 and Tiger Woods as the player?
SELECT "Country" FROM table_14129 WHERE "Money ( $ )" > '233,125' AND "Player" = 'tiger woods'
[ 2061, 1499, 468, 1637, 45491, 3744, 621, 30435, 11, 11623, 290, 17030, 16483, 355, 262, 2137, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 1415, 18741, 33411, 366, 26788, 357, 720, 1267, 1, 1875, 705, 25429, 11, 11623, 6, 5357, 366, 141...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1499, 468, 1637, 45491, 3744, 621, 30435, 11, 11623, 290, 17030, 16483, 355, 262, 2137, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 1415, 18741, 33411, 366, 26788, 357, 720, 1267, 1, 1875, 705, 25429, 11, 11623, 6, 5357, 366, 141...
Count the number of captains younger than 50 of each rank.
SELECT COUNT(*), rank FROM captain WHERE age < 50 GROUP BY rank
[ 12332, 262, 1271, 286, 37551, 7099, 621, 2026, 286, 1123, 4279, 13, 46506, 327, 28270, 46491, 828, 4279, 16034, 10654, 33411, 2479, 1279, 2026, 44441, 11050, 4279 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12332, 262, 1271, 286, 37551, 7099, 621, 2026, 286, 1123, 4279, 13, 46506, 327, 28270, 46491, 828, 4279, 16034, 10654, 33411, 2479, 1279, 2026, 44441, 11050, 4279 ]
How many patients whose hospital stay is above 6 days have lab test name as osmolality, measured?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "6" AND lab.label = "Osmolality, Measured"
[ 2437, 867, 3871, 3025, 4436, 2652, 318, 2029, 718, 1528, 423, 2248, 1332, 1438, 355, 267, 5796, 349, 1483, 11, 8630, 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...
[ 2437, 867, 3871, 3025, 4436, 2652, 318, 2029, 718, 1528, 423, 2248, 1332, 1438, 355, 267, 5796, 349, 1483, 11, 8630, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268,...
What is the percentage of votes for the party that has Seats of 80?
SELECT "Percentage" FROM table_52369 WHERE "Seats" = '80'
[ 2061, 318, 262, 5873, 286, 5690, 329, 262, 2151, 326, 468, 1001, 1381, 286, 4019, 30, 46506, 366, 31905, 496, 1, 16034, 3084, 62, 49803, 3388, 33411, 366, 4653, 1381, 1, 796, 705, 1795, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 5873, 286, 5690, 329, 262, 2151, 326, 468, 1001, 1381, 286, 4019, 30, 46506, 366, 31905, 496, 1, 16034, 3084, 62, 49803, 3388, 33411, 366, 4653, 1381, 1, 796, 705, 1795, 6 ]
What are the main places for the streymoy region with an area of larger than 6.1?
SELECT main_places FROM table_name_91 WHERE regions = "streymoy" AND area > 6.1
[ 2061, 389, 262, 1388, 4113, 329, 262, 1937, 4948, 726, 3814, 351, 281, 1989, 286, 4025, 621, 718, 13, 16, 30, 46506, 1388, 62, 23625, 16034, 3084, 62, 3672, 62, 6420, 33411, 7652, 796, 366, 301, 4364, 76, 726, 1, 5357, 1989, 1875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 1388, 4113, 329, 262, 1937, 4948, 726, 3814, 351, 281, 1989, 286, 4025, 621, 718, 13, 16, 30, 46506, 1388, 62, 23625, 16034, 3084, 62, 3672, 62, 6420, 33411, 7652, 796, 366, 301, 4364, 76, 726, 1, 5357, 1989, 1875, ...