instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
Which Performance has a Usage of hepa and a Class of h14?
SELECT performance FROM table_name_38 WHERE usage = "hepa" AND class = "h14"
[ 13828, 15193, 468, 257, 29566, 286, 339, 8957, 290, 257, 5016, 286, 289, 1415, 30, 46506, 2854, 16034, 3084, 62, 3672, 62, 2548, 33411, 8748, 796, 366, 258, 8957, 1, 5357, 1398, 796, 366, 71, 1415, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 15193, 468, 257, 29566, 286, 339, 8957, 290, 257, 5016, 286, 289, 1415, 30, 46506, 2854, 16034, 3084, 62, 3672, 62, 2548, 33411, 8748, 796, 366, 258, 8957, 1, 5357, 1398, 796, 366, 71, 1415, 1 ]
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of job_id and the sum of employee_id , and group by attribute job_id, list Y from high to low order please.
SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) DESC
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 6538, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 1351, 575, 422, 1029, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 257, 2318, 8262, 2523, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 6538, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 1351, 575, 422, 1029, 284...
Find the total number of students in each department.
SELECT COUNT(*), dept_name FROM student GROUP BY dept_name
[ 16742, 262, 2472, 1271, 286, 2444, 287, 1123, 5011, 13, 46506, 327, 28270, 46491, 828, 390, 457, 62, 3672, 16034, 3710, 44441, 11050, 390, 457, 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 ]
[ 16742, 262, 2472, 1271, 286, 2444, 287, 1123, 5011, 13, 46506, 327, 28270, 46491, 828, 390, 457, 62, 3672, 16034, 3710, 44441, 11050, 390, 457, 62, 3672 ]
Give me the number of patients who were diagnosed with malignant neoplasm of the liver and their drug route was pb.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Mal neo liver, primary" AND prescriptions.route = "PB"
[ 23318, 502, 262, 1271, 286, 3871, 508, 547, 14641, 351, 6428, 25114, 497, 20106, 8597, 286, 262, 14383, 290, 511, 2563, 6339, 373, 279, 65, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 23318, 502, 262, 1271, 286, 3871, 508, 547, 14641, 351, 6428, 25114, 497, 20106, 8597, 286, 262, 14383, 290, 511, 2563, 6339, 373, 279, 65, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, ...
What is the qual 2 when the best is 1:45.172?
SELECT qual_2 FROM table_name_32 WHERE best = "1:45.172"
[ 2061, 318, 262, 4140, 362, 618, 262, 1266, 318, 352, 25, 2231, 13, 23628, 30, 46506, 4140, 62, 17, 16034, 3084, 62, 3672, 62, 2624, 33411, 1266, 796, 366, 16, 25, 2231, 13, 23628, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4140, 362, 618, 262, 1266, 318, 352, 25, 2231, 13, 23628, 30, 46506, 4140, 62, 17, 16034, 3084, 62, 3672, 62, 2624, 33411, 1266, 796, 366, 16, 25, 2231, 13, 23628, 1 ]
Get tag names sorted by tag name.
SELECT Name FROM Badges ORDER BY 'name'
[ 3855, 7621, 3891, 23243, 416, 7621, 1438, 13, 46506, 6530, 16034, 7772, 3212, 38678, 11050, 705, 3672, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3855, 7621, 3891, 23243, 416, 7621, 1438, 13, 46506, 6530, 16034, 7772, 3212, 38678, 11050, 705, 3672, 6 ]
what is patient 15754's yearly minimum level of protein, total since 2105?
SELECT MIN(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15754) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'protein, total') AND STRFTIME('%y', labevents.charttime) >= '2105' GROUP BY...
[ 10919, 318, 5827, 1315, 41874, 338, 24169, 5288, 1241, 286, 7532, 11, 2472, 1201, 362, 13348, 30, 46506, 20625, 7, 23912, 31534, 13, 2100, 84, 44709, 8, 16034, 2248, 31534, 33411, 2248, 31534, 13, 18108, 76, 62, 312, 3268, 357, 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...
[ 10919, 318, 5827, 1315, 41874, 338, 24169, 5288, 1241, 286, 7532, 11, 2472, 1201, 362, 13348, 30, 46506, 20625, 7, 23912, 31534, 13, 2100, 84, 44709, 8, 16034, 2248, 31534, 33411, 2248, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, ...
What is the sum of gold medals won by teams that won fewer than 3 silver medals, more than 1 total medal, and rank 10?
SELECT SUM(gold) FROM table_name_51 WHERE silver < 3 AND rank = "10" AND total > 1
[ 2061, 318, 262, 2160, 286, 3869, 28057, 1839, 416, 3466, 326, 1839, 7380, 621, 513, 8465, 28057, 11, 517, 621, 352, 2472, 18279, 11, 290, 4279, 838, 30, 46506, 35683, 7, 24267, 8, 16034, 3084, 62, 3672, 62, 4349, 33411, 8465, 1279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2160, 286, 3869, 28057, 1839, 416, 3466, 326, 1839, 7380, 621, 513, 8465, 28057, 11, 517, 621, 352, 2472, 18279, 11, 290, 4279, 838, 30, 46506, 35683, 7, 24267, 8, 16034, 3084, 62, 3672, 62, 4349, 33411, 8465, 1279, ...
Which College/junior/club team has a Round of 4?
SELECT "College/junior/club team" FROM table_13766 WHERE "Round" = '4'
[ 13828, 5535, 14, 29741, 1504, 14, 18664, 1074, 468, 257, 10485, 286, 604, 30, 46506, 366, 38951, 14, 29741, 1504, 14, 18664, 1074, 1, 16034, 3084, 62, 19708, 2791, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 5535, 14, 29741, 1504, 14, 18664, 1074, 468, 257, 10485, 286, 604, 30, 46506, 366, 38951, 14, 29741, 1504, 14, 18664, 1074, 1, 16034, 3084, 62, 19708, 2791, 33411, 366, 22685, 1, 796, 705, 19, 6 ]
What is the installation date for each ending station on all the trips?
SELECT T1.id, T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id
[ 2061, 318, 262, 9988, 3128, 329, 1123, 7464, 4429, 319, 477, 262, 13229, 30, 46506, 309, 16, 13, 312, 11, 309, 17, 13, 17350, 341, 62, 4475, 16034, 5296, 7054, 309, 16, 32357, 1268, 4429, 7054, 309, 17, 6177, 309, 16, 13, 437, 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 ]
[ 2061, 318, 262, 9988, 3128, 329, 1123, 7464, 4429, 319, 477, 262, 13229, 30, 46506, 309, 16, 13, 312, 11, 309, 17, 13, 17350, 341, 62, 4475, 16034, 5296, 7054, 309, 16, 32357, 1268, 4429, 7054, 309, 17, 6177, 309, 16, 13, 437, 62,...
have patient 012-40970's been normal until 56 months ago in respiration?
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 = '012-40970')) AND vitalperiodic.respiration BETWEEN respiration_lower...
[ 14150, 5827, 5534, 17, 12, 29416, 2154, 338, 587, 3487, 1566, 7265, 1933, 2084, 287, 1217, 15297, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, 20850, 31712, 312, 3268, 357, 465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 14150, 5827, 5534, 17, 12, 29416, 2154, 338, 587, 3487, 1566, 7265, 1933, 2084, 287, 1217, 15297, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, 20850, 31712, 312, 3268, 357, 465...
Limiting Posts by Date - Questions Only (Tutorial).
SELECT Title, Id, PostTypeId FROM Posts WHERE CreationDate BETWEEN '2014-07-01' AND '2014-07-31' AND PostTypeId = 1
[ 19352, 1780, 12043, 416, 7536, 532, 20396, 5514, 357, 51, 44917, 737, 46506, 11851, 11, 5121, 11, 2947, 6030, 7390, 16034, 12043, 33411, 21582, 10430, 38651, 8845, 1677, 705, 4967, 12, 2998, 12, 486, 6, 5357, 705, 4967, 12, 2998, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 19352, 1780, 12043, 416, 7536, 532, 20396, 5514, 357, 51, 44917, 737, 46506, 11851, 11, 5121, 11, 2947, 6030, 7390, 16034, 12043, 33411, 21582, 10430, 38651, 8845, 1677, 705, 4967, 12, 2998, 12, 486, 6, 5357, 705, 4967, 12, 2998, 12, ...
Who directed episodes that had 2.61 million U.S. viewers?
SELECT directed_by FROM table_11111116_7 WHERE us_viewers__million_ = "2.61"
[ 8241, 7924, 8640, 326, 550, 362, 13, 5333, 1510, 471, 13, 50, 13, 10209, 30, 46506, 7924, 62, 1525, 16034, 3084, 62, 26259, 1157, 1433, 62, 22, 33411, 514, 62, 1177, 364, 834, 14100, 62, 796, 366, 17, 13, 5333, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7924, 8640, 326, 550, 362, 13, 5333, 1510, 471, 13, 50, 13, 10209, 30, 46506, 7924, 62, 1525, 16034, 3084, 62, 26259, 1157, 1433, 62, 22, 33411, 514, 62, 1177, 364, 834, 14100, 62, 796, 366, 17, 13, 5333, 1 ]
Name the number of season for beluga shipping
SELECT COUNT(no_in_season) FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping"
[ 5376, 262, 1271, 286, 1622, 329, 894, 30302, 8440, 46506, 327, 28270, 7, 3919, 62, 259, 62, 6230, 8, 16034, 3084, 62, 2075, 14656, 39925, 62, 20, 33411, 8837, 62, 46616, 796, 366, 12193, 30302, 24147, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 1622, 329, 894, 30302, 8440, 46506, 327, 28270, 7, 3919, 62, 259, 62, 6230, 8, 16034, 3084, 62, 2075, 14656, 39925, 62, 20, 33411, 8837, 62, 46616, 796, 366, 12193, 30302, 24147, 1 ]
How many episodes with the production code CA106 are there?
SELECT COUNT("Written by") FROM table_28078 WHERE "Production code" = 'CA106'
[ 2437, 867, 8640, 351, 262, 3227, 2438, 7257, 15801, 389, 612, 30, 46506, 327, 28270, 7203, 25354, 416, 4943, 16034, 3084, 62, 21033, 3695, 33411, 366, 35027, 2438, 1, 796, 705, 8141, 15801, 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 ]
[ 2437, 867, 8640, 351, 262, 3227, 2438, 7257, 15801, 389, 612, 30, 46506, 327, 28270, 7203, 25354, 416, 4943, 16034, 3084, 62, 21033, 3695, 33411, 366, 35027, 2438, 1, 796, 705, 8141, 15801, 6 ]
What was the highest number of bronze medals when there were a total of 4 medals, 1 silver medals, and less than 2 medals?
SELECT MAX(bronze) FROM table_name_99 WHERE total = 4 AND silver = 1 AND gold < 2
[ 2061, 373, 262, 4511, 1271, 286, 22101, 28057, 618, 612, 547, 257, 2472, 286, 604, 28057, 11, 352, 8465, 28057, 11, 290, 1342, 621, 362, 28057, 30, 46506, 25882, 7, 65, 1313, 2736, 8, 16034, 3084, 62, 3672, 62, 2079, 33411, 2472, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4511, 1271, 286, 22101, 28057, 618, 612, 547, 257, 2472, 286, 604, 28057, 11, 352, 8465, 28057, 11, 290, 1342, 621, 362, 28057, 30, 46506, 25882, 7, 65, 1313, 2736, 8, 16034, 3084, 62, 3672, 62, 2079, 33411, 2472, 79...
What are the first name and last name of the players who have weight above 220 or height below 75?
SELECT name_first, name_last FROM player WHERE weight > 220 OR height < 75
[ 2061, 389, 262, 717, 1438, 290, 938, 1438, 286, 262, 1938, 508, 423, 3463, 2029, 15629, 393, 6001, 2174, 5441, 30, 46506, 1438, 62, 11085, 11, 1438, 62, 12957, 16034, 2137, 33411, 3463, 1875, 15629, 6375, 6001, 1279, 5441 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 717, 1438, 290, 938, 1438, 286, 262, 1938, 508, 423, 3463, 2029, 15629, 393, 6001, 2174, 5441, 30, 46506, 1438, 62, 11085, 11, 1438, 62, 12957, 16034, 2137, 33411, 3463, 1875, 15629, 6375, 6001, 1279, 5441 ]
provide the number of patients whose age is less than 41 and lab test name is neutrophils?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "41" AND lab.label = "Neutrophils"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 6073, 290, 2248, 1332, 1438, 318, 22190, 10051, 4487, 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...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 6073, 290, 2248, 1332, 1438, 318, 22190, 10051, 4487, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, ...
What was the team record by Week 8?
SELECT record FROM table_name_60 WHERE week = "8"
[ 2061, 373, 262, 1074, 1700, 416, 6119, 807, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 1899, 33411, 1285, 796, 366, 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 ]
[ 2061, 373, 262, 1074, 1700, 416, 6119, 807, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 1899, 33411, 1285, 796, 366, 23, 1 ]
How many hours were flown in each of the years where more than 64379058.0 kilometers were flown?
SELECT "Flying hours" FROM table_52 WHERE "Aircraft kilometers" > '64379058.0'
[ 2437, 867, 2250, 547, 22371, 287, 1123, 286, 262, 812, 810, 517, 621, 5598, 29088, 2713, 23, 13, 15, 18212, 547, 22371, 30, 46506, 366, 49095, 2250, 1, 16034, 3084, 62, 4309, 33411, 366, 32, 27002, 18212, 1, 1875, 705, 2414, 29088, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2250, 547, 22371, 287, 1123, 286, 262, 812, 810, 517, 621, 5598, 29088, 2713, 23, 13, 15, 18212, 547, 22371, 30, 46506, 366, 49095, 2250, 1, 16034, 3084, 62, 4309, 33411, 366, 32, 27002, 18212, 1, 1875, 705, 2414, 29088, ...
How many fans attended the game at Bye?
SELECT attendance FROM table_name_53 WHERE game_site = "bye"
[ 2437, 867, 3296, 9141, 262, 983, 379, 47843, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 4310, 33411, 983, 62, 15654, 796, 366, 16390, 1 ]
[ 1, 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, 3296, 9141, 262, 983, 379, 47843, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 4310, 33411, 983, 62, 15654, 796, 366, 16390, 1 ]
What is the sum of Away Losses with a No Result of more than 0, losses of more than 6, and matches of more than 91?
SELECT SUM(Away) AS losses FROM table_name_64 WHERE no_result > 0 AND losses > 6 AND matches > 91
[ 2061, 318, 262, 2160, 286, 21986, 22014, 274, 351, 257, 1400, 25414, 286, 517, 621, 657, 11, 9089, 286, 517, 621, 718, 11, 290, 7466, 286, 517, 621, 10495, 30, 46506, 35683, 7, 32, 1014, 8, 7054, 9089, 16034, 3084, 62, 3672, 62, 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 ]
[ 2061, 318, 262, 2160, 286, 21986, 22014, 274, 351, 257, 1400, 25414, 286, 517, 621, 657, 11, 9089, 286, 517, 621, 718, 11, 290, 7466, 286, 517, 621, 10495, 30, 46506, 35683, 7, 32, 1014, 8, 7054, 9089, 16034, 3084, 62, 3672, 62, 2...
How many were in attendance of the game with l 26-21 result?
SELECT "Attendance" FROM table_42383 WHERE "Result" = 'l 26-21'
[ 2437, 867, 547, 287, 14858, 286, 262, 983, 351, 300, 2608, 12, 2481, 1255, 30, 46506, 366, 8086, 437, 590, 1, 16034, 3084, 62, 43356, 5999, 33411, 366, 23004, 1, 796, 705, 75, 2608, 12, 2481, 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 ]
[ 2437, 867, 547, 287, 14858, 286, 262, 983, 351, 300, 2608, 12, 2481, 1255, 30, 46506, 366, 8086, 437, 590, 1, 16034, 3084, 62, 43356, 5999, 33411, 366, 23004, 1, 796, 705, 75, 2608, 12, 2481, 6 ]
Which Label has a Date of 14 February?
SELECT label FROM table_name_56 WHERE date = "14 february"
[ 13828, 36052, 468, 257, 7536, 286, 1478, 3945, 30, 46506, 6167, 16034, 3084, 62, 3672, 62, 3980, 33411, 3128, 796, 366, 1415, 730, 65, 3728, 1 ]
[ 1, 1, 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, 36052, 468, 257, 7536, 286, 1478, 3945, 30, 46506, 6167, 16034, 3084, 62, 3672, 62, 3980, 33411, 3128, 796, 366, 1415, 730, 65, 3728, 1 ]
what is the total number of constituencies ?
SELECT COUNT(DISTINCT "constituency") FROM table_203_447
[ 10919, 318, 262, 2472, 1271, 286, 43742, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 366, 9979, 34272, 1387, 4943, 16034, 3084, 62, 22416, 62, 34825 ]
[ 1, 1, 1, 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, 2472, 1271, 286, 43742, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 366, 9979, 34272, 1387, 4943, 16034, 3084, 62, 22416, 62, 34825 ]
how much are patient 008-24610's differences in heartrate last measured on the last icu visit compared to the value second to last measured on the last icu visit?
SELECT (SELECT vitalperiodic.heartrate FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '008-24610') AND NOT patient.unitdischargetime IS ...
[ 4919, 881, 389, 5827, 3571, 23, 12, 26912, 940, 338, 5400, 287, 2612, 4873, 938, 8630, 319, 262, 938, 14158, 84, 3187, 3688, 284, 262, 1988, 1218, 284, 938, 8630, 319, 262, 938, 14158, 84, 3187, 30, 46506, 357, 46506, 9204, 41007, 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...
[ 4919, 881, 389, 5827, 3571, 23, 12, 26912, 940, 338, 5400, 287, 2612, 4873, 938, 8630, 319, 262, 938, 14158, 84, 3187, 3688, 284, 262, 1988, 1218, 284, 938, 8630, 319, 262, 938, 14158, 84, 3187, 30, 46506, 357, 46506, 9204, 41007, 2...
what is maximum age of patients whose marital status is single and year of birth is greater than 2073?
SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.dob_year > "2073"
[ 10919, 318, 5415, 2479, 286, 3871, 3025, 29555, 3722, 318, 2060, 290, 614, 286, 4082, 318, 3744, 621, 1160, 4790, 30, 46506, 25882, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 3876, 1287, 62, 13376, 796, 366, 50, 2751, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5415, 2479, 286, 3871, 3025, 29555, 3722, 318, 2060, 290, 614, 286, 4082, 318, 3744, 621, 1160, 4790, 30, 46506, 25882, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 3876, 1287, 62, 13376, 796, 366, 50, 2751, ...
What is the highest number of loss with a 7 position and more than 45 goals?
SELECT MAX(losses) FROM table_name_73 WHERE position = 7 AND goals_for > 45
[ 2061, 318, 262, 4511, 1271, 286, 2994, 351, 257, 767, 2292, 290, 517, 621, 4153, 4661, 30, 46506, 25882, 7, 22462, 274, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 2292, 796, 767, 5357, 4661, 62, 1640, 1875, 4153 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 1271, 286, 2994, 351, 257, 767, 2292, 290, 517, 621, 4153, 4661, 30, 46506, 25882, 7, 22462, 274, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 2292, 796, 767, 5357, 4661, 62, 1640, 1875, 4153 ]
Find the name of the project for which a scientist whose name contains Smith is assigned to.
SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.ssn WHERE T3.name LIKE '%Smith%'
[ 16742, 262, 1438, 286, 262, 1628, 329, 543, 257, 11444, 3025, 1438, 4909, 4176, 318, 8686, 284, 13, 46506, 309, 17, 13, 3672, 16034, 8686, 1462, 7054, 309, 16, 32357, 1268, 4493, 7054, 309, 17, 6177, 309, 16, 13, 16302, 796, 309, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 1438, 286, 262, 1628, 329, 543, 257, 11444, 3025, 1438, 4909, 4176, 318, 8686, 284, 13, 46506, 309, 17, 13, 3672, 16034, 8686, 1462, 7054, 309, 16, 32357, 1268, 4493, 7054, 309, 17, 6177, 309, 16, 13, 16302, 796, 309, 17...
what is the total number of operation ?
SELECT COUNT("operation") FROM table_204_313
[ 10919, 318, 262, 2472, 1271, 286, 4905, 5633, 46506, 327, 28270, 7203, 27184, 4943, 16034, 3084, 62, 18638, 62, 25838 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 2472, 1271, 286, 4905, 5633, 46506, 327, 28270, 7203, 27184, 4943, 16034, 3084, 62, 18638, 62, 25838 ]
Compare the number of winery of the wines whose price is bigger than 100, and could you sort total number from low to high order?
SELECT Winery, COUNT(Winery) FROM wine WHERE Price > 100 GROUP BY Winery ORDER BY COUNT(Winery)
[ 41488, 262, 1271, 286, 1592, 1924, 286, 262, 30680, 3025, 2756, 318, 5749, 621, 1802, 11, 290, 714, 345, 3297, 2472, 1271, 422, 1877, 284, 1029, 1502, 30, 46506, 7178, 1924, 11, 327, 28270, 7, 54, 15451, 8, 16034, 8237, 33411, 7886, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 41488, 262, 1271, 286, 1592, 1924, 286, 262, 30680, 3025, 2756, 318, 5749, 621, 1802, 11, 290, 714, 345, 3297, 2472, 1271, 422, 1877, 284, 1029, 1502, 30, 46506, 7178, 1924, 11, 327, 28270, 7, 54, 15451, 8, 16034, 8237, 33411, 7886, ...
Who was the host team for the game on December 27?
SELECT "Host Team" FROM table_68752 WHERE "Date" = 'december 27'
[ 8241, 373, 262, 2583, 1074, 329, 262, 983, 319, 3426, 2681, 30, 46506, 366, 17932, 4816, 1, 16034, 3084, 62, 3104, 43665, 33411, 366, 10430, 1, 796, 705, 2934, 3273, 2681, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 2583, 1074, 329, 262, 983, 319, 3426, 2681, 30, 46506, 366, 17932, 4816, 1, 16034, 3084, 62, 3104, 43665, 33411, 366, 10430, 1, 796, 705, 2934, 3273, 2681, 6 ]
Find the name of customers who have more than one loan.
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1
[ 16742, 262, 1438, 286, 4297, 508, 423, 517, 621, 530, 8063, 13, 46506, 309, 16, 13, 66, 436, 62, 3672, 16034, 6491, 7054, 309, 16, 32357, 1268, 8063, 7054, 309, 17, 6177, 309, 16, 13, 66, 436, 62, 312, 796, 309, 17, 13, 66, 436,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 1438, 286, 4297, 508, 423, 517, 621, 530, 8063, 13, 46506, 309, 16, 13, 66, 436, 62, 3672, 16034, 6491, 7054, 309, 16, 32357, 1268, 8063, 7054, 309, 17, 6177, 309, 16, 13, 66, 436, 62, 312, 796, 309, 17, 13, 66, 436,...
What value for 2013 corresponds to the US Open Tournament?
SELECT 2013 FROM table_name_55 WHERE tournament = "us open"
[ 2061, 1988, 329, 2211, 24866, 284, 262, 1294, 4946, 9595, 30, 46506, 2211, 16034, 3084, 62, 3672, 62, 2816, 33411, 7756, 796, 366, 385, 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 ]
[ 2061, 1988, 329, 2211, 24866, 284, 262, 1294, 4946, 9595, 30, 46506, 2211, 16034, 3084, 62, 3672, 62, 2816, 33411, 7756, 796, 366, 385, 1280, 1 ]
What was the earliest year for the Ligier Gitanes?
SELECT MIN(year) FROM table_name_46 WHERE entrant = "ligier gitanes"
[ 2061, 373, 262, 14555, 614, 329, 262, 406, 328, 959, 15151, 7305, 30, 46506, 20625, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 3510, 33411, 920, 5250, 796, 366, 4604, 959, 17606, 7305, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14555, 614, 329, 262, 406, 328, 959, 15151, 7305, 30, 46506, 20625, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 3510, 33411, 920, 5250, 796, 366, 4604, 959, 17606, 7305, 1 ]
how many times did he finish in the top three ?
SELECT COUNT(*) FROM table_203_339 WHERE "finish" <= 3
[ 4919, 867, 1661, 750, 339, 5461, 287, 262, 1353, 1115, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 22416, 62, 29626, 33411, 366, 15643, 680, 1, 19841, 513 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 1661, 750, 339, 5461, 287, 262, 1353, 1115, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 22416, 62, 29626, 33411, 366, 15643, 680, 1, 19841, 513 ]
how many days have pass since the last time patient 31854 stayed in careunit ccu during the current hospital visit?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31854 AND admissions.dischtime IS NULL) AND transfers.careunit = 'ccu' ORDER BY transfers.intime DESC LIMIT 1
[ 4919, 867, 1528, 423, 1208, 1201, 262, 938, 640, 5827, 39320, 4051, 9658, 287, 1337, 20850, 269, 27399, 1141, 262, 1459, 4436, 3187, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1528, 423, 1208, 1201, 262, 938, 640, 5827, 39320, 4051, 9658, 287, 1337, 20850, 269, 27399, 1141, 262, 1459, 4436, 3187, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, ...
When the launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there?
SELECT COUNT("Carrier") FROM table_22910 WHERE "Frequency" = '900MHz and 1800MHz' AND "Launch date (dd.mm.yyyy)" = '14.09.2005'
[ 2215, 262, 4219, 3128, 318, 1478, 13, 2931, 13, 14315, 11, 290, 262, 8373, 318, 15897, 76, 32179, 290, 21431, 76, 32179, 11, 703, 867, 16651, 389, 612, 30, 46506, 327, 28270, 7203, 9914, 5277, 4943, 16034, 3084, 62, 23539, 940, 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...
[ 2215, 262, 4219, 3128, 318, 1478, 13, 2931, 13, 14315, 11, 290, 262, 8373, 318, 15897, 76, 32179, 290, 21431, 76, 32179, 11, 703, 867, 16651, 389, 612, 30, 46506, 327, 28270, 7203, 9914, 5277, 4943, 16034, 3084, 62, 23539, 940, 33411,...
What is the election year of the president with a Birth State of lost connecticut?
SELECT AVG("Election Year") FROM table_11586 WHERE "Birth State" = 'lost connecticut'
[ 2061, 318, 262, 3071, 614, 286, 262, 1893, 351, 257, 17647, 1812, 286, 2626, 2018, 13554, 30, 46506, 35224, 7203, 36, 1564, 6280, 4943, 16034, 3084, 62, 1157, 29796, 33411, 366, 38480, 1812, 1, 796, 705, 33224, 2018, 13554, 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, 3071, 614, 286, 262, 1893, 351, 257, 17647, 1812, 286, 2626, 2018, 13554, 30, 46506, 35224, 7203, 36, 1564, 6280, 4943, 16034, 3084, 62, 1157, 29796, 33411, 366, 38480, 1812, 1, 796, 705, 33224, 2018, 13554, 6 ]
Which country is the athlete latt shwe zin with notes of sc/d from?
SELECT country FROM table_name_56 WHERE notes = "sc/d" AND athlete = "latt shwe zin"
[ 13828, 1499, 318, 262, 16076, 47240, 427, 732, 1976, 259, 351, 4710, 286, 629, 14, 67, 422, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3980, 33411, 4710, 796, 366, 1416, 14, 67, 1, 5357, 16076, 796, 366, 75, 1078, 427, 732, 1976, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 262, 16076, 47240, 427, 732, 1976, 259, 351, 4710, 286, 629, 14, 67, 422, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3980, 33411, 4710, 796, 366, 1416, 14, 67, 1, 5357, 16076, 796, 366, 75, 1078, 427, 732, 1976, ...
provide the number of patients whose primary disease is bowel obstruction and admission year is less than 2203?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BOWEL OBSTRUCTION" AND demographic.admityear < "2203"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 35711, 28118, 290, 13938, 614, 318, 1342, 621, 15629, 18, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15234, 485, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 35711, 28118, 290, 13938, 614, 318, 1342, 621, 15629, 18, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 59...
provide me with the location and type of admission for patient with patient id 55094.
SELECT demographic.admission_type, demographic.admission_location FROM demographic WHERE demographic.subject_id = "55094"
[ 15234, 485, 502, 351, 262, 4067, 290, 2099, 286, 13938, 329, 5827, 351, 5827, 4686, 25240, 5824, 13, 46506, 16728, 13, 324, 3411, 62, 4906, 11, 16728, 13, 324, 3411, 62, 24886, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 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 ]
[ 15234, 485, 502, 351, 262, 4067, 290, 2099, 286, 13938, 329, 5827, 351, 5827, 4686, 25240, 5824, 13, 46506, 16728, 13, 324, 3411, 62, 4906, 11, 16728, 13, 324, 3411, 62, 24886, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366,...
What week ended in a result of w 30-3, and had an attendance less than 62,795?
SELECT MIN("Week") FROM table_38032 WHERE "Result" = 'w 30-3' AND "Attendance" < '62,795'
[ 2061, 1285, 4444, 287, 257, 1255, 286, 266, 1542, 12, 18, 11, 290, 550, 281, 14858, 1342, 621, 8190, 11, 41544, 30, 46506, 20625, 7203, 20916, 4943, 16034, 3084, 62, 23734, 2624, 33411, 366, 23004, 1, 796, 705, 86, 1542, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1285, 4444, 287, 257, 1255, 286, 266, 1542, 12, 18, 11, 290, 550, 281, 14858, 1342, 621, 8190, 11, 41544, 30, 46506, 20625, 7203, 20916, 4943, 16034, 3084, 62, 23734, 2624, 33411, 366, 23004, 1, 796, 705, 86, 1542, 12, 18, 6, ...
How many codes have a density of 621.68, and a Land area (hectares) larger than 75.28?
SELECT SUM("Code") FROM table_49916 WHERE "Density (inh./km\u00b2)" = '621.68' AND "Land area (hectares)" > '75.28'
[ 2437, 867, 12416, 423, 257, 12109, 286, 718, 2481, 13, 3104, 11, 290, 257, 6379, 1989, 357, 258, 310, 3565, 8, 4025, 621, 5441, 13, 2078, 30, 46506, 35683, 7203, 10669, 4943, 16034, 3084, 62, 28324, 1433, 33411, 366, 35, 6377, 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...
[ 2437, 867, 12416, 423, 257, 12109, 286, 718, 2481, 13, 3104, 11, 290, 257, 6379, 1989, 357, 258, 310, 3565, 8, 4025, 621, 5441, 13, 2078, 30, 46506, 35683, 7203, 10669, 4943, 16034, 3084, 62, 28324, 1433, 33411, 366, 35, 6377, 357, ...
what is the rank when the time is 3:12.40?
SELECT SUM("Rank") FROM table_46297 WHERE "Time" = '3:12.40'
[ 10919, 318, 262, 4279, 618, 262, 640, 318, 513, 25, 1065, 13, 1821, 30, 46506, 35683, 7203, 27520, 4943, 16034, 3084, 62, 3510, 26561, 33411, 366, 7575, 1, 796, 705, 18, 25, 1065, 13, 1821, 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 ]
[ 10919, 318, 262, 4279, 618, 262, 640, 318, 513, 25, 1065, 13, 1821, 30, 46506, 35683, 7203, 27520, 4943, 16034, 3084, 62, 3510, 26561, 33411, 366, 7575, 1, 796, 705, 18, 25, 1065, 13, 1821, 6 ]
provide the number of patients whose language is russ and diagnoses short title is proteus infection nos?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.language = "RUSS" AND diagnoses.short_title = "Proteus infection NOS"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 3303, 318, 374, 1046, 290, 40567, 1790, 3670, 318, 5915, 385, 10280, 43630, 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...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 3303, 318, 374, 1046, 290, 40567, 1790, 3670, 318, 5915, 385, 10280, 43630, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, ...
How many different types are allocated to the institution in Bridgewater, Massachusetts?
SELECT COUNT("Type") FROM table_3495 WHERE "Location" = 'Bridgewater, Massachusetts'
[ 2437, 867, 1180, 3858, 389, 19171, 284, 262, 9901, 287, 48218, 11, 10140, 30, 46506, 327, 28270, 7203, 6030, 4943, 16034, 3084, 62, 2682, 3865, 33411, 366, 14749, 1, 796, 705, 33, 6058, 40843, 11, 10140, 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 ]
[ 2437, 867, 1180, 3858, 389, 19171, 284, 262, 9901, 287, 48218, 11, 10140, 30, 46506, 327, 28270, 7203, 6030, 4943, 16034, 3084, 62, 2682, 3865, 33411, 366, 14749, 1, 796, 705, 33, 6058, 40843, 11, 10140, 6 ]
Name the number of surfaces for 4-6, 2-6
SELECT COUNT("Surface") FROM table_26420 WHERE "Score" = '4-6, 2-6'
[ 5376, 262, 1271, 286, 16649, 329, 604, 12, 21, 11, 362, 12, 21, 46506, 327, 28270, 7203, 14214, 2550, 4943, 16034, 3084, 62, 18897, 1238, 33411, 366, 26595, 1, 796, 705, 19, 12, 21, 11, 362, 12, 21, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 1271, 286, 16649, 329, 604, 12, 21, 11, 362, 12, 21, 46506, 327, 28270, 7203, 14214, 2550, 4943, 16034, 3084, 62, 18897, 1238, 33411, 366, 26595, 1, 796, 705, 19, 12, 21, 11, 362, 12, 21, 6 ]
How many different values if the number is high rebounds can be found for the game on March 13?
SELECT COUNT(high_rebounds) FROM table_13619027_9 WHERE date = "March 13"
[ 2437, 867, 1180, 3815, 611, 262, 1271, 318, 1029, 18841, 460, 307, 1043, 329, 262, 983, 319, 2805, 1511, 30, 46506, 327, 28270, 7, 8929, 62, 34806, 3733, 8, 16034, 3084, 62, 20809, 19782, 1983, 62, 24, 33411, 3128, 796, 366, 16192, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3815, 611, 262, 1271, 318, 1029, 18841, 460, 307, 1043, 329, 262, 983, 319, 2805, 1511, 30, 46506, 327, 28270, 7, 8929, 62, 34806, 3733, 8, 16034, 3084, 62, 20809, 19782, 1983, 62, 24, 33411, 3128, 796, 366, 16192, ...
In which year did he finish 8th?
SELECT year FROM table_name_3 WHERE result = "8th"
[ 818, 543, 614, 750, 339, 5461, 807, 400, 30, 46506, 614, 16034, 3084, 62, 3672, 62, 18, 33411, 1255, 796, 366, 23, 400, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 818, 543, 614, 750, 339, 5461, 807, 400, 30, 46506, 614, 16034, 3084, 62, 3672, 62, 18, 33411, 1255, 796, 366, 23, 400, 1 ]
has patient 028-62326 been administered any volume (ml) epinephrine until 11/2105?
SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-62326')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutpu...
[ 10134, 5827, 657, 2078, 12, 46872, 2075, 587, 17169, 597, 6115, 357, 4029, 8, 2462, 500, 47723, 1566, 1367, 14, 17, 13348, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 10337, 22915, 33411, 10337, 22915, 13, 26029, 20850, 31712, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10134, 5827, 657, 2078, 12, 46872, 2075, 587, 17169, 597, 6115, 357, 4029, 8, 2462, 500, 47723, 1566, 1367, 14, 17, 13348, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 10337, 22915, 33411, 10337, 22915, 13, 26029, 20850, 31712, 31...
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and code , and group by attribute name, display from high to low by the y axis.
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Code DESC
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 2438, 837, 290, 1448, 416, 11688, 1438, 11, 3359, 422, 1029, 284, 1877, 416, 262, 331, 16488, 13, 46506, 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, 1...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 2438, 837, 290, 1448, 416, 11688, 1438, 11, 3359, 422, 1029, 284, 1877, 416, 262, 331, 16488, 13, 46506, 309, 1...
Show all majors and corresponding number of students.
SELECT major, COUNT(*) FROM Student GROUP BY major
[ 15307, 477, 26353, 290, 11188, 1271, 286, 2444, 13, 46506, 1688, 11, 327, 28270, 7, 28104, 16034, 13613, 44441, 11050, 1688 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 477, 26353, 290, 11188, 1271, 286, 2444, 13, 46506, 1688, 11, 327, 28270, 7, 28104, 16034, 13613, 44441, 11050, 1688 ]
which typ -lrb- s -rrb- had the longest construction times ?
SELECT "typ" FROM table_204_108 ORDER BY "construction time" - "construction time" DESC LIMIT 1
[ 4758, 2170, 532, 14050, 65, 12, 264, 532, 21062, 65, 12, 550, 262, 14069, 5103, 1661, 5633, 46506, 366, 28004, 1, 16034, 3084, 62, 18638, 62, 15711, 38678, 11050, 366, 9979, 2762, 640, 1, 532, 366, 9979, 2762, 640, 1, 22196, 34, 275...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 2170, 532, 14050, 65, 12, 264, 532, 21062, 65, 12, 550, 262, 14069, 5103, 1661, 5633, 46506, 366, 28004, 1, 16034, 3084, 62, 18638, 62, 15711, 38678, 11050, 366, 9979, 2762, 640, 1, 532, 366, 9979, 2762, 640, 1, 22196, 34, 275...
What is the highest pick of scott turner, who has a round greater than 2?
SELECT MAX(pick) FROM table_name_37 WHERE round > 2 AND name = "scott turner"
[ 2061, 318, 262, 4511, 2298, 286, 629, 1252, 1210, 263, 11, 508, 468, 257, 2835, 3744, 621, 362, 30, 46506, 25882, 7, 27729, 8, 16034, 3084, 62, 3672, 62, 2718, 33411, 2835, 1875, 362, 5357, 1438, 796, 366, 1416, 1252, 1210, 263, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2298, 286, 629, 1252, 1210, 263, 11, 508, 468, 257, 2835, 3744, 621, 362, 30, 46506, 25882, 7, 27729, 8, 16034, 3084, 62, 3672, 62, 2718, 33411, 2835, 1875, 362, 5357, 1438, 796, 366, 1416, 1252, 1210, 263, 1 ]
What is the Match with a Prize of money that is 1,000,000?
SELECT "Matches" FROM table_42444 WHERE "Prize money" = '£1,000,000'
[ 2061, 318, 262, 13225, 351, 257, 15895, 286, 1637, 326, 318, 352, 11, 830, 11, 830, 30, 46506, 366, 19044, 2052, 1, 16034, 3084, 62, 40090, 2598, 33411, 366, 34487, 2736, 1637, 1, 796, 705, 14988, 16, 11, 830, 11, 830, 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, 318, 262, 13225, 351, 257, 15895, 286, 1637, 326, 318, 352, 11, 830, 11, 830, 30, 46506, 366, 19044, 2052, 1, 16034, 3084, 62, 40090, 2598, 33411, 366, 34487, 2736, 1637, 1, 796, 705, 14988, 16, 11, 830, 11, 830, 6 ]
count the number of patients whose discharge location is long term care hospital and primary disease is coronary artery disease?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "LONG TERM CARE HOSPITAL" AND demographic.diagnosis = "CORONARY ARTERY DISEASE"
[ 9127, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 890, 3381, 1337, 4436, 290, 4165, 4369, 318, 37151, 37646, 4369, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 6381, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17655, 4067, 318, 890, 3381, 1337, 4436, 290, 4165, 4369, 318, 37151, 37646, 4369, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 6381, 1...
Will the NURS 556 course be offered in Spring-Summer 2002 ?
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'NURS' AND course.number = 556 AND semester.semester = 'Spring-Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2002
[ 8743, 262, 399, 4261, 50, 642, 3980, 1781, 307, 4438, 287, 8225, 12, 33560, 6244, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 8743, 262, 399, 4261, 50, 642, 3980, 1781, 307, 4438, 287, 8225, 12, 33560, 6244, 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, ...
how many party with dbeingtrict being alabama 6
SELECT COUNT(party) FROM table_1342270_3 WHERE district = "Alabama 6"
[ 4919, 867, 2151, 351, 288, 11873, 83, 2012, 852, 435, 8809, 718, 46506, 327, 28270, 7, 10608, 8, 16034, 3084, 62, 19880, 1828, 2154, 62, 18, 33411, 4783, 796, 366, 49177, 718, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2151, 351, 288, 11873, 83, 2012, 852, 435, 8809, 718, 46506, 327, 28270, 7, 10608, 8, 16034, 3084, 62, 19880, 1828, 2154, 62, 18, 33411, 4783, 796, 366, 49177, 718, 1 ]
Lucretius and Roman Epicureanism next Winter is being taught by who ?
SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN cou...
[ 22946, 1186, 3754, 290, 7993, 16781, 495, 48162, 1306, 10633, 318, 852, 7817, 416, 508, 5633, 46506, 360, 8808, 1268, 4177, 21187, 13, 3672, 16034, 21187, 3268, 21479, 32357, 1268, 6011, 62, 259, 7249, 273, 6177, 6011, 62, 259, 7249, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 22946, 1186, 3754, 290, 7993, 16781, 495, 48162, 1306, 10633, 318, 852, 7817, 416, 508, 5633, 46506, 360, 8808, 1268, 4177, 21187, 13, 3672, 16034, 21187, 3268, 21479, 32357, 1268, 6011, 62, 259, 7249, 273, 6177, 6011, 62, 259, 7249, 27...
What team has Steinar Kaldal, a guard / forward?
SELECT "Team" FROM table_34354 WHERE "Position" = 'guard / forward' AND "Player" = 'steinar kaldal'
[ 2061, 1074, 468, 15215, 283, 509, 1940, 282, 11, 257, 4860, 1220, 2651, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 2682, 32182, 33411, 366, 26545, 1, 796, 705, 14864, 1220, 2651, 6, 5357, 366, 14140, 1, 796, 705, 5714, 283, 479, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1074, 468, 15215, 283, 509, 1940, 282, 11, 257, 4860, 1220, 2651, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 2682, 32182, 33411, 366, 26545, 1, 796, 705, 14864, 1220, 2651, 6, 5357, 366, 14140, 1, 796, 705, 5714, 283, 479, 194...
Which Open 2nd VIII had a U15 6th Quad of BGS and a U16 1st VII of TSS?
SELECT "Open 2nd VIII" FROM table_52134 WHERE "U15 6th Quad" = 'bgs' AND "U16 1st VIII" = 'tss'
[ 13828, 4946, 362, 358, 25197, 550, 257, 471, 1314, 718, 400, 20648, 286, 347, 14313, 290, 257, 471, 1433, 352, 301, 19691, 286, 309, 5432, 30, 46506, 366, 11505, 362, 358, 25197, 1, 16034, 3084, 62, 4309, 19880, 33411, 366, 52, 1314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4946, 362, 358, 25197, 550, 257, 471, 1314, 718, 400, 20648, 286, 347, 14313, 290, 257, 471, 1433, 352, 301, 19691, 286, 309, 5432, 30, 46506, 366, 11505, 362, 358, 25197, 1, 16034, 3084, 62, 4309, 19880, 33411, 366, 52, 1314, ...
what were the five most frequently prescribed drugs to patients who previously received normal saline administration - fluid bolus (250-1000mls) within 2 months until 3 years ago?
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'normal saline administration - fluid bolus (250-10...
[ 10919, 547, 262, 1936, 749, 6777, 14798, 5010, 284, 3871, 508, 4271, 2722, 3487, 47375, 3662, 532, 11711, 11572, 385, 357, 9031, 12, 12825, 4029, 82, 8, 1626, 362, 1933, 1566, 513, 812, 2084, 30, 46506, 256, 18, 13, 30349, 3672, 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...
[ 10919, 547, 262, 1936, 749, 6777, 14798, 5010, 284, 3871, 508, 4271, 2722, 3487, 47375, 3662, 532, 11711, 11572, 385, 357, 9031, 12, 12825, 4029, 82, 8, 1626, 362, 1933, 1566, 513, 812, 2084, 30, 46506, 256, 18, 13, 30349, 3672, 16034...
CSCW Up/DownMods by age group.
SELECT VoteType, COUNT(Suggested_Edits) AS Suggested_Edits, age_cat, COUNT(DISTINCT ownerid) AS nusers FROM (SELECT SuggestedEdits.Id AS Suggested_Edits, SuggestedEdits.OwnerUserId AS ownerid, CASE WHEN age >= 15 AND age <= 39 THEN 'younger' WHEN age > 39 AND age <= 70 THEN 'veteran' END AS age_cat, VoteTypes.Name AS V...
[ 34, 6173, 54, 3205, 14, 8048, 24239, 416, 2479, 1448, 13, 46506, 19175, 6030, 11, 327, 28270, 7, 43857, 276, 62, 7407, 896, 8, 7054, 35042, 276, 62, 7407, 896, 11, 2479, 62, 9246, 11, 327, 28270, 7, 35, 8808, 1268, 4177, 4870, 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...
[ 34, 6173, 54, 3205, 14, 8048, 24239, 416, 2479, 1448, 13, 46506, 19175, 6030, 11, 327, 28270, 7, 43857, 276, 62, 7407, 896, 8, 7054, 35042, 276, 62, 7407, 896, 11, 2479, 62, 9246, 11, 327, 28270, 7, 35, 8808, 1268, 4177, 4870, 312...
Who was the opponent for a game over 31 and a date over 30?
SELECT "Opponent" FROM table_47546 WHERE "Game" > '31' AND "Date" > '30'
[ 8241, 373, 262, 6125, 329, 257, 983, 625, 3261, 290, 257, 3128, 625, 1542, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 32576, 3510, 33411, 366, 8777, 1, 1875, 705, 3132, 6, 5357, 366, 10430, 1, 1875, 705, 1270, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 6125, 329, 257, 983, 625, 3261, 290, 257, 3128, 625, 1542, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 32576, 3510, 33411, 366, 8777, 1, 1875, 705, 3132, 6, 5357, 366, 10430, 1, 1875, 705, 1270, 6 ]
give me the number of patients whose primary disease is aortic insufficiency\re-do sternotomy; aortic valve replacement and admission year is less than 2178?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " AND demographic.admityear < "2178"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 257, 419, 291, 1035, 1648, 19777, 59, 260, 12, 4598, 26370, 38385, 26, 257, 419, 291, 22580, 9014, 290, 13938, 614, 318, 1342, 621, 362, 23188, 30, 46506, 327, 28270, 7, 35, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 257, 419, 291, 1035, 1648, 19777, 59, 260, 12, 4598, 26370, 38385, 26, 257, 419, 291, 22580, 9014, 290, 13938, 614, 318, 1342, 621, 362, 23188, 30, 46506, 327, 28270, 7, 35, 8...
What year did Luke S Zettlemoyer publish the most papers
SELECT DISTINCT COUNT(DISTINCT paper.paperid), paper.year FROM author, paper, writes WHERE author.authorname LIKE 'Luke S Zettlemoyer' AND writes.authorid = author.authorid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY paper.year ORDER BY COUNT(DISTINCT paper.paperid) DESC
[ 2061, 614, 750, 11336, 311, 1168, 3087, 10671, 35301, 7715, 262, 749, 9473, 46506, 360, 8808, 1268, 4177, 327, 28270, 7, 35, 8808, 1268, 4177, 3348, 13, 20189, 312, 828, 3348, 13, 1941, 16034, 1772, 11, 3348, 11, 6797, 33411, 1772, 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...
[ 2061, 614, 750, 11336, 311, 1168, 3087, 10671, 35301, 7715, 262, 749, 9473, 46506, 360, 8808, 1268, 4177, 327, 28270, 7, 35, 8808, 1268, 4177, 3348, 13, 20189, 312, 828, 3348, 13, 1941, 16034, 1772, 11, 3348, 11, 6797, 33411, 1772, 13...
how many hours has it been since patient 013-33898 was admitted to the intensive care unit?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '013-33898' AND patient.unitdischargetime IS NULL
[ 4919, 867, 2250, 468, 340, 587, 1201, 5827, 5534, 18, 12, 28460, 4089, 373, 6848, 284, 262, 18590, 1337, 4326, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, 12789, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 587, 1201, 5827, 5534, 18, 12, 28460, 4089, 373, 6848, 284, 262, 18590, 1337, 4326, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, 12789, ...
What is the average when interview is 9.465 and evening gown is less than 9.454?
SELECT SUM("Average") FROM table_48905 WHERE "Interview" = '9.465' AND "Evening Gown" < '9.454'
[ 2061, 318, 262, 2811, 618, 2720, 318, 860, 13, 42018, 290, 6180, 33323, 318, 1342, 621, 860, 13, 34229, 30, 46506, 35683, 7203, 26287, 4943, 16034, 3084, 62, 35890, 2713, 33411, 366, 39945, 1, 796, 705, 24, 13, 42018, 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, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 618, 2720, 318, 860, 13, 42018, 290, 6180, 33323, 318, 1342, 621, 860, 13, 34229, 30, 46506, 35683, 7203, 26287, 4943, 16034, 3084, 62, 35890, 2713, 33411, 366, 39945, 1, 796, 705, 24, 13, 42018, 6, 5357, 366, ...
when was first time patient 93571 was diagnosed in the first hospital encounter with dmi keto nt st uncntrld?
SELECT diagnoses_icd.charttime FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'dmi keto nt st uncntrld') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 93571 AND NOT admi...
[ 12518, 373, 717, 640, 5827, 860, 2327, 4869, 373, 14641, 287, 262, 717, 4436, 8791, 351, 288, 11632, 22354, 78, 299, 83, 336, 4591, 429, 81, 335, 30, 46506, 40567, 62, 291, 67, 13, 40926, 2435, 16034, 40567, 62, 291, 67, 33411, 4056...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 717, 640, 5827, 860, 2327, 4869, 373, 14641, 287, 262, 717, 4436, 8791, 351, 288, 11632, 22354, 78, 299, 83, 336, 4591, 429, 81, 335, 30, 46506, 40567, 62, 291, 67, 13, 40926, 2435, 16034, 40567, 62, 291, 67, 33411, 4056...
Visualize the relationship between Team_ID and School_ID , and group by attribute ACC_Home.
SELECT Team_ID, School_ID FROM basketball_match GROUP BY ACC_Home
[ 36259, 1096, 262, 2776, 1022, 4816, 62, 2389, 290, 3961, 62, 2389, 837, 290, 1448, 416, 11688, 15859, 62, 16060, 13, 46506, 4816, 62, 2389, 11, 3961, 62, 2389, 16034, 9669, 62, 15699, 44441, 11050, 15859, 62, 16060 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15859, 62, 16060, 13, 46506, 4816, 62, 2389, 11, 3961, 62, 2389, 16034, 9669, 62, 15699, 44441, 11050, 15859, 62, 16060 ]
Name the player that is 1.85 m
SELECT "Player" FROM table_73573 WHERE "Height (m)" = '1.85'
[ 5376, 262, 2137, 326, 318, 352, 13, 5332, 285, 46506, 366, 14140, 1, 16034, 3084, 62, 22, 2327, 4790, 33411, 366, 23106, 357, 76, 16725, 796, 705, 16, 13, 5332, 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, 2137, 326, 318, 352, 13, 5332, 285, 46506, 366, 14140, 1, 16034, 3084, 62, 22, 2327, 4790, 33411, 366, 23106, 357, 76, 16725, 796, 705, 16, 13, 5332, 6 ]
i'm curious as to how many days have passed since patient 027-142451's first intake of continuous infusion meds on the current icu visit?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =...
[ 72, 1101, 11040, 355, 284, 703, 867, 1528, 423, 3804, 1201, 5827, 657, 1983, 12, 1415, 1731, 4349, 338, 717, 10337, 286, 12948, 35547, 1117, 82, 319, 262, 1459, 14158, 84, 3187, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 72, 1101, 11040, 355, 284, 703, 867, 1528, 423, 3804, 1201, 5827, 657, 1983, 12, 1415, 1731, 4349, 338, 717, 10337, 286, 12948, 35547, 1117, 82, 319, 262, 1459, 14158, 84, 3187, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4,...
How many times was the overall attendance 17807?
SELECT COUNT(overall_attendance) FROM table_2771237_1 WHERE average_attendance = 17807
[ 2437, 867, 1661, 373, 262, 4045, 14858, 1596, 36928, 30, 46506, 327, 28270, 7, 2502, 439, 62, 1078, 437, 590, 8, 16034, 3084, 62, 27019, 1065, 2718, 62, 16, 33411, 2811, 62, 1078, 437, 590, 796, 1596, 36928 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1661, 373, 262, 4045, 14858, 1596, 36928, 30, 46506, 327, 28270, 7, 2502, 439, 62, 1078, 437, 590, 8, 16034, 3084, 62, 27019, 1065, 2718, 62, 16, 33411, 2811, 62, 1078, 437, 590, 796, 1596, 36928 ]
During the Formula One World Championships, which engine was used in 1965?
SELECT engine FROM table_name_80 WHERE year = 1965
[ 7191, 262, 19639, 1881, 2159, 24782, 11, 543, 3113, 373, 973, 287, 17672, 30, 46506, 3113, 16034, 3084, 62, 3672, 62, 1795, 33411, 614, 796, 17672 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 7191, 262, 19639, 1881, 2159, 24782, 11, 543, 3113, 373, 973, 287, 17672, 30, 46506, 3113, 16034, 3084, 62, 3672, 62, 1795, 33411, 614, 796, 17672 ]
Where did the Jet's play with an attendance of 11,309?
SELECT "Game site" FROM table_75675 WHERE "Attendance" = '11,309'
[ 8496, 750, 262, 19013, 338, 711, 351, 281, 14858, 286, 1367, 11, 26895, 30, 46506, 366, 8777, 2524, 1, 16034, 3084, 62, 38219, 2425, 33411, 366, 8086, 437, 590, 1, 796, 705, 1157, 11, 26895, 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 ]
[ 8496, 750, 262, 19013, 338, 711, 351, 281, 14858, 286, 1367, 11, 26895, 30, 46506, 366, 8777, 2524, 1, 16034, 3084, 62, 38219, 2425, 33411, 366, 8086, 437, 590, 1, 796, 705, 1157, 11, 26895, 6 ]
Give me a bar chart for the total number of each budget type code, I want to sort x axis in asc order.
SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code ORDER BY Budget_Type_Code
[ 23318, 502, 257, 2318, 8262, 329, 262, 2472, 1271, 286, 1123, 4466, 2099, 2438, 11, 314, 765, 284, 3297, 2124, 16488, 287, 10570, 1502, 13, 46506, 15401, 62, 6030, 62, 10669, 11, 327, 28270, 7, 28104, 16034, 33267, 62, 4480, 62, 16870...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 23318, 502, 257, 2318, 8262, 329, 262, 2472, 1271, 286, 1123, 4466, 2099, 2438, 11, 314, 765, 284, 3297, 2124, 16488, 287, 10570, 1502, 13, 46506, 15401, 62, 6030, 62, 10669, 11, 327, 28270, 7, 28104, 16034, 33267, 62, 4480, 62, 16870...
give the total amount of glucagon given to patient 22897 until 11/27/2104.
SELECT SUM(inputevents_cv.amount) 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 = 22897)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.lab...
[ 26535, 262, 2472, 2033, 286, 14182, 1840, 1813, 284, 5827, 29041, 5607, 1566, 1367, 14, 1983, 14, 17, 13464, 13, 46506, 35683, 7, 259, 79, 1133, 85, 658, 62, 33967, 13, 17287, 8, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 262, 2472, 2033, 286, 14182, 1840, 1813, 284, 5827, 29041, 5607, 1566, 1367, 14, 1983, 14, 17, 13464, 13, 46506, 35683, 7, 259, 79, 1133, 85, 658, 62, 33967, 13, 17287, 8, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287,...
What is the branding for fm 88.9?
SELECT "Branding" FROM table_66083 WHERE "Frequency" = 'fm 88.9'
[ 2061, 318, 262, 24150, 329, 277, 76, 9193, 13, 24, 30, 46506, 366, 9414, 27225, 1, 16034, 3084, 62, 39885, 5999, 33411, 366, 37, 28707, 1, 796, 705, 38353, 9193, 13, 24, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 24150, 329, 277, 76, 9193, 13, 24, 30, 46506, 366, 9414, 27225, 1, 16034, 3084, 62, 39885, 5999, 33411, 366, 37, 28707, 1, 796, 705, 38353, 9193, 13, 24, 6 ]
which game was later at night , fiu or northern colorado ?
SELECT "opponent" FROM table_204_168 WHERE "opponent" IN ('fiu', 'northern colorado') ORDER BY "time" DESC LIMIT 1
[ 4758, 983, 373, 1568, 379, 1755, 837, 277, 16115, 393, 7840, 3124, 4533, 5633, 46506, 366, 10365, 3471, 1, 16034, 3084, 62, 18638, 62, 14656, 33411, 366, 10365, 3471, 1, 3268, 19203, 12463, 84, 3256, 705, 77, 4824, 3124, 4533, 11537, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 983, 373, 1568, 379, 1755, 837, 277, 16115, 393, 7840, 3124, 4533, 5633, 46506, 366, 10365, 3471, 1, 16034, 3084, 62, 18638, 62, 14656, 33411, 366, 10365, 3471, 1, 3268, 19203, 12463, 84, 3256, 705, 77, 4824, 3124, 4533, 11537, ...
When the home team was South Melbourne, what did the away team score?
SELECT "Away team score" FROM table_52432 WHERE "Home team" = 'south melbourne'
[ 2215, 262, 1363, 1074, 373, 2520, 14819, 11, 644, 750, 262, 1497, 1074, 4776, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 48057, 2624, 33411, 366, 16060, 1074, 1, 796, 705, 35782, 7758, 12544, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 262, 1363, 1074, 373, 2520, 14819, 11, 644, 750, 262, 1497, 1074, 4776, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 48057, 2624, 33411, 366, 16060, 1074, 1, 796, 705, 35782, 7758, 12544, 6 ]
what is drug code and drug route of drug name lidocaine jelly 2% (urojet)?
SELECT prescriptions.formulary_drug_cd, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Lidocaine Jelly 2% (Urojet)"
[ 10919, 318, 2563, 2438, 290, 2563, 6339, 286, 2563, 1438, 19789, 420, 5718, 27644, 362, 4, 357, 1434, 31173, 19427, 46506, 34092, 13, 687, 377, 560, 62, 30349, 62, 10210, 11, 34092, 13, 38629, 16034, 34092, 33411, 34092, 13, 30349, 796,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 2563, 2438, 290, 2563, 6339, 286, 2563, 1438, 19789, 420, 5718, 27644, 362, 4, 357, 1434, 31173, 19427, 46506, 34092, 13, 687, 377, 560, 62, 30349, 62, 10210, 11, 34092, 13, 38629, 16034, 34092, 33411, 34092, 13, 30349, 796,...
Name the least points
SELECT MIN("Points") FROM table_25387
[ 5376, 262, 1551, 2173, 46506, 20625, 7203, 40710, 4943, 16034, 3084, 62, 1495, 32220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 1551, 2173, 46506, 20625, 7203, 40710, 4943, 16034, 3084, 62, 1495, 32220 ]
Which country's IATA is ika?
SELECT country FROM table_name_72 WHERE iata = "ika"
[ 13828, 1499, 338, 314, 13563, 318, 220, 9232, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 4761, 33411, 1312, 1045, 796, 366, 9232, 1 ]
[ 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, 338, 314, 13563, 318, 220, 9232, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 4761, 33411, 1312, 1045, 796, 366, 9232, 1 ]
What is the Power (kW) for the station located in Cebu?
SELECT power__kw_ FROM table_name_83 WHERE location = "cebu"
[ 2061, 318, 262, 4333, 357, 74, 54, 8, 329, 262, 4429, 5140, 287, 327, 1765, 84, 30, 46506, 1176, 834, 46265, 62, 16034, 3084, 62, 3672, 62, 5999, 33411, 4067, 796, 366, 344, 11110, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4333, 357, 74, 54, 8, 329, 262, 4429, 5140, 287, 327, 1765, 84, 30, 46506, 1176, 834, 46265, 62, 16034, 3084, 62, 3672, 62, 5999, 33411, 4067, 796, 366, 344, 11110, 1 ]
how many patients on main drug prescription have been diagnosed with other psoriasis?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Other psoriasis" AND prescriptions.drug_type = "MAIN"
[ 4919, 867, 3871, 319, 1388, 2563, 15077, 423, 587, 14641, 351, 584, 26692, 273, 48455, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 319, 1388, 2563, 15077, 423, 587, 14641, 351, 584, 26692, 273, 48455, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, ...
How long has Mel Daniels been playing?
SELECT "Experience" FROM table_25258 WHERE "Name" = 'Mel Daniels'
[ 2437, 890, 468, 5616, 28162, 587, 2712, 30, 46506, 366, 44901, 1, 16034, 3084, 62, 1495, 25600, 33411, 366, 5376, 1, 796, 705, 21102, 28162, 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 ]
[ 2437, 890, 468, 5616, 28162, 587, 2712, 30, 46506, 366, 44901, 1, 16034, 3084, 62, 1495, 25600, 33411, 366, 5376, 1, 796, 705, 21102, 28162, 6 ]
Get a user's deleted posts.
SELECT * FROM Posts WHERE DeletionDate != NULL
[ 3855, 257, 2836, 338, 13140, 6851, 13, 46506, 1635, 16034, 12043, 33411, 1024, 1616, 295, 10430, 14512, 15697 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3855, 257, 2836, 338, 13140, 6851, 13, 46506, 1635, 16034, 12043, 33411, 1024, 1616, 295, 10430, 14512, 15697 ]
For those records from the products and each product's manufacturer, show me about the distribution of founder and the average of revenue , and group by attribute founder in a bar chart, and list from low to high by the Founder.
SELECT Founder, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 905, 502, 546, 262, 6082, 286, 9119, 290, 262, 2811, 286, 6426, 837, 290, 1448, 416, 11688, 9119, 287, 257, 2318, 8262, 11, 290, 1351, 422, 1877, 284, 1029, 416, 262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 905, 502, 546, 262, 6082, 286, 9119, 290, 262, 2811, 286, 6426, 837, 290, 1448, 416, 11688, 9119, 287, 257, 2318, 8262, 11, 290, 1351, 422, 1877, 284, 1029, 416, 262,...
What was the date of the game that had a loss of Reed (0 2)?
SELECT date FROM table_name_29 WHERE loss = "reed (0–2)"
[ 2061, 373, 262, 3128, 286, 262, 983, 326, 550, 257, 2994, 286, 16105, 357, 15, 362, 19427, 46506, 3128, 16034, 3084, 62, 3672, 62, 1959, 33411, 2994, 796, 366, 15977, 357, 15, 1906, 17, 16725 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 3128, 286, 262, 983, 326, 550, 257, 2994, 286, 16105, 357, 15, 362, 19427, 46506, 3128, 16034, 3084, 62, 3672, 62, 1959, 33411, 2994, 796, 366, 15977, 357, 15, 1906, 17, 16725 ]
What is every value for % 20-39 if % 0-19 is 21,11%?
SELECT "% 20-39" FROM table_26180 WHERE "% 0-19" = '21,11%'
[ 2061, 318, 790, 1988, 329, 4064, 1160, 12, 2670, 611, 4064, 657, 12, 1129, 318, 2310, 11, 1157, 4, 30, 46506, 36521, 1160, 12, 2670, 1, 16034, 3084, 62, 2075, 15259, 33411, 36521, 657, 12, 1129, 1, 796, 705, 2481, 11, 1157, 4, 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, 790, 1988, 329, 4064, 1160, 12, 2670, 611, 4064, 657, 12, 1129, 318, 2310, 11, 1157, 4, 30, 46506, 36521, 1160, 12, 2670, 1, 16034, 3084, 62, 2075, 15259, 33411, 36521, 657, 12, 1129, 1, 796, 705, 2481, 11, 1157, 4, 6 ]
how much does patient 035-24054's patient's systemicmean change second measured on the current intensive care unit visit compared to the first value measured on the current intensive care unit visit?
SELECT (SELECT vitalperiodic.systemicmean FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-24054') AND patient.unitdischargetime IS N...
[ 4919, 881, 857, 5827, 657, 2327, 12, 1731, 2713, 19, 338, 5827, 338, 21971, 32604, 1487, 1218, 8630, 319, 262, 1459, 18590, 1337, 4326, 3187, 3688, 284, 262, 717, 1988, 8630, 319, 262, 1459, 18590, 1337, 4326, 3187, 30, 46506, 357, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 857, 5827, 657, 2327, 12, 1731, 2713, 19, 338, 5827, 338, 21971, 32604, 1487, 1218, 8630, 319, 262, 1459, 18590, 1337, 4326, 3187, 3688, 284, 262, 717, 1988, 8630, 319, 262, 1459, 18590, 1337, 4326, 3187, 30, 46506, 357, 46...
Who is the constructor of John Surtees's Oulton Park circuit car?
SELECT constructor FROM table_name_67 WHERE circuit = "oulton park" AND winning_driver = "john surtees"
[ 8241, 318, 262, 23772, 286, 1757, 4198, 660, 274, 338, 440, 37944, 3250, 10349, 1097, 30, 46506, 23772, 16034, 3084, 62, 3672, 62, 3134, 33411, 10349, 796, 366, 2852, 1122, 3952, 1, 5357, 5442, 62, 26230, 796, 366, 30686, 969, 660, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23772, 286, 1757, 4198, 660, 274, 338, 440, 37944, 3250, 10349, 1097, 30, 46506, 23772, 16034, 3084, 62, 3672, 62, 3134, 33411, 10349, 796, 366, 2852, 1122, 3952, 1, 5357, 5442, 62, 26230, 796, 366, 30686, 969, 660, 27...
count the number of patients born before the year 2087 for whom blood lab test was ordered.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2087" AND lab.fluid = "Blood"
[ 9127, 262, 1271, 286, 3871, 4642, 878, 262, 614, 1160, 5774, 329, 4150, 2910, 2248, 1332, 373, 6149, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 167...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4642, 878, 262, 614, 1160, 5774, 329, 4150, 2910, 2248, 1332, 373, 6149, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 167...
Who was the incumbent in 1940?
SELECT "Incumbent" FROM table_18372 WHERE "First elected" = '1940'
[ 8241, 373, 262, 23526, 287, 16236, 30, 46506, 366, 25517, 2178, 298, 1, 16034, 3084, 62, 1507, 36720, 33411, 366, 5962, 7018, 1, 796, 705, 1129, 1821, 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, 373, 262, 23526, 287, 16236, 30, 46506, 366, 25517, 2178, 298, 1, 16034, 3084, 62, 1507, 36720, 33411, 366, 5962, 7018, 1, 796, 705, 1129, 1821, 6 ]
A score of 71-71=142 earned what place?
SELECT place FROM table_name_11 WHERE score = 71 - 71 = 142
[ 32, 4776, 286, 9166, 12, 4869, 28, 23726, 7366, 644, 1295, 30, 46506, 1295, 16034, 3084, 62, 3672, 62, 1157, 33411, 4776, 796, 9166, 532, 9166, 796, 25181 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 32, 4776, 286, 9166, 12, 4869, 28, 23726, 7366, 644, 1295, 30, 46506, 1295, 16034, 3084, 62, 3672, 62, 1157, 33411, 4776, 796, 9166, 532, 9166, 796, 25181 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, find hire_date and the sum of department_id bin hire_date by weekday, and visualize them by a bar chart, and show y axis in ascending order.
SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(DEPARTMENT_ID)
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 1064, 11078, 62, 4475, 290, 262, 2160, 286, 5011, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 38350, 606, 416, 257,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1064, 11078, 62, 4475, 290, 262, 2160, 286, 5011, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 38350, 606, 416, 257,...
What is the Catalog number in France?
SELECT "Catalog" FROM table_34054 WHERE "Region" = 'france'
[ 2061, 318, 262, 44515, 1271, 287, 4881, 30, 46506, 366, 49015, 1, 16034, 3084, 62, 23601, 4051, 33411, 366, 47371, 1, 796, 705, 69, 8132, 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, 318, 262, 44515, 1271, 287, 4881, 30, 46506, 366, 49015, 1, 16034, 3084, 62, 23601, 4051, 33411, 366, 47371, 1, 796, 705, 69, 8132, 6 ]
What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis?
SELECT SUM("Year") FROM table_15840 WHERE "Entrant" = 'elf team tyrrell' AND "Points" = '39' AND "Chassis" = 'tyrrell 007'
[ 2061, 614, 750, 19067, 4816, 14319, 11252, 423, 5014, 2173, 290, 257, 14319, 11252, 3571, 22, 609, 20297, 30, 46506, 35683, 7203, 17688, 4943, 16034, 3084, 62, 21273, 1821, 33411, 366, 14539, 5250, 1, 796, 705, 7046, 1074, 22934, 11252, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 614, 750, 19067, 4816, 14319, 11252, 423, 5014, 2173, 290, 257, 14319, 11252, 3571, 22, 609, 20297, 30, 46506, 35683, 7203, 17688, 4943, 16034, 3084, 62, 21273, 1821, 33411, 366, 14539, 5250, 1, 796, 705, 7046, 1074, 22934, 11252, ...
how many mens singles with mens doubles being pontus jantti lasse lindel f
SELECT COUNT(mens_singles) FROM table_13857700_1 WHERE mens_doubles = "Pontus Jantti Lasse Lindelöf"
[ 4919, 867, 285, 641, 25287, 351, 285, 641, 21938, 852, 45443, 385, 474, 415, 20259, 300, 21612, 300, 521, 417, 277, 46506, 327, 28270, 7, 45535, 62, 12215, 829, 8, 16034, 3084, 62, 1485, 5332, 3324, 405, 62, 16, 33411, 285, 641, 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 ]
[ 4919, 867, 285, 641, 25287, 351, 285, 641, 21938, 852, 45443, 385, 474, 415, 20259, 300, 21612, 300, 521, 417, 277, 46506, 327, 28270, 7, 45535, 62, 12215, 829, 8, 16034, 3084, 62, 1485, 5332, 3324, 405, 62, 16, 33411, 285, 641, 62,...