instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
Which team has an unknown coach and location of Athelstone?
SELECT "Team" FROM table_50900 WHERE "Coach" = 'unknown' AND "Location" = 'athelstone'
[ 13828, 1074, 468, 281, 6439, 3985, 290, 4067, 286, 27751, 75, 6440, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 1120, 12865, 33411, 366, 40677, 1, 796, 705, 34680, 6, 5357, 366, 14749, 1, 796, 705, 265, 2978, 6440, 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 ]
[ 13828, 1074, 468, 281, 6439, 3985, 290, 4067, 286, 27751, 75, 6440, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 1120, 12865, 33411, 366, 40677, 1, 796, 705, 34680, 6, 5357, 366, 14749, 1, 796, 705, 265, 2978, 6440, 6 ]
Who's the poll source that claimed the Lead Margin was 17 and the Democrat: Jay Nixon had 54% of the votes?
SELECT "Poll Source" FROM table_21793 WHERE "Democrat: Jay Nixon" = '54%' AND "Lead Margin" = '17'
[ 8241, 338, 262, 3278, 2723, 326, 4752, 262, 20116, 11899, 259, 373, 1596, 290, 262, 9755, 25, 9180, 16642, 550, 7175, 4, 286, 262, 5690, 30, 46506, 366, 39176, 8090, 1, 16034, 3084, 62, 24591, 6052, 33411, 366, 11522, 35128, 25, 9180,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 338, 262, 3278, 2723, 326, 4752, 262, 20116, 11899, 259, 373, 1596, 290, 262, 9755, 25, 9180, 16642, 550, 7175, 4, 286, 262, 5690, 30, 46506, 366, 39176, 8090, 1, 16034, 3084, 62, 24591, 6052, 33411, 366, 11522, 35128, 25, 9180,...
How many laps did Giancarlo Fisichella do with a grid larger than 15?
SELECT COUNT(laps) FROM table_name_36 WHERE driver = "giancarlo fisichella" AND grid > 15
[ 2437, 867, 24590, 750, 30851, 7718, 5439, 376, 271, 14234, 8466, 466, 351, 257, 10706, 4025, 621, 1315, 30, 46506, 327, 28270, 7, 75, 1686, 8, 16034, 3084, 62, 3672, 62, 2623, 33411, 4639, 796, 366, 18299, 7718, 5439, 277, 271, 14234,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 750, 30851, 7718, 5439, 376, 271, 14234, 8466, 466, 351, 257, 10706, 4025, 621, 1315, 30, 46506, 327, 28270, 7, 75, 1686, 8, 16034, 3084, 62, 3672, 62, 2623, 33411, 4639, 796, 366, 18299, 7718, 5439, 277, 271, 14234,...
What was the film that vadim ilyenko directed?
SELECT film_name FROM table_10236830_1 WHERE director = "Vadim Ilyenko"
[ 2061, 373, 262, 2646, 326, 410, 324, 320, 220, 813, 32720, 7924, 30, 46506, 2646, 62, 3672, 16034, 3084, 62, 940, 1954, 3104, 1270, 62, 16, 33411, 3437, 796, 366, 53, 324, 320, 49804, 32720, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2646, 326, 410, 324, 320, 220, 813, 32720, 7924, 30, 46506, 2646, 62, 3672, 16034, 3084, 62, 940, 1954, 3104, 1270, 62, 16, 33411, 3437, 796, 366, 53, 324, 320, 49804, 32720, 1 ]
since 2 years ago, what were the top three most frequently ordered lab tests for patients during the same hospital encounter after the diagnosis of intra-abdominal abscess - intestinal?
SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'intra-abdominal a...
[ 20777, 362, 812, 2084, 11, 644, 547, 262, 1353, 1115, 749, 6777, 6149, 2248, 5254, 329, 3871, 1141, 262, 976, 4436, 8791, 706, 262, 13669, 286, 23422, 12, 397, 3438, 1292, 2352, 919, 532, 32031, 30, 46506, 256, 18, 13, 23912, 3672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 20777, 362, 812, 2084, 11, 644, 547, 262, 1353, 1115, 749, 6777, 6149, 2248, 5254, 329, 3871, 1141, 262, 976, 4436, 8791, 706, 262, 13669, 286, 23422, 12, 397, 3438, 1292, 2352, 919, 532, 32031, 30, 46506, 256, 18, 13, 23912, 3672, ...
How many teachers does the student named CHRISSY NABOZNY have?
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "CHRISSY" AND T1.lastname = "NABOZNY"
[ 2437, 867, 7799, 857, 262, 3710, 3706, 32567, 16744, 56, 399, 6242, 46, 57, 12805, 423, 30, 46506, 327, 28270, 7, 28104, 16034, 1351, 7054, 309, 16, 32357, 1268, 7799, 7054, 309, 17, 6177, 309, 16, 13, 4871, 3823, 796, 309, 17, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 7799, 857, 262, 3710, 3706, 32567, 16744, 56, 399, 6242, 46, 57, 12805, 423, 30, 46506, 327, 28270, 7, 28104, 16034, 1351, 7054, 309, 16, 32357, 1268, 7799, 7054, 309, 17, 6177, 309, 16, 13, 4871, 3823, 796, 309, 17, 13, ...
what specimen test has been given this month to patient 26286 for the first time?
SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26286) AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY microbiology...
[ 10919, 31674, 1332, 468, 587, 1813, 428, 1227, 284, 5827, 2608, 27033, 329, 262, 717, 640, 30, 46506, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 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...
[ 10919, 31674, 1332, 468, 587, 1813, 428, 1227, 284, 5827, 2608, 27033, 329, 262, 717, 640, 30, 46506, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 312, 3268...
how many patients until 2102 were prescribed alprazolam 0.5 mg po tabs after antihyperlipidemic agent - hmg-coa reductase inhibitor within 2 months?
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antihyperlipidemic agent - hmg-coa reductase inhibitor' AND STRFTIME('%y', treatment.treatmenttime) <= '2102...
[ 4919, 867, 3871, 1566, 362, 15377, 547, 14798, 435, 79, 3247, 349, 321, 657, 13, 20, 10527, 745, 22524, 706, 3098, 49229, 40712, 312, 5314, 5797, 532, 289, 11296, 12, 1073, 64, 2027, 310, 589, 41704, 1626, 362, 1933, 30, 46506, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 3871, 1566, 362, 15377, 547, 14798, 435, 79, 3247, 349, 321, 657, 13, 20, 10527, 745, 22524, 706, 3098, 49229, 40712, 312, 5314, 5797, 532, 289, 11296, 12, 1073, 64, 2027, 310, 589, 41704, 1626, 362, 1933, 30, 46506, 327, ...
What is the least score for interview with a preliminaries score less than 9.4, evening gown score less than 9.55, and swimsuit score more than 9.18 in New York?
SELECT MIN(interview) FROM table_name_79 WHERE preliminaries < 9.4 AND evening_gown < 9.55 AND country = "new york" AND swimsuit > 9.18
[ 2061, 318, 262, 1551, 4776, 329, 2720, 351, 257, 14541, 259, 3166, 4776, 1342, 621, 860, 13, 19, 11, 6180, 33323, 4776, 1342, 621, 860, 13, 2816, 11, 290, 9422, 6063, 4776, 517, 621, 860, 13, 1507, 287, 968, 1971, 30, 46506, 20625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1551, 4776, 329, 2720, 351, 257, 14541, 259, 3166, 4776, 1342, 621, 860, 13, 19, 11, 6180, 33323, 4776, 1342, 621, 860, 13, 2816, 11, 290, 9422, 6063, 4776, 517, 621, 860, 13, 1507, 287, 968, 1971, 30, 46506, 20625, ...
count the number of patients whose insurance is medicaid?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid"
[ 9127, 262, 1271, 286, 3871, 3025, 5096, 318, 6924, 1698, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 1040, 3874, 796, 366, 39112, 1698, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5096, 318, 6924, 1698, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 1040, 3874, 796, 366, 39112, 1698, 1 ]
After 1983, what was the Position in Seoul, South Korea?
SELECT position FROM table_name_92 WHERE year > 1983 AND venue = "seoul, south korea"
[ 3260, 13540, 11, 644, 373, 262, 23158, 287, 22372, 11, 2520, 4969, 30, 46506, 2292, 16034, 3084, 62, 3672, 62, 5892, 33411, 614, 1875, 13540, 5357, 14359, 796, 366, 325, 2852, 11, 5366, 479, 46215, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3260, 13540, 11, 644, 373, 262, 23158, 287, 22372, 11, 2520, 4969, 30, 46506, 2292, 16034, 3084, 62, 3672, 62, 5892, 33411, 614, 1875, 13540, 5357, 14359, 796, 366, 325, 2852, 11, 5366, 479, 46215, 1 ]
Who are thebmix artists when tears for fears is artist 1 and eric prydz is artist 2?
SELECT "Mix artist" FROM table_26215 WHERE "Artist 1" = 'Tears for Fears' AND "Artist 2" = 'Eric Prydz'
[ 8241, 389, 262, 65, 19816, 7912, 618, 10953, 329, 10251, 318, 6802, 352, 290, 1931, 291, 279, 563, 67, 89, 318, 6802, 362, 30, 46506, 366, 35608, 6802, 1, 16034, 3084, 62, 2075, 23349, 33411, 366, 43020, 352, 1, 796, 705, 51, 4127, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 262, 65, 19816, 7912, 618, 10953, 329, 10251, 318, 6802, 352, 290, 1931, 291, 279, 563, 67, 89, 318, 6802, 362, 30, 46506, 366, 35608, 6802, 1, 16034, 3084, 62, 2075, 23349, 33411, 366, 43020, 352, 1, 796, 705, 51, 4127, ...
since 02/01/2102, list the monthly minimum sao2 of patient 018-81471.
SELECT MIN(vitalperiodic.sao2) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-81471')) AND NOT vitalperiodic.sao2 IS NULL AND STRFT...
[ 20777, 7816, 14, 486, 14, 17, 15377, 11, 1351, 262, 9651, 5288, 473, 78, 17, 286, 5827, 5534, 23, 12, 23, 1415, 4869, 13, 46506, 20625, 7, 85, 1287, 41007, 291, 13, 82, 5488, 17, 8, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 20777, 7816, 14, 486, 14, 17, 15377, 11, 1351, 262, 9651, 5288, 473, 78, 17, 286, 5827, 5534, 23, 12, 23, 1415, 4869, 13, 46506, 20625, 7, 85, 1287, 41007, 291, 13, 82, 5488, 17, 8, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291...
What are the times that 662 is taught during the Summer terms ?
SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offe...
[ 2061, 389, 262, 1661, 326, 718, 5237, 318, 7817, 1141, 262, 10216, 2846, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 8310, 2567, 11, 1781, 62, 2364, 1586, 13, 76, 3204, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1661, 326, 718, 5237, 318, 7817, 1141, 262, 10216, 2846, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 8310, 2567, 11, 1781, 62, 2364, 1586, 13, 76, 3204, ...
what's the total amount of output that patient 002-41391 has had on 04/18/2104?
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-41391')) AND intakeoutput.cellpath LIKE '%ou...
[ 10919, 338, 262, 2472, 2033, 286, 5072, 326, 5827, 3571, 17, 12, 44103, 6420, 468, 550, 319, 8702, 14, 1507, 14, 17, 13464, 30, 46506, 35683, 7, 600, 539, 22915, 13, 3846, 2100, 84, 268, 39223, 8, 16034, 10337, 22915, 33411, 10337, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 2033, 286, 5072, 326, 5827, 3571, 17, 12, 44103, 6420, 468, 550, 319, 8702, 14, 1507, 14, 17, 13464, 30, 46506, 35683, 7, 600, 539, 22915, 13, 3846, 2100, 84, 268, 39223, 8, 16034, 10337, 22915, 33411, 10337, ...
Show me the number of card type code by card type code in a histogram, and could you order by the total number in descending?
SELECT card_type_code, COUNT(card_type_code) FROM Customers_Cards GROUP BY card_type_code ORDER BY COUNT(card_type_code) DESC
[ 15307, 502, 262, 1271, 286, 2657, 2099, 2438, 416, 2657, 2099, 2438, 287, 257, 1554, 21857, 11, 290, 714, 345, 1502, 416, 262, 2472, 1271, 287, 31491, 30, 46506, 2657, 62, 4906, 62, 8189, 11, 327, 28270, 7, 9517, 62, 4906, 62, 8189,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 2657, 2099, 2438, 416, 2657, 2099, 2438, 287, 257, 1554, 21857, 11, 290, 714, 345, 1502, 416, 262, 2472, 1271, 287, 31491, 30, 46506, 2657, 62, 4906, 62, 8189, 11, 327, 28270, 7, 9517, 62, 4906, 62, 8189,...
who came in first place during the 2007 worlds qualification tournament ?
SELECT "nation" FROM table_203_586 WHERE "place in qt" = 1 AND "qualification tournament" = '2007 worlds'
[ 8727, 1625, 287, 717, 1295, 1141, 262, 4343, 11621, 28587, 7756, 5633, 46506, 366, 25729, 1, 16034, 3084, 62, 22416, 62, 29796, 33411, 366, 5372, 287, 10662, 83, 1, 796, 352, 5357, 366, 13255, 2649, 7756, 1, 796, 705, 12726, 11621, 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 ]
[ 8727, 1625, 287, 717, 1295, 1141, 262, 4343, 11621, 28587, 7756, 5633, 46506, 366, 25729, 1, 16034, 3084, 62, 22416, 62, 29796, 33411, 366, 5372, 287, 10662, 83, 1, 796, 352, 5357, 366, 13255, 2649, 7756, 1, 796, 705, 12726, 11621, 6 ...
Who is the percussionist for The Coral?
SELECT "Vocal Percussionist" FROM table_74317 WHERE "Original Artist" = 'The Coral'
[ 8241, 318, 262, 48388, 396, 329, 383, 41390, 30, 46506, 366, 53, 4374, 2448, 36262, 396, 1, 16034, 3084, 62, 22, 3559, 1558, 33411, 366, 20556, 18902, 1, 796, 705, 464, 41390, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 318, 262, 48388, 396, 329, 383, 41390, 30, 46506, 366, 53, 4374, 2448, 36262, 396, 1, 16034, 3084, 62, 22, 3559, 1558, 33411, 366, 20556, 18902, 1, 796, 705, 464, 41390, 6 ]
how many patients have had other and unspecified coronary arteriography procedure?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Other and unspecified coronary arteriography"
[ 4919, 867, 3871, 423, 550, 584, 290, 29547, 37151, 30675, 72, 4867, 8771, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76, 62, 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...
[ 4919, 867, 3871, 423, 550, 584, 290, 29547, 37151, 30675, 72, 4867, 8771, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76, 62, 312,...
What is the date against the Tampa bay Storm?
SELECT "Date" FROM table_11901 WHERE "Opponent" = 'tampa bay storm'
[ 2061, 318, 262, 3128, 1028, 262, 15528, 15489, 8865, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 16315, 486, 33411, 366, 27524, 3471, 1, 796, 705, 83, 13299, 15489, 6388, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3128, 1028, 262, 15528, 15489, 8865, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 16315, 486, 33411, 366, 27524, 3471, 1, 796, 705, 83, 13299, 15489, 6388, 6 ]
what are the top five most frequent diagnoses that patients were given within 2 months after being diagnosed with esophageal reflux during a year before?
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, 326, 3871, 547, 1813, 1626, 362, 1933, 706, 852, 14641, 351, 1658, 2522, 496, 282, 1006, 22564, 1141, 257, 614, 878, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 326, 3871, 547, 1813, 1626, 362, 1933, 706, 852, 14641, 351, 1658, 2522, 496, 282, 1006, 22564, 1141, 257, 614, 878, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, ...
What was Geelong's score when they were the away team?
SELECT "Away team score" FROM table_4878 WHERE "Away team" = 'geelong'
[ 2061, 373, 2269, 21537, 338, 4776, 618, 484, 547, 262, 1497, 1074, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 2780, 3695, 33411, 366, 32, 1014, 1074, 1, 796, 705, 469, 21537, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 2269, 21537, 338, 4776, 618, 484, 547, 262, 1497, 1074, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 2780, 3695, 33411, 366, 32, 1014, 1074, 1, 796, 705, 469, 21537, 6 ]
count the number of patients who have received a cont inv mec ven 96+ hrs procedure in the same month after they had been diagnosed with malignant pleural effusn in the previous year.
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'malignant pleural ...
[ 9127, 262, 1271, 286, 3871, 508, 423, 2722, 257, 542, 800, 502, 66, 8710, 9907, 10, 36201, 8771, 287, 262, 976, 1227, 706, 484, 550, 587, 14641, 351, 6428, 25114, 3339, 1523, 914, 385, 77, 287, 262, 2180, 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, 423, 2722, 257, 542, 800, 502, 66, 8710, 9907, 10, 36201, 8771, 287, 262, 976, 1227, 706, 484, 550, 587, 14641, 351, 6428, 25114, 3339, 1523, 914, 385, 77, 287, 262, 2180, 614, 13, 46506, 327, 28270,...
Where was the game on November 20?
SELECT "Location Attendance" FROM table_72136 WHERE "Date" = 'November 20'
[ 8496, 373, 262, 983, 319, 3389, 1160, 30, 46506, 366, 14749, 46502, 590, 1, 16034, 3084, 62, 4761, 20809, 33411, 366, 10430, 1, 796, 705, 21159, 1160, 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 ]
[ 8496, 373, 262, 983, 319, 3389, 1160, 30, 46506, 366, 14749, 46502, 590, 1, 16034, 3084, 62, 4761, 20809, 33411, 366, 10430, 1, 796, 705, 21159, 1160, 6 ]
find the gender and marital status of miguel hodges.
SELECT demographic.marital_status, demographic.gender FROM demographic WHERE demographic.name = "Miguel Hodges"
[ 19796, 262, 5279, 290, 29555, 3722, 286, 37011, 2731, 289, 375, 3212, 13, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 16728, 13, 8388, 16034, 16728, 33411, 16728, 13, 3672, 796, 366, 44, 328, 2731, 22816, 3212, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 19796, 262, 5279, 290, 29555, 3722, 286, 37011, 2731, 289, 375, 3212, 13, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 16728, 13, 8388, 16034, 16728, 33411, 16728, 13, 3672, 796, 366, 44, 328, 2731, 22816, 3212, 1 ]
How many matches did Atl tico Ciudad have with an average higher than 0.61?
SELECT COUNT("Matches") FROM table_61753 WHERE "Team" = 'atlético ciudad' AND "Average" > '0.61'
[ 2437, 867, 7466, 750, 5234, 256, 3713, 37685, 463, 324, 423, 351, 281, 2811, 2440, 621, 657, 13, 5333, 30, 46506, 327, 28270, 7203, 19044, 2052, 4943, 16034, 3084, 62, 47941, 4310, 33411, 366, 15592, 1, 796, 705, 25864, 25125, 3713, 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 ]
[ 2437, 867, 7466, 750, 5234, 256, 3713, 37685, 463, 324, 423, 351, 281, 2811, 2440, 621, 657, 13, 5333, 30, 46506, 327, 28270, 7203, 19044, 2052, 4943, 16034, 3084, 62, 47941, 4310, 33411, 366, 15592, 1, 796, 705, 25864, 25125, 3713, 2...
Show names of musicals and the number of actors who have appeared in the musicals.
SELECT T2.name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.musical_id = T2.musical_id GROUP BY T1.musical_id
[ 15307, 3891, 286, 10530, 82, 290, 262, 1271, 286, 10544, 508, 423, 4120, 287, 262, 10530, 82, 13, 46506, 309, 17, 13, 3672, 11, 327, 28270, 7, 28104, 16034, 8674, 7054, 309, 16, 32357, 1268, 10530, 7054, 309, 17, 6177, 309, 16, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15307, 3891, 286, 10530, 82, 290, 262, 1271, 286, 10544, 508, 423, 4120, 287, 262, 10530, 82, 13, 46506, 309, 17, 13, 3672, 11, 327, 28270, 7, 28104, 16034, 8674, 7054, 309, 16, 32357, 1268, 10530, 7054, 309, 17, 6177, 309, 16, 13, ...
What is the nationality of the player in Position C from Round 1?
SELECT nationality FROM table_name_17 WHERE round = "1" AND position = "c"
[ 2061, 318, 262, 29835, 286, 262, 2137, 287, 23158, 327, 422, 10485, 352, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 1558, 33411, 2835, 796, 366, 16, 1, 5357, 2292, 796, 366, 66, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 29835, 286, 262, 2137, 287, 23158, 327, 422, 10485, 352, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 1558, 33411, 2835, 796, 366, 16, 1, 5357, 2292, 796, 366, 66, 1 ]
how many patients stayed in hospital for more than 30 days and were tested with metamyelocytes in lab?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "30" AND lab.label = "Metamyelocytes"
[ 4919, 867, 3871, 9658, 287, 4436, 329, 517, 621, 1542, 1528, 290, 547, 6789, 351, 1138, 14814, 417, 30309, 287, 2248, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 3871, 9658, 287, 4436, 329, 517, 621, 1542, 1528, 290, 547, 6789, 351, 1138, 14814, 417, 30309, 287, 2248, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268...
Most popular StackOverflow tags in March, 2016.
SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS MarchRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInMarch, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostI...
[ 6943, 2968, 23881, 5886, 11125, 15940, 287, 2805, 11, 1584, 13, 46506, 997, 13, 24835, 5376, 7054, 17467, 11, 371, 3913, 62, 41359, 13246, 3419, 28729, 357, 12532, 1137, 11050, 2494, 13, 32184, 22196, 34, 8, 7054, 2805, 27520, 11, 371, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 6943, 2968, 23881, 5886, 11125, 15940, 287, 2805, 11, 1584, 13, 46506, 997, 13, 24835, 5376, 7054, 17467, 11, 371, 3913, 62, 41359, 13246, 3419, 28729, 357, 12532, 1137, 11050, 2494, 13, 32184, 22196, 34, 8, 7054, 2805, 27520, 11, 371, ...
What's the 2008 of the Australian Open when the 2011 was 1R?
SELECT 2008 FROM table_name_87 WHERE 2011 = "1r" AND tournament = "australian open"
[ 2061, 338, 262, 3648, 286, 262, 6638, 4946, 618, 262, 2813, 373, 352, 49, 30, 46506, 3648, 16034, 3084, 62, 3672, 62, 5774, 33411, 2813, 796, 366, 16, 81, 1, 5357, 7756, 796, 366, 64, 436, 1373, 666, 1280, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3648, 286, 262, 6638, 4946, 618, 262, 2813, 373, 352, 49, 30, 46506, 3648, 16034, 3084, 62, 3672, 62, 5774, 33411, 2813, 796, 366, 16, 81, 1, 5357, 7756, 796, 366, 64, 436, 1373, 666, 1280, 1 ]
what name was on the year 2012
SELECT name FROM table_name_22 WHERE year * __est_ = "2012"
[ 10919, 1438, 373, 319, 262, 614, 2321, 46506, 1438, 16034, 3084, 62, 3672, 62, 1828, 33411, 614, 1635, 11593, 395, 62, 796, 366, 6999, 1 ]
[ 1, 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, 1438, 373, 319, 262, 614, 2321, 46506, 1438, 16034, 3084, 62, 3672, 62, 1828, 33411, 614, 1635, 11593, 395, 62, 796, 366, 6999, 1 ]
How many different numbers of people in the US who'd seen the episode with a season number 8 are there?
SELECT COUNT(us_viewers__millions_) FROM table_19925114_1 WHERE no_in_season = 8
[ 2437, 867, 1180, 3146, 286, 661, 287, 262, 1294, 508, 1549, 1775, 262, 4471, 351, 257, 1622, 1271, 807, 389, 612, 30, 46506, 327, 28270, 7, 385, 62, 1177, 364, 834, 17805, 507, 62, 8, 16034, 3084, 62, 19104, 1495, 16562, 62, 16, 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 ]
[ 2437, 867, 1180, 3146, 286, 661, 287, 262, 1294, 508, 1549, 1775, 262, 4471, 351, 257, 1622, 1271, 807, 389, 612, 30, 46506, 327, 28270, 7, 385, 62, 1177, 364, 834, 17805, 507, 62, 8, 16034, 3084, 62, 19104, 1495, 16562, 62, 16, 3...
Is 555 able to be taken by undergrads ?
SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 555
[ 3792, 44717, 1498, 284, 307, 2077, 416, 739, 2164, 5643, 5633, 46506, 360, 8808, 1268, 4177, 20852, 62, 8897, 24615, 11, 20326, 62, 8897, 24615, 11, 1438, 16034, 1781, 33411, 5011, 796, 705, 36, 2943, 50, 6, 5357, 1271, 796, 44717 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 44717, 1498, 284, 307, 2077, 416, 739, 2164, 5643, 5633, 46506, 360, 8808, 1268, 4177, 20852, 62, 8897, 24615, 11, 20326, 62, 8897, 24615, 11, 1438, 16034, 1781, 33411, 5011, 796, 705, 36, 2943, 50, 6, 5357, 1271, 796, 44717 ]
What is the number of colleges with a student population greater than 15000?
SELECT COUNT(*) FROM college WHERE enr > 15000
[ 2061, 318, 262, 1271, 286, 15273, 351, 257, 3710, 3265, 3744, 621, 1315, 830, 30, 46506, 327, 28270, 7, 28104, 16034, 4152, 33411, 551, 81, 1875, 1315, 830 ]
[ 1, 1, 1, 1, 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, 15273, 351, 257, 3710, 3265, 3744, 621, 1315, 830, 30, 46506, 327, 28270, 7, 28104, 16034, 4152, 33411, 551, 81, 1875, 1315, 830 ]
how many silver medals did turkey win ?
SELECT "silver" FROM table_203_812 WHERE "nation" = 'turkey'
[ 4919, 867, 8465, 28057, 750, 26876, 1592, 5633, 46506, 366, 40503, 1, 16034, 3084, 62, 22416, 62, 23, 1065, 33411, 366, 25729, 1, 796, 705, 36590, 2539, 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 ]
[ 4919, 867, 8465, 28057, 750, 26876, 1592, 5633, 46506, 366, 40503, 1, 16034, 3084, 62, 22416, 62, 23, 1065, 33411, 366, 25729, 1, 796, 705, 36590, 2539, 6 ]
Show member names that are not in the Progress Party.
SELECT T1.member_name FROM member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.party_name <> "Progress Party"
[ 15307, 2888, 3891, 326, 389, 407, 287, 262, 18387, 3615, 13, 46506, 309, 16, 13, 19522, 62, 3672, 16034, 2888, 7054, 309, 16, 32357, 1268, 2151, 7054, 309, 17, 6177, 309, 16, 13, 10608, 62, 312, 796, 309, 17, 13, 10608, 62, 312, 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 ]
[ 15307, 2888, 3891, 326, 389, 407, 287, 262, 18387, 3615, 13, 46506, 309, 16, 13, 19522, 62, 3672, 16034, 2888, 7054, 309, 16, 32357, 1268, 2151, 7054, 309, 17, 6177, 309, 16, 13, 10608, 62, 312, 796, 309, 17, 13, 10608, 62, 312, 3...
Display a bar chart for what is the average salary for each job title?, I want to order Y in ascending order please.
SELECT JOB_TITLE, AVG(SALARY) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID GROUP BY T2.JOB_TITLE ORDER BY AVG(SALARY)
[ 23114, 257, 2318, 8262, 329, 644, 318, 262, 2811, 9588, 329, 1123, 1693, 3670, 21747, 314, 765, 284, 1502, 575, 287, 41988, 1502, 3387, 13, 46506, 449, 9864, 62, 49560, 2538, 11, 35224, 7, 50, 1847, 13153, 8, 16034, 4409, 7054, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 23114, 257, 2318, 8262, 329, 644, 318, 262, 2811, 9588, 329, 1123, 1693, 3670, 21747, 314, 765, 284, 1502, 575, 287, 41988, 1502, 3387, 13, 46506, 449, 9864, 62, 49560, 2538, 11, 35224, 7, 50, 1847, 13153, 8, 16034, 4409, 7054, 309, ...
What was the lowest production code value in series #10?
SELECT MIN(production_code) FROM table_name_14 WHERE series__number = 10
[ 2061, 373, 262, 9016, 3227, 2438, 1988, 287, 2168, 1303, 940, 30, 46506, 20625, 7, 25493, 62, 8189, 8, 16034, 3084, 62, 3672, 62, 1415, 33411, 2168, 834, 17618, 796, 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 ]
[ 2061, 373, 262, 9016, 3227, 2438, 1988, 287, 2168, 1303, 940, 30, 46506, 20625, 7, 25493, 62, 8189, 8, 16034, 3084, 62, 3672, 62, 1415, 33411, 2168, 834, 17618, 796, 838 ]
How many games with record 1-3-3
SELECT COUNT("Game") FROM table_21640 WHERE "Record" = '1-3-3'
[ 2437, 867, 1830, 351, 1700, 352, 12, 18, 12, 18, 46506, 327, 28270, 7203, 8777, 4943, 16034, 3084, 62, 20666, 1821, 33411, 366, 23739, 1, 796, 705, 16, 12, 18, 12, 18, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1830, 351, 1700, 352, 12, 18, 12, 18, 46506, 327, 28270, 7203, 8777, 4943, 16034, 3084, 62, 20666, 1821, 33411, 366, 23739, 1, 796, 705, 16, 12, 18, 12, 18, 6 ]
For part 2 *lauk, what is listed for part 4?
SELECT part_4 FROM table_1745843_2 WHERE part_2 = "*lauk"
[ 1890, 636, 362, 1635, 75, 559, 74, 11, 644, 318, 5610, 329, 636, 604, 30, 46506, 636, 62, 19, 16034, 3084, 62, 1558, 29334, 3559, 62, 17, 33411, 636, 62, 17, 796, 366, 9, 75, 559, 74, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 636, 362, 1635, 75, 559, 74, 11, 644, 318, 5610, 329, 636, 604, 30, 46506, 636, 62, 19, 16034, 3084, 62, 1558, 29334, 3559, 62, 17, 33411, 636, 62, 17, 796, 366, 9, 75, 559, 74, 1 ]
let me know the age and procedure icd9 code of patient with patient id 2560.
SELECT demographic.age, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560"
[ 1616, 502, 760, 262, 2479, 290, 8771, 14158, 67, 24, 2438, 286, 5827, 351, 5827, 4686, 1679, 1899, 13, 46506, 16728, 13, 496, 11, 9021, 13, 291, 67, 24, 62, 8189, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1616, 502, 760, 262, 2479, 290, 8771, 14158, 67, 24, 2438, 286, 5827, 351, 5827, 4686, 1679, 1899, 13, 46506, 16728, 13, 496, 11, 9021, 13, 291, 67, 24, 62, 8189, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, ...
What round was the player Ty Lawson with a pick earlier than 18?
SELECT AVG("Round") FROM table_47988 WHERE "Player" = 'ty lawson' AND "Pick" < '18'
[ 2061, 2835, 373, 262, 2137, 7039, 35892, 351, 257, 2298, 2961, 621, 1248, 30, 46506, 35224, 7203, 22685, 4943, 16034, 3084, 62, 31714, 3459, 33411, 366, 14140, 1, 796, 705, 774, 1099, 1559, 6, 5357, 366, 31686, 1, 1279, 705, 1507, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2835, 373, 262, 2137, 7039, 35892, 351, 257, 2298, 2961, 621, 1248, 30, 46506, 35224, 7203, 22685, 4943, 16034, 3084, 62, 31714, 3459, 33411, 366, 14140, 1, 796, 705, 774, 1099, 1559, 6, 5357, 366, 31686, 1, 1279, 705, 1507, 6 ]
Where was the audition venue where Peninha was the guest fourth judge?
SELECT audition_venue FROM table_27615445_1 WHERE guest_fourth_judge = "Peninha"
[ 8496, 373, 262, 31678, 14359, 810, 7507, 259, 3099, 373, 262, 8319, 5544, 5052, 30, 46506, 31678, 62, 4080, 16034, 3084, 62, 27988, 21526, 2231, 62, 16, 33411, 8319, 62, 49393, 62, 10456, 469, 796, 366, 25553, 259, 3099, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 373, 262, 31678, 14359, 810, 7507, 259, 3099, 373, 262, 8319, 5544, 5052, 30, 46506, 31678, 62, 4080, 16034, 3084, 62, 27988, 21526, 2231, 62, 16, 33411, 8319, 62, 49393, 62, 10456, 469, 796, 366, 25553, 259, 3099, 1 ]
Get Count of Accepted Answers per User or top 20 Users with most Accepted Answers.
WITH GetCountOfAcceptedAnswersPerUser AS (SELECT COUNT(P.AcceptedAnswerId) AS "count_of_accepted_answers", P.OwnerUserId, U.DisplayName FROM Posts AS P INNER JOIN Users AS U ON P.OwnerUserId = U.Id WHERE OwnerUserId = @UserId OR @UserId IS NULL GROUP BY P.OwnerUserId, U.DisplayName ORDER BY 'count_of_accepted_answers' ...
[ 3855, 2764, 286, 21699, 276, 42612, 583, 11787, 393, 1353, 1160, 18987, 351, 749, 21699, 276, 42612, 13, 54, 10554, 3497, 12332, 5189, 38855, 276, 2025, 37848, 5990, 12982, 7054, 357, 46506, 327, 28270, 7, 47, 13, 38855, 276, 33706, 739...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3855, 2764, 286, 21699, 276, 42612, 583, 11787, 393, 1353, 1160, 18987, 351, 749, 21699, 276, 42612, 13, 54, 10554, 3497, 12332, 5189, 38855, 276, 2025, 37848, 5990, 12982, 7054, 357, 46506, 327, 28270, 7, 47, 13, 38855, 276, 33706, 739...
What is the Country, when Place is '1'?
SELECT country FROM table_name_46 WHERE place = "1"
[ 2061, 318, 262, 12946, 11, 618, 8474, 318, 705, 16, 30960, 46506, 1499, 16034, 3084, 62, 3672, 62, 3510, 33411, 1295, 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, 1 ]
[ 2061, 318, 262, 12946, 11, 618, 8474, 318, 705, 16, 30960, 46506, 1499, 16034, 3084, 62, 3672, 62, 3510, 33411, 1295, 796, 366, 16, 1 ]
What is the 1pm show that has Local Programs at 2pm and Digimon: Digital Monsters at 4:30pm?
SELECT "1:00 pm" FROM table_60044 WHERE "2:00 pm" = 'local programs' AND "4:30 pm" = 'digimon: digital monsters'
[ 2061, 318, 262, 352, 4426, 905, 326, 468, 10714, 26179, 379, 362, 4426, 290, 7367, 20473, 25, 10231, 21464, 379, 604, 25, 1270, 4426, 30, 46506, 366, 16, 25, 405, 9114, 1, 16034, 3084, 62, 8054, 2598, 33411, 366, 17, 25, 405, 9114, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 352, 4426, 905, 326, 468, 10714, 26179, 379, 362, 4426, 290, 7367, 20473, 25, 10231, 21464, 379, 604, 25, 1270, 4426, 30, 46506, 366, 16, 25, 405, 9114, 1, 16034, 3084, 62, 8054, 2598, 33411, 366, 17, 25, 405, 9114, ...
What were the high points on june 20?
SELECT "High points" FROM table_49769 WHERE "Date" = 'june 20'
[ 2061, 547, 262, 1029, 2173, 319, 474, 1726, 1160, 30, 46506, 366, 11922, 2173, 1, 16034, 3084, 62, 38073, 3388, 33411, 366, 10430, 1, 796, 705, 73, 1726, 1160, 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, 547, 262, 1029, 2173, 319, 474, 1726, 1160, 30, 46506, 366, 11922, 2173, 1, 16034, 3084, 62, 38073, 3388, 33411, 366, 10430, 1, 796, 705, 73, 1726, 1160, 6 ]
All with accpeted answer in english.
SELECT COUNT(*) FROM Posts WHERE NOT AcceptedAnswerId IS NULL
[ 3237, 351, 697, 6449, 276, 3280, 287, 46932, 13, 46506, 327, 28270, 7, 28104, 16034, 12043, 33411, 5626, 21699, 276, 33706, 7390, 3180, 15697 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3237, 351, 697, 6449, 276, 3280, 287, 46932, 13, 46506, 327, 28270, 7, 28104, 16034, 12043, 33411, 5626, 21699, 276, 33706, 7390, 3180, 15697 ]
What is the BB Pop for the song with RIAA of G that was in a year earlier than 1961?
SELECT "BB Pop" FROM table_32286 WHERE "RIAA" = 'g' AND "Year" < '1961'
[ 2061, 318, 262, 12597, 8099, 329, 262, 3496, 351, 371, 3539, 32, 286, 402, 326, 373, 287, 257, 614, 2961, 621, 20510, 30, 46506, 366, 15199, 8099, 1, 16034, 3084, 62, 37283, 4521, 33411, 366, 49, 3539, 32, 1, 796, 705, 70, 6, 5357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 12597, 8099, 329, 262, 3496, 351, 371, 3539, 32, 286, 402, 326, 373, 287, 257, 614, 2961, 621, 20510, 30, 46506, 366, 15199, 8099, 1, 16034, 3084, 62, 37283, 4521, 33411, 366, 49, 3539, 32, 1, 796, 705, 70, 6, 5357...
Which Award is the winner for Outstanding Revival of a Musical given?
SELECT award FROM table_name_57 WHERE category = "outstanding revival of a musical"
[ 13828, 11289, 318, 262, 8464, 329, 3806, 5646, 48095, 286, 257, 33375, 1813, 30, 46506, 5764, 16034, 3084, 62, 3672, 62, 3553, 33411, 6536, 796, 366, 448, 5646, 26624, 286, 257, 10530, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11289, 318, 262, 8464, 329, 3806, 5646, 48095, 286, 257, 33375, 1813, 30, 46506, 5764, 16034, 3084, 62, 3672, 62, 3553, 33411, 6536, 796, 366, 448, 5646, 26624, 286, 257, 10530, 1 ]
Name the 2 car sets for 622
SELECT 2 AS _car_sets FROM table_19255192_2 WHERE total_vehicles = 622
[ 5376, 262, 362, 1097, 5621, 329, 718, 1828, 46506, 362, 7054, 4808, 7718, 62, 28709, 16034, 3084, 62, 1129, 13381, 17477, 62, 17, 33411, 2472, 62, 33892, 2983, 796, 718, 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 ]
[ 5376, 262, 362, 1097, 5621, 329, 718, 1828, 46506, 362, 7054, 4808, 7718, 62, 28709, 16034, 3084, 62, 1129, 13381, 17477, 62, 17, 33411, 2472, 62, 33892, 2983, 796, 718, 1828 ]
List the teams of the players with the top 5 largest ages.
SELECT team FROM player ORDER BY age DESC LIMIT 5
[ 8053, 262, 3466, 286, 262, 1938, 351, 262, 1353, 642, 4387, 9337, 13, 46506, 1074, 16034, 2137, 38678, 11050, 2479, 22196, 34, 27564, 2043, 642 ]
[ 1, 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, 3466, 286, 262, 1938, 351, 262, 1353, 642, 4387, 9337, 13, 46506, 1074, 16034, 2137, 38678, 11050, 2479, 22196, 34, 27564, 2043, 642 ]
Name the position for numbers of 41
SELECT "Position" FROM table_10964 WHERE "No.(s)" = '41'
[ 5376, 262, 2292, 329, 3146, 286, 6073, 46506, 366, 26545, 1, 16034, 3084, 62, 14454, 2414, 33411, 366, 2949, 12195, 82, 16725, 796, 705, 3901, 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, 2292, 329, 3146, 286, 6073, 46506, 366, 26545, 1, 16034, 3084, 62, 14454, 2414, 33411, 366, 2949, 12195, 82, 16725, 796, 705, 3901, 6 ]
I need to see my transcript .
SELECT DISTINCT course.department, course.name, course.number, semester.semester, semester.year, student_record.grade FROM course, semester, student_record WHERE student_record.course_id = course.course_id AND student_record.semester = semester.semester_id AND student_record.student_id = 1
[ 40, 761, 284, 766, 616, 14687, 764, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 24878, 13, 325, 6880, 353, 11, 24878, 13, 1941, 11, 3710, 62, 22105, 13, 9526, 16034, 1781, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 40, 761, 284, 766, 616, 14687, 764, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 24878, 13, 325, 6880, 353, 11, 24878, 13, 1941, 11, 3710, 62, 22105, 13, 9526, 16034, 1781, 11, ...
Name the total number of elementary schools for 31851
SELECT COUNT("Elementary schools") FROM table_26254 WHERE "District-wide" = '31851'
[ 5376, 262, 2472, 1271, 286, 19823, 4266, 329, 39320, 4349, 46506, 327, 28270, 7203, 20180, 560, 4266, 4943, 16034, 3084, 62, 2075, 24970, 33411, 366, 44857, 12, 4421, 1, 796, 705, 36042, 4349, 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 ]
[ 5376, 262, 2472, 1271, 286, 19823, 4266, 329, 39320, 4349, 46506, 327, 28270, 7203, 20180, 560, 4266, 4943, 16034, 3084, 62, 2075, 24970, 33411, 366, 44857, 12, 4421, 1, 796, 705, 36042, 4349, 6 ]
Who was the choreographer for the dance style of Jazz?
SELECT "Choreographer(s)" FROM table_40393 WHERE "Style" = 'jazz'
[ 8241, 373, 262, 30569, 18539, 329, 262, 9280, 3918, 286, 21406, 30, 46506, 366, 1925, 382, 18539, 7, 82, 16725, 16034, 3084, 62, 1821, 26007, 33411, 366, 21466, 1, 796, 705, 73, 8101, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 30569, 18539, 329, 262, 9280, 3918, 286, 21406, 30, 46506, 366, 1925, 382, 18539, 7, 82, 16725, 16034, 3084, 62, 1821, 26007, 33411, 366, 21466, 1, 796, 705, 73, 8101, 6 ]
Which stadium has a payout of $3 million?
SELECT "Stadium" FROM table_20504 WHERE "Payout ( US$ )" = '$3 Million'
[ 13828, 10308, 468, 257, 40055, 286, 720, 18, 1510, 30, 46506, 366, 1273, 6271, 1, 16034, 3084, 62, 1238, 33580, 33411, 366, 19197, 448, 357, 1294, 3, 1267, 1, 796, 705, 3, 18, 23425, 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 ]
[ 13828, 10308, 468, 257, 40055, 286, 720, 18, 1510, 30, 46506, 366, 1273, 6271, 1, 16034, 3084, 62, 1238, 33580, 33411, 366, 19197, 448, 357, 1294, 3, 1267, 1, 796, 705, 3, 18, 23425, 6 ]
What is the WR player?
SELECT "Player" FROM table_49221 WHERE "Position" = 'wr'
[ 2061, 318, 262, 11342, 2137, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 2920, 26115, 33411, 366, 26545, 1, 796, 705, 18351, 6 ]
[ 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, 11342, 2137, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 2920, 26115, 33411, 366, 26545, 1, 796, 705, 18351, 6 ]
What is the tournament when 2010 is q2, and 2009 is 1r?
SELECT "Tournament" FROM table_65400 WHERE "2010" = 'q2' AND "2009" = '1r'
[ 2061, 318, 262, 7756, 618, 3050, 318, 10662, 17, 11, 290, 3717, 318, 352, 81, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 2996, 7029, 33411, 366, 10333, 1, 796, 705, 80, 17, 6, 5357, 366, 10531, 1, 796, 705, 16, 81, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 7756, 618, 3050, 318, 10662, 17, 11, 290, 3717, 318, 352, 81, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 2996, 7029, 33411, 366, 10333, 1, 796, 705, 80, 17, 6, 5357, 366, 10531, 1, 796, 705, 16, 81, 6 ]
What country does Round 4 come from?
SELECT "Nationality" FROM table_37085 WHERE "Round" = '4'
[ 2061, 1499, 857, 10485, 604, 1282, 422, 30, 46506, 366, 16186, 414, 1, 16034, 3084, 62, 20167, 5332, 33411, 366, 22685, 1, 796, 705, 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 ]
[ 2061, 1499, 857, 10485, 604, 1282, 422, 30, 46506, 366, 16186, 414, 1, 16034, 3084, 62, 20167, 5332, 33411, 366, 22685, 1, 796, 705, 19, 6 ]
For each year, bin the year into day of the week interval, and return the total number of times the team Boston Red Stockings won in the postseasons using a line chart, sort by the x axis in desc.
SELECT year, SUM(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, 2472, 1271, 286, 1661, 262, 1074, 6182, 2297, 10500, 654, 1839, 287, 262, 1281, 325, 2812, 1262, 257, 1627, 8262, 11, 3297, 416, 262, 2124, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 1271, 286, 1661, 262, 1074, 6182, 2297, 10500, 654, 1839, 287, 262, 1281, 325, 2812, 1262, 257, 1627, 8262, 11, 3297, 416, 262, 2124, 1...
What's the Length with the Version of Album Version?
SELECT length FROM table_name_60 WHERE version = "album version"
[ 2061, 338, 262, 22313, 351, 262, 10628, 286, 23999, 10628, 30, 46506, 4129, 16034, 3084, 62, 3672, 62, 1899, 33411, 2196, 796, 366, 40916, 2196, 1 ]
[ 1, 1, 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, 22313, 351, 262, 10628, 286, 23999, 10628, 30, 46506, 4129, 16034, 3084, 62, 3672, 62, 1899, 33411, 2196, 796, 366, 40916, 2196, 1 ]
what is the maximum age of patients whose discharge location is short term hospital and who have stayed in the hospital for 17 days?
SELECT MAX(demographic.age) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.days_stay = "17"
[ 10919, 318, 262, 5415, 2479, 286, 3871, 3025, 17655, 4067, 318, 1790, 3381, 4436, 290, 508, 423, 9658, 287, 262, 4436, 329, 1596, 1528, 30, 46506, 25882, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 6381, 10136, 62, 2488...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5415, 2479, 286, 3871, 3025, 17655, 4067, 318, 1790, 3381, 4436, 290, 508, 423, 9658, 287, 262, 4436, 329, 1596, 1528, 30, 46506, 25882, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 6381, 10136, 62, 2488...
What is the average year for a merzario a2 chassis?
SELECT AVG(year) FROM table_name_91 WHERE chassis = "merzario a2"
[ 2061, 318, 262, 2811, 614, 329, 257, 4017, 89, 4982, 257, 17, 24587, 30, 46506, 35224, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 24587, 796, 366, 647, 89, 4982, 257, 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 ]
[ 2061, 318, 262, 2811, 614, 329, 257, 4017, 89, 4982, 257, 17, 24587, 30, 46506, 35224, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 24587, 796, 366, 647, 89, 4982, 257, 17, 1 ]
How much Overall has a Name of bob anderson?
SELECT COUNT("Overall") FROM table_76609 WHERE "Name" = 'bob anderson'
[ 2437, 881, 14674, 468, 257, 6530, 286, 29202, 290, 882, 30, 46506, 327, 28270, 7203, 16350, 4943, 16034, 3084, 62, 4304, 31751, 33411, 366, 5376, 1, 796, 705, 65, 672, 290, 882, 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, 881, 14674, 468, 257, 6530, 286, 29202, 290, 882, 30, 46506, 327, 28270, 7203, 16350, 4943, 16034, 3084, 62, 4304, 31751, 33411, 366, 5376, 1, 796, 705, 65, 672, 290, 882, 6 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by time.
SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 6538, 62, 312, 9874, 11078, 62, 4475, 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...
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 6538, 62, 312, 9874, 11078, 62, 4475, 416,...
Visualize the relationship between Team_ID and School_ID , and group by attribute Team_Name.
SELECT Team_ID, School_ID FROM basketball_match GROUP BY Team_Name
[ 36259, 1096, 262, 2776, 1022, 4816, 62, 2389, 290, 3961, 62, 2389, 837, 290, 1448, 416, 11688, 4816, 62, 5376, 13, 46506, 4816, 62, 2389, 11, 3961, 62, 2389, 16034, 9669, 62, 15699, 44441, 11050, 4816, 62, 5376 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 36259, 1096, 262, 2776, 1022, 4816, 62, 2389, 290, 3961, 62, 2389, 837, 290, 1448, 416, 11688, 4816, 62, 5376, 13, 46506, 4816, 62, 2389, 11, 3961, 62, 2389, 16034, 9669, 62, 15699, 44441, 11050, 4816, 62, 5376 ]
Show the names of trains and locations of railways they are in.
SELECT T2.Name, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID
[ 15307, 262, 3891, 286, 13404, 290, 7064, 286, 45247, 484, 389, 287, 13, 46506, 309, 17, 13, 5376, 11, 309, 16, 13, 14749, 16034, 20515, 7054, 309, 16, 32357, 1268, 4512, 7054, 309, 17, 6177, 309, 16, 13, 44631, 1014, 62, 2389, 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 ]
[ 15307, 262, 3891, 286, 13404, 290, 7064, 286, 45247, 484, 389, 287, 13, 46506, 309, 17, 13, 5376, 11, 309, 16, 13, 14749, 16034, 20515, 7054, 309, 16, 32357, 1268, 4512, 7054, 309, 17, 6177, 309, 16, 13, 44631, 1014, 62, 2389, 796, ...
tell me the name of the organism that was detected in the first nasopharynx test of patient 031-16123 during their first hospital visit?
SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-16123' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient...
[ 33331, 502, 262, 1438, 286, 262, 26433, 326, 373, 12326, 287, 262, 717, 25221, 2522, 38621, 87, 1332, 286, 5827, 657, 3132, 12, 1433, 10163, 1141, 511, 717, 4436, 3187, 30, 46506, 4580, 23912, 13, 9971, 1042, 16034, 4580, 23912, 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...
[ 33331, 502, 262, 1438, 286, 262, 26433, 326, 373, 12326, 287, 262, 717, 25221, 2522, 38621, 87, 1332, 286, 5827, 657, 3132, 12, 1433, 10163, 1141, 511, 717, 4436, 3187, 30, 46506, 4580, 23912, 13, 9971, 1042, 16034, 4580, 23912, 33411, ...
List the name of a building along with the name of a company whose office is in the building.
SELECT T3.name, T2.name FROM office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN companies AS T3 ON T1.company_id = T3.id
[ 8053, 262, 1438, 286, 257, 2615, 1863, 351, 262, 1438, 286, 257, 1664, 3025, 2607, 318, 287, 262, 2615, 13, 46506, 309, 18, 13, 3672, 11, 309, 17, 13, 3672, 16034, 2607, 62, 17946, 602, 7054, 309, 16, 32357, 1268, 6832, 7054, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 8053, 262, 1438, 286, 257, 2615, 1863, 351, 262, 1438, 286, 257, 1664, 3025, 2607, 318, 287, 262, 2615, 13, 46506, 309, 18, 13, 3672, 11, 309, 17, 13, 3672, 16034, 2607, 62, 17946, 602, 7054, 309, 16, 32357, 1268, 6832, 7054, 309, ...
Who was the away team at the game attended by 81?
SELECT "Away team" FROM table_59479 WHERE "Attendance" = '81'
[ 8241, 373, 262, 1497, 1074, 379, 262, 983, 9141, 416, 9773, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 3270, 31714, 33411, 366, 8086, 437, 590, 1, 796, 705, 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 ]
[ 8241, 373, 262, 1497, 1074, 379, 262, 983, 9141, 416, 9773, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 3270, 31714, 33411, 366, 8086, 437, 590, 1, 796, 705, 6659, 6 ]
What nationality has steve kerr as the player?
SELECT nationality FROM table_name_95 WHERE player = "steve kerr"
[ 2061, 29835, 468, 2876, 303, 479, 8056, 355, 262, 2137, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 3865, 33411, 2137, 796, 366, 4169, 303, 479, 8056, 1 ]
[ 1, 1, 1, 1, 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, 29835, 468, 2876, 303, 479, 8056, 355, 262, 2137, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 3865, 33411, 2137, 796, 366, 4169, 303, 479, 8056, 1 ]
Stacked bar chart of the total number for with each Sex in each rank, I want to show in desc by the the total number .
SELECT Rank, COUNT(*) FROM Faculty GROUP BY Sex, Rank ORDER BY COUNT(*) DESC
[ 1273, 6021, 2318, 8262, 286, 262, 2472, 1271, 329, 351, 1123, 14419, 287, 1123, 4279, 11, 314, 765, 284, 905, 287, 1715, 416, 262, 262, 2472, 1271, 764, 46506, 10916, 11, 327, 28270, 7, 28104, 16034, 35262, 44441, 11050, 14419, 11, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1273, 6021, 2318, 8262, 286, 262, 2472, 1271, 329, 351, 1123, 14419, 287, 1123, 4279, 11, 314, 765, 284, 905, 287, 1715, 416, 262, 262, 2472, 1271, 764, 46506, 10916, 11, 327, 28270, 7, 28104, 16034, 35262, 44441, 11050, 14419, 11, 10...
What is Branding, when Callsign is 'DXED-TV'?
SELECT branding FROM table_name_73 WHERE callsign = "dxed-tv"
[ 2061, 318, 13512, 278, 11, 618, 4889, 12683, 318, 705, 36227, 1961, 12, 6849, 30960, 46506, 24150, 16034, 3084, 62, 3672, 62, 4790, 33411, 3848, 570, 796, 366, 34350, 276, 12, 14981, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13512, 278, 11, 618, 4889, 12683, 318, 705, 36227, 1961, 12, 6849, 30960, 46506, 24150, 16034, 3084, 62, 3672, 62, 4790, 33411, 3848, 570, 796, 366, 34350, 276, 12, 14981, 1 ]
how much is the cost of the long qt syndrome diagnosing?
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'long qt syndrome'))
[ 4919, 881, 318, 262, 1575, 286, 262, 890, 10662, 83, 14027, 6689, 2752, 30, 46506, 360, 8808, 1268, 4177, 1575, 13, 15805, 16034, 1575, 33411, 1575, 13, 15596, 62, 4906, 796, 705, 47356, 4629, 62, 291, 67, 6, 5357, 1575, 13, 15596, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 881, 318, 262, 1575, 286, 262, 890, 10662, 83, 14027, 6689, 2752, 30, 46506, 360, 8808, 1268, 4177, 1575, 13, 15805, 16034, 1575, 33411, 1575, 13, 15596, 62, 4906, 796, 705, 47356, 4629, 62, 291, 67, 6, 5357, 1575, 13, 15596, ...
What was the Friday June 3 practice time of the rider who did 20' 50.45 108.623mph on Thursday, June 2?
SELECT fri_3_june FROM table_29218221_3 WHERE thurs_2_june = "20' 50.45 108.623mph"
[ 2061, 373, 262, 3217, 2795, 513, 3357, 640, 286, 262, 17876, 508, 750, 1160, 6, 2026, 13, 2231, 15495, 13, 46872, 23335, 319, 3635, 11, 2795, 362, 30, 46506, 32803, 62, 18, 62, 73, 1726, 16034, 3084, 62, 1959, 28727, 26115, 62, 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 ]
[ 2061, 373, 262, 3217, 2795, 513, 3357, 640, 286, 262, 17876, 508, 750, 1160, 6, 2026, 13, 2231, 15495, 13, 46872, 23335, 319, 3635, 11, 2795, 362, 30, 46506, 32803, 62, 18, 62, 73, 1726, 16034, 3084, 62, 1959, 28727, 26115, 62, 18, ...
when was the last time patient 2498 got the prescription in 08/2104?
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2498) AND STRFTIME('%y-%m', prescriptions.startdate) = '2104-08' ORDER BY prescriptions.startdate DESC LIMIT 1
[ 12518, 373, 262, 938, 640, 5827, 1987, 4089, 1392, 262, 15077, 287, 8487, 14, 17, 13464, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 253...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 373, 262, 938, 640, 5827, 1987, 4089, 1392, 262, 15077, 287, 8487, 14, 17, 13464, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 253...
how many total bridges are in copiah county ?
SELECT COUNT(DISTINCT "name") FROM table_204_799 WHERE "county" = 'copiah'
[ 4919, 867, 2472, 19432, 389, 287, 2243, 9520, 7968, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 366, 3672, 4943, 16034, 3084, 62, 18638, 62, 45455, 33411, 366, 9127, 88, 1, 796, 705, 22163, 9520, 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 ]
[ 4919, 867, 2472, 19432, 389, 287, 2243, 9520, 7968, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 366, 3672, 4943, 16034, 3084, 62, 18638, 62, 45455, 33411, 366, 9127, 88, 1, 796, 705, 22163, 9520, 6 ]
What was the score when the couple was shannon & derek?
SELECT score FROM table_name_72 WHERE couple = "shannon & derek"
[ 2061, 373, 262, 4776, 618, 262, 3155, 373, 427, 8825, 1222, 390, 37818, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 4761, 33411, 3155, 796, 366, 1477, 8825, 1222, 390, 37818, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 618, 262, 3155, 373, 427, 8825, 1222, 390, 37818, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 4761, 33411, 3155, 796, 366, 1477, 8825, 1222, 390, 37818, 1 ]
What was the position of the player from Butler High School?
SELECT position FROM table_11677691_10 WHERE school = "Butler High school"
[ 2061, 373, 262, 2292, 286, 262, 2137, 422, 17389, 3334, 3961, 30, 46506, 2292, 16034, 3084, 62, 1157, 40179, 49541, 62, 940, 33411, 1524, 796, 366, 1537, 1754, 3334, 1524, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 2292, 286, 262, 2137, 422, 17389, 3334, 3961, 30, 46506, 2292, 16034, 3084, 62, 1157, 40179, 49541, 62, 940, 33411, 1524, 796, 366, 1537, 1754, 3334, 1524, 1 ]
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and code , and group by attribute headquarter, sort Code in desc order.
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Code DESC
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 2438, 837, 290, 1448, 416, 11688, 1182, 24385, 11, 3297, 6127, 287, 1715, 1502, 13, 46506, 309, 16, 13, 5376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 2438, 837, 290, 1448, 416, 11688, 1182, 24385, 11, 3297, 6127, 287, 1715, 1502, 13, 46506, 309, 16, 13, 5376, ...
In the next 2 years , is 496 offered ?
SELECT DISTINCT semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 496 AND semester.semester_id = course_offering.semester AND semester.year IN (2016, 2017)
[ 818, 262, 1306, 362, 812, 837, 318, 604, 4846, 4438, 5633, 46506, 360, 8808, 1268, 4177, 24878, 13, 325, 6880, 353, 11, 24878, 13, 1941, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 13, 17319, 62, 312, 796, 1781, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 818, 262, 1306, 362, 812, 837, 318, 604, 4846, 4438, 5633, 46506, 360, 8808, 1268, 4177, 24878, 13, 325, 6880, 353, 11, 24878, 13, 1941, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 13, 17319, 62, 312, 796, 1781, 6...
What is the overall pick number for the player who was picked on round 8?
SELECT MIN(overall) FROM table_name_91 WHERE round = 8
[ 2061, 318, 262, 4045, 2298, 1271, 329, 262, 2137, 508, 373, 6497, 319, 2835, 807, 30, 46506, 20625, 7, 2502, 439, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 2835, 796, 807 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 4045, 2298, 1271, 329, 262, 2137, 508, 373, 6497, 319, 2835, 807, 30, 46506, 20625, 7, 2502, 439, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 2835, 796, 807 ]
Which term had a Democratic representative from district 7?
SELECT "Term" FROM table_67309 WHERE "District" = '7' AND "Party" = 'democratic'
[ 13828, 3381, 550, 257, 4390, 8852, 422, 4783, 767, 30, 46506, 366, 40596, 1, 16034, 3084, 62, 3134, 26895, 33411, 366, 44857, 1, 796, 705, 22, 6, 5357, 366, 33553, 1, 796, 705, 41232, 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 ]
[ 13828, 3381, 550, 257, 4390, 8852, 422, 4783, 767, 30, 46506, 366, 40596, 1, 16034, 3084, 62, 3134, 26895, 33411, 366, 44857, 1, 796, 705, 22, 6, 5357, 366, 33553, 1, 796, 705, 41232, 6 ]
what is primary disease of subject id 92796?
SELECT demographic.diagnosis FROM demographic WHERE demographic.subject_id = "92796"
[ 10919, 318, 4165, 4369, 286, 2426, 4686, 860, 1983, 4846, 30, 46506, 16728, 13, 47356, 5958, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 24, 1983, 4846, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 4165, 4369, 286, 2426, 4686, 860, 1983, 4846, 30, 46506, 16728, 13, 47356, 5958, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 24, 1983, 4846, 1 ]
from TORONTO to ATLANTA in the afternoon
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 = 'TORONTO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLAN...
[ 6738, 40691, 1340, 10468, 284, 5161, 25697, 5603, 287, 262, 6672, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, 62,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 6738, 40691, 1340, 10468, 284, 5161, 25697, 5603, 287, 262, 6672, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, 62,...
Return the number of the claim start date for the claims whose claimed amount is no more than the average, show total number from high to low order.
SELECT Date_Claim_Made, COUNT(Date_Claim_Made) FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims) ORDER BY COUNT(Date_Claim_Made) DESC
[ 13615, 262, 1271, 286, 262, 1624, 923, 3128, 329, 262, 3667, 3025, 4752, 2033, 318, 645, 517, 621, 262, 2811, 11, 905, 2472, 1271, 422, 1029, 284, 1877, 1502, 13, 46506, 7536, 62, 44819, 62, 24616, 11, 327, 28270, 7, 10430, 62, 4481...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13615, 262, 1271, 286, 262, 1624, 923, 3128, 329, 262, 3667, 3025, 4752, 2033, 318, 645, 517, 621, 262, 2811, 11, 905, 2472, 1271, 422, 1029, 284, 1877, 1502, 13, 46506, 7536, 62, 44819, 62, 24616, 11, 327, 28270, 7, 10430, 62, 4481...
provide the number of patients on main type of drug prescription who had manual reticulocyte count.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "MAIN" AND lab.label = "Reticulocyte Count, Manual"
[ 15234, 485, 262, 1271, 286, 3871, 319, 1388, 2099, 286, 2563, 15077, 508, 550, 10107, 1005, 291, 377, 43320, 954, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 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, 1, 1, 1, 1, 1, 1, 1, 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, 319, 1388, 2099, 286, 2563, 15077, 508, 550, 10107, 1005, 291, 377, 43320, 954, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34...
Sort all the distinct product names in alphabetical order.
SELECT DISTINCT product_name FROM product ORDER BY product_name
[ 42758, 477, 262, 7310, 1720, 3891, 287, 24830, 605, 1502, 13, 46506, 360, 8808, 1268, 4177, 1720, 62, 3672, 16034, 1720, 38678, 11050, 1720, 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 ]
[ 42758, 477, 262, 7310, 1720, 3891, 287, 24830, 605, 1502, 13, 46506, 360, 8808, 1268, 4177, 1720, 62, 3672, 16034, 1720, 38678, 11050, 1720, 62, 3672 ]
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of founder and the sum of revenue , and group by attribute founder.
SELECT Founder, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 9119, 290, 262, 2160, 286, 6426, 837, 290, 1448, 416, 11688, 9119, 13, 46506, 30153, 11, 35683, 7, 3041, 4080, 8, 16034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 9119, 290, 262, 2160, 286, 6426, 837, 290, 1448, 416, 11688, 9119, 13, 46506, 30153, 11, 35683, 7, 3041, 4080, 8, 16034, ...
who directed the first episode of psi factor : chronicles of the paranormal ?
SELECT "directed by" FROM table_203_685 WHERE "no. in\nseason" = 1
[ 8727, 7924, 262, 717, 4471, 286, 46231, 5766, 1058, 16199, 2983, 286, 262, 47525, 5633, 46506, 366, 34762, 416, 1, 16034, 3084, 62, 22416, 62, 35978, 33411, 366, 3919, 13, 287, 59, 77, 6230, 1, 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 ]
[ 8727, 7924, 262, 717, 4471, 286, 46231, 5766, 1058, 16199, 2983, 286, 262, 47525, 5633, 46506, 366, 34762, 416, 1, 16034, 3084, 62, 22416, 62, 35978, 33411, 366, 3919, 13, 287, 59, 77, 6230, 1, 796, 352 ]
What is the highest rebound Dennis Rodman obtained within the 20 rebounds category given two of the following:points, rebounds, assists, steals, and blocked shots (points) greater equal to 5
SELECT MAX(20 AS _rebounds) FROM table_25696729_8 WHERE double_double = 5
[ 2061, 318, 262, 4511, 23623, 16902, 6882, 805, 6492, 1626, 262, 1160, 18841, 6536, 1813, 734, 286, 262, 1708, 25, 13033, 11, 18841, 11, 13648, 11, 28052, 11, 290, 10226, 6934, 357, 13033, 8, 3744, 4961, 284, 642, 46506, 25882, 7, 1238...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 23623, 16902, 6882, 805, 6492, 1626, 262, 1160, 18841, 6536, 1813, 734, 286, 262, 1708, 25, 13033, 11, 18841, 11, 13648, 11, 28052, 11, 290, 10226, 6934, 357, 13033, 8, 3744, 4961, 284, 642, 46506, 25882, 7, 1238...
What is the outgoing manager for the team kas mpa a?
SELECT outgoing_manager FROM table_26998135_2 WHERE team = "Kasımpaşa"
[ 2061, 318, 262, 28181, 4706, 329, 262, 1074, 479, 292, 285, 8957, 257, 30, 46506, 28181, 62, 37153, 16034, 3084, 62, 2075, 34808, 17059, 62, 17, 33411, 1074, 796, 366, 42, 292, 30102, 3149, 64, 46481, 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, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 28181, 4706, 329, 262, 1074, 479, 292, 285, 8957, 257, 30, 46506, 28181, 62, 37153, 16034, 3084, 62, 2075, 34808, 17059, 62, 17, 33411, 1074, 796, 366, 42, 292, 30102, 3149, 64, 46481, 64, 1 ]
List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.
SELECT document_type_code, document_name, document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'
[ 8053, 262, 3188, 2099, 2438, 11, 3188, 1438, 11, 290, 3188, 6764, 329, 262, 3188, 351, 1438, 705, 2949, 417, 26196, 6, 393, 1438, 705, 15708, 4897, 4458, 46506, 3188, 62, 4906, 62, 8189, 11, 3188, 62, 3672, 11, 3188, 62, 11213, 1603...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 262, 3188, 2099, 2438, 11, 3188, 1438, 11, 290, 3188, 6764, 329, 262, 3188, 351, 1438, 705, 2949, 417, 26196, 6, 393, 1438, 705, 15708, 4897, 4458, 46506, 3188, 62, 4906, 62, 8189, 11, 3188, 62, 3672, 11, 3188, 62, 11213, 1603...
For those employees who was hired before 2002-06-21, visualize a bar chart about the distribution of job_id and the average of salary , and group by attribute job_id, I want to order bars in descending order.
SELECT JOB_ID, AVG(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2811, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 314, 765, 284, 1502, 9210, 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, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2811, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 314, 765, 284, 1502, 9210, 2...
when did patient 003-83 first have a laboratory test until 04/2105?
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-83')) AND STRFTIME('%y-%m', lab.labresulttime) <= '2105-04' ORDER BY lab.labres...
[ 12518, 750, 5827, 3571, 18, 12, 5999, 717, 423, 257, 14010, 1332, 1566, 8702, 14, 17, 13348, 30, 46506, 2248, 13, 23912, 20274, 2435, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 3171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 750, 5827, 3571, 18, 12, 5999, 717, 423, 257, 14010, 1332, 1566, 8702, 14, 17, 13348, 30, 46506, 2248, 13, 23912, 20274, 2435, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 3171...
Name the tfl-yds for no-yds 1-0
SELECT "TFL-Yds" FROM table_1186 WHERE "No-Yds" = '1-0'
[ 5376, 262, 256, 2704, 12, 5173, 82, 329, 645, 12, 5173, 82, 352, 12, 15, 46506, 366, 51, 3697, 12, 56, 9310, 1, 16034, 3084, 62, 1157, 4521, 33411, 366, 2949, 12, 56, 9310, 1, 796, 705, 16, 12, 15, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 256, 2704, 12, 5173, 82, 329, 645, 12, 5173, 82, 352, 12, 15, 46506, 366, 51, 3697, 12, 56, 9310, 1, 16034, 3084, 62, 1157, 4521, 33411, 366, 2949, 12, 56, 9310, 1, 796, 705, 16, 12, 15, 6 ]
What is the score of the match on July 22, 2008?
SELECT "Score" FROM table_51424 WHERE "Date" = 'july 22, 2008'
[ 2061, 318, 262, 4776, 286, 262, 2872, 319, 2901, 2534, 11, 3648, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 47396, 1731, 33411, 366, 10430, 1, 796, 705, 73, 2062, 2534, 11, 3648, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4776, 286, 262, 2872, 319, 2901, 2534, 11, 3648, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 47396, 1731, 33411, 366, 10430, 1, 796, 705, 73, 2062, 2534, 11, 3648, 6 ]
Name the total number of years for usisl pro league
SELECT COUNT("Year") FROM table_73741 WHERE "League" = 'USISL Pro League'
[ 5376, 262, 2472, 1271, 286, 812, 329, 514, 3044, 386, 4652, 46506, 327, 28270, 7203, 17688, 4943, 16034, 3084, 62, 22, 2718, 3901, 33411, 366, 24623, 1, 796, 705, 2937, 1797, 43, 1041, 4041, 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 ]
[ 5376, 262, 2472, 1271, 286, 812, 329, 514, 3044, 386, 4652, 46506, 327, 28270, 7203, 17688, 4943, 16034, 3084, 62, 22, 2718, 3901, 33411, 366, 24623, 1, 796, 705, 2937, 1797, 43, 1041, 4041, 6 ]