instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
Who was the opponent for the match were the outcome was runner-up and the score was 5-7, 1-6?
SELECT "Opponent" FROM table_75594 WHERE "Outcome" = 'runner-up' AND "Score" = '5-7, 1-6'
[ 8241, 373, 262, 6125, 329, 262, 2872, 547, 262, 8055, 373, 17490, 12, 929, 290, 262, 4776, 373, 642, 12, 22, 11, 352, 12, 21, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 2425, 46438, 33411, 366, 7975, 2958, 1, 796, 705, 16737...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 6125, 329, 262, 2872, 547, 262, 8055, 373, 17490, 12, 929, 290, 262, 4776, 373, 642, 12, 22, 11, 352, 12, 21, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 2425, 46438, 33411, 366, 7975, 2958, 1, 796, 705, 16737...
Which allergy has most number of students affected?
SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY COUNT(*) DESC LIMIT 1
[ 13828, 36197, 468, 749, 1271, 286, 2444, 5676, 30, 46506, 1439, 26079, 16034, 7875, 62, 439, 26079, 44441, 11050, 1439, 26079, 38678, 11050, 327, 28270, 7, 28104, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 36197, 468, 749, 1271, 286, 2444, 5676, 30, 46506, 1439, 26079, 16034, 7875, 62, 439, 26079, 44441, 11050, 1439, 26079, 38678, 11050, 327, 28270, 7, 28104, 22196, 34, 27564, 2043, 352 ]
For each year, bin the year into day of the week interval, and return the average of the number of times the team Boston Red Stockings won in the postseasons using a line chart, order X in desc order please.
SELECT year, AVG(COUNT(*)) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' ORDER BY year DESC
[ 1890, 1123, 614, 11, 9874, 262, 614, 656, 1110, 286, 262, 1285, 16654, 11, 290, 1441, 262, 2811, 286, 262, 1271, 286, 1661, 262, 1074, 6182, 2297, 10500, 654, 1839, 287, 262, 1281, 325, 2812, 1262, 257, 1627, 8262, 11, 1502, 1395, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 1123, 614, 11, 9874, 262, 614, 656, 1110, 286, 262, 1285, 16654, 11, 290, 1441, 262, 2811, 286, 262, 1271, 286, 1661, 262, 1074, 6182, 2297, 10500, 654, 1839, 287, 262, 1281, 325, 2812, 1262, 257, 1627, 8262, 11, 1502, 1395, 2...
Top 100 most viewed questions on a site.
SELECT p.Id, p.ViewCount, p.Title, p.Score FROM Posts AS p JOIN PostTypes AS pt ON p.PostTypeId = pt.Id WHERE pt.Name = 'Question' ORDER BY ViewCount DESC LIMIT 100
[ 9126, 1802, 749, 9569, 2683, 319, 257, 2524, 13, 46506, 279, 13, 7390, 11, 279, 13, 7680, 12332, 11, 279, 13, 19160, 11, 279, 13, 26595, 16034, 12043, 7054, 279, 32357, 1268, 2947, 31431, 7054, 42975, 6177, 279, 13, 6307, 6030, 7390, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9126, 1802, 749, 9569, 2683, 319, 257, 2524, 13, 46506, 279, 13, 7390, 11, 279, 13, 7680, 12332, 11, 279, 13, 19160, 11, 279, 13, 26595, 16034, 12043, 7054, 279, 32357, 1268, 2947, 31431, 7054, 42975, 6177, 279, 13, 6307, 6030, 7390, ...
what's the name of the drug that patient 1417's been prescribed two times since 18 months ago?
SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1417) AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-18 month') GROUP BY prescriptions.drug...
[ 10919, 338, 262, 1438, 286, 262, 2563, 326, 5827, 1478, 1558, 338, 587, 14798, 734, 1661, 1201, 1248, 1933, 2084, 30, 46506, 256, 16, 13, 30349, 16034, 357, 46506, 34092, 13, 30349, 11, 327, 28270, 7, 18302, 24370, 13, 9688, 4475, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 338, 262, 1438, 286, 262, 2563, 326, 5827, 1478, 1558, 338, 587, 14798, 734, 1661, 1201, 1248, 1933, 2084, 30, 46506, 256, 16, 13, 30349, 16034, 357, 46506, 34092, 13, 30349, 11, 327, 28270, 7, 18302, 24370, 13, 9688, 4475, 8, ...
Show names for all aircrafts with distances more than the average.
SELECT name FROM aircraft WHERE distance > (SELECT AVG(distance) FROM aircraft)
[ 15307, 3891, 329, 477, 6215, 82, 351, 18868, 517, 621, 262, 2811, 13, 46506, 1438, 16034, 6215, 33411, 5253, 1875, 357, 46506, 35224, 7, 30246, 8, 16034, 6215, 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 ]
[ 15307, 3891, 329, 477, 6215, 82, 351, 18868, 517, 621, 262, 2811, 13, 46506, 1438, 16034, 6215, 33411, 5253, 1875, 357, 46506, 35224, 7, 30246, 8, 16034, 6215, 8 ]
What's the nationality of Louisiana Tech?
SELECT "Nationality" FROM table_44328 WHERE "College" = 'louisiana tech'
[ 2061, 338, 262, 29835, 286, 13340, 9634, 30, 46506, 366, 16186, 414, 1, 16034, 3084, 62, 2598, 34256, 33411, 366, 38951, 1, 796, 705, 75, 280, 271, 7484, 7261, 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, 338, 262, 29835, 286, 13340, 9634, 30, 46506, 366, 16186, 414, 1, 16034, 3084, 62, 2598, 34256, 33411, 366, 38951, 1, 796, 705, 75, 280, 271, 7484, 7261, 6 ]
In the county where Bush won 77.76%, how many total votes were cast?
SELECT total__number FROM table_13625792_1 WHERE bush__percentage = "77.76%"
[ 818, 262, 7968, 810, 5511, 1839, 8541, 13, 4304, 7441, 703, 867, 2472, 5690, 547, 3350, 30, 46506, 2472, 834, 17618, 16034, 3084, 62, 20809, 1495, 48156, 62, 16, 33411, 24484, 834, 25067, 496, 796, 366, 3324, 13, 4304, 39658 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 818, 262, 7968, 810, 5511, 1839, 8541, 13, 4304, 7441, 703, 867, 2472, 5690, 547, 3350, 30, 46506, 2472, 834, 17618, 16034, 3084, 62, 20809, 1495, 48156, 62, 16, 33411, 24484, 834, 25067, 496, 796, 366, 3324, 13, 4304, 39658 ]
What is the population when the Per capita income of $18,884, and a Number of households smaller than 14,485?
SELECT SUM("Population") FROM table_59009 WHERE "Per capita income" = '$18,884' AND "Number of households" < '14,485'
[ 2061, 318, 262, 3265, 618, 262, 2448, 21344, 3739, 286, 720, 1507, 11, 40353, 11, 290, 257, 7913, 286, 12503, 4833, 621, 1478, 11, 32642, 30, 46506, 35683, 7203, 45251, 4943, 16034, 3084, 62, 3270, 28694, 33411, 366, 5990, 21344, 3739, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3265, 618, 262, 2448, 21344, 3739, 286, 720, 1507, 11, 40353, 11, 290, 257, 7913, 286, 12503, 4833, 621, 1478, 11, 32642, 30, 46506, 35683, 7203, 45251, 4943, 16034, 3084, 62, 3270, 28694, 33411, 366, 5990, 21344, 3739, ...
tell me the name of the specimen test patient 1862 received for the last time during their last hospital encounter?
SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1862 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) ORDER BY microbiologyevents.charttime DESC LIMIT 1
[ 33331, 502, 262, 1438, 286, 262, 31674, 1332, 5827, 49658, 2722, 329, 262, 938, 640, 1141, 511, 938, 4436, 8791, 30, 46506, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 33331, 502, 262, 1438, 286, 262, 31674, 1332, 5827, 49658, 2722, 329, 262, 938, 640, 1141, 511, 938, 4436, 8791, 30, 46506, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18...
Give me a histogram for what is the number of professors for different school?, could you order in asc by the x axis?
SELECT SCHOOL_CODE, COUNT(*) FROM DEPARTMENT AS T1 JOIN PROFESSOR AS T2 ON T1.DEPT_CODE = T2.DEPT_CODE GROUP BY T1.SCHOOL_CODE ORDER BY SCHOOL_CODE
[ 23318, 502, 257, 1554, 21857, 329, 644, 318, 262, 1271, 286, 20339, 329, 1180, 1524, 21747, 714, 345, 1502, 287, 10570, 416, 262, 2124, 16488, 30, 46506, 35883, 62, 34, 16820, 11, 327, 28270, 7, 28104, 16034, 5550, 30709, 10979, 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...
[ 23318, 502, 257, 1554, 21857, 329, 644, 318, 262, 1271, 286, 20339, 329, 1180, 1524, 21747, 714, 345, 1502, 287, 10570, 416, 262, 2124, 16488, 30, 46506, 35883, 62, 34, 16820, 11, 327, 28270, 7, 28104, 16034, 5550, 30709, 10979, 7054, ...
What is the Office when the Republican ticket shows seymour lowman?
SELECT office FROM table_name_63 WHERE republican_ticket = "seymour lowman"
[ 2061, 318, 262, 4452, 618, 262, 3415, 7846, 2523, 384, 4948, 454, 1877, 805, 30, 46506, 2607, 16034, 3084, 62, 3672, 62, 5066, 33411, 41477, 62, 43350, 796, 366, 4397, 76, 454, 1877, 805, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4452, 618, 262, 3415, 7846, 2523, 384, 4948, 454, 1877, 805, 30, 46506, 2607, 16034, 3084, 62, 3672, 62, 5066, 33411, 41477, 62, 43350, 796, 366, 4397, 76, 454, 1877, 805, 1 ]
What is the number of races that took place with points of 257?
SELECT SUM(races) FROM table_name_28 WHERE points = 257
[ 2061, 318, 262, 1271, 286, 9558, 326, 1718, 1295, 351, 2173, 286, 36100, 30, 46506, 35683, 7, 81, 2114, 8, 16034, 3084, 62, 3672, 62, 2078, 33411, 2173, 796, 36100 ]
[ 1, 1, 1, 1, 1, 1, 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, 9558, 326, 1718, 1295, 351, 2173, 286, 36100, 30, 46506, 35683, 7, 81, 2114, 8, 16034, 3084, 62, 3672, 62, 2078, 33411, 2173, 796, 36100 ]
what's the name of the specimen test that patient 73693 last got last month?
SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 73693) AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY microbiology...
[ 10919, 338, 262, 1438, 286, 262, 31674, 1332, 326, 5827, 767, 2623, 6052, 938, 1392, 938, 1227, 30, 46506, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 312,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 338, 262, 1438, 286, 262, 31674, 1332, 326, 5827, 767, 2623, 6052, 938, 1392, 938, 1227, 30, 46506, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 312,...
What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?
SELECT MIN(bronze) FROM table_name_16 WHERE total < 10 AND gold < 0
[ 2061, 318, 262, 1178, 395, 22101, 28057, 618, 262, 2472, 28057, 318, 1342, 621, 838, 11, 290, 262, 3869, 28057, 1342, 621, 657, 30, 46506, 20625, 7, 65, 1313, 2736, 8, 16034, 3084, 62, 3672, 62, 1433, 33411, 2472, 1279, 838, 5357, 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 ]
[ 2061, 318, 262, 1178, 395, 22101, 28057, 618, 262, 2472, 28057, 318, 1342, 621, 838, 11, 290, 262, 3869, 28057, 1342, 621, 657, 30, 46506, 20625, 7, 65, 1313, 2736, 8, 16034, 3084, 62, 3672, 62, 1433, 33411, 2472, 1279, 838, 5357, 3...
What was the original title of the king's speech?
SELECT original_title FROM table_name_99 WHERE winner_and_nominees = "the king's speech"
[ 2061, 373, 262, 2656, 3670, 286, 262, 5822, 338, 4046, 30, 46506, 2656, 62, 7839, 16034, 3084, 62, 3672, 62, 2079, 33411, 8464, 62, 392, 62, 26601, 500, 274, 796, 366, 1169, 5822, 338, 4046, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2656, 3670, 286, 262, 5822, 338, 4046, 30, 46506, 2656, 62, 7839, 16034, 3084, 62, 3672, 62, 2079, 33411, 8464, 62, 392, 62, 26601, 500, 274, 796, 366, 1169, 5822, 338, 4046, 1 ]
when mixed doubles is zheng bo ma jin and womens singles is wang yihan, what was the tour?
SELECT "Tour" FROM table_24037 WHERE "Mixed doubles" = 'Zheng Bo Ma Jin' AND "Womens singles" = 'Wang Yihan'
[ 12518, 7668, 21938, 318, 1976, 31753, 1489, 17266, 474, 259, 290, 1116, 641, 25287, 318, 266, 648, 331, 4449, 272, 11, 644, 373, 262, 4205, 30, 46506, 366, 39152, 1, 16034, 3084, 62, 16102, 2718, 33411, 366, 44, 2966, 21938, 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...
[ 12518, 7668, 21938, 318, 1976, 31753, 1489, 17266, 474, 259, 290, 1116, 641, 25287, 318, 266, 648, 331, 4449, 272, 11, 644, 373, 262, 4205, 30, 46506, 366, 39152, 1, 16034, 3084, 62, 16102, 2718, 33411, 366, 44, 2966, 21938, 1, 796, ...
all flights from DALLAS to SAN FRANCISCO
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRA...
[ 439, 13956, 422, 360, 7036, 1921, 284, 37376, 8782, 20940, 37719, 14058, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 439, 13956, 422, 360, 7036, 1921, 284, 37376, 8782, 20940, 37719, 14058, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 154...
Who was the leading lady for Uni studio and Frank Strayer?
SELECT "Leading lady" FROM table_70879 WHERE "Studio" = 'uni' AND "Director" = 'frank strayer'
[ 8241, 373, 262, 3756, 10846, 329, 43376, 8034, 290, 5278, 520, 2433, 263, 30, 46506, 366, 20451, 278, 10846, 1, 16034, 3084, 62, 32583, 3720, 33411, 366, 41501, 1, 796, 705, 35657, 6, 5357, 366, 28702, 1, 796, 705, 8310, 962, 965, 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 ]
[ 8241, 373, 262, 3756, 10846, 329, 43376, 8034, 290, 5278, 520, 2433, 263, 30, 46506, 366, 20451, 278, 10846, 1, 16034, 3084, 62, 32583, 3720, 33411, 366, 41501, 1, 796, 705, 35657, 6, 5357, 366, 28702, 1, 796, 705, 8310, 962, 965, 2...
give the number of patients whose death status is 1 and were given hydrocortisone oint 0.5%.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "1" AND prescriptions.drug = "Hydrocortisone Oint 0.5%"
[ 26535, 262, 1271, 286, 3871, 3025, 1918, 3722, 318, 352, 290, 547, 1813, 7409, 12204, 419, 271, 505, 267, 600, 657, 13, 20, 7225, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 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...
[ 26535, 262, 1271, 286, 3871, 3025, 1918, 3722, 318, 352, 290, 547, 1813, 7409, 12204, 419, 271, 505, 267, 600, 657, 13, 20, 7225, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 3...
How many games were played on november 27?
SELECT COUNT("Record") FROM table_27695 WHERE "Date" = 'November 27'
[ 2437, 867, 1830, 547, 2826, 319, 645, 303, 1916, 2681, 30, 46506, 327, 28270, 7203, 23739, 4943, 16034, 3084, 62, 1983, 37381, 33411, 366, 10430, 1, 796, 705, 21159, 2681, 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 ]
[ 2437, 867, 1830, 547, 2826, 319, 645, 303, 1916, 2681, 30, 46506, 327, 28270, 7203, 23739, 4943, 16034, 3084, 62, 1983, 37381, 33411, 366, 10430, 1, 796, 705, 21159, 2681, 6 ]
uncontrolled hypertension: disease systolic blood pressure ( sbp ) > 150 , diastolic blood pressure ( dbp ) > 110
SELECT * FROM table_dev_44 WHERE hypertension = 1 OR systolic_blood_pressure_sbp > 150 OR diastolic_blood_pressure_dbp > 110
[ 403, 14401, 37454, 25, 4369, 827, 301, 4160, 2910, 3833, 357, 264, 46583, 1267, 1875, 6640, 837, 2566, 459, 4160, 2910, 3833, 357, 20613, 79, 1267, 1875, 9796, 46506, 1635, 16034, 3084, 62, 7959, 62, 2598, 33411, 37454, 796, 352, 6375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 403, 14401, 37454, 25, 4369, 827, 301, 4160, 2910, 3833, 357, 264, 46583, 1267, 1875, 6640, 837, 2566, 459, 4160, 2910, 3833, 357, 20613, 79, 1267, 1875, 9796, 46506, 1635, 16034, 3084, 62, 7959, 62, 2598, 33411, 37454, 796, 352, 6375, ...
specify the maximum age of patients with mesenteric ischemia, whose death status is unspecified
SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "MESENTERIC ISCHEMIA"
[ 16684, 1958, 262, 5415, 2479, 286, 3871, 351, 18842, 9255, 291, 318, 15245, 544, 11, 3025, 1918, 3722, 318, 29547, 46506, 25882, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 1069, 5111, 62, 32109, 796, 366, 15, 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, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16684, 1958, 262, 5415, 2479, 286, 3871, 351, 18842, 9255, 291, 318, 15245, 544, 11, 3025, 1918, 3722, 318, 29547, 46506, 25882, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 1069, 5111, 62, 32109, 796, 366, 15, 1, 5357, ...
WHAT POSITION HAS A ROUND LARGER THAN 2, FOR VALDOSTA COLLEGE?
SELECT position FROM table_name_86 WHERE round > 2 AND college = "valdosta"
[ 32971, 28069, 17941, 33930, 317, 371, 15919, 47211, 30373, 2320, 1565, 362, 11, 7473, 26173, 35, 10892, 32, 20444, 2538, 8264, 30, 46506, 2292, 16034, 3084, 62, 3672, 62, 4521, 33411, 2835, 1875, 362, 5357, 4152, 796, 366, 85, 1940, 398...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 32971, 28069, 17941, 33930, 317, 371, 15919, 47211, 30373, 2320, 1565, 362, 11, 7473, 26173, 35, 10892, 32, 20444, 2538, 8264, 30, 46506, 2292, 16034, 3084, 62, 3672, 62, 4521, 33411, 2835, 1875, 362, 5357, 4152, 796, 366, 85, 1940, 398...
How many games were held on January 5?
SELECT COUNT("Game") FROM table_29734 WHERE "Date" = 'January 5'
[ 2437, 867, 1830, 547, 2714, 319, 3269, 642, 30, 46506, 327, 28270, 7203, 8777, 4943, 16034, 3084, 62, 26561, 2682, 33411, 366, 10430, 1, 796, 705, 21339, 642, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1830, 547, 2714, 319, 3269, 642, 30, 46506, 327, 28270, 7203, 8777, 4943, 16034, 3084, 62, 26561, 2682, 33411, 366, 10430, 1, 796, 705, 21339, 642, 6 ]
count the number of patients who were prescribed enoxaparin sodium 40 mg/0.4ml sc soln within 2 months after their procedure of oxygen therapy (> 60%) during this year.
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'oxygen therapy (> 60%)' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 's...
[ 9127, 262, 1271, 286, 3871, 508, 547, 14798, 551, 1140, 499, 17714, 21072, 2319, 10527, 14, 15, 13, 19, 4029, 629, 1540, 77, 1626, 362, 1933, 706, 511, 8771, 286, 11863, 9102, 45160, 3126, 4407, 1141, 428, 614, 13, 46506, 327, 28270, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9127, 262, 1271, 286, 3871, 508, 547, 14798, 551, 1140, 499, 17714, 21072, 2319, 10527, 14, 15, 13, 19, 4029, 629, 1540, 77, 1626, 362, 1933, 706, 511, 8771, 286, 11863, 9102, 45160, 3126, 4407, 1141, 428, 614, 13, 46506, 327, 28270, ...
How about grouping and counting the district for visualizing a pie chart?
SELECT District, COUNT(District) FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID GROUP BY District
[ 2437, 546, 36115, 290, 14143, 262, 4783, 329, 5874, 2890, 257, 2508, 8262, 30, 46506, 5665, 11, 327, 28270, 7, 44857, 8, 16034, 3072, 62, 10728, 7054, 309, 16, 32357, 1268, 1910, 7054, 309, 17, 6177, 309, 16, 13, 27470, 62, 2389, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 546, 36115, 290, 14143, 262, 4783, 329, 5874, 2890, 257, 2508, 8262, 30, 46506, 5665, 11, 327, 28270, 7, 44857, 8, 16034, 3072, 62, 10728, 7054, 309, 16, 32357, 1268, 1910, 7054, 309, 17, 6177, 309, 16, 13, 27470, 62, 2389, 79...
Which player has a to par greater than 11, with a total less than 155?
SELECT player FROM table_name_74 WHERE to_par > 11 AND total < 155
[ 13828, 2137, 468, 257, 284, 1582, 3744, 621, 1367, 11, 351, 257, 2472, 1342, 621, 20708, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 4524, 33411, 284, 62, 1845, 1875, 1367, 5357, 2472, 1279, 20708 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 257, 284, 1582, 3744, 621, 1367, 11, 351, 257, 2472, 1342, 621, 20708, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 4524, 33411, 284, 62, 1845, 1875, 1367, 5357, 2472, 1279, 20708 ]
How many games were played where exactly 15 points were scored?
SELECT SUM("Played") FROM table_41677 WHERE "Points" = '15'
[ 2437, 867, 1830, 547, 2826, 810, 3446, 1315, 2173, 547, 7781, 30, 46506, 35683, 7203, 11002, 276, 4943, 16034, 3084, 62, 35218, 3324, 33411, 366, 40710, 1, 796, 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 ]
[ 2437, 867, 1830, 547, 2826, 810, 3446, 1315, 2173, 547, 7781, 30, 46506, 35683, 7203, 11002, 276, 4943, 16034, 3084, 62, 35218, 3324, 33411, 366, 40710, 1, 796, 705, 1314, 6 ]
For those employees who did not have any job in the past, a bar chart shows the distribution of job_id and the sum of manager_id , and group by attribute job_id, display x axis in desc order.
SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID DESC
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 4706, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 3359, 2124, 16488, 287, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 4706, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 3359, 2124, 16488, 287, 1...
What is the score for the player who won $3,600?
SELECT score FROM table_name_40 WHERE money___$__ = "3,600"
[ 2061, 318, 262, 4776, 329, 262, 2137, 508, 1839, 720, 18, 11, 8054, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 1821, 33411, 1637, 17569, 3, 834, 796, 366, 18, 11, 8054, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4776, 329, 262, 2137, 508, 1839, 720, 18, 11, 8054, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 1821, 33411, 1637, 17569, 3, 834, 796, 366, 18, 11, 8054, 1 ]
What is the earliest Year for 400m h Event with 54.86 in Notes?
SELECT MIN("Year") FROM table_41796 WHERE "Event" = '400m h' AND "Notes" = '54.86'
[ 2061, 318, 262, 14555, 6280, 329, 7337, 76, 289, 8558, 351, 7175, 13, 4521, 287, 11822, 30, 46506, 20625, 7203, 17688, 4943, 16034, 3084, 62, 38547, 4846, 33411, 366, 9237, 1, 796, 705, 7029, 76, 289, 6, 5357, 366, 16130, 1, 796, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 14555, 6280, 329, 7337, 76, 289, 8558, 351, 7175, 13, 4521, 287, 11822, 30, 46506, 20625, 7203, 17688, 4943, 16034, 3084, 62, 38547, 4846, 33411, 366, 9237, 1, 796, 705, 7029, 76, 289, 6, 5357, 366, 16130, 1, 796, 70...
What was the result of the game that took place on april 26, 2003?
SELECT result FROM table_name_83 WHERE date = "april 26, 2003"
[ 2061, 373, 262, 1255, 286, 262, 983, 326, 1718, 1295, 319, 46593, 346, 2608, 11, 5816, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 5999, 33411, 3128, 796, 366, 499, 22379, 2608, 11, 5816, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 1255, 286, 262, 983, 326, 1718, 1295, 319, 46593, 346, 2608, 11, 5816, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 5999, 33411, 3128, 796, 366, 499, 22379, 2608, 11, 5816, 1 ]
how many won 83 points for?
SELECT "Won" FROM table_23689 WHERE "Points for" = '83'
[ 4919, 867, 1839, 9698, 2173, 329, 30, 46506, 366, 54, 261, 1, 16034, 3084, 62, 1954, 40523, 33411, 366, 40710, 329, 1, 796, 705, 5999, 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 ]
[ 4919, 867, 1839, 9698, 2173, 329, 30, 46506, 366, 54, 261, 1, 16034, 3084, 62, 1954, 40523, 33411, 366, 40710, 329, 1, 796, 705, 5999, 6 ]
Where were games played when the record was 9-1?
SELECT location FROM table_22862203_2 WHERE record = "9-1"
[ 8496, 547, 1830, 2826, 618, 262, 1700, 373, 860, 12, 16, 30, 46506, 4067, 16034, 3084, 62, 1828, 4521, 17572, 18, 62, 17, 33411, 1700, 796, 366, 24, 12, 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 ]
[ 8496, 547, 1830, 2826, 618, 262, 1700, 373, 860, 12, 16, 30, 46506, 4067, 16034, 3084, 62, 1828, 4521, 17572, 18, 62, 17, 33411, 1700, 796, 366, 24, 12, 16, 1 ]
calculate the number of patients discharged from hospital since 6 years ago.
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-6 year')
[ 9948, 3129, 378, 262, 1271, 286, 3871, 26476, 422, 4436, 1201, 718, 812, 2084, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 5626, 25349, 13, 6381, 354, 2435, 3180, 15697, 5357, 360...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9948, 3129, 378, 262, 1271, 286, 3871, 26476, 422, 4436, 1201, 718, 812, 2084, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 5626, 25349, 13, 6381, 354, 2435, 3180, 15697, 5357, 360...
How many League Goals have League Cup Goals smaller than 0?
SELECT SUM(league_goals) FROM table_name_43 WHERE league_cup_goals < 0
[ 2437, 867, 4041, 28510, 423, 4041, 5454, 28510, 4833, 621, 657, 30, 46506, 35683, 7, 19316, 62, 2188, 874, 8, 16034, 3084, 62, 3672, 62, 3559, 33411, 4652, 62, 25244, 62, 2188, 874, 1279, 657 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 4041, 28510, 423, 4041, 5454, 28510, 4833, 621, 657, 30, 46506, 35683, 7, 19316, 62, 2188, 874, 8, 16034, 3084, 62, 3672, 62, 3559, 33411, 4652, 62, 25244, 62, 2188, 874, 1279, 657 ]
What's the original airdate of the episode directed by Pete Travis?
SELECT original_airdate FROM table_12919003_3 WHERE director = "Pete Travis"
[ 2061, 338, 262, 2656, 257, 1447, 378, 286, 262, 4471, 7924, 416, 17542, 19804, 30, 46506, 2656, 62, 958, 4475, 16034, 3084, 62, 18741, 1129, 11245, 62, 18, 33411, 3437, 796, 366, 47, 14471, 19804, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2656, 257, 1447, 378, 286, 262, 4471, 7924, 416, 17542, 19804, 30, 46506, 2656, 62, 958, 4475, 16034, 3084, 62, 18741, 1129, 11245, 62, 18, 33411, 3437, 796, 366, 47, 14471, 19804, 1 ]
Potentially useless comments from StackOverflow - Thanks etc..
SELECT PostId AS "post_link", Score, Text, CreationDate FROM Comments WHERE (LENGTH(Text) < 19 AND Text LIKE 'Thanks%') ORDER BY Score DESC
[ 25396, 3746, 13894, 3651, 422, 23881, 5886, 11125, 532, 6930, 3503, 492, 46506, 2947, 7390, 7054, 366, 7353, 62, 8726, 1600, 15178, 11, 8255, 11, 21582, 10430, 16034, 19502, 33411, 357, 43, 49494, 7, 8206, 8, 1279, 678, 5357, 8255, 3417...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 25396, 3746, 13894, 3651, 422, 23881, 5886, 11125, 532, 6930, 3503, 492, 46506, 2947, 7390, 7054, 366, 7353, 62, 8726, 1600, 15178, 11, 8255, 11, 21582, 10430, 16034, 19502, 33411, 357, 43, 49494, 7, 8206, 8, 1279, 678, 5357, 8255, 3417...
What was the outcome on 13 may 2007?
SELECT "Outcome" FROM table_39007 WHERE "Date" = '13 may 2007'
[ 2061, 373, 262, 8055, 319, 1511, 743, 4343, 30, 46506, 366, 7975, 2958, 1, 16034, 3084, 62, 2670, 25816, 33411, 366, 10430, 1, 796, 705, 1485, 743, 4343, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 8055, 319, 1511, 743, 4343, 30, 46506, 366, 7975, 2958, 1, 16034, 3084, 62, 2670, 25816, 33411, 366, 10430, 1, 796, 705, 1485, 743, 4343, 6 ]
what is age and admission type of subject id 93033?
SELECT demographic.age, demographic.admission_type FROM demographic WHERE demographic.subject_id = "93033"
[ 10919, 318, 2479, 290, 13938, 2099, 286, 2426, 4686, 860, 1270, 2091, 30, 46506, 16728, 13, 496, 11, 16728, 13, 324, 3411, 62, 4906, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 45418, 2091, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 2479, 290, 13938, 2099, 286, 2426, 4686, 860, 1270, 2091, 30, 46506, 16728, 13, 496, 11, 16728, 13, 324, 3411, 62, 4906, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 45418, 2091, 1 ]
what is diagnoses short title of diagnoses icd9 code 29690?
SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "29690"
[ 10919, 318, 40567, 1790, 3670, 286, 40567, 14158, 67, 24, 2438, 2808, 35844, 30, 46506, 40567, 13, 19509, 62, 7839, 16034, 40567, 33411, 40567, 13, 291, 67, 24, 62, 8189, 796, 366, 1959, 35844, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 40567, 1790, 3670, 286, 40567, 14158, 67, 24, 2438, 2808, 35844, 30, 46506, 40567, 13, 19509, 62, 7839, 16034, 40567, 33411, 40567, 13, 291, 67, 24, 62, 8189, 796, 366, 1959, 35844, 1 ]
Which Against is the highest one that has a Team of flamengo, and a Lost smaller than 1?
SELECT MAX("Against") FROM table_6574 WHERE "Team" = 'flamengo' AND "Lost" < '1'
[ 13828, 12914, 318, 262, 4511, 530, 326, 468, 257, 4816, 286, 781, 321, 1516, 78, 11, 290, 257, 9164, 4833, 621, 352, 30, 46506, 25882, 7203, 39276, 4943, 16034, 3084, 62, 2996, 4524, 33411, 366, 15592, 1, 796, 705, 69, 2543, 1516, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 12914, 318, 262, 4511, 530, 326, 468, 257, 4816, 286, 781, 321, 1516, 78, 11, 290, 257, 9164, 4833, 621, 352, 30, 46506, 25882, 7203, 39276, 4943, 16034, 3084, 62, 2996, 4524, 33411, 366, 15592, 1, 796, 705, 69, 2543, 1516, 7...
What was the Jets week 17 attendance?
SELECT attendance FROM table_name_21 WHERE week = 17
[ 2061, 373, 262, 14728, 1285, 1596, 14858, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 2481, 33411, 1285, 796, 1596 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 14728, 1285, 1596, 14858, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 2481, 33411, 1285, 796, 1596 ]
which team had the most time ?
SELECT "team" FROM table_204_397 ORDER BY "final" DESC LIMIT 1
[ 4758, 1074, 550, 262, 749, 640, 5633, 46506, 366, 15097, 1, 16034, 3084, 62, 18638, 62, 33372, 38678, 11050, 366, 20311, 1, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 1074, 550, 262, 749, 640, 5633, 46506, 366, 15097, 1, 16034, 3084, 62, 18638, 62, 33372, 38678, 11050, 366, 20311, 1, 22196, 34, 27564, 2043, 352 ]
What School has Colors of navy blue orange?
SELECT "School" FROM table_61826 WHERE "Colors" = 'navy blue orange'
[ 2061, 3961, 468, 29792, 286, 23956, 4171, 10912, 30, 46506, 366, 26130, 1, 16034, 3084, 62, 47448, 2075, 33411, 366, 5216, 669, 1, 796, 705, 77, 2830, 4171, 10912, 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, 3961, 468, 29792, 286, 23956, 4171, 10912, 30, 46506, 366, 26130, 1, 16034, 3084, 62, 47448, 2075, 33411, 366, 5216, 669, 1, 796, 705, 77, 2830, 4171, 10912, 6 ]
how many deputy judges of the permanent court of international justice had their post abolished ?
SELECT COUNT("name") FROM table_204_301 WHERE "reason for termination" = 'post abolished'
[ 4919, 867, 10636, 10266, 286, 262, 7748, 2184, 286, 3230, 5316, 550, 511, 1281, 32424, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 18938, 33411, 366, 41181, 329, 19883, 1, 796, 705, 7353, 32424, 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 ]
[ 4919, 867, 10636, 10266, 286, 262, 7748, 2184, 286, 3230, 5316, 550, 511, 1281, 32424, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 18938, 33411, 366, 41181, 329, 19883, 1, 796, 705, 7353, 32424, 6 ]
who got the third position when laranja kyoto got the second position?
SELECT "Third place" FROM table_24513 WHERE "Runners-up" = 'Laranja Kyoto'
[ 8727, 1392, 262, 2368, 2292, 618, 300, 19173, 6592, 479, 88, 2069, 1392, 262, 1218, 2292, 30, 46506, 366, 22747, 1295, 1, 16034, 3084, 62, 22995, 1485, 33411, 366, 10987, 2741, 12, 929, 1, 796, 705, 43, 19173, 6592, 36298, 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 ]
[ 8727, 1392, 262, 2368, 2292, 618, 300, 19173, 6592, 479, 88, 2069, 1392, 262, 1218, 2292, 30, 46506, 366, 22747, 1295, 1, 16034, 3084, 62, 22995, 1485, 33411, 366, 10987, 2741, 12, 929, 1, 796, 705, 43, 19173, 6592, 36298, 6 ]
What was Italy's highest total when there were less than 4 bronze and 1 gold?
SELECT MAX(total) FROM table_name_29 WHERE bronze < 4 AND gold = 1 AND nation = "italy"
[ 2061, 373, 8031, 338, 4511, 2472, 618, 612, 547, 1342, 621, 604, 22101, 290, 352, 3869, 30, 46506, 25882, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 1959, 33411, 22101, 1279, 604, 5357, 3869, 796, 352, 5357, 3277, 796, 366, 1287, 88, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8031, 338, 4511, 2472, 618, 612, 547, 1342, 621, 604, 22101, 290, 352, 3869, 30, 46506, 25882, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 1959, 33411, 22101, 1279, 604, 5357, 3869, 796, 352, 5357, 3277, 796, 366, 1287, 88, 1...
Name the points for with drawn of 0 and points of 88
SELECT "Points for" FROM table_14362 WHERE "Drawn" = '0' AND "Points" = '88'
[ 5376, 262, 2173, 329, 351, 7428, 286, 657, 290, 2173, 286, 9193, 46506, 366, 40710, 329, 1, 16034, 3084, 62, 1415, 35667, 33411, 366, 35, 5791, 1, 796, 705, 15, 6, 5357, 366, 40710, 1, 796, 705, 3459, 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 ]
[ 5376, 262, 2173, 329, 351, 7428, 286, 657, 290, 2173, 286, 9193, 46506, 366, 40710, 329, 1, 16034, 3084, 62, 1415, 35667, 33411, 366, 35, 5791, 1, 796, 705, 15, 6, 5357, 366, 40710, 1, 796, 705, 3459, 6 ]
Which Quantity has an Axle arrangement of 2 c h2?
SELECT AVG(quantity) FROM table_name_86 WHERE axle_arrangement = "2′c h2"
[ 13828, 39789, 468, 281, 12176, 293, 13888, 286, 362, 269, 289, 17, 30, 46506, 35224, 7, 40972, 414, 8, 16034, 3084, 62, 3672, 62, 4521, 33411, 41066, 62, 3258, 648, 972, 796, 366, 17, 17478, 66, 289, 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 ]
[ 13828, 39789, 468, 281, 12176, 293, 13888, 286, 362, 269, 289, 17, 30, 46506, 35224, 7, 40972, 414, 8, 16034, 3084, 62, 3672, 62, 4521, 33411, 41066, 62, 3258, 648, 972, 796, 366, 17, 17478, 66, 289, 17, 1 ]
Show the names of editors that are on the committee of journals with sales bigger than 3000.
SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000
[ 15307, 262, 3891, 286, 15719, 326, 389, 319, 262, 5583, 286, 22790, 351, 4200, 5749, 621, 20343, 13, 46506, 309, 17, 13, 5376, 16034, 3989, 62, 26799, 7054, 309, 16, 32357, 1268, 5464, 7054, 309, 17, 6177, 309, 16, 13, 17171, 62, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15307, 262, 3891, 286, 15719, 326, 389, 319, 262, 5583, 286, 22790, 351, 4200, 5749, 621, 20343, 13, 46506, 309, 17, 13, 5376, 16034, 3989, 62, 26799, 7054, 309, 16, 32357, 1268, 5464, 7054, 309, 17, 6177, 309, 16, 13, 17171, 62, 23...
What are the quarterfinalists when the runner up is andrew pattison?
SELECT quarterfinalists FROM table_29302816_8 WHERE runner_up = "Andrew Pattison"
[ 2061, 389, 262, 3860, 20311, 1023, 618, 262, 17490, 510, 318, 290, 1809, 279, 1078, 1653, 30, 46506, 3860, 20311, 1023, 16034, 3084, 62, 1959, 1270, 2078, 1433, 62, 23, 33411, 17490, 62, 929, 796, 366, 20508, 24682, 1653, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3860, 20311, 1023, 618, 262, 17490, 510, 318, 290, 1809, 279, 1078, 1653, 30, 46506, 3860, 20311, 1023, 16034, 3084, 62, 1959, 1270, 2078, 1433, 62, 23, 33411, 17490, 62, 929, 796, 366, 20508, 24682, 1653, 1 ]
What are the highest points with a Chassis of gordini t16, and a Year smaller than 1954?
SELECT MAX("Points") FROM table_15405 WHERE "Chassis" = 'gordini t16' AND "Year" < '1954'
[ 2061, 389, 262, 4511, 2173, 351, 257, 609, 20297, 286, 308, 585, 5362, 256, 1433, 11, 290, 257, 6280, 4833, 621, 24718, 30, 46506, 25882, 7203, 40710, 4943, 16034, 3084, 62, 1314, 26598, 33411, 366, 1925, 20297, 1, 796, 705, 70, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4511, 2173, 351, 257, 609, 20297, 286, 308, 585, 5362, 256, 1433, 11, 290, 257, 6280, 4833, 621, 24718, 30, 46506, 25882, 7203, 40710, 4943, 16034, 3084, 62, 1314, 26598, 33411, 366, 1925, 20297, 1, 796, 705, 70, 585, ...
Which English has German of leben?
SELECT english FROM table_name_26 WHERE german = "leben"
[ 13828, 3594, 468, 2679, 286, 443, 11722, 30, 46506, 46932, 16034, 3084, 62, 3672, 62, 2075, 33411, 308, 2224, 796, 366, 293, 11722, 1 ]
[ 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, 3594, 468, 2679, 286, 443, 11722, 30, 46506, 46932, 16034, 3084, 62, 3672, 62, 2075, 33411, 308, 2224, 796, 366, 293, 11722, 1 ]
What's the lowest capacity when the margin is 03:30?
SELECT MIN(capacity) FROM table_name_77 WHERE margin = "03:30"
[ 2061, 338, 262, 9016, 5339, 618, 262, 10330, 318, 7643, 25, 1270, 30, 46506, 20625, 7, 42404, 8, 16034, 3084, 62, 3672, 62, 3324, 33411, 10330, 796, 366, 3070, 25, 1270, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 9016, 5339, 618, 262, 10330, 318, 7643, 25, 1270, 30, 46506, 20625, 7, 42404, 8, 16034, 3084, 62, 3672, 62, 3324, 33411, 10330, 796, 366, 3070, 25, 1270, 1 ]
Where is the college where Keith Hartwig plays?
SELECT college FROM table_10361625_1 WHERE player_name = "Keith Hartwig"
[ 8496, 318, 262, 4152, 810, 14926, 11345, 28033, 5341, 30, 46506, 4152, 16034, 3084, 62, 940, 2623, 1433, 1495, 62, 16, 33411, 2137, 62, 3672, 796, 366, 46868, 11345, 28033, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 4152, 810, 14926, 11345, 28033, 5341, 30, 46506, 4152, 16034, 3084, 62, 940, 2623, 1433, 1495, 62, 16, 33411, 2137, 62, 3672, 796, 366, 46868, 11345, 28033, 1 ]
What are the names and average salaries for departments with average salary higher than 42000 Plot them as bar chart, and sort by the X-axis from low to high.
SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name
[ 2061, 389, 262, 3891, 290, 2811, 17058, 329, 13346, 351, 2811, 9588, 2440, 621, 5433, 830, 28114, 606, 355, 2318, 8262, 11, 290, 3297, 416, 262, 1395, 12, 22704, 422, 1877, 284, 1029, 13, 46506, 390, 457, 62, 3672, 11, 35224, 7, 216...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 3891, 290, 2811, 17058, 329, 13346, 351, 2811, 9588, 2440, 621, 5433, 830, 28114, 606, 355, 2318, 8262, 11, 290, 3297, 416, 262, 1395, 12, 22704, 422, 1877, 284, 1029, 13, 46506, 390, 457, 62, 3672, 11, 35224, 7, 216...
how many patients whose admission year is less than 2184 and lab test fluid is pleural?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2184" AND lab.fluid = "Pleural"
[ 4919, 867, 3871, 3025, 13938, 614, 318, 1342, 621, 362, 22883, 290, 2248, 1332, 11711, 318, 3339, 1523, 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, 3025, 13938, 614, 318, 1342, 621, 362, 22883, 290, 2248, 1332, 11711, 318, 3339, 1523, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, ...
What is the days held the champion with a reign larger than 3 and 1 defense has?
SELECT "Days held" FROM table_72024 WHERE "Reign" > '3' AND "Defenses" = '1'
[ 2061, 318, 262, 1528, 2714, 262, 8783, 351, 257, 13580, 4025, 621, 513, 290, 352, 3761, 468, 30, 46506, 366, 38770, 2714, 1, 16034, 3084, 62, 23906, 1731, 33411, 366, 3041, 570, 1, 1875, 705, 18, 6, 5357, 366, 7469, 4541, 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 ]
[ 2061, 318, 262, 1528, 2714, 262, 8783, 351, 257, 13580, 4025, 621, 513, 290, 352, 3761, 468, 30, 46506, 366, 38770, 2714, 1, 16034, 3084, 62, 23906, 1731, 33411, 366, 3041, 570, 1, 1875, 705, 18, 6, 5357, 366, 7469, 4541, 1, 796, ...
What is the number of this season's episode that had the production code 2t6206?
SELECT MIN("No. in season") FROM table_3957 WHERE "Production code" = '2T6206'
[ 2061, 318, 262, 1271, 286, 428, 1622, 338, 4471, 326, 550, 262, 3227, 2438, 362, 83, 21, 22136, 30, 46506, 20625, 7203, 2949, 13, 287, 1622, 4943, 16034, 3084, 62, 2670, 3553, 33411, 366, 35027, 2438, 1, 796, 705, 17, 51, 21, 22136,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 428, 1622, 338, 4471, 326, 550, 262, 3227, 2438, 362, 83, 21, 22136, 30, 46506, 20625, 7203, 2949, 13, 287, 1622, 4943, 16034, 3084, 62, 2670, 3553, 33411, 366, 35027, 2438, 1, 796, 705, 17, 51, 21, 22136,...
how many patients whose marital status is divorced and procedure long title is small-to-small intestinal anastomosis?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.long_title = "Small-to-small intestinal anastomosis"
[ 4919, 867, 3871, 3025, 29555, 3722, 318, 25107, 290, 8771, 890, 3670, 318, 1402, 12, 1462, 12, 17470, 32031, 281, 459, 296, 5958, 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...
[ 4919, 867, 3871, 3025, 29555, 3722, 318, 25107, 290, 8771, 890, 3670, 318, 1402, 12, 1462, 12, 17470, 32031, 281, 459, 296, 5958, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479,...
Which physicians are trained in procedures that are more expensive than 5000, and count them by a bar chart
SELECT T1.Name, COUNT(T1.Name) FROM Physician AS T1 JOIN Trained_In AS T2 ON T1.EmployeeID = T2.Physician JOIN Procedures AS T3 ON T3.Code = T2.Treatment WHERE T3.Cost > 5000 GROUP BY T1.Name
[ 13828, 17206, 389, 8776, 287, 9021, 326, 389, 517, 5789, 621, 23336, 11, 290, 954, 606, 416, 257, 2318, 8262, 46506, 309, 16, 13, 5376, 11, 327, 28270, 7, 51, 16, 13, 5376, 8, 16034, 8687, 6749, 7054, 309, 16, 32357, 1268, 833, 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...
[ 13828, 17206, 389, 8776, 287, 9021, 326, 389, 517, 5789, 621, 23336, 11, 290, 954, 606, 416, 257, 2318, 8262, 46506, 309, 16, 13, 5376, 11, 327, 28270, 7, 51, 16, 13, 5376, 8, 16034, 8687, 6749, 7054, 309, 16, 32357, 1268, 833, 13...
For the game where the away team was North Melbourne, what was the venue?
SELECT "Venue" FROM table_33381 WHERE "Away team" = 'north melbourne'
[ 1890, 262, 983, 810, 262, 1497, 1074, 373, 2258, 14819, 11, 644, 373, 262, 14359, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 2091, 36626, 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, 1, 1, 1 ]
[ 1890, 262, 983, 810, 262, 1497, 1074, 373, 2258, 14819, 11, 644, 373, 262, 14359, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 2091, 36626, 33411, 366, 32, 1014, 1074, 1, 796, 705, 43588, 7758, 12544, 6 ]
What is the against percentage in the Vest-Agder constituency?
SELECT "Against (%)" FROM table_17861 WHERE "Constituency" = 'Vest-Agder'
[ 2061, 318, 262, 1028, 5873, 287, 262, 39034, 12, 10262, 1082, 28280, 30, 46506, 366, 39276, 11509, 1, 16034, 3084, 62, 1558, 4521, 16, 33411, 366, 34184, 34272, 1387, 1, 796, 705, 53, 395, 12, 10262, 1082, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1028, 5873, 287, 262, 39034, 12, 10262, 1082, 28280, 30, 46506, 366, 39276, 11509, 1, 16034, 3084, 62, 1558, 4521, 16, 33411, 366, 34184, 34272, 1387, 1, 796, 705, 53, 395, 12, 10262, 1082, 6 ]
Which Round has a Pick of 174?
SELECT "Round" FROM table_36951 WHERE "Pick" = '174'
[ 13828, 10485, 468, 257, 12346, 286, 27621, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 2623, 50119, 33411, 366, 31686, 1, 796, 705, 22985, 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 ]
[ 13828, 10485, 468, 257, 12346, 286, 27621, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 2623, 50119, 33411, 366, 31686, 1, 796, 705, 22985, 6 ]
what is the difference of population in easton and reno ?
SELECT ABS((SELECT "population" FROM table_204_616 WHERE "township" = 'easton') - (SELECT "population" FROM table_204_616 WHERE "township" = 'reno'))
[ 10919, 318, 262, 3580, 286, 3265, 287, 7627, 261, 290, 302, 3919, 5633, 46506, 29950, 19510, 46506, 366, 39748, 1, 16034, 3084, 62, 18638, 62, 44214, 33411, 366, 12735, 6720, 1, 796, 705, 23316, 261, 11537, 532, 357, 46506, 366, 39748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3580, 286, 3265, 287, 7627, 261, 290, 302, 3919, 5633, 46506, 29950, 19510, 46506, 366, 39748, 1, 16034, 3084, 62, 18638, 62, 44214, 33411, 366, 12735, 6720, 1, 796, 705, 23316, 261, 11537, 532, 357, 46506, 366, 39748, ...
When did the Wolverhampton Wanderers play at home?
SELECT date FROM table_name_52 WHERE home_team = "wolverhampton wanderers"
[ 2215, 750, 262, 26328, 2763, 10972, 22420, 19288, 711, 379, 1363, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 4309, 33411, 1363, 62, 15097, 796, 366, 86, 14375, 2763, 10972, 11569, 19288, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 750, 262, 26328, 2763, 10972, 22420, 19288, 711, 379, 1363, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 4309, 33411, 1363, 62, 15097, 796, 366, 86, 14375, 2763, 10972, 11569, 19288, 1 ]
What is Tiger Woods' to par?
SELECT to_par FROM table_name_5 WHERE player = "tiger woods"
[ 2061, 318, 17030, 16483, 6, 284, 1582, 30, 46506, 284, 62, 1845, 16034, 3084, 62, 3672, 62, 20, 33411, 2137, 796, 366, 83, 8254, 16479, 1 ]
[ 1, 1, 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, 17030, 16483, 6, 284, 1582, 30, 46506, 284, 62, 1845, 16034, 3084, 62, 3672, 62, 20, 33411, 2137, 796, 366, 83, 8254, 16479, 1 ]
Find the the customer details and id for the customers who had more than one policy.
SELECT T1.customer_details, T1.customer_id FROM customers AS T1 JOIN customer_policies AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 1
[ 16742, 262, 262, 6491, 3307, 290, 4686, 329, 262, 4297, 508, 550, 517, 621, 530, 2450, 13, 46506, 309, 16, 13, 23144, 263, 62, 36604, 11, 309, 16, 13, 23144, 263, 62, 312, 16034, 4297, 7054, 309, 16, 32357, 1268, 6491, 62, 79, 416...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 262, 6491, 3307, 290, 4686, 329, 262, 4297, 508, 550, 517, 621, 530, 2450, 13, 46506, 309, 16, 13, 23144, 263, 62, 36604, 11, 309, 16, 13, 23144, 263, 62, 312, 16034, 4297, 7054, 309, 16, 32357, 1268, 6491, 62, 79, 416...
count the number of patients whose ethnicity is black/african american and procedure short title is drug detoxification?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND procedures.short_title = "Drug detoxification"
[ 9127, 262, 1271, 286, 3871, 3025, 26289, 318, 2042, 14, 1878, 37189, 45630, 272, 290, 8771, 1790, 3670, 318, 2563, 44674, 2649, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 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, 3025, 26289, 318, 2042, 14, 1878, 37189, 45630, 272, 290, 8771, 1790, 3670, 318, 2563, 44674, 2649, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 3...
For each classroom with at least 2 classes, how many classes are offered. Show the proportion.
SELECT CLASS_ROOM, COUNT(*) FROM CLASS GROUP BY CLASS_ROOM
[ 1890, 1123, 15806, 351, 379, 1551, 362, 6097, 11, 703, 867, 6097, 389, 4438, 13, 5438, 262, 9823, 13, 46506, 42715, 62, 13252, 2662, 11, 327, 28270, 7, 28104, 16034, 42715, 44441, 11050, 42715, 62, 13252, 2662 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1123, 15806, 351, 379, 1551, 362, 6097, 11, 703, 867, 6097, 389, 4438, 13, 5438, 262, 9823, 13, 46506, 42715, 62, 13252, 2662, 11, 327, 28270, 7, 28104, 16034, 42715, 44441, 11050, 42715, 62, 13252, 2662 ]
Which round has the mv agusta f4 1000 mt?
SELECT rounds FROM table_name_75 WHERE motorcycle = "mv agusta f4 1000 mt"
[ 13828, 2835, 468, 262, 285, 85, 556, 436, 64, 277, 19, 8576, 45079, 30, 46506, 9196, 16034, 3084, 62, 3672, 62, 2425, 33411, 18757, 796, 366, 76, 85, 556, 436, 64, 277, 19, 8576, 45079, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 2835, 468, 262, 285, 85, 556, 436, 64, 277, 19, 8576, 45079, 30, 46506, 9196, 16034, 3084, 62, 3672, 62, 2425, 33411, 18757, 796, 366, 76, 85, 556, 436, 64, 277, 19, 8576, 45079, 1 ]
What is the Hanja for the hamgyeong RR Romaja?
SELECT "Hanja" FROM table_41892 WHERE "RR Romaja" = 'hamgyeong'
[ 2061, 318, 262, 9530, 6592, 329, 262, 8891, 1360, 68, 506, 26067, 3570, 27792, 30, 46506, 366, 29919, 6592, 1, 16034, 3084, 62, 39667, 5892, 33411, 366, 21095, 3570, 27792, 1, 796, 705, 2763, 1360, 68, 506, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9530, 6592, 329, 262, 8891, 1360, 68, 506, 26067, 3570, 27792, 30, 46506, 366, 29919, 6592, 1, 16034, 3084, 62, 39667, 5892, 33411, 366, 21095, 3570, 27792, 1, 796, 705, 2763, 1360, 68, 506, 6 ]
Can you tell me the Player that has the Place of t5, and the Score of 73-72-71-75=291?
SELECT player FROM table_name_33 WHERE place = "t5" AND score = 73 - 72 - 71 - 75 = 291
[ 6090, 345, 1560, 502, 262, 7853, 326, 468, 262, 8474, 286, 256, 20, 11, 290, 262, 15178, 286, 8854, 12, 4761, 12, 4869, 12, 2425, 28, 33551, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 2091, 33411, 1295, 796, 366, 83, 20, 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, 1, 1, 1, 1, 1 ]
[ 6090, 345, 1560, 502, 262, 7853, 326, 468, 262, 8474, 286, 256, 20, 11, 290, 262, 15178, 286, 8854, 12, 4761, 12, 4869, 12, 2425, 28, 33551, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 2091, 33411, 1295, 796, 366, 83, 20, 1, 5357,...
What is the RCM that has a density of 9.7?
SELECT regional_county_municipality__rcm_ FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7"
[ 2061, 318, 262, 13987, 44, 326, 468, 257, 12109, 286, 860, 13, 22, 30, 46506, 7915, 62, 9127, 88, 62, 6199, 4311, 1483, 834, 6015, 76, 62, 16034, 3084, 62, 17, 19442, 1238, 62, 16, 33411, 12109, 834, 12924, 62, 525, 62, 13276, 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 ]
[ 2061, 318, 262, 13987, 44, 326, 468, 257, 12109, 286, 860, 13, 22, 30, 46506, 7915, 62, 9127, 88, 62, 6199, 4311, 1483, 834, 6015, 76, 62, 16034, 3084, 62, 17, 19442, 1238, 62, 16, 33411, 12109, 834, 12924, 62, 525, 62, 13276, 17,...
the temperature of patient 004-13127 had been less than 37.444 on the last icu visit?
SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-13127') AND NOT patient.unitdischargetime IS NULL ORDER BY patie...
[ 1169, 5951, 286, 5827, 3571, 19, 12, 1485, 16799, 550, 587, 1342, 621, 5214, 13, 30272, 319, 262, 938, 14158, 84, 3187, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, 20850, 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...
[ 1169, 5951, 286, 5827, 3571, 19, 12, 1485, 16799, 550, 587, 1342, 621, 5214, 13, 30272, 319, 262, 938, 14158, 84, 3187, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, 20850, 31...
What's the total long for more than 24 loss, a gain over 273, and an avg/g of 207.8?
SELECT SUM("Long") FROM table_12213 WHERE "Loss" > '24' AND "Gain" > '273' AND "Avg/G" = '207.8'
[ 2061, 338, 262, 2472, 890, 329, 517, 621, 1987, 2994, 11, 257, 4461, 625, 38549, 11, 290, 281, 42781, 14, 70, 286, 27791, 13, 23, 30, 46506, 35683, 7203, 14617, 4943, 16034, 3084, 62, 18376, 1485, 33411, 366, 43, 793, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 338, 262, 2472, 890, 329, 517, 621, 1987, 2994, 11, 257, 4461, 625, 38549, 11, 290, 281, 42781, 14, 70, 286, 27791, 13, 23, 30, 46506, 35683, 7203, 14617, 4943, 16034, 3084, 62, 18376, 1485, 33411, 366, 43, 793, 1, 1875, 705, ...
List the distinct ranges of the mountains with the top 3 prominence.
SELECT DISTINCT range FROM mountain ORDER BY prominence DESC LIMIT 3
[ 8053, 262, 7310, 16069, 286, 262, 12269, 351, 262, 1353, 513, 31198, 13, 46506, 360, 8808, 1268, 4177, 2837, 16034, 8598, 38678, 11050, 31198, 22196, 34, 27564, 2043, 513 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 262, 7310, 16069, 286, 262, 12269, 351, 262, 1353, 513, 31198, 13, 46506, 360, 8808, 1268, 4177, 2837, 16034, 8598, 38678, 11050, 31198, 22196, 34, 27564, 2043, 513 ]
how many inpatient hospital admitted patients have procedure icd9 code 9925?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND procedures.icd9_code = "9925"
[ 4919, 867, 287, 26029, 4436, 6848, 3871, 423, 8771, 14158, 67, 24, 2438, 7388, 1495, 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, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 287, 26029, 4436, 6848, 3871, 423, 8771, 14158, 67, 24, 2438, 7388, 1495, 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, 7...
provide the number of patients whose diagnoses short title is gastrointest hemorr nos and drug route is iv drip?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Gastrointest hemorr NOS" AND prescriptions.route = "IV DRIP"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 40567, 1790, 3670, 318, 33131, 600, 395, 42000, 81, 43630, 290, 2563, 6339, 318, 21628, 36296, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 40567, 1790, 3670, 318, 33131, 600, 395, 42000, 81, 43630, 290, 2563, 6339, 318, 21628, 36296, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 2...
What are the names of all songs that are ordered by their resolution numbers?
SELECT song_name FROM song ORDER BY resolution
[ 2061, 389, 262, 3891, 286, 477, 7259, 326, 389, 6149, 416, 511, 6323, 3146, 30, 46506, 3496, 62, 3672, 16034, 3496, 38678, 11050, 6323 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 3891, 286, 477, 7259, 326, 389, 6149, 416, 511, 6323, 3146, 30, 46506, 3496, 62, 3672, 16034, 3496, 38678, 11050, 6323 ]
what was the highest that german silva placed in an international race after 1995 ?
SELECT MIN("position") FROM table_203_245 WHERE "year" > 1995
[ 10919, 373, 262, 4511, 326, 308, 2224, 3313, 6862, 4624, 287, 281, 3230, 3234, 706, 8735, 5633, 46506, 20625, 7203, 9150, 4943, 16034, 3084, 62, 22416, 62, 22995, 33411, 366, 1941, 1, 1875, 8735 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4511, 326, 308, 2224, 3313, 6862, 4624, 287, 281, 3230, 3234, 706, 8735, 5633, 46506, 20625, 7203, 9150, 4943, 16034, 3084, 62, 22416, 62, 22995, 33411, 366, 1941, 1, 1875, 8735 ]
What Londongborough has a Dialcode of 01992?
SELECT "Londonborough" FROM table_53500 WHERE "Dialcode" = '01992'
[ 2061, 406, 623, 506, 17913, 468, 257, 21269, 8189, 286, 5534, 41561, 30, 46506, 366, 23421, 17913, 1, 16034, 3084, 62, 44465, 405, 33411, 366, 24400, 8189, 1, 796, 705, 486, 41561, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 406, 623, 506, 17913, 468, 257, 21269, 8189, 286, 5534, 41561, 30, 46506, 366, 23421, 17913, 1, 16034, 3084, 62, 44465, 405, 33411, 366, 24400, 8189, 1, 796, 705, 486, 41561, 6 ]
What is the sum of the golds of the nation with 5 total and less than 0 bronze medals?
SELECT SUM(gold) FROM table_name_18 WHERE total = 5 AND bronze < 0
[ 2061, 318, 262, 2160, 286, 262, 3869, 82, 286, 262, 3277, 351, 642, 2472, 290, 1342, 621, 657, 22101, 28057, 30, 46506, 35683, 7, 24267, 8, 16034, 3084, 62, 3672, 62, 1507, 33411, 2472, 796, 642, 5357, 22101, 1279, 657 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2160, 286, 262, 3869, 82, 286, 262, 3277, 351, 642, 2472, 290, 1342, 621, 657, 22101, 28057, 30, 46506, 35683, 7, 24267, 8, 16034, 3084, 62, 3672, 62, 1507, 33411, 2472, 796, 642, 5357, 22101, 1279, 657 ]
How many episodes are 122 in the series?
SELECT COUNT(no_in_season) FROM table_29152820_1 WHERE no_in_series = 122
[ 2437, 867, 8640, 389, 19409, 287, 262, 2168, 30, 46506, 327, 28270, 7, 3919, 62, 259, 62, 6230, 8, 16034, 3084, 62, 1959, 1314, 2078, 1238, 62, 16, 33411, 645, 62, 259, 62, 25076, 796, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 8640, 389, 19409, 287, 262, 2168, 30, 46506, 327, 28270, 7, 3919, 62, 259, 62, 6230, 8, 16034, 3084, 62, 1959, 1314, 2078, 1238, 62, 16, 33411, 645, 62, 259, 62, 25076, 796, 19409 ]
For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the sum of salary , and group by attribute job_id, rank by the x axis from low to high.
SELECT JOB_ID, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 4279, 416, 262, 2124, 16488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 4279, 416, 262, 2124, 16488, ...
What is the number of start dates of each apartment booking for each weekday? Return a bar chart.
SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id
[ 2061, 318, 262, 1271, 286, 923, 9667, 286, 1123, 7962, 25452, 329, 1123, 28269, 30, 8229, 257, 2318, 8262, 13, 46506, 25452, 62, 9688, 62, 4475, 11, 327, 28270, 7, 2070, 278, 62, 9688, 62, 4475, 8, 16034, 5949, 1823, 62, 10482, 654,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 923, 9667, 286, 1123, 7962, 25452, 329, 1123, 28269, 30, 8229, 257, 2318, 8262, 13, 46506, 25452, 62, 9688, 62, 4475, 11, 327, 28270, 7, 2070, 278, 62, 9688, 62, 4475, 8, 16034, 5949, 1823, 62, 10482, 654,...
Who did the play-by-play before 1992 with the Ice level reporter Mike Emrick?
SELECT "Play-by-play" FROM table_55597 WHERE "Year" < '1992' AND "Ice level reporters" = 'mike emrick'
[ 8241, 750, 262, 711, 12, 1525, 12, 1759, 878, 9768, 351, 262, 6663, 1241, 9095, 4995, 2295, 5557, 30, 46506, 366, 11002, 12, 1525, 12, 1759, 1, 16034, 3084, 62, 2816, 43239, 33411, 366, 17688, 1, 1279, 705, 23847, 6, 5357, 366, 2370...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 750, 262, 711, 12, 1525, 12, 1759, 878, 9768, 351, 262, 6663, 1241, 9095, 4995, 2295, 5557, 30, 46506, 366, 11002, 12, 1525, 12, 1759, 1, 16034, 3084, 62, 2816, 43239, 33411, 366, 17688, 1, 1279, 705, 23847, 6, 5357, 366, 2370...
How many laps have an average speed (mph) of 140.22?
SELECT "Laps" FROM table_24855 WHERE "Average Speed (mph)" = '140.22'
[ 2437, 867, 24590, 423, 281, 2811, 2866, 357, 23335, 8, 286, 12713, 13, 1828, 30, 46506, 366, 43, 1686, 1, 16034, 3084, 62, 23045, 2816, 33411, 366, 26287, 8729, 357, 23335, 16725, 796, 705, 15187, 13, 1828, 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 ]
[ 2437, 867, 24590, 423, 281, 2811, 2866, 357, 23335, 8, 286, 12713, 13, 1828, 30, 46506, 366, 43, 1686, 1, 16034, 3084, 62, 23045, 2816, 33411, 366, 26287, 8729, 357, 23335, 16725, 796, 705, 15187, 13, 1828, 6 ]
I want the total number of Grids for heinz-harald frentzen
SELECT COUNT(grid) FROM table_name_10 WHERE driver = "heinz-harald frentzen"
[ 40, 765, 262, 2472, 1271, 286, 1902, 2340, 329, 339, 259, 89, 12, 9869, 1940, 277, 1156, 4801, 46506, 327, 28270, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 940, 33411, 4639, 796, 366, 258, 259, 89, 12, 9869, 1940, 277, 1156, 4801, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 40, 765, 262, 2472, 1271, 286, 1902, 2340, 329, 339, 259, 89, 12, 9869, 1940, 277, 1156, 4801, 46506, 327, 28270, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 940, 33411, 4639, 796, 366, 258, 259, 89, 12, 9869, 1940, 277, 1156, 4801, 1...
What is the # of seats one for the election in 1974?
SELECT _number_of_seats_won FROM table_123462_2 WHERE election = 1974
[ 2061, 318, 262, 1303, 286, 8632, 530, 329, 262, 3071, 287, 16489, 30, 46506, 4808, 17618, 62, 1659, 62, 325, 1381, 62, 26502, 16034, 3084, 62, 1065, 2682, 5237, 62, 17, 33411, 3071, 796, 16489 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8632, 530, 329, 262, 3071, 287, 16489, 30, 46506, 4808, 17618, 62, 1659, 62, 325, 1381, 62, 26502, 16034, 3084, 62, 1065, 2682, 5237, 62, 17, 33411, 3071, 796, 16489 ]
What is the name on the Communist ticket with an Office of judge of the court of appeals?
SELECT communist_ticket FROM table_name_63 WHERE office = "judge of the court of appeals"
[ 2061, 318, 262, 1438, 319, 262, 14884, 7846, 351, 281, 4452, 286, 5052, 286, 262, 2184, 286, 15192, 30, 46506, 20555, 62, 43350, 16034, 3084, 62, 3672, 62, 5066, 33411, 2607, 796, 366, 10456, 469, 286, 262, 2184, 286, 15192, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 319, 262, 14884, 7846, 351, 281, 4452, 286, 5052, 286, 262, 2184, 286, 15192, 30, 46506, 20555, 62, 43350, 16034, 3084, 62, 3672, 62, 5066, 33411, 2607, 796, 366, 10456, 469, 286, 262, 2184, 286, 15192, 1 ]
have patient 021-100763 been tested since 2105 for bedside glucose?
SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-100763')) AND lab.labname = 'bedside glucose' AND STRFTIME('%y', lab.labresulttime) ...
[ 14150, 5827, 657, 2481, 12, 3064, 49641, 587, 6789, 1201, 362, 13348, 329, 3996, 1589, 15701, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 14150, 5827, 657, 2481, 12, 3064, 49641, 587, 6789, 1201, 362, 13348, 329, 3996, 1589, 15701, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, ...
How many Lanes have a Country of jamaica, and a Name of kerron stewart, and a Time larger than 22?
SELECT SUM(lane) FROM table_name_46 WHERE country = "jamaica" AND name = "kerron stewart" AND time > 22
[ 2437, 867, 406, 7305, 423, 257, 12946, 286, 474, 1689, 3970, 11, 290, 257, 6530, 286, 41927, 1313, 20798, 433, 11, 290, 257, 3862, 4025, 621, 2534, 30, 46506, 35683, 7, 33533, 8, 16034, 3084, 62, 3672, 62, 3510, 33411, 1499, 796, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 406, 7305, 423, 257, 12946, 286, 474, 1689, 3970, 11, 290, 257, 6530, 286, 41927, 1313, 20798, 433, 11, 290, 257, 3862, 4025, 621, 2534, 30, 46506, 35683, 7, 33533, 8, 16034, 3084, 62, 3672, 62, 3510, 33411, 1499, 796, 36...
What is Part 1, when Part 3 is 'heldu'?
SELECT "Part 1" FROM table_48532 WHERE "Part 3" = 'heldu'
[ 2061, 318, 2142, 352, 11, 618, 2142, 513, 318, 705, 10217, 84, 30960, 46506, 366, 7841, 352, 1, 16034, 3084, 62, 32642, 2624, 33411, 366, 7841, 513, 1, 796, 705, 10217, 84, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 2142, 352, 11, 618, 2142, 513, 318, 705, 10217, 84, 30960, 46506, 366, 7841, 352, 1, 16034, 3084, 62, 32642, 2624, 33411, 366, 7841, 513, 1, 796, 705, 10217, 84, 6 ]
Can you list the employee's last name and the corresponding department id using a bar chart?, and could you display from high to low by the X?
SELECT LAST_NAME, DEPARTMENT_ID FROM employees ORDER BY LAST_NAME DESC
[ 6090, 345, 1351, 262, 6538, 338, 938, 1438, 290, 262, 11188, 5011, 4686, 1262, 257, 2318, 8262, 21747, 290, 714, 345, 3359, 422, 1029, 284, 1877, 416, 262, 1395, 30, 46506, 41894, 62, 20608, 11, 5550, 30709, 10979, 62, 2389, 16034, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1351, 262, 6538, 338, 938, 1438, 290, 262, 11188, 5011, 4686, 1262, 257, 2318, 8262, 21747, 290, 714, 345, 3359, 422, 1029, 284, 1877, 416, 262, 1395, 30, 46506, 41894, 62, 20608, 11, 5550, 30709, 10979, 62, 2389, 16034, 44...
Users with reputation > 10000 and < 10 answers.
SELECT Users.Id AS "user_link", Users.DisplayName, Users.Reputation, SUM(CASE WHEN Posts.PostTypeId = 1 THEN 1 ELSE 0 END) AS Questions, SUM(CASE WHEN Posts.PostTypeId = 2 THEN 1 ELSE 0 END) AS Answers, Users.UpVotes, Users.DownVotes FROM Users INNER JOIN Posts ON Users.Id = Posts.OwnerUserId AND (Posts.PostTypeId = 1 ...
[ 14490, 351, 8507, 1875, 33028, 290, 1279, 838, 7429, 13, 46506, 18987, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 18987, 13, 23114, 5376, 11, 18987, 13, 6207, 7094, 11, 35683, 7, 34, 11159, 42099, 12043, 13, 6307, 6030, 7390, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 14490, 351, 8507, 1875, 33028, 290, 1279, 838, 7429, 13, 46506, 18987, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 18987, 13, 23114, 5376, 11, 18987, 13, 6207, 7094, 11, 35683, 7, 34, 11159, 42099, 12043, 13, 6307, 6030, 7390, 796, 352...
Name the least 10,000+ places for louisville
SELECT MIN(10), 000 + _places FROM table_22916979_5 WHERE principal_city = "Louisville"
[ 5376, 262, 1551, 838, 11, 830, 10, 4113, 329, 21081, 271, 4244, 46506, 20625, 7, 940, 828, 12877, 1343, 4808, 23625, 16034, 3084, 62, 23539, 22172, 3720, 62, 20, 33411, 10033, 62, 19205, 796, 366, 32117, 4244, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1551, 838, 11, 830, 10, 4113, 329, 21081, 271, 4244, 46506, 20625, 7, 940, 828, 12877, 1343, 4808, 23625, 16034, 3084, 62, 23539, 22172, 3720, 62, 20, 33411, 10033, 62, 19205, 796, 366, 32117, 4244, 1 ]
What is the imperfect stem of the word that means 'take away, remove'?
SELECT imperfect_stem FROM table_name_74 WHERE meaning = "'take away, remove'"
[ 2061, 318, 262, 23162, 10717, 286, 262, 1573, 326, 1724, 705, 20657, 1497, 11, 4781, 30960, 46506, 23162, 62, 927, 16034, 3084, 62, 3672, 62, 4524, 33411, 3616, 796, 24018, 20657, 1497, 11, 4781, 29653 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23162, 10717, 286, 262, 1573, 326, 1724, 705, 20657, 1497, 11, 4781, 30960, 46506, 23162, 62, 927, 16034, 3084, 62, 3672, 62, 4524, 33411, 3616, 796, 24018, 20657, 1497, 11, 4781, 29653 ]