instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
Name the original air date for ' don't look a smith horse in the mouth
SELECT "Original air date" FROM table_73485 WHERE "Title" = ' Don''t Look a Smith Horse in the Mouth '
[ 5376, 262, 2656, 1633, 3128, 329, 705, 836, 470, 804, 257, 895, 342, 8223, 287, 262, 5422, 46506, 366, 20556, 1633, 3128, 1, 16034, 3084, 62, 22, 2682, 5332, 33411, 366, 19160, 1, 796, 705, 2094, 7061, 83, 6803, 257, 4176, 18455, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 2656, 1633, 3128, 329, 705, 836, 470, 804, 257, 895, 342, 8223, 287, 262, 5422, 46506, 366, 20556, 1633, 3128, 1, 16034, 3084, 62, 22, 2682, 5332, 33411, 366, 19160, 1, 796, 705, 2094, 7061, 83, 6803, 257, 4176, 18455, 28...
how many patients of hispanic or latino-puertorican ethnicity followed the procedure heart countershock nec?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND procedures.short_title = "Heart countershock NEC"
[ 4919, 867, 3871, 286, 465, 35843, 393, 3042, 2879, 12, 19944, 861, 273, 7490, 26289, 3940, 262, 8771, 2612, 21154, 71, 735, 27576, 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, 286, 465, 35843, 393, 3042, 2879, 12, 19944, 861, 273, 7490, 26289, 3940, 262, 8771, 2612, 21154, 71, 735, 27576, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479...
What was the record on july 24?
SELECT "Record" FROM table_57178 WHERE "Date" = 'july 24'
[ 2061, 373, 262, 1700, 319, 474, 2062, 1987, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 3553, 23188, 33411, 366, 10430, 1, 796, 705, 73, 2062, 1987, 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, 373, 262, 1700, 319, 474, 2062, 1987, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 3553, 23188, 33411, 366, 10430, 1, 796, 705, 73, 2062, 1987, 6 ]
what's the earliest year that serena williams had more than 2 sets?
SELECT MIN("Year") FROM table_42301 WHERE "Player" = 'serena williams' AND "Sets" > '2'
[ 10919, 338, 262, 14555, 614, 326, 384, 918, 64, 481, 1789, 82, 550, 517, 621, 362, 5621, 30, 46506, 20625, 7203, 17688, 4943, 16034, 3084, 62, 43356, 486, 33411, 366, 14140, 1, 796, 705, 325, 918, 64, 481, 1789, 82, 6, 5357, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 338, 262, 14555, 614, 326, 384, 918, 64, 481, 1789, 82, 550, 517, 621, 362, 5621, 30, 46506, 20625, 7203, 17688, 4943, 16034, 3084, 62, 43356, 486, 33411, 366, 14140, 1, 796, 705, 325, 918, 64, 481, 1789, 82, 6, 5357, 366, ...
what is the venue when the date is 16 january 1996?
SELECT "Venue" FROM table_45340 WHERE "Date" = '16 january 1996'
[ 10919, 318, 262, 14359, 618, 262, 3128, 318, 1467, 42897, 2838, 8235, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 2231, 23601, 33411, 366, 10430, 1, 796, 705, 1433, 42897, 2838, 8235, 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 ]
[ 10919, 318, 262, 14359, 618, 262, 3128, 318, 1467, 42897, 2838, 8235, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 2231, 23601, 33411, 366, 10430, 1, 796, 705, 1433, 42897, 2838, 8235, 6 ]
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the average of salary over the hire_date bin hire_date by time.
SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40
[ 1890, 883, 4409, 3025, 9588, 318, 287, 262, 2837, 286, 38055, 290, 1105, 830, 290, 5810, 318, 407, 9242, 393, 5011, 1271, 857, 407, 4961, 284, 2319, 11, 1577, 502, 262, 7208, 546, 262, 2811, 286, 9588, 625, 262, 11078, 62, 4475, 987...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3025, 9588, 318, 287, 262, 2837, 286, 38055, 290, 1105, 830, 290, 5810, 318, 407, 9242, 393, 5011, 1271, 857, 407, 4961, 284, 2319, 11, 1577, 502, 262, 7208, 546, 262, 2811, 286, 9588, 625, 262, 11078, 62, 4475, 987...
Tell me the province for 260km ese of calgary
SELECT "Province" FROM table_31585 WHERE "Location" = '260km ese of calgary'
[ 24446, 502, 262, 8473, 329, 21148, 13276, 1658, 68, 286, 2386, 14849, 46506, 366, 15946, 924, 1, 16034, 3084, 62, 27936, 5332, 33411, 366, 14749, 1, 796, 705, 21719, 13276, 1658, 68, 286, 2386, 14849, 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 ]
[ 24446, 502, 262, 8473, 329, 21148, 13276, 1658, 68, 286, 2386, 14849, 46506, 366, 15946, 924, 1, 16034, 3084, 62, 27936, 5332, 33411, 366, 14749, 1, 796, 705, 21719, 13276, 1658, 68, 286, 2386, 14849, 6 ]
had patient 8888 excreted gastric gastric tube in 12/2105?
SELECT COUNT(*) > 0 FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8888)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'gastric gastric...
[ 18108, 5827, 807, 28011, 2859, 1186, 276, 21956, 1173, 21956, 1173, 12403, 287, 1105, 14, 17, 13348, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 38701, 1133, 85, 658, 33411, 38701, 1133, 85, 658, 13, 291, 436, 323, 62, 312, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 18108, 5827, 807, 28011, 2859, 1186, 276, 21956, 1173, 21956, 1173, 12403, 287, 1105, 14, 17, 13348, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 38701, 1133, 85, 658, 33411, 38701, 1133, 85, 658, 13, 291, 436, 323, 62, 312, 326...
What is the StuffitX value that has a Stuffit of unknown, LHA/LZH of yes, and unknown ISO/CD image?
SELECT stuffit AS X FROM table_name_26 WHERE stuffit = "unknown" AND lha_lzh = "yes" AND iso_cd_image = "unknown"
[ 2061, 318, 262, 27864, 270, 55, 1988, 326, 468, 257, 27864, 270, 286, 6439, 11, 406, 7801, 14, 43, 57, 39, 286, 3763, 11, 290, 6439, 19694, 14, 8610, 2939, 30, 46506, 3404, 270, 7054, 1395, 16034, 3084, 62, 3672, 62, 2075, 33411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 318, 262, 27864, 270, 55, 1988, 326, 468, 257, 27864, 270, 286, 6439, 11, 406, 7801, 14, 43, 57, 39, 286, 3763, 11, 290, 6439, 19694, 14, 8610, 2939, 30, 46506, 3404, 270, 7054, 1395, 16034, 3084, 62, 3672, 62, 2075, 33411, ...
how many deputy judges served on the permanent court of international justice after 1930 ?
SELECT COUNT("name") FROM table_204_301 WHERE "term as a deputy judge" > 1930
[ 4919, 867, 10636, 10266, 4983, 319, 262, 7748, 2184, 286, 3230, 5316, 706, 15533, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 18938, 33411, 366, 4354, 355, 257, 10636, 5052, 1, 1875, 15533 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4983, 319, 262, 7748, 2184, 286, 3230, 5316, 706, 15533, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 18938, 33411, 366, 4354, 355, 257, 10636, 5052, 1, 1875, 15533 ]
What Label was Catalogued tojp 60121-22?
SELECT label FROM table_name_83 WHERE catalogue = "tojp 60121-22"
[ 2061, 36052, 373, 44515, 1739, 284, 34523, 49231, 2481, 12, 1828, 30, 46506, 6167, 16034, 3084, 62, 3672, 62, 5999, 33411, 34614, 796, 366, 1462, 34523, 49231, 2481, 12, 1828, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 36052, 373, 44515, 1739, 284, 34523, 49231, 2481, 12, 1828, 30, 46506, 6167, 16034, 3084, 62, 3672, 62, 5999, 33411, 34614, 796, 366, 1462, 34523, 49231, 2481, 12, 1828, 1 ]
Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a?
SELECT pavilion_depth FROM table_name_36 WHERE brilliance_grade = "100%" AND pavilion_angle = "n/a"
[ 13828, 42094, 6795, 468, 257, 33335, 3610, 22653, 286, 1802, 4, 290, 257, 42094, 9848, 286, 299, 14, 64, 30, 46506, 45549, 29935, 62, 18053, 16034, 3084, 62, 3672, 62, 2623, 33411, 37451, 62, 9526, 796, 366, 3064, 39658, 5357, 45549, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 42094, 6795, 468, 257, 33335, 3610, 22653, 286, 1802, 4, 290, 257, 42094, 9848, 286, 299, 14, 64, 30, 46506, 45549, 29935, 62, 18053, 16034, 3084, 62, 3672, 62, 2623, 33411, 37451, 62, 9526, 796, 366, 3064, 39658, 5357, 45549, ...
What is the IHSA cheerleading class for the enrollment of 2600?
SELECT ihsa_cheerleading_class FROM table_27653955_1 WHERE enrollment = 2600
[ 2061, 318, 262, 314, 39, 4090, 14042, 12294, 1398, 329, 262, 20753, 286, 47197, 30, 46506, 1312, 71, 11400, 62, 2395, 263, 12294, 62, 4871, 16034, 3084, 62, 1983, 2996, 2670, 2816, 62, 16, 33411, 20753, 796, 47197 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 39, 4090, 14042, 12294, 1398, 329, 262, 20753, 286, 47197, 30, 46506, 1312, 71, 11400, 62, 2395, 263, 12294, 62, 4871, 16034, 3084, 62, 1983, 2996, 2670, 2816, 62, 16, 33411, 20753, 796, 47197 ]
what is the difference in the number of temples between imabari and matsuyama ?
SELECT ABS((SELECT COUNT("temple") FROM table_204_841 WHERE "city/town/village" = 'imabari') - (SELECT COUNT("temple") FROM table_204_841 WHERE "city/town/village" = 'matsuyama'))
[ 10919, 318, 262, 3580, 287, 262, 1271, 286, 27081, 1022, 545, 397, 2743, 290, 46054, 4669, 1689, 5633, 46506, 29950, 19510, 46506, 327, 28270, 7203, 11498, 1154, 4943, 16034, 3084, 62, 18638, 62, 23, 3901, 33411, 366, 19205, 14, 12735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 287, 262, 1271, 286, 27081, 1022, 545, 397, 2743, 290, 46054, 4669, 1689, 5633, 46506, 29950, 19510, 46506, 327, 28270, 7203, 11498, 1154, 4943, 16034, 3084, 62, 18638, 62, 23, 3901, 33411, 366, 19205, 14, 12735, ...
Name the location attendance for january 18
SELECT "Location Attendance" FROM table_73519 WHERE "Date" = 'January 18'
[ 5376, 262, 4067, 14858, 329, 42897, 2838, 1248, 46506, 366, 14749, 46502, 590, 1, 16034, 3084, 62, 22, 2327, 1129, 33411, 366, 10430, 1, 796, 705, 21339, 1248, 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 ]
[ 5376, 262, 4067, 14858, 329, 42897, 2838, 1248, 46506, 366, 14749, 46502, 590, 1, 16034, 3084, 62, 22, 2327, 1129, 33411, 366, 10430, 1, 796, 705, 21339, 1248, 6 ]
among patients who were diagnosed with congestive heart failure since 3 years ago, what are the top five most commonly prescribed drugs that followed afterwards in the same month to the patients aged 60 or above?
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'congestive heart failure' AND DATETIME(diagnosis.d...
[ 35131, 3871, 508, 547, 14641, 351, 22791, 425, 2612, 5287, 1201, 513, 812, 2084, 11, 644, 389, 262, 1353, 1936, 749, 8811, 14798, 5010, 326, 3940, 12979, 287, 262, 976, 1227, 284, 262, 3871, 9722, 3126, 393, 2029, 30, 46506, 256, 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...
[ 35131, 3871, 508, 547, 14641, 351, 22791, 425, 2612, 5287, 1201, 513, 812, 2084, 11, 644, 389, 262, 1353, 1936, 749, 8811, 14798, 5010, 326, 3940, 12979, 287, 262, 976, 1227, 284, 262, 3871, 9722, 3126, 393, 2029, 30, 46506, 256, 18, ...
Which country has a to par of +2 for Bernhard Langer?
SELECT country FROM table_name_3 WHERE to_par = "+2" AND player = "bernhard langer"
[ 13828, 1499, 468, 257, 284, 1582, 286, 1343, 17, 329, 6206, 10424, 406, 2564, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 18, 33411, 284, 62, 1845, 796, 43825, 17, 1, 5357, 2137, 796, 366, 33900, 10424, 300, 2564, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 1499, 468, 257, 284, 1582, 286, 1343, 17, 329, 6206, 10424, 406, 2564, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 18, 33411, 284, 62, 1845, 796, 43825, 17, 1, 5357, 2137, 796, 366, 33900, 10424, 300, 2564, 1 ]
How many viewers were there for airdate is 22 october 2009?
SELECT MAX("Viewers") FROM table_73658 WHERE "Airdate" = '22 October 2009'
[ 2437, 867, 10209, 547, 612, 329, 257, 1447, 378, 318, 2534, 19318, 2023, 3717, 30, 46506, 25882, 7203, 7680, 364, 4943, 16034, 3084, 62, 49150, 3365, 33411, 366, 32, 1447, 378, 1, 796, 705, 1828, 3267, 3717, 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, 10209, 547, 612, 329, 257, 1447, 378, 318, 2534, 19318, 2023, 3717, 30, 46506, 25882, 7203, 7680, 364, 4943, 16034, 3084, 62, 49150, 3365, 33411, 366, 32, 1447, 378, 1, 796, 705, 1828, 3267, 3717, 6 ]
Show me the total number by country in a histogram, and could you display by the x axis in asc?
SELECT Country, COUNT(*) FROM stadium GROUP BY Country ORDER BY Country
[ 15307, 502, 262, 2472, 1271, 416, 1499, 287, 257, 1554, 21857, 11, 290, 714, 345, 3359, 416, 262, 2124, 16488, 287, 10570, 30, 46506, 12946, 11, 327, 28270, 7, 28104, 16034, 10308, 44441, 11050, 12946, 38678, 11050, 12946 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 502, 262, 2472, 1271, 416, 1499, 287, 257, 1554, 21857, 11, 290, 714, 345, 3359, 416, 262, 2124, 16488, 287, 10570, 30, 46506, 12946, 11, 327, 28270, 7, 28104, 16034, 10308, 44441, 11050, 12946, 38678, 11050, 12946 ]
What is Manufacturer, when Quantity Made is 2, and when Year Made is 1884?
SELECT "Manufacturer" FROM table_44047 WHERE "Quantity made" = '2' AND "Year made" = '1884'
[ 2061, 318, 40218, 11, 618, 39789, 14446, 318, 362, 11, 290, 618, 6280, 14446, 318, 1248, 5705, 30, 46506, 366, 44445, 15051, 1, 16034, 3084, 62, 25644, 2857, 33411, 366, 31208, 925, 1, 796, 705, 17, 6, 5357, 366, 17688, 925, 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 ]
[ 2061, 318, 40218, 11, 618, 39789, 14446, 318, 362, 11, 290, 618, 6280, 14446, 318, 1248, 5705, 30, 46506, 366, 44445, 15051, 1, 16034, 3084, 62, 25644, 2857, 33411, 366, 31208, 925, 1, 796, 705, 17, 6, 5357, 366, 17688, 925, 1, 796,...
What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?
SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = "edmonton oil kings (wchl)" AND position = "defence"
[ 2061, 318, 262, 12346, 1303, 329, 262, 5535, 14, 29741, 1504, 14, 18664, 1074, 286, 1225, 19729, 3056, 21557, 357, 86, 354, 75, 828, 290, 262, 2292, 611, 9366, 30, 46506, 2298, 834, 17618, 16034, 3084, 62, 3672, 62, 2920, 33411, 4152,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12346, 1303, 329, 262, 5535, 14, 29741, 1504, 14, 18664, 1074, 286, 1225, 19729, 3056, 21557, 357, 86, 354, 75, 828, 290, 262, 2292, 611, 9366, 30, 46506, 2298, 834, 17618, 16034, 3084, 62, 3672, 62, 2920, 33411, 4152,...
did patient 25216 get a diagnosis of atrial flutter since 6 years ago?
SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'atrial flutter') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25216) AND DATETIME(diagnoses_icd.char...
[ 20839, 5827, 1679, 20666, 651, 257, 13669, 286, 379, 4454, 781, 10381, 1201, 718, 812, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 40567, 62, 291, 67, 33411, 40567, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796, 357, 4650...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 20839, 5827, 1679, 20666, 651, 257, 13669, 286, 379, 4454, 781, 10381, 1201, 718, 812, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 40567, 62, 291, 67, 33411, 40567, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796, 357, 4650...
What is the To par and holds the t8 place of the United States player Tiger Woods?
SELECT "To par" FROM table_68086 WHERE "Country" = 'united states' AND "Place" = 't8' AND "Player" = 'tiger woods'
[ 2061, 318, 262, 1675, 1582, 290, 6622, 262, 256, 23, 1295, 286, 262, 1578, 1829, 2137, 17030, 16483, 30, 46506, 366, 2514, 1582, 1, 16034, 3084, 62, 37397, 4521, 33411, 366, 33921, 1, 796, 705, 41187, 2585, 6, 5357, 366, 27271, 1, 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 ]
[ 2061, 318, 262, 1675, 1582, 290, 6622, 262, 256, 23, 1295, 286, 262, 1578, 1829, 2137, 17030, 16483, 30, 46506, 366, 2514, 1582, 1, 16034, 3084, 62, 37397, 4521, 33411, 366, 33921, 1, 796, 705, 41187, 2585, 6, 5357, 366, 27271, 1, 7...
did the value of mcv of patient 002-41152 last measured on the last hospital visit be greater than first measured on the last hospital visit?
SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-41152' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi...
[ 20839, 262, 1988, 286, 285, 33967, 286, 5827, 3571, 17, 12, 42224, 4309, 938, 8630, 319, 262, 938, 4436, 3187, 307, 3744, 621, 717, 8630, 319, 262, 938, 4436, 3187, 30, 46506, 357, 46506, 2248, 13, 23912, 20274, 16034, 2248, 33411, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 20839, 262, 1988, 286, 285, 33967, 286, 5827, 3571, 17, 12, 42224, 4309, 938, 8630, 319, 262, 938, 4436, 3187, 307, 3744, 621, 717, 8630, 319, 262, 938, 4436, 3187, 30, 46506, 357, 46506, 2248, 13, 23912, 20274, 16034, 2248, 33411, 22...
List department id and their salaries with a scatter plot.
SELECT T1.SALARY, T1.DEPARTMENT_ID FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID WHERE T1.EMPLOYEE_ID = T2.MANAGER_ID
[ 8053, 5011, 4686, 290, 511, 17058, 351, 257, 41058, 7110, 13, 46506, 309, 16, 13, 50, 1847, 13153, 11, 309, 16, 13, 7206, 30709, 10979, 62, 2389, 16034, 4409, 7054, 309, 16, 32357, 1268, 13346, 7054, 309, 17, 6177, 309, 16, 13, 7206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5011, 4686, 290, 511, 17058, 351, 257, 41058, 7110, 13, 46506, 309, 16, 13, 50, 1847, 13153, 11, 309, 16, 13, 7206, 30709, 10979, 62, 2389, 16034, 4409, 7054, 309, 16, 32357, 1268, 13346, 7054, 309, 17, 6177, 309, 16, 13, 7206...
How many students does each advisor have. Show scatter chart.
SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor
[ 2437, 867, 2444, 857, 1123, 20685, 423, 13, 5438, 41058, 8262, 13, 46506, 35399, 11, 327, 28270, 7, 28104, 16034, 13613, 44441, 11050, 35399 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 2444, 857, 1123, 20685, 423, 13, 5438, 41058, 8262, 13, 46506, 35399, 11, 327, 28270, 7, 28104, 16034, 13613, 44441, 11050, 35399 ]
Which section after 10:00 is in PERSIAN 499 ?
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '10:00' AND course.course_id = course_offering.course_id AND course.department = 'PERSIAN' AND course.number = 499 AND semester.semester = 'WN' A...
[ 13828, 2665, 706, 838, 25, 405, 318, 287, 350, 4877, 16868, 48391, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 5458, 62, 17618, 11, 1781, 62, 2364, 1586, 13, 9688, 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...
[ 13828, 2665, 706, 838, 25, 405, 318, 287, 350, 4877, 16868, 48391, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 5458, 62, 17618, 11, 1781, 62, 2364, 1586, 13, 9688, 62, ...
Who were the high point scorers in game 7?
SELECT "High points" FROM table_800 WHERE "Game" = '7'
[ 8241, 547, 262, 1029, 966, 4776, 3808, 287, 983, 767, 30, 46506, 366, 11922, 2173, 1, 16034, 3084, 62, 7410, 33411, 366, 8777, 1, 796, 705, 22, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 547, 262, 1029, 966, 4776, 3808, 287, 983, 767, 30, 46506, 366, 11922, 2173, 1, 16034, 3084, 62, 7410, 33411, 366, 8777, 1, 796, 705, 22, 6 ]
What is the average births that had a death rate of 0.4
SELECT AVG("Births (000s)") FROM table_66705 WHERE "Deaths" = '0.4'
[ 2061, 318, 262, 2811, 27244, 326, 550, 257, 1918, 2494, 286, 657, 13, 19, 46506, 35224, 7203, 38480, 82, 357, 830, 82, 8, 4943, 16034, 3084, 62, 2791, 34801, 33411, 366, 20148, 82, 1, 796, 705, 15, 13, 19, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 27244, 326, 550, 257, 1918, 2494, 286, 657, 13, 19, 46506, 35224, 7203, 38480, 82, 357, 830, 82, 8, 4943, 16034, 3084, 62, 2791, 34801, 33411, 366, 20148, 82, 1, 796, 705, 15, 13, 19, 6 ]
How many millions of viewers did Episode number 16 have?
SELECT "Viewers (in millions)" FROM table_3483 WHERE "Episode #" = '16'
[ 2437, 867, 5242, 286, 10209, 750, 7922, 1271, 1467, 423, 30, 46506, 366, 7680, 364, 357, 259, 5242, 16725, 16034, 3084, 62, 2682, 5999, 33411, 366, 23758, 1303, 1, 796, 705, 1433, 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 ]
[ 2437, 867, 5242, 286, 10209, 750, 7922, 1271, 1467, 423, 30, 46506, 366, 7680, 364, 357, 259, 5242, 16725, 16034, 3084, 62, 2682, 5999, 33411, 366, 23758, 1303, 1, 796, 705, 1433, 6 ]
There's Just No Pleasing Some People. Top 100 most highly upvoted posts that still earnt a downvote from a contrarian.
SELECT SUM(CASE WHEN Votes.VoteTypeId = 2 THEN 1 ELSE 0 END) AS UpVotes, SUM(CASE WHEN Votes.VoteTypeId = 3 THEN 1 ELSE 0 END) AS DownVotes, Votes.PostId AS "post_link" FROM Votes GROUP BY Votes.PostId HAVING SUM(CASE WHEN Votes.VoteTypeId = 3 THEN 1 ELSE 0 END) > 1
[ 1858, 338, 2329, 1400, 18063, 2313, 2773, 4380, 13, 5849, 1802, 749, 4047, 510, 85, 5191, 6851, 326, 991, 1027, 429, 257, 866, 27257, 422, 257, 3445, 3699, 13, 46506, 35683, 7, 34, 11159, 42099, 39584, 13, 37394, 6030, 7390, 796, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1858, 338, 2329, 1400, 18063, 2313, 2773, 4380, 13, 5849, 1802, 749, 4047, 510, 85, 5191, 6851, 326, 991, 1027, 429, 257, 866, 27257, 422, 257, 3445, 3699, 13, 46506, 35683, 7, 34, 11159, 42099, 39584, 13, 37394, 6030, 7390, 796, 362,...
Who is the incoming manager when the date of vacancy was 21 march 2011?
SELECT "Incoming manager" FROM table_29138 WHERE "Date of vacancy" = '21 March 2011'
[ 8241, 318, 262, 15619, 4706, 618, 262, 3128, 286, 39836, 373, 2310, 9960, 2813, 30, 46506, 366, 818, 4976, 4706, 1, 16034, 3084, 62, 1959, 20107, 33411, 366, 10430, 286, 39836, 1, 796, 705, 2481, 2805, 2813, 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 ]
[ 8241, 318, 262, 15619, 4706, 618, 262, 3128, 286, 39836, 373, 2310, 9960, 2813, 30, 46506, 366, 818, 4976, 4706, 1, 16034, 3084, 62, 1959, 20107, 33411, 366, 10430, 286, 39836, 1, 796, 705, 2481, 2805, 2813, 6 ]
Comments of mine by score.
SELECT Score, Id AS "comment_link" FROM Comments WHERE UserId = '##UserId##' ORDER BY Score DESC
[ 23903, 286, 6164, 416, 4776, 13, 46506, 15178, 11, 5121, 7054, 366, 23893, 62, 8726, 1, 16034, 19502, 33411, 11787, 7390, 796, 705, 2235, 12982, 7390, 2235, 6, 38678, 11050, 15178, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 23903, 286, 6164, 416, 4776, 13, 46506, 15178, 11, 5121, 7054, 366, 23893, 62, 8726, 1, 16034, 19502, 33411, 11787, 7390, 796, 705, 2235, 12982, 7390, 2235, 6, 38678, 11050, 15178, 22196, 34 ]
what is the date of appointment for the team osasuna?
SELECT "Date of appointment" FROM table_26694 WHERE "Team" = 'Osasuna'
[ 10919, 318, 262, 3128, 286, 12557, 329, 262, 1074, 28686, 292, 9613, 30, 46506, 366, 10430, 286, 12557, 1, 16034, 3084, 62, 2075, 45214, 33411, 366, 15592, 1, 796, 705, 16748, 292, 9613, 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 ]
[ 10919, 318, 262, 3128, 286, 12557, 329, 262, 1074, 28686, 292, 9613, 30, 46506, 366, 10430, 286, 12557, 1, 16034, 3084, 62, 2075, 45214, 33411, 366, 15592, 1, 796, 705, 16748, 292, 9613, 6 ]
What's the first elected year of the district who's been the last one to do so?
SELECT MAX(first_elected) FROM table_1341472_12
[ 2061, 338, 262, 717, 7018, 614, 286, 262, 4783, 508, 338, 587, 262, 938, 530, 284, 466, 523, 30, 46506, 25882, 7, 11085, 62, 28604, 8, 16034, 3084, 62, 19880, 1415, 4761, 62, 1065 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 717, 7018, 614, 286, 262, 4783, 508, 338, 587, 262, 938, 530, 284, 466, 523, 30, 46506, 25882, 7, 11085, 62, 28604, 8, 16034, 3084, 62, 19880, 1415, 4761, 62, 1065 ]
Which Director has a Role of melissa?
SELECT "Director" FROM table_34866 WHERE "Role" = 'melissa'
[ 13828, 5890, 468, 257, 20934, 286, 7758, 13808, 30, 46506, 366, 28702, 1, 16034, 3084, 62, 28978, 2791, 33411, 366, 47445, 1, 796, 705, 17694, 13808, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 5890, 468, 257, 20934, 286, 7758, 13808, 30, 46506, 366, 28702, 1, 16034, 3084, 62, 28978, 2791, 33411, 366, 47445, 1, 796, 705, 17694, 13808, 6 ]
What is the sexual abuse rate where the conflict is the Second Sudanese Civil War?
SELECT MIN(sexual_abuse_1) FROM table_15652027_1 WHERE conflict = "Second Sudanese Civil War"
[ 2061, 318, 262, 3206, 5076, 2494, 810, 262, 5358, 318, 262, 5498, 19610, 2771, 7511, 1810, 30, 46506, 20625, 7, 18338, 62, 47158, 62, 16, 8, 16034, 3084, 62, 1314, 2996, 1238, 1983, 62, 16, 33411, 5358, 796, 366, 12211, 19610, 2771, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3206, 5076, 2494, 810, 262, 5358, 318, 262, 5498, 19610, 2771, 7511, 1810, 30, 46506, 20625, 7, 18338, 62, 47158, 62, 16, 8, 16034, 3084, 62, 1314, 2996, 1238, 1983, 62, 16, 33411, 5358, 796, 366, 12211, 19610, 2771, ...
What is the Eurozone result for Population M (LUZ) of 3.08?
SELECT eurozone FROM table_name_24 WHERE population_m__luz_ = 3.08
[ 2061, 318, 262, 1898, 11340, 1255, 329, 20133, 337, 357, 41596, 57, 8, 286, 513, 13, 2919, 30, 46506, 37465, 16034, 3084, 62, 3672, 62, 1731, 33411, 3265, 62, 76, 834, 2290, 89, 62, 796, 513, 13, 2919 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1898, 11340, 1255, 329, 20133, 337, 357, 41596, 57, 8, 286, 513, 13, 2919, 30, 46506, 37465, 16034, 3084, 62, 3672, 62, 1731, 33411, 3265, 62, 76, 834, 2290, 89, 62, 796, 513, 13, 2919 ]
What is the 2008 value with a 7 in 2010?
SELECT 2008 FROM table_name_94 WHERE 2010 = "7"
[ 2061, 318, 262, 3648, 1988, 351, 257, 767, 287, 3050, 30, 46506, 3648, 16034, 3084, 62, 3672, 62, 5824, 33411, 3050, 796, 366, 22, 1 ]
[ 1, 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, 3648, 1988, 351, 257, 767, 287, 3050, 30, 46506, 3648, 16034, 3084, 62, 3672, 62, 5824, 33411, 3050, 796, 366, 22, 1 ]
What's the Backed after 2008 with a label of Wild World?
SELECT backed_with FROM table_name_24 WHERE record_label = "wild world" AND date > 2008
[ 2061, 338, 262, 5157, 276, 706, 3648, 351, 257, 6167, 286, 6183, 2159, 30, 46506, 9763, 62, 4480, 16034, 3084, 62, 3672, 62, 1731, 33411, 1700, 62, 18242, 796, 366, 21992, 995, 1, 5357, 3128, 1875, 3648 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5157, 276, 706, 3648, 351, 257, 6167, 286, 6183, 2159, 30, 46506, 9763, 62, 4480, 16034, 3084, 62, 3672, 62, 1731, 33411, 1700, 62, 18242, 796, 366, 21992, 995, 1, 5357, 3128, 1875, 3648 ]
Which team played on April 9?
SELECT team FROM table_27744976_11 WHERE date = "April 9"
[ 13828, 1074, 2826, 319, 3035, 860, 30, 46506, 1074, 16034, 3084, 62, 27019, 31911, 4304, 62, 1157, 33411, 3128, 796, 366, 16784, 860, 1 ]
[ 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, 1074, 2826, 319, 3035, 860, 30, 46506, 1074, 16034, 3084, 62, 27019, 31911, 4304, 62, 1157, 33411, 3128, 796, 366, 16784, 860, 1 ]
count the number of patients who have been on sc 24 fe ng intake the last year.
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'sc 24 fe ng' AND d_...
[ 9127, 262, 1271, 286, 3871, 508, 423, 587, 319, 629, 1987, 730, 23370, 10337, 262, 938, 614, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 423, 587, 319, 629, 1987, 730, 23370, 10337, 262, 938, 614, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357...
WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?
SELECT AVG(ast_avg) FROM table_name_74 WHERE games > 101 AND rank = 5 AND total_assists < 331
[ 32971, 3180, 3336, 35224, 29273, 7473, 402, 29559, 47211, 30373, 2320, 1565, 8949, 11, 371, 15154, 642, 11, 36247, 24994, 1797, 4694, 9447, 7036, 1137, 2320, 1565, 43722, 30, 46506, 35224, 7, 459, 62, 615, 70, 8, 16034, 3084, 62, 3672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 32971, 3180, 3336, 35224, 29273, 7473, 402, 29559, 47211, 30373, 2320, 1565, 8949, 11, 371, 15154, 642, 11, 36247, 24994, 1797, 4694, 9447, 7036, 1137, 2320, 1565, 43722, 30, 46506, 35224, 7, 459, 62, 615, 70, 8, 16034, 3084, 62, 3672, ...
Is it possible to take LHC 310 during the Summer 2017 program ?
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'LHC' AND course.number = 310 AND semester.semester = 'Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2017
[ 3792, 340, 1744, 284, 1011, 406, 16045, 28947, 1141, 262, 10216, 2177, 1430, 5633, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 13, 17319, 62, 312, 796, 1781, 62, 2364, 1586, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3792, 340, 1744, 284, 1011, 406, 16045, 28947, 1141, 262, 10216, 2177, 1430, 5633, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 13, 17319, 62, 312, 796, 1781, 62, 2364, 1586, 1...
What is the total number of customers across banks?
SELECT SUM(no_of_customers) FROM bank
[ 2061, 318, 262, 2472, 1271, 286, 4297, 1973, 6341, 30, 46506, 35683, 7, 3919, 62, 1659, 62, 23144, 364, 8, 16034, 3331 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2472, 1271, 286, 4297, 1973, 6341, 30, 46506, 35683, 7, 3919, 62, 1659, 62, 23144, 364, 8, 16034, 3331 ]
Tell me the number of orders with 'Second time' as order detail.
SELECT COUNT(*) FROM customer_orders WHERE order_details = "Second time"
[ 24446, 502, 262, 1271, 286, 6266, 351, 705, 12211, 640, 6, 355, 1502, 3703, 13, 46506, 327, 28270, 7, 28104, 16034, 6491, 62, 6361, 33411, 1502, 62, 36604, 796, 366, 12211, 640, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24446, 502, 262, 1271, 286, 6266, 351, 705, 12211, 640, 6, 355, 1502, 3703, 13, 46506, 327, 28270, 7, 28104, 16034, 6491, 62, 6361, 33411, 1502, 62, 36604, 796, 366, 12211, 640, 1 ]
who was the only member of the country party to be elected in 1919 ?
SELECT "member" FROM table_203_484 WHERE "first elected" = 1919 AND "party" = 'country'
[ 8727, 373, 262, 691, 2888, 286, 262, 1499, 2151, 284, 307, 7018, 287, 30992, 5633, 46506, 366, 19522, 1, 16034, 3084, 62, 22416, 62, 34137, 33411, 366, 11085, 7018, 1, 796, 30992, 5357, 366, 10608, 1, 796, 705, 19315, 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 ]
[ 8727, 373, 262, 691, 2888, 286, 262, 1499, 2151, 284, 307, 7018, 287, 30992, 5633, 46506, 366, 19522, 1, 16034, 3084, 62, 22416, 62, 34137, 33411, 366, 11085, 7018, 1, 796, 30992, 5357, 366, 10608, 1, 796, 705, 19315, 6 ]
What is the name of the player with an overall less than 209 for the Victoriaville tigres (qmjhl), and a Round of 1?
SELECT player FROM table_name_85 WHERE overall < 209 AND club_team = "victoriaville tigres (qmjhl)" AND round = 1
[ 2061, 318, 262, 1438, 286, 262, 2137, 351, 281, 4045, 1342, 621, 28815, 329, 262, 12313, 4244, 256, 328, 411, 357, 80, 76, 73, 18519, 828, 290, 257, 10485, 286, 352, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 5332, 33411, 4045, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 318, 262, 1438, 286, 262, 2137, 351, 281, 4045, 1342, 621, 28815, 329, 262, 12313, 4244, 256, 328, 411, 357, 80, 76, 73, 18519, 828, 290, 257, 10485, 286, 352, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 5332, 33411, 4045, 127...
What was the tie number when peterborough united was the away team?
SELECT tie_no FROM table_name_35 WHERE away_team = "peterborough united"
[ 2061, 373, 262, 9839, 1271, 618, 279, 2357, 17913, 16503, 373, 262, 1497, 1074, 30, 46506, 9839, 62, 3919, 16034, 3084, 62, 3672, 62, 2327, 33411, 1497, 62, 15097, 796, 366, 79, 2357, 17913, 16503, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9839, 1271, 618, 279, 2357, 17913, 16503, 373, 262, 1497, 1074, 30, 46506, 9839, 62, 3919, 16034, 3084, 62, 3672, 62, 2327, 33411, 1497, 62, 15097, 796, 366, 79, 2357, 17913, 16503, 1 ]
What is the minimum snatch score?
SELECT MIN(snatch) FROM body_builder
[ 2061, 318, 262, 5288, 43388, 4776, 30, 46506, 20625, 7, 16184, 963, 8, 16034, 1767, 62, 38272 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 5288, 43388, 4776, 30, 46506, 20625, 7, 16184, 963, 8, 16034, 1767, 62, 38272 ]
How many hosts does each nationality have? List the nationality and the count Visualize by bar chart, and sort X-axis from high to low order.
SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY Nationality DESC
[ 2437, 867, 11453, 857, 1123, 29835, 423, 30, 7343, 262, 29835, 290, 262, 954, 15612, 1096, 416, 2318, 8262, 11, 290, 3297, 1395, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 44441...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 11453, 857, 1123, 29835, 423, 30, 7343, 262, 29835, 290, 262, 954, 15612, 1096, 416, 2318, 8262, 11, 290, 3297, 1395, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 44441...
Who is the Partner in the match with a Score of 6-4, 2-6, 7-6?
SELECT partnering FROM table_name_52 WHERE score = "6-4, 2-6, 7-6"
[ 8241, 318, 262, 35532, 287, 262, 2872, 351, 257, 15178, 286, 718, 12, 19, 11, 362, 12, 21, 11, 767, 12, 21, 30, 46506, 41759, 16034, 3084, 62, 3672, 62, 4309, 33411, 4776, 796, 366, 21, 12, 19, 11, 362, 12, 21, 11, 767, 12, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 35532, 287, 262, 2872, 351, 257, 15178, 286, 718, 12, 19, 11, 362, 12, 21, 11, 767, 12, 21, 30, 46506, 41759, 16034, 3084, 62, 3672, 62, 4309, 33411, 4776, 796, 366, 21, 12, 19, 11, 362, 12, 21, 11, 767, 12, 21...
In what season were there 27 goals and 58 points?
SELECT "Season" FROM table_61393 WHERE "Goals" = '27' AND "Points" = '58'
[ 818, 644, 1622, 547, 612, 2681, 4661, 290, 7618, 2173, 30, 46506, 366, 18960, 1, 16034, 3084, 62, 47512, 6052, 33411, 366, 5247, 874, 1, 796, 705, 1983, 6, 5357, 366, 40710, 1, 796, 705, 3365, 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 ]
[ 818, 644, 1622, 547, 612, 2681, 4661, 290, 7618, 2173, 30, 46506, 366, 18960, 1, 16034, 3084, 62, 47512, 6052, 33411, 366, 5247, 874, 1, 796, 705, 1983, 6, 5357, 366, 40710, 1, 796, 705, 3365, 6 ]
Name the score for december 5
SELECT "Score" FROM table_57402 WHERE "Date" = 'december 5'
[ 5376, 262, 4776, 329, 390, 3273, 642, 46506, 366, 26595, 1, 16034, 3084, 62, 3553, 32531, 33411, 366, 10430, 1, 796, 705, 2934, 3273, 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 ]
[ 5376, 262, 4776, 329, 390, 3273, 642, 46506, 366, 26595, 1, 16034, 3084, 62, 3553, 32531, 33411, 366, 10430, 1, 796, 705, 2934, 3273, 642, 6 ]
What is 2010, when 2009 is '1'?
SELECT 2010 FROM table_name_82 WHERE 2009 = "1"
[ 2061, 318, 3050, 11, 618, 3717, 318, 705, 16, 30960, 46506, 3050, 16034, 3084, 62, 3672, 62, 6469, 33411, 3717, 796, 366, 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 ]
[ 2061, 318, 3050, 11, 618, 3717, 318, 705, 16, 30960, 46506, 3050, 16034, 3084, 62, 3672, 62, 6469, 33411, 3717, 796, 366, 16, 1 ]
Number of down votes on answers in past 30 days.
SELECT COUNT(*) FROM Votes JOIN Posts ON Votes.PostId = Posts.Id WHERE Votes.VoteTypeId IN (3) AND Votes.CreationDate >= DATEADD(DAY, -30, GETDATE()) AND Posts.PostTypeId IN (2)
[ 15057, 286, 866, 5690, 319, 7429, 287, 1613, 1542, 1528, 13, 46506, 327, 28270, 7, 28104, 16034, 39584, 32357, 1268, 12043, 6177, 39584, 13, 6307, 7390, 796, 12043, 13, 7390, 33411, 39584, 13, 37394, 6030, 7390, 3268, 357, 18, 8, 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, 1, 1, 1, 1, 1, 1...
[ 15057, 286, 866, 5690, 319, 7429, 287, 1613, 1542, 1528, 13, 46506, 327, 28270, 7, 28104, 16034, 39584, 32357, 1268, 12043, 6177, 39584, 13, 6307, 7390, 796, 12043, 13, 7390, 33411, 39584, 13, 37394, 6030, 7390, 3268, 357, 18, 8, 5357, ...
What is the average goals scored when less than 34 were played and there were more than 2 draws?
SELECT AVG(goals_scored) FROM table_name_78 WHERE played < 34 AND draw > 2
[ 2061, 318, 262, 2811, 4661, 7781, 618, 1342, 621, 4974, 547, 2826, 290, 612, 547, 517, 621, 362, 14293, 30, 46506, 35224, 7, 2188, 874, 62, 1416, 1850, 8, 16034, 3084, 62, 3672, 62, 3695, 33411, 2826, 1279, 4974, 5357, 3197, 1875, 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 ]
[ 2061, 318, 262, 2811, 4661, 7781, 618, 1342, 621, 4974, 547, 2826, 290, 612, 547, 517, 621, 362, 14293, 30, 46506, 35224, 7, 2188, 874, 62, 1416, 1850, 8, 16034, 3084, 62, 3672, 62, 3695, 33411, 2826, 1279, 4974, 5357, 3197, 1875, 3...
What are the names of the different bank branches, and what are their total loan amounts Show bar chart, show by the x axis from high to low.
SELECT bname, SUM(amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_ID = T2.branch_ID GROUP BY T1.bname ORDER BY bname DESC
[ 2061, 389, 262, 3891, 286, 262, 1180, 3331, 13737, 11, 290, 644, 389, 511, 2472, 8063, 6867, 5438, 2318, 8262, 11, 905, 416, 262, 2124, 16488, 422, 1029, 284, 1877, 13, 46506, 275, 3672, 11, 35683, 7, 17287, 8, 16034, 3331, 7054, 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, 389, 262, 3891, 286, 262, 1180, 3331, 13737, 11, 290, 644, 389, 511, 2472, 8063, 6867, 5438, 2318, 8262, 11, 905, 416, 262, 2124, 16488, 422, 1029, 284, 1877, 13, 46506, 275, 3672, 11, 35683, 7, 17287, 8, 16034, 3331, 7054, 30...
what is marital status and days of hospital stay of subject id 3343?
SELECT demographic.marital_status, demographic.days_stay FROM demographic WHERE demographic.subject_id = "3343"
[ 10919, 318, 29555, 3722, 290, 1528, 286, 4436, 2652, 286, 2426, 4686, 513, 32118, 30, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 16728, 13, 12545, 62, 31712, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 2091, 3559, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29555, 3722, 290, 1528, 286, 4436, 2652, 286, 2426, 4686, 513, 32118, 30, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 16728, 13, 12545, 62, 31712, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 2091, 3559, 1 ]
Which episodes in season 3 were written by Mark Drop?
SELECT Season AS episode__number FROM table_2623498_4 WHERE written_by = "Mark Drop"
[ 13828, 8640, 287, 1622, 513, 547, 3194, 416, 2940, 14258, 30, 46506, 7369, 7054, 4471, 834, 17618, 16034, 3084, 62, 2075, 1954, 36260, 62, 19, 33411, 3194, 62, 1525, 796, 366, 9704, 14258, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 8640, 287, 1622, 513, 547, 3194, 416, 2940, 14258, 30, 46506, 7369, 7054, 4471, 834, 17618, 16034, 3084, 62, 2075, 1954, 36260, 62, 19, 33411, 3194, 62, 1525, 796, 366, 9704, 14258, 1 ]
What is the lowest round of the player from UCLA?
SELECT MIN(round) FROM table_name_87 WHERE school_club_team = "ucla"
[ 2061, 318, 262, 9016, 2835, 286, 262, 2137, 422, 21750, 30, 46506, 20625, 7, 744, 8, 16034, 3084, 62, 3672, 62, 5774, 33411, 1524, 62, 18664, 62, 15097, 796, 366, 36616, 64, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2835, 286, 262, 2137, 422, 21750, 30, 46506, 20625, 7, 744, 8, 16034, 3084, 62, 3672, 62, 5774, 33411, 1524, 62, 18664, 62, 15097, 796, 366, 36616, 64, 1 ]
when has patient 30976 had their last .9% normal saline intake?
SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30976)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label...
[ 12518, 468, 5827, 40286, 4304, 550, 511, 938, 764, 24, 4, 3487, 47375, 10337, 30, 46506, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, 1133, 85, 658, 62, 33967, 13, 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...
[ 12518, 468, 5827, 40286, 4304, 550, 511, 938, 764, 24, 4, 3487, 47375, 10337, 30, 46506, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, 1133, 85, 658, 62, 33967, 13, 2...
Draw a bar chart for what is the average high temperature for each day of week?, and display in descending by the Y.
SELECT day_of_week, AVG(high_temperature) FROM weekly_weather GROUP BY day_of_week ORDER BY AVG(high_temperature) DESC
[ 25302, 257, 2318, 8262, 329, 644, 318, 262, 2811, 1029, 5951, 329, 1123, 1110, 286, 1285, 21747, 290, 3359, 287, 31491, 416, 262, 575, 13, 46506, 1110, 62, 1659, 62, 10464, 11, 35224, 7, 8929, 62, 11498, 21069, 8, 16034, 10273, 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 ]
[ 25302, 257, 2318, 8262, 329, 644, 318, 262, 2811, 1029, 5951, 329, 1123, 1110, 286, 1285, 21747, 290, 3359, 287, 31491, 416, 262, 575, 13, 46506, 1110, 62, 1659, 62, 10464, 11, 35224, 7, 8929, 62, 11498, 21069, 8, 16034, 10273, 62, ...
Name the total number of rank for tom churchill
SELECT COUNT("Rank") FROM table_28713 WHERE "Athlete" = 'Tom Churchill'
[ 5376, 262, 2472, 1271, 286, 4279, 329, 16667, 4928, 359, 46506, 327, 28270, 7203, 27520, 4943, 16034, 3084, 62, 27800, 1485, 33411, 366, 32, 400, 5807, 1, 796, 705, 13787, 25987, 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 ]
[ 5376, 262, 2472, 1271, 286, 4279, 329, 16667, 4928, 359, 46506, 327, 28270, 7203, 27520, 4943, 16034, 3084, 62, 27800, 1485, 33411, 366, 32, 400, 5807, 1, 796, 705, 13787, 25987, 6 ]
What is the greatest total when the 3rd run was 48.734 (8)?
SELECT MAX("Total") FROM table_13395 WHERE "3rd run" = '48.734 (8)'
[ 2061, 318, 262, 6000, 2472, 618, 262, 513, 4372, 1057, 373, 4764, 13, 22, 2682, 357, 23, 19427, 46506, 25882, 7203, 14957, 4943, 16034, 3084, 62, 1485, 31010, 33411, 366, 18, 4372, 1057, 1, 796, 705, 2780, 13, 22, 2682, 357, 23, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6000, 2472, 618, 262, 513, 4372, 1057, 373, 4764, 13, 22, 2682, 357, 23, 19427, 46506, 25882, 7203, 14957, 4943, 16034, 3084, 62, 1485, 31010, 33411, 366, 18, 4372, 1057, 1, 796, 705, 2780, 13, 22, 2682, 357, 23, 330...
What is the sign of the Burmese taninganwe ?
SELECT sign FROM table_name_94 WHERE burmese = "taninganwe တနင်္ဂနွေ"
[ 2061, 318, 262, 1051, 286, 262, 5481, 76, 2771, 256, 7574, 272, 732, 5633, 46506, 1051, 16034, 3084, 62, 3672, 62, 5824, 33411, 4356, 76, 2771, 796, 366, 83, 7574, 272, 732, 28053, 222, 238, 157, 222, 242, 157, 222, 226, 157, 222, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1051, 286, 262, 5481, 76, 2771, 256, 7574, 272, 732, 5633, 46506, 1051, 16034, 3084, 62, 3672, 62, 5824, 33411, 4356, 76, 2771, 796, 366, 83, 7574, 272, 732, 28053, 222, 238, 157, 222, 242, 157, 222, 226, 157, 222, ...
What is the owner of the channel that has a 2012 rating of 5.42?
SELECT owner FROM table_name_96 WHERE 2012 = "5.42"
[ 2061, 318, 262, 4870, 286, 262, 6518, 326, 468, 257, 2321, 7955, 286, 642, 13, 3682, 30, 46506, 4870, 16034, 3084, 62, 3672, 62, 4846, 33411, 2321, 796, 366, 20, 13, 3682, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4870, 286, 262, 6518, 326, 468, 257, 2321, 7955, 286, 642, 13, 3682, 30, 46506, 4870, 16034, 3084, 62, 3672, 62, 4846, 33411, 2321, 796, 366, 20, 13, 3682, 1 ]
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the sum of manager_id bin hire_date by weekday.
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 13, 46506, 36210, 2200, 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...
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 13, 46506, 36210, 2200, 62,...
when indiana pacers were the opponent what was the date?
SELECT "Date" FROM table_35276 WHERE "Opponent" = 'indiana pacers'
[ 12518, 773, 7484, 23503, 364, 547, 262, 6125, 644, 373, 262, 3128, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 2327, 27988, 33411, 366, 27524, 3471, 1, 796, 705, 521, 7484, 23503, 364, 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 ]
[ 12518, 773, 7484, 23503, 364, 547, 262, 6125, 644, 373, 262, 3128, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 2327, 27988, 33411, 366, 27524, 3471, 1, 796, 705, 521, 7484, 23503, 364, 6 ]
patients with bmi >= 40 kg / m2,
SELECT * FROM table_test_18 WHERE body_mass_index_bmi >= 40
[ 8071, 2334, 351, 275, 11632, 18189, 2319, 14211, 1220, 285, 17, 11, 46506, 1635, 16034, 3084, 62, 9288, 62, 1507, 33411, 1767, 62, 22208, 62, 9630, 62, 65, 11632, 18189, 2319 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8071, 2334, 351, 275, 11632, 18189, 2319, 14211, 1220, 285, 17, 11, 46506, 1635, 16034, 3084, 62, 9288, 62, 1507, 33411, 1767, 62, 22208, 62, 9630, 62, 65, 11632, 18189, 2319 ]
Name the total points for 2
SELECT "Total points" FROM table_29559 WHERE "Place" = '2'
[ 5376, 262, 2472, 2173, 329, 362, 46506, 366, 14957, 2173, 1, 16034, 3084, 62, 1959, 38605, 33411, 366, 27271, 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 ]
[ 5376, 262, 2472, 2173, 329, 362, 46506, 366, 14957, 2173, 1, 16034, 3084, 62, 1959, 38605, 33411, 366, 27271, 1, 796, 705, 17, 6 ]
What's the sum of points for artist hari mata hari?
SELECT SUM(points) FROM table_name_18 WHERE artist = "hari mata hari"
[ 2061, 338, 262, 2160, 286, 2173, 329, 6802, 289, 2743, 285, 1045, 289, 2743, 30, 46506, 35683, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 1507, 33411, 6802, 796, 366, 49573, 285, 1045, 289, 2743, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2160, 286, 2173, 329, 6802, 289, 2743, 285, 1045, 289, 2743, 30, 46506, 35683, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 1507, 33411, 6802, 796, 366, 49573, 285, 1045, 289, 2743, 1 ]
At what venue was South Melbourne the home team?
SELECT venue FROM table_name_87 WHERE home_team = "south melbourne"
[ 2953, 644, 14359, 373, 2520, 14819, 262, 1363, 1074, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 5774, 33411, 1363, 62, 15097, 796, 366, 35782, 7758, 12544, 1 ]
[ 1, 1, 1, 1, 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, 644, 14359, 373, 2520, 14819, 262, 1363, 1074, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 5774, 33411, 1363, 62, 15097, 796, 366, 35782, 7758, 12544, 1 ]
Which Score has a Time of 2:28?
SELECT score FROM table_name_41 WHERE time = "2:28"
[ 13828, 15178, 468, 257, 3862, 286, 362, 25, 2078, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 3901, 33411, 640, 796, 366, 17, 25, 2078, 1 ]
[ 1, 1, 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, 15178, 468, 257, 3862, 286, 362, 25, 2078, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 3901, 33411, 640, 796, 366, 17, 25, 2078, 1 ]
Which positions had players from Laval college
SELECT "Position" FROM table_20815 WHERE "College" = 'Laval'
[ 13828, 6116, 550, 1938, 422, 406, 9226, 4152, 46506, 366, 26545, 1, 16034, 3084, 62, 21315, 1314, 33411, 366, 38951, 1, 796, 705, 43, 9226, 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, 6116, 550, 1938, 422, 406, 9226, 4152, 46506, 366, 26545, 1, 16034, 3084, 62, 21315, 1314, 33411, 366, 38951, 1, 796, 705, 43, 9226, 6 ]
does patient 031-1337 have any organisms that were found in his last sputum, expectorated microbiology test?
SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-1337')) AND microlab.culturesite = 'sputum, expectorated' ORDER BY microla...
[ 22437, 5827, 657, 3132, 12, 1485, 2718, 423, 597, 20296, 326, 547, 1043, 287, 465, 938, 599, 315, 388, 11, 1607, 273, 515, 24559, 1435, 1332, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 4580, 23912, 33411, 4580, 23912, 13, 2602...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 22437, 5827, 657, 3132, 12, 1485, 2718, 423, 597, 20296, 326, 547, 1043, 287, 465, 938, 599, 315, 388, 11, 1607, 273, 515, 24559, 1435, 1332, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 4580, 23912, 33411, 4580, 23912, 13, 2602...
For those records from the products and each product's manufacturer, find name and the average of manufacturer , and group by attribute name, and visualize them by a bar chart, sort mean manufacturer in ascending order.
SELECT T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Manufacturer
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1064, 1438, 290, 262, 2811, 286, 11554, 837, 290, 1448, 416, 11688, 1438, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 3297, 1612, 11554, 287, 41988, 1502, 13, 46506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1064, 1438, 290, 262, 2811, 286, 11554, 837, 290, 1448, 416, 11688, 1438, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 3297, 1612, 11554, 287, 41988, 1502, 13, 46506,...
what are the top five most frequent diagnoses in 2104 that patients were diagnosed with within the same month after having been diagnosed with hx of thyroid malignancy?
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions...
[ 10919, 389, 262, 1353, 1936, 749, 10792, 40567, 287, 362, 13464, 326, 3871, 547, 14641, 351, 1626, 262, 976, 1227, 706, 1719, 587, 14641, 351, 289, 87, 286, 30523, 6428, 570, 3883, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 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, 1...
[ 10919, 389, 262, 1353, 1936, 749, 10792, 40567, 287, 362, 13464, 326, 3871, 547, 14641, 351, 1626, 262, 976, 1227, 706, 1719, 587, 14641, 351, 289, 87, 286, 30523, 6428, 570, 3883, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 1...
Segment B of aerospace fuel lines has what segment A?
SELECT segment_a FROM table_name_5 WHERE segment_b = "aerospace fuel lines"
[ 41030, 434, 347, 286, 40439, 5252, 3951, 468, 644, 10618, 317, 30, 46506, 10618, 62, 64, 16034, 3084, 62, 3672, 62, 20, 33411, 10618, 62, 65, 796, 366, 25534, 24912, 5252, 3951, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 41030, 434, 347, 286, 40439, 5252, 3951, 468, 644, 10618, 317, 30, 46506, 10618, 62, 64, 16034, 3084, 62, 3672, 62, 20, 33411, 10618, 62, 65, 796, 366, 25534, 24912, 5252, 3951, 1 ]
How many people scored the most points during the game on December 10?
SELECT COUNT(high_points) FROM table_27756014_6 WHERE date = "December 10"
[ 2437, 867, 661, 7781, 262, 749, 2173, 1141, 262, 983, 319, 3426, 838, 30, 46506, 327, 28270, 7, 8929, 62, 13033, 8, 16034, 3084, 62, 1983, 38219, 28645, 62, 21, 33411, 3128, 796, 366, 20588, 838, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 661, 7781, 262, 749, 2173, 1141, 262, 983, 319, 3426, 838, 30, 46506, 327, 28270, 7, 8929, 62, 13033, 8, 16034, 3084, 62, 1983, 38219, 28645, 62, 21, 33411, 3128, 796, 366, 20588, 838, 1 ]
Who was perfomer one on 30 January 1988?
SELECT performer_1 FROM table_14934885_1 WHERE date = "30 January 1988"
[ 8241, 373, 23035, 12057, 530, 319, 1542, 3269, 12122, 30, 46506, 26960, 62, 16, 16034, 3084, 62, 19442, 2682, 44230, 62, 16, 33411, 3128, 796, 366, 1270, 3269, 12122, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 23035, 12057, 530, 319, 1542, 3269, 12122, 30, 46506, 26960, 62, 16, 16034, 3084, 62, 19442, 2682, 44230, 62, 16, 33411, 3128, 796, 366, 1270, 3269, 12122, 1 ]
What is the County of Howard Street Tunnel?
SELECT "County" FROM table_49980 WHERE "Name" = 'howard street tunnel'
[ 2061, 318, 262, 3418, 286, 8442, 3530, 35863, 30, 46506, 366, 12332, 88, 1, 16034, 3084, 62, 28324, 1795, 33411, 366, 5376, 1, 796, 705, 4919, 446, 4675, 13275, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3418, 286, 8442, 3530, 35863, 30, 46506, 366, 12332, 88, 1, 16034, 3084, 62, 28324, 1795, 33411, 366, 5376, 1, 796, 705, 4919, 446, 4675, 13275, 6 ]
what is the number of tournaments played on grass ?
SELECT COUNT("tournament") FROM table_203_444 WHERE "surface" = 'grass'
[ 10919, 318, 262, 1271, 286, 18130, 2826, 319, 8701, 5633, 46506, 327, 28270, 7203, 83, 5138, 4943, 16034, 3084, 62, 22416, 62, 30272, 33411, 366, 42029, 1, 796, 705, 29815, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 1271, 286, 18130, 2826, 319, 8701, 5633, 46506, 327, 28270, 7203, 83, 5138, 4943, 16034, 3084, 62, 22416, 62, 30272, 33411, 366, 42029, 1, 796, 705, 29815, 6 ]
What is the label from 1973 that has a catalog number of l 35023?
SELECT "Label" FROM table_48400 WHERE "Date" = '1973' AND "Catalog" = 'l 35023'
[ 2061, 318, 262, 6167, 422, 15674, 326, 468, 257, 18388, 1271, 286, 300, 13803, 1954, 30, 46506, 366, 33986, 1, 16034, 3084, 62, 2780, 7029, 33411, 366, 10430, 1, 796, 705, 40220, 6, 5357, 366, 49015, 1, 796, 705, 75, 13803, 1954, 6 ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 6167, 422, 15674, 326, 468, 257, 18388, 1271, 286, 300, 13803, 1954, 30, 46506, 366, 33986, 1, 16034, 3084, 62, 2780, 7029, 33411, 366, 10430, 1, 796, 705, 40220, 6, 5357, 366, 49015, 1, 796, 705, 75, 13803, 1954, 6 ...
What is Event, when Round is '1', when Location is 'Osaka , Japan', and when Method is 'TKO (corner stoppage)'?
SELECT "Event" FROM table_47487 WHERE "Round" = '1' AND "Location" = 'osaka , japan' AND "Method" = 'tko (corner stoppage)'
[ 2061, 318, 8558, 11, 618, 10485, 318, 705, 16, 3256, 618, 13397, 318, 705, 16748, 8130, 837, 2869, 3256, 290, 618, 11789, 318, 705, 51, 22328, 357, 10215, 1008, 43804, 496, 8, 30960, 46506, 366, 9237, 1, 16034, 3084, 62, 2857, 35133, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8558, 11, 618, 10485, 318, 705, 16, 3256, 618, 13397, 318, 705, 16748, 8130, 837, 2869, 3256, 290, 618, 11789, 318, 705, 51, 22328, 357, 10215, 1008, 43804, 496, 8, 30960, 46506, 366, 9237, 1, 16034, 3084, 62, 2857, 35133, ...
How many provinces have a density of 165.81?
SELECT COUNT("ISO \u2116") FROM table_27666 WHERE "Density\u00b2" = '165.81'
[ 2437, 867, 17812, 423, 257, 12109, 286, 21409, 13, 6659, 30, 46506, 327, 28270, 7203, 40734, 3467, 84, 17, 18298, 4943, 16034, 3084, 62, 1983, 27310, 33411, 366, 35, 6377, 59, 84, 405, 65, 17, 1, 796, 705, 20986, 13, 6659, 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 ]
[ 2437, 867, 17812, 423, 257, 12109, 286, 21409, 13, 6659, 30, 46506, 327, 28270, 7203, 40734, 3467, 84, 17, 18298, 4943, 16034, 3084, 62, 1983, 27310, 33411, 366, 35, 6377, 59, 84, 405, 65, 17, 1, 796, 705, 20986, 13, 6659, 6 ]
was patient 030-31704 heartrate ever less than 61.0 until 303 days ago?
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 = '030-31704')) AND vitalperiodic.heartrate < 61.0 AND NOT vitalperiodi...
[ 9776, 5827, 657, 1270, 12, 34125, 3023, 2612, 4873, 1683, 1342, 621, 8454, 13, 15, 1566, 30727, 1528, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, 20850, 31712, 312, 3268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9776, 5827, 657, 1270, 12, 34125, 3023, 2612, 4873, 1683, 1342, 621, 8454, 13, 15, 1566, 30727, 1528, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, 20850, 31712, 312, 3268...
Tell me the name that has 17 floors
SELECT "Name" FROM table_71384 WHERE "Floors" = '17'
[ 24446, 502, 262, 1438, 326, 468, 1596, 18570, 46506, 366, 5376, 1, 16034, 3084, 62, 50055, 5705, 33411, 366, 33574, 669, 1, 796, 705, 1558, 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 ]
[ 24446, 502, 262, 1438, 326, 468, 1596, 18570, 46506, 366, 5376, 1, 16034, 3084, 62, 50055, 5705, 33411, 366, 33574, 669, 1, 796, 705, 1558, 6 ]
What is the number of different grapes of each wine? Show me a bar chart, rank names from high to low order.
SELECT Grape, COUNT(Grape) FROM wine GROUP BY Grape ORDER BY Grape DESC
[ 2061, 318, 262, 1271, 286, 1180, 36656, 286, 1123, 8237, 30, 5438, 502, 257, 2318, 8262, 11, 4279, 3891, 422, 1029, 284, 1877, 1502, 13, 46506, 48315, 11, 327, 28270, 7, 38, 13484, 8, 16034, 8237, 44441, 11050, 48315, 38678, 11050, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1271, 286, 1180, 36656, 286, 1123, 8237, 30, 5438, 502, 257, 2318, 8262, 11, 4279, 3891, 422, 1029, 284, 1877, 1502, 13, 46506, 48315, 11, 327, 28270, 7, 38, 13484, 8, 16034, 8237, 44441, 11050, 48315, 38678, 11050, 48...
how many of the patients had cardiopulm resuscita nos on urgent admission?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.short_title = "Cardiopulm resuscita NOS"
[ 4919, 867, 286, 262, 3871, 550, 2657, 14922, 377, 76, 48636, 5350, 43630, 319, 18039, 13938, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 286, 262, 3871, 550, 2657, 14922, 377, 76, 48636, 5350, 43630, 319, 18039, 13938, 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, ...
What is the Mach with Vehicle Flight # m2-f2 #8 and an Altitude (meters) greater than 13,716?
SELECT SUM(mach) FROM table_name_88 WHERE vehicle_flight__number = "m2-f2 #8" AND altitude__meters_ > 13 OFFSET 716
[ 2061, 318, 262, 7080, 351, 21501, 13365, 1303, 285, 17, 12, 69, 17, 1303, 23, 290, 281, 12344, 3984, 357, 4164, 364, 8, 3744, 621, 1511, 11, 22, 1433, 30, 46506, 35683, 7, 76, 620, 8, 16034, 3084, 62, 3672, 62, 3459, 33411, 4038, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7080, 351, 21501, 13365, 1303, 285, 17, 12, 69, 17, 1303, 23, 290, 281, 12344, 3984, 357, 4164, 364, 8, 3744, 621, 1511, 11, 22, 1433, 30, 46506, 35683, 7, 76, 620, 8, 16034, 3084, 62, 3672, 62, 3459, 33411, 4038, ...
how many hours has it elapsed since patient 027-165214's last diagnosis of acute renal failure - due to obstruction during this hospital visit?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-16521...
[ 4919, 867, 2250, 468, 340, 42118, 1201, 5827, 657, 1983, 12, 1433, 4309, 1415, 338, 938, 13669, 286, 14352, 44375, 5287, 532, 2233, 284, 28118, 1141, 428, 4436, 3187, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 2250, 468, 340, 42118, 1201, 5827, 657, 1983, 12, 1433, 4309, 1415, 338, 938, 13669, 286, 14352, 44375, 5287, 532, 2233, 284, 28118, 1141, 428, 4436, 3187, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, ...
what is the next product listed after egonet ?
SELECT "product" FROM table_204_870 WHERE id = (SELECT id FROM table_204_870 WHERE "product" = 'egonet') + 1
[ 10919, 318, 262, 1306, 1720, 5610, 706, 304, 14520, 316, 5633, 46506, 366, 11167, 1, 16034, 3084, 62, 18638, 62, 46951, 33411, 4686, 796, 357, 46506, 4686, 16034, 3084, 62, 18638, 62, 46951, 33411, 366, 11167, 1, 796, 705, 1533, 36823, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1306, 1720, 5610, 706, 304, 14520, 316, 5633, 46506, 366, 11167, 1, 16034, 3084, 62, 18638, 62, 46951, 33411, 4686, 796, 357, 46506, 4686, 16034, 3084, 62, 18638, 62, 46951, 33411, 366, 11167, 1, 796, 705, 1533, 36823, ...
Between 8:00 and 3:00 , are there any GTBOOKS 192 sections ?
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.end_time <= '3:00' AND course_offering.start_time >= '8:00' AND course.course_id = course_offering.course_id AND course.department = 'GTBOOKS' AND course.numb...
[ 25262, 807, 25, 405, 290, 513, 25, 405, 837, 389, 612, 597, 7963, 39453, 50, 17817, 9004, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 5458, 62, 17618, 11, 1781, 62, 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...
[ 25262, 807, 25, 405, 290, 513, 25, 405, 837, 389, 612, 597, 7963, 39453, 50, 17817, 9004, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 5458, 62, 17618, 11, 1781, 62, 23...
Name the original name for the one from bulgaria
SELECT "Original name" FROM table_15506 WHERE "Country" = 'bulgaria'
[ 5376, 262, 2656, 1438, 329, 262, 530, 422, 4807, 4563, 544, 46506, 366, 20556, 1438, 1, 16034, 3084, 62, 1314, 35638, 33411, 366, 33921, 1, 796, 705, 15065, 4563, 544, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 2656, 1438, 329, 262, 530, 422, 4807, 4563, 544, 46506, 366, 20556, 1438, 1, 16034, 3084, 62, 1314, 35638, 33411, 366, 33921, 1, 796, 705, 15065, 4563, 544, 6 ]
give me the number of patients whose primary disease is newborn and lab test fluid is joint fluid?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "NEWBORN" AND lab.fluid = "Joint Fluid"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 23856, 290, 2248, 1332, 11711, 318, 6466, 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...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 23856, 290, 2248, 1332, 11711, 318, 6466, 11711, 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 drug type of the drug hydrocerin?
SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Hydrocerin"
[ 10919, 318, 262, 2563, 2099, 286, 262, 2563, 17173, 2189, 259, 30, 46506, 34092, 13, 30349, 62, 4906, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 40436, 305, 2189, 259, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 2563, 2099, 286, 262, 2563, 17173, 2189, 259, 30, 46506, 34092, 13, 30349, 62, 4906, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 40436, 305, 2189, 259, 1 ]
WHich team draft the player who went to college in Washington?
SELECT "NFL Team" FROM table_38199 WHERE "College" = 'washington'
[ 12418, 488, 1074, 4538, 262, 2137, 508, 1816, 284, 4152, 287, 2669, 30, 46506, 366, 32078, 4816, 1, 16034, 3084, 62, 2548, 19104, 33411, 366, 38951, 1, 796, 705, 86, 2542, 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 ]
[ 12418, 488, 1074, 4538, 262, 2137, 508, 1816, 284, 4152, 287, 2669, 30, 46506, 366, 32078, 4816, 1, 16034, 3084, 62, 2548, 19104, 33411, 366, 38951, 1, 796, 705, 86, 2542, 6 ]
For each customer who has at least two orders, find the customer name and number of orders made. Show a pie chart.
SELECT customer_name, COUNT(*) FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id
[ 1890, 1123, 6491, 508, 468, 379, 1551, 734, 6266, 11, 1064, 262, 6491, 1438, 290, 1271, 286, 6266, 925, 13, 5438, 257, 2508, 8262, 13, 46506, 6491, 62, 3672, 11, 327, 28270, 7, 28104, 16034, 30689, 7054, 309, 16, 32357, 1268, 36707, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6491, 508, 468, 379, 1551, 734, 6266, 11, 1064, 262, 6491, 1438, 290, 1271, 286, 6266, 925, 13, 5438, 257, 2508, 8262, 13, 46506, 6491, 62, 3672, 11, 327, 28270, 7, 28104, 16034, 30689, 7054, 309, 16, 32357, 1268, 36707, ...
How many million U.S. viewers watched the episode with the production code 3x6004?
SELECT us_viewers__million_ FROM table_26464364_1 WHERE production_code = "3X6004"
[ 2437, 867, 1510, 471, 13, 50, 13, 10209, 7342, 262, 4471, 351, 262, 3227, 2438, 513, 87, 8054, 19, 30, 46506, 514, 62, 1177, 364, 834, 14100, 62, 16034, 3084, 62, 18897, 2414, 26780, 62, 16, 33411, 3227, 62, 8189, 796, 366, 18, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1510, 471, 13, 50, 13, 10209, 7342, 262, 4471, 351, 262, 3227, 2438, 513, 87, 8054, 19, 30, 46506, 514, 62, 1177, 364, 834, 14100, 62, 16034, 3084, 62, 18897, 2414, 26780, 62, 16, 33411, 3227, 62, 8189, 796, 366, 18, 55...