instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
What is the name of the game with a top prize of $888?
SELECT game_name FROM table_name_55 WHERE top_prize = "$888"
[ 2061, 318, 262, 1438, 286, 262, 983, 351, 257, 1353, 11596, 286, 720, 28011, 30, 46506, 983, 62, 3672, 16034, 3084, 62, 3672, 62, 2816, 33411, 1353, 62, 3448, 2736, 796, 17971, 28011, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1438, 286, 262, 983, 351, 257, 1353, 11596, 286, 720, 28011, 30, 46506, 983, 62, 3672, 16034, 3084, 62, 3672, 62, 2816, 33411, 1353, 62, 3448, 2736, 796, 17971, 28011, 1 ]
What are the number of the dates when customers with ids between 10 and 20 became customers?, I want to rank y-axis in ascending order.
SELECT date_became_customer, COUNT(date_became_customer) FROM Customers WHERE customer_id BETWEEN 10 AND 20 ORDER BY COUNT(date_became_customer)
[ 2061, 389, 262, 1271, 286, 262, 9667, 618, 4297, 351, 220, 2340, 1022, 838, 290, 1160, 2627, 4297, 21747, 314, 765, 284, 4279, 331, 12, 22704, 287, 41988, 1502, 13, 46506, 3128, 62, 9423, 480, 62, 23144, 263, 11, 327, 28270, 7, 4475...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 262, 9667, 618, 4297, 351, 220, 2340, 1022, 838, 290, 1160, 2627, 4297, 21747, 314, 765, 284, 4279, 331, 12, 22704, 287, 41988, 1502, 13, 46506, 3128, 62, 9423, 480, 62, 23144, 263, 11, 327, 28270, 7, 4475...
Percentage of users with 10,000 and 20,000 reputation or more.
SELECT (((SELECT CAST(COUNT(*) AS FLOAT) FROM Users WHERE Reputation > 10000) / (SELECT CAST(COUNT(*) AS FLOAT) FROM Users)) * 100) AS PercentageOver10k, (((SELECT CAST(COUNT(*) AS FLOAT) FROM Users WHERE Reputation > 30000) / (SELECT CAST(COUNT(*) AS FLOAT) FROM Users)) * 100) AS PercentageOver20k
[ 31905, 496, 286, 2985, 351, 838, 11, 830, 290, 1160, 11, 830, 8507, 393, 517, 13, 46506, 14808, 7, 46506, 327, 11262, 7, 34, 28270, 7, 28104, 7054, 9977, 46, 1404, 8, 16034, 18987, 33411, 1432, 7094, 1875, 33028, 8, 1220, 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...
[ 31905, 496, 286, 2985, 351, 838, 11, 830, 290, 1160, 11, 830, 8507, 393, 517, 13, 46506, 14808, 7, 46506, 327, 11262, 7, 34, 28270, 7, 28104, 7054, 9977, 46, 1404, 8, 16034, 18987, 33411, 1432, 7094, 1875, 33028, 8, 1220, 357, 46506...
count the number of patients whose primary disease is pneumonia and procedure short title is circumcision?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "PNEUMONIA" AND procedures.short_title = "Circumcision"
[ 9127, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 35647, 290, 8771, 1790, 3670, 318, 25513, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9127, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 35647, 290, 8771, 1790, 3670, 318, 25513, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, ...
what is the number of patients whose death status is 0 and procedure short title is injection oxazolidinone?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.short_title = "Injection oxazolidinone"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 1918, 3722, 318, 657, 290, 8771, 1790, 3670, 318, 16954, 12018, 1031, 10180, 259, 505, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 1918, 3722, 318, 657, 290, 8771, 1790, 3670, 318, 16954, 12018, 1031, 10180, 259, 505, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32...
What is the time when the rank is 14?
SELECT "Time" FROM table_46296 WHERE "Rank" = '14'
[ 2061, 318, 262, 640, 618, 262, 4279, 318, 1478, 30, 46506, 366, 7575, 1, 16034, 3084, 62, 3510, 27137, 33411, 366, 27520, 1, 796, 705, 1415, 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 ]
[ 2061, 318, 262, 640, 618, 262, 4279, 318, 1478, 30, 46506, 366, 7575, 1, 16034, 3084, 62, 3510, 27137, 33411, 366, 27520, 1, 796, 705, 1415, 6 ]
the previous year, had patient 48706 receive a procedure?
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 48706) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
[ 1169, 2180, 614, 11, 550, 5827, 4764, 35402, 3328, 257, 8771, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 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...
[ 1169, 2180, 614, 11, 550, 5827, 4764, 35402, 3328, 257, 8771, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, ...
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 job_id and salary .
SELECT JOB_ID, SALARY 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, 1693, 62, 312, 290, 9588, 764, 46506, 449, 9864, 62, 2389, 11, 42475, 13153, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1693, 62, 312, 290, 9588, 764, 46506, 449, 9864, 62, 2389, 11, 42475, 13153, 160...
Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?
SELECT communist_ticket FROM table_name_49 WHERE american_labor_ticket = "joseph v. o'leary"
[ 8241, 338, 262, 14884, 7846, 351, 281, 1605, 7882, 7846, 286, 474, 577, 746, 410, 13, 267, 6, 293, 560, 30, 46506, 20555, 62, 43350, 16034, 3084, 62, 3672, 62, 2920, 33411, 45630, 272, 62, 75, 4820, 62, 43350, 796, 366, 73, 577, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 338, 262, 14884, 7846, 351, 281, 1605, 7882, 7846, 286, 474, 577, 746, 410, 13, 267, 6, 293, 560, 30, 46506, 20555, 62, 43350, 16034, 3084, 62, 3672, 62, 2920, 33411, 45630, 272, 62, 75, 4820, 62, 43350, 796, 366, 73, 577, 7...
how many of the male patients had icd9 code 3521?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.icd9_code = "3521"
[ 4919, 867, 286, 262, 4257, 3871, 550, 14158, 67, 24, 2438, 3439, 2481, 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, 286, 262, 4257, 3871, 550, 14158, 67, 24, 2438, 3439, 2481, 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 Home team on April 2?
SELECT "Home" FROM table_49522 WHERE "Date" = 'april 2'
[ 2061, 318, 262, 5995, 1074, 319, 3035, 362, 30, 46506, 366, 16060, 1, 16034, 3084, 62, 33781, 1828, 33411, 366, 10430, 1, 796, 705, 499, 22379, 362, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 5995, 1074, 319, 3035, 362, 30, 46506, 366, 16060, 1, 16034, 3084, 62, 33781, 1828, 33411, 366, 10430, 1, 796, 705, 499, 22379, 362, 6 ]
What is date when against is smaller than 6 and location was durban?
SELECT date FROM table_name_75 WHERE against < 6 AND venue = "durban"
[ 2061, 318, 3128, 618, 1028, 318, 4833, 621, 718, 290, 4067, 373, 22365, 3820, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2425, 33411, 1028, 1279, 718, 5357, 14359, 796, 366, 67, 32679, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3128, 618, 1028, 318, 4833, 621, 718, 290, 4067, 373, 22365, 3820, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2425, 33411, 1028, 1279, 718, 5357, 14359, 796, 366, 67, 32679, 1 ]
let me know the short title of both diagnoses and procedure for patient with patient id 18372.
SELECT diagnoses.short_title, procedures.short_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "18372"
[ 1616, 502, 760, 262, 1790, 3670, 286, 1111, 40567, 290, 8771, 329, 5827, 351, 5827, 4686, 1248, 36720, 13, 46506, 40567, 13, 19509, 62, 7839, 11, 9021, 13, 19509, 62, 7839, 16034, 40567, 3268, 21479, 32357, 1268, 9021, 6177, 40567, 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 ]
[ 1616, 502, 760, 262, 1790, 3670, 286, 1111, 40567, 290, 8771, 329, 5827, 351, 5827, 4686, 1248, 36720, 13, 46506, 40567, 13, 19509, 62, 7839, 11, 9021, 13, 19509, 62, 7839, 16034, 40567, 3268, 21479, 32357, 1268, 9021, 6177, 40567, 13, ...
For those records from the products and each product's manufacturer, give me the comparison about the average of price over the headquarter , and group by attribute headquarter by a bar chart, and display in ascending by the mean price.
SELECT Headquarter, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Price)
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1577, 502, 262, 7208, 546, 262, 2811, 286, 2756, 625, 262, 1182, 24385, 837, 290, 1448, 416, 11688, 1182, 24385, 416, 257, 2318, 8262, 11, 290, 3359, 287, 41988, 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, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1577, 502, 262, 7208, 546, 262, 2811, 286, 2756, 625, 262, 1182, 24385, 837, 290, 1448, 416, 11688, 1182, 24385, 416, 257, 2318, 8262, 11, 290, 3359, 287, 41988, 416, ...
What day was the ground subiaco?
SELECT date FROM table_name_8 WHERE ground = "subiaco"
[ 2061, 1110, 373, 262, 2323, 850, 9607, 78, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 23, 33411, 2323, 796, 366, 7266, 9607, 78, 1 ]
[ 1, 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, 1110, 373, 262, 2323, 850, 9607, 78, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 23, 33411, 2323, 796, 366, 7266, 9607, 78, 1 ]
Where is pine valley?
SELECT "Location" FROM table_54069 WHERE "Name" = 'pine valley'
[ 8496, 318, 20161, 19272, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 35005, 3388, 33411, 366, 5376, 1, 796, 705, 23908, 19272, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8496, 318, 20161, 19272, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 35005, 3388, 33411, 366, 5376, 1, 796, 705, 23908, 19272, 6 ]
Who had the fastest lap in the races won by Max Papis?
SELECT "Fastest lap" FROM table_16430 WHERE "Winning driver" = 'Max Papis'
[ 8241, 550, 262, 14162, 14779, 287, 262, 9558, 1839, 416, 5436, 14185, 271, 30, 46506, 366, 22968, 395, 14779, 1, 16034, 3084, 62, 23237, 1270, 33411, 366, 16643, 768, 4639, 1, 796, 705, 11518, 14185, 271, 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 ]
[ 8241, 550, 262, 14162, 14779, 287, 262, 9558, 1839, 416, 5436, 14185, 271, 30, 46506, 366, 22968, 395, 14779, 1, 16034, 3084, 62, 23237, 1270, 33411, 366, 16643, 768, 4639, 1, 796, 705, 11518, 14185, 271, 6 ]
get me number of protestant quaker religious background patients who had continuous invasive mechanical ventilation for 96 consecutive hours or more.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.religion = "PROTESTANT QUAKER" AND procedures.short_title = "Cont inv mec ven 96+ hrs"
[ 1136, 502, 1271, 286, 5402, 415, 627, 3110, 4158, 4469, 3871, 508, 550, 12948, 27376, 12370, 34834, 329, 9907, 12785, 2250, 393, 517, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1136, 502, 1271, 286, 5402, 415, 627, 3110, 4158, 4469, 3871, 508, 550, 12948, 27376, 12370, 34834, 329, 9907, 12785, 2250, 393, 517, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21...
Closed posts by votes on answers. This is used to see how many closed questions have up, down and neutral voted answers. A single post can be in all three categories if there is an answer which is positive, negative and neutral.
WITH ClosedPostsVotes AS (SELECT p.Id AS "Post Link", SUM(CASE WHEN a.Score > 0 THEN 1 ELSE 0 END) AS Up, SUM(CASE WHEN a.Score < 0 THEN 1 ELSE 0 END) AS Down, SUM(CASE WHEN a.Score = 0 THEN 1 ELSE 0 END) AS Neutral FROM Posts AS p INNER JOIN Posts AS a ON a.ParentId = p.Id WHERE NOT p.ClosedDate IS NULL GROUP BY p.Id)...
[ 2601, 1335, 6851, 416, 5690, 319, 7429, 13, 770, 318, 973, 284, 766, 703, 867, 4838, 2683, 423, 510, 11, 866, 290, 8500, 7052, 7429, 13, 317, 2060, 1281, 460, 307, 287, 477, 1115, 9376, 611, 612, 318, 281, 3280, 543, 318, 3967, 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...
[ 2601, 1335, 6851, 416, 5690, 319, 7429, 13, 770, 318, 973, 284, 766, 703, 867, 4838, 2683, 423, 510, 11, 866, 290, 8500, 7052, 7429, 13, 317, 2060, 1281, 460, 307, 287, 477, 1115, 9376, 611, 612, 318, 281, 3280, 543, 318, 3967, 11...
Which department has the highest average instructor salary?
SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC LIMIT 1
[ 13828, 5011, 468, 262, 4511, 2811, 21187, 9588, 30, 46506, 390, 457, 62, 3672, 16034, 21187, 44441, 11050, 390, 457, 62, 3672, 38678, 11050, 35224, 7, 21680, 560, 8, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 5011, 468, 262, 4511, 2811, 21187, 9588, 30, 46506, 390, 457, 62, 3672, 16034, 21187, 44441, 11050, 390, 457, 62, 3672, 38678, 11050, 35224, 7, 21680, 560, 8, 22196, 34, 27564, 2043, 352 ]
What is the country seat for the license plate code 5c?
SELECT "County seat" FROM table_75561 WHERE "License Plate Code" = '5c'
[ 2061, 318, 262, 1499, 5852, 329, 262, 5964, 7480, 2438, 642, 66, 30, 46506, 366, 12332, 88, 5852, 1, 16034, 3084, 62, 2425, 47915, 33411, 366, 34156, 23648, 6127, 1, 796, 705, 20, 66, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1499, 5852, 329, 262, 5964, 7480, 2438, 642, 66, 30, 46506, 366, 12332, 88, 5852, 1, 16034, 3084, 62, 2425, 47915, 33411, 366, 34156, 23648, 6127, 1, 796, 705, 20, 66, 6 ]
What is the highest numbred district that has brian w. thomas as an incumbent?
SELECT MAX("District") FROM table_3568 WHERE "Incumbent" = 'Brian W. Thomas'
[ 2061, 318, 262, 4511, 35519, 445, 4783, 326, 468, 275, 4484, 266, 13, 294, 16911, 355, 281, 23526, 30, 46506, 25882, 7203, 44857, 4943, 16034, 3084, 62, 2327, 3104, 33411, 366, 25517, 2178, 298, 1, 796, 705, 24761, 370, 13, 5658, 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, 4511, 35519, 445, 4783, 326, 468, 275, 4484, 266, 13, 294, 16911, 355, 281, 23526, 30, 46506, 25882, 7203, 44857, 4943, 16034, 3084, 62, 2327, 3104, 33411, 366, 25517, 2178, 298, 1, 796, 705, 24761, 370, 13, 5658, 6 ]
What is the total number of wins for Cobden club when there are more than 2 draws?
SELECT SUM("Wins") FROM table_64310 WHERE "Club" = 'cobden' AND "Draws" > '2'
[ 2061, 318, 262, 2472, 1271, 286, 7864, 329, 14828, 6559, 3430, 618, 612, 389, 517, 621, 362, 14293, 30, 46506, 35683, 7203, 54, 1040, 4943, 16034, 3084, 62, 2414, 26717, 33411, 366, 42350, 1, 796, 705, 66, 672, 6559, 6, 5357, 366, 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 ]
[ 2061, 318, 262, 2472, 1271, 286, 7864, 329, 14828, 6559, 3430, 618, 612, 389, 517, 621, 362, 14293, 30, 46506, 35683, 7203, 54, 1040, 4943, 16034, 3084, 62, 2414, 26717, 33411, 366, 42350, 1, 796, 705, 66, 672, 6559, 6, 5357, 366, 2...
What venue has a Result of 3-0?
SELECT venue FROM table_name_73 WHERE result = "3-0"
[ 2061, 14359, 468, 257, 25414, 286, 513, 12, 15, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 4790, 33411, 1255, 796, 366, 18, 12, 15, 1 ]
[ 1, 1, 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, 14359, 468, 257, 25414, 286, 513, 12, 15, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 4790, 33411, 1255, 796, 366, 18, 12, 15, 1 ]
Deleted by community, undeleted by community - longest time as deleted.
WITH Raw AS (SELECT RANK() OVER (PARTITION BY PostId ORDER BY Id) AS N, PostId, PostHistoryTypeId, CreationDate, Text FROM PostHistory WHERE PostHistoryTypeId BETWEEN 12 AND 13) SELECT Del.PostId AS "post_link", 'site://posts/' + CAST(Del.PostId AS TEXT) + '/revisions|revisions' AS Revisions, 'site://posts/' + CAST(Del...
[ 5005, 33342, 416, 2055, 11, 3318, 11129, 1513, 416, 2055, 532, 14069, 640, 355, 13140, 13, 54, 10554, 16089, 7054, 357, 46506, 371, 15154, 3419, 28729, 357, 30709, 17941, 11050, 2947, 7390, 38678, 11050, 5121, 8, 7054, 399, 11, 2947, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 5005, 33342, 416, 2055, 11, 3318, 11129, 1513, 416, 2055, 532, 14069, 640, 355, 13140, 13, 54, 10554, 16089, 7054, 357, 46506, 371, 15154, 3419, 28729, 357, 30709, 17941, 11050, 2947, 7390, 38678, 11050, 5121, 8, 7054, 399, 11, 2947, 73...
Count the number of patients less than 45 who had a joint fluid lab test.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "45" AND lab.fluid = "Joint Fluid"
[ 12332, 262, 1271, 286, 3871, 1342, 621, 4153, 508, 550, 257, 6466, 11711, 2248, 1332, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 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...
[ 12332, 262, 1271, 286, 3871, 1342, 621, 4153, 508, 550, 257, 6466, 11711, 2248, 1332, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, ...
Specify the number of patients who had a family history of other specified malignant neoplasm that were treated with base drug
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.long_title = "Family history of other specified malignant neoplasm" AND prescriptions.drug_type = "BASE"
[ 22882, 1958, 262, 1271, 286, 3871, 508, 550, 257, 1641, 2106, 286, 584, 7368, 6428, 25114, 497, 20106, 8597, 326, 547, 5716, 351, 2779, 2563, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 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...
[ 22882, 1958, 262, 1271, 286, 3871, 508, 550, 257, 1641, 2106, 286, 584, 7368, 6428, 25114, 497, 20106, 8597, 326, 547, 5716, 351, 2779, 2563, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268...
What was the weight division for the fight that ended in a TKO (strikes)?
SELECT "Weight Division" FROM table_36611 WHERE "Method" = 'tko (strikes)'
[ 2061, 373, 262, 3463, 7297, 329, 262, 1907, 326, 4444, 287, 257, 309, 22328, 357, 301, 18445, 19427, 46506, 366, 25844, 7458, 1, 16034, 3084, 62, 32459, 1157, 33411, 366, 17410, 1, 796, 705, 83, 7204, 357, 301, 18445, 33047 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 3463, 7297, 329, 262, 1907, 326, 4444, 287, 257, 309, 22328, 357, 301, 18445, 19427, 46506, 366, 25844, 7458, 1, 16034, 3084, 62, 32459, 1157, 33411, 366, 17410, 1, 796, 705, 83, 7204, 357, 301, 18445, 33047 ]
What is the highest heat when the nationality is poland, and the lane is smaller than 6?
SELECT MAX(heat) FROM table_name_22 WHERE nationality = "poland" AND lane < 6
[ 2061, 318, 262, 4511, 4894, 618, 262, 29835, 318, 755, 392, 11, 290, 262, 11193, 318, 4833, 621, 718, 30, 46506, 25882, 7, 25080, 8, 16034, 3084, 62, 3672, 62, 1828, 33411, 29835, 796, 366, 16104, 392, 1, 5357, 11193, 1279, 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, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 4894, 618, 262, 29835, 318, 755, 392, 11, 290, 262, 11193, 318, 4833, 621, 718, 30, 46506, 25882, 7, 25080, 8, 16034, 3084, 62, 3672, 62, 1828, 33411, 29835, 796, 366, 16104, 392, 1, 5357, 11193, 1279, 718 ]
How many scores did Helen Sildna give when Iiris Vesik gave a 3?
SELECT COUNT("Helen Sildna") FROM table_31024 WHERE "Iiris Vesik" = '3'
[ 2437, 867, 8198, 750, 22695, 311, 688, 2616, 1577, 618, 314, 29616, 36448, 1134, 2921, 257, 513, 30, 46506, 327, 28270, 7203, 12621, 268, 311, 688, 2616, 4943, 16034, 3084, 62, 26717, 1731, 33411, 366, 40, 29616, 36448, 1134, 1, 796, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 8198, 750, 22695, 311, 688, 2616, 1577, 618, 314, 29616, 36448, 1134, 2921, 257, 513, 30, 46506, 327, 28270, 7203, 12621, 268, 311, 688, 2616, 4943, 16034, 3084, 62, 26717, 1731, 33411, 366, 40, 29616, 36448, 1134, 1, 796, ...
What is the number of silver when rank was 5, and a bronze was smaller than 14?
SELECT SUM("Silver") FROM table_62238 WHERE "Rank" = '5' AND "Bronze" < '14'
[ 2061, 318, 262, 1271, 286, 8465, 618, 4279, 373, 642, 11, 290, 257, 22101, 373, 4833, 621, 1478, 30, 46506, 35683, 7203, 26766, 4943, 16034, 3084, 62, 21, 1828, 2548, 33411, 366, 27520, 1, 796, 705, 20, 6, 5357, 366, 18760, 2736, 1,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8465, 618, 4279, 373, 642, 11, 290, 257, 22101, 373, 4833, 621, 1478, 30, 46506, 35683, 7203, 26766, 4943, 16034, 3084, 62, 21, 1828, 2548, 33411, 366, 27520, 1, 796, 705, 20, 6, 5357, 366, 18760, 2736, 1,...
What is the first Week against Cincinnati Bengals with an Attendance greater than 58,615?
SELECT MIN("Week") FROM table_42049 WHERE "Attendance" > '58,615' AND "Opponent" = 'cincinnati bengals'
[ 2061, 318, 262, 717, 6119, 1028, 16137, 24037, 351, 281, 46502, 590, 3744, 621, 7618, 11, 47007, 30, 46506, 20625, 7203, 20916, 4943, 16034, 3084, 62, 27211, 2920, 33411, 366, 8086, 437, 590, 1, 1875, 705, 3365, 11, 47007, 6, 5357, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 717, 6119, 1028, 16137, 24037, 351, 281, 46502, 590, 3744, 621, 7618, 11, 47007, 30, 46506, 20625, 7203, 20916, 4943, 16034, 3084, 62, 27211, 2920, 33411, 366, 8086, 437, 590, 1, 1875, 705, 3365, 11, 47007, 6, 5357, 36...
What is the average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4?
SELECT AVG("18\u201349") FROM table_51322 WHERE "Viewers (m)" = '3.93' AND "Share" < '4'
[ 2061, 318, 262, 2811, 7955, 286, 10209, 1248, 284, 5125, 810, 262, 2472, 19091, 954, 318, 513, 13, 6052, 1510, 290, 2648, 1342, 621, 604, 30, 46506, 35224, 7203, 1507, 59, 84, 1264, 27371, 4943, 16034, 3084, 62, 48645, 1828, 33411, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 7955, 286, 10209, 1248, 284, 5125, 810, 262, 2472, 19091, 954, 318, 513, 13, 6052, 1510, 290, 2648, 1342, 621, 604, 30, 46506, 35224, 7203, 1507, 59, 84, 1264, 27371, 4943, 16034, 3084, 62, 48645, 1828, 33411, 36...
If I want to have an easy workload , what 400 / 500 -level MILSCI courses should I take ?
SELECT DISTINCT course.department, course.name, course.number, program_course.workload FROM course INNER JOIN program_course WHERE ((course.number < 400 + 100 AND course.number >= 400) OR (course.number < 500 + 100 AND course.number >= 500)) AND course.department = 'MILSCI' AND program_course.workload = (SELECT MIN(PRO...
[ 1532, 314, 765, 284, 423, 281, 2562, 26211, 837, 644, 7337, 1220, 5323, 532, 5715, 31515, 6173, 40, 10902, 815, 314, 1011, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 1430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1532, 314, 765, 284, 423, 281, 2562, 26211, 837, 644, 7337, 1220, 5323, 532, 5715, 31515, 6173, 40, 10902, 815, 314, 1011, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 1430, ...
What was the episode number that had 797000 viewers?
SELECT no FROM table_25737761_3 WHERE viewing_figure = 797000
[ 2061, 373, 262, 4471, 1271, 326, 550, 767, 5607, 830, 10209, 30, 46506, 645, 16034, 3084, 62, 28676, 2718, 4304, 16, 62, 18, 33411, 11681, 62, 26875, 796, 767, 5607, 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, 1, 1, 1 ]
[ 2061, 373, 262, 4471, 1271, 326, 550, 767, 5607, 830, 10209, 30, 46506, 645, 16034, 3084, 62, 28676, 2718, 4304, 16, 62, 18, 33411, 11681, 62, 26875, 796, 767, 5607, 830 ]
What College/Junior/Club Team (League) has a round of 3?
SELECT college_junior_club_team__league_ FROM table_name_32 WHERE round = 3
[ 2061, 5535, 14, 22396, 1504, 14, 42350, 4816, 357, 24623, 8, 468, 257, 2835, 286, 513, 30, 46506, 4152, 62, 29741, 1504, 62, 18664, 62, 15097, 834, 19316, 62, 16034, 3084, 62, 3672, 62, 2624, 33411, 2835, 796, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 5535, 14, 22396, 1504, 14, 42350, 4816, 357, 24623, 8, 468, 257, 2835, 286, 513, 30, 46506, 4152, 62, 29741, 1504, 62, 18664, 62, 15097, 834, 19316, 62, 16034, 3084, 62, 3672, 62, 2624, 33411, 2835, 796, 513 ]
What was the score of the game at the Chicago Stadium?
SELECT score FROM table_name_38 WHERE location_attendance = "chicago stadium"
[ 2061, 373, 262, 4776, 286, 262, 983, 379, 262, 4842, 10499, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 2548, 33411, 4067, 62, 1078, 437, 590, 796, 366, 354, 4549, 10308, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 286, 262, 983, 379, 262, 4842, 10499, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 2548, 33411, 4067, 62, 1078, 437, 590, 796, 366, 354, 4549, 10308, 1 ]
Which money has player Jack Fleck with t1 place?
SELECT "Money ( $ )" FROM table_76230 WHERE "Place" = 't1' AND "Player" = 'jack fleck'
[ 13828, 1637, 468, 2137, 3619, 12005, 694, 351, 256, 16, 1295, 30, 46506, 366, 26788, 357, 720, 1267, 1, 16034, 3084, 62, 4304, 19214, 33411, 366, 27271, 1, 796, 705, 83, 16, 6, 5357, 366, 14140, 1, 796, 705, 19650, 5104, 694, 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 ]
[ 13828, 1637, 468, 2137, 3619, 12005, 694, 351, 256, 16, 1295, 30, 46506, 366, 26788, 357, 720, 1267, 1, 16034, 3084, 62, 4304, 19214, 33411, 366, 27271, 1, 796, 705, 83, 16, 6, 5357, 366, 14140, 1, 796, 705, 19650, 5104, 694, 6 ]
Bar chart of maximal product price from each product type code, and I want to list in ascending by the bars please.
SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code
[ 10374, 8262, 286, 40708, 1720, 2756, 422, 1123, 1720, 2099, 2438, 11, 290, 314, 765, 284, 1351, 287, 41988, 416, 262, 9210, 3387, 13, 46506, 1720, 62, 4906, 62, 8189, 11, 25882, 7, 11167, 62, 20888, 8, 16034, 18675, 44441, 11050, 1720...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10374, 8262, 286, 40708, 1720, 2756, 422, 1123, 1720, 2099, 2438, 11, 290, 314, 765, 284, 1351, 287, 41988, 416, 262, 9210, 3387, 13, 46506, 1720, 62, 4906, 62, 8189, 11, 25882, 7, 11167, 62, 20888, 8, 16034, 18675, 44441, 11050, 1720...
What is the range (varies by payload weight) for Shahab-4?
SELECT range__varies_with_payload_weight_ FROM table_name_71 WHERE name_designation = "shahab-4"
[ 2061, 318, 262, 2837, 357, 85, 3166, 416, 21437, 3463, 8, 329, 18381, 397, 12, 19, 30, 46506, 2837, 834, 85, 3166, 62, 4480, 62, 15577, 2220, 62, 6551, 62, 16034, 3084, 62, 3672, 62, 4869, 33411, 1438, 62, 26124, 341, 796, 366, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2837, 357, 85, 3166, 416, 21437, 3463, 8, 329, 18381, 397, 12, 19, 30, 46506, 2837, 834, 85, 3166, 62, 4480, 62, 15577, 2220, 62, 6551, 62, 16034, 3084, 62, 3672, 62, 4869, 33411, 1438, 62, 26124, 341, 796, 366, 14...
Which winner has a P stage?
SELECT "Winner" FROM table_5628 WHERE "Stage" = 'p'
[ 13828, 8464, 468, 257, 350, 3800, 30, 46506, 366, 48056, 1, 16034, 3084, 62, 3980, 2078, 33411, 366, 29391, 1, 796, 705, 79, 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 ]
[ 13828, 8464, 468, 257, 350, 3800, 30, 46506, 366, 48056, 1, 16034, 3084, 62, 3980, 2078, 33411, 366, 29391, 1, 796, 705, 79, 6 ]
Which baseball team is class AAA?
SELECT team FROM table_name_75 WHERE sport = "baseball" AND class = "aaa"
[ 13828, 9283, 1074, 318, 1398, 25734, 30, 46506, 1074, 16034, 3084, 62, 3672, 62, 2425, 33411, 6332, 796, 366, 8692, 1894, 1, 5357, 1398, 796, 366, 46071, 1 ]
[ 1, 1, 1, 1, 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, 9283, 1074, 318, 1398, 25734, 30, 46506, 1074, 16034, 3084, 62, 3672, 62, 2425, 33411, 6332, 796, 366, 8692, 1894, 1, 5357, 1398, 796, 366, 46071, 1 ]
who is the constructor when the laps is more than 72 and the driver is eddie irvine?
SELECT "Constructor" FROM table_77678 WHERE "Laps" > '72' AND "Driver" = 'eddie irvine'
[ 8727, 318, 262, 23772, 618, 262, 24590, 318, 517, 621, 7724, 290, 262, 4639, 318, 1225, 11979, 4173, 26818, 30, 46506, 366, 42316, 273, 1, 16034, 3084, 62, 3324, 30924, 33411, 366, 43, 1686, 1, 1875, 705, 4761, 6, 5357, 366, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 262, 23772, 618, 262, 24590, 318, 517, 621, 7724, 290, 262, 4639, 318, 1225, 11979, 4173, 26818, 30, 46506, 366, 42316, 273, 1, 16034, 3084, 62, 3324, 30924, 33411, 366, 43, 1686, 1, 1875, 705, 4761, 6, 5357, 366, 32103, ...
In what position did Salina Kosgei finish in the Tokyo Marathon?
SELECT position FROM table_name_23 WHERE competition = "tokyo marathon"
[ 818, 644, 2292, 750, 4849, 1437, 18884, 469, 72, 5461, 287, 262, 11790, 24828, 30, 46506, 2292, 16034, 3084, 62, 3672, 62, 1954, 33411, 5449, 796, 366, 83, 482, 8226, 22336, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 818, 644, 2292, 750, 4849, 1437, 18884, 469, 72, 5461, 287, 262, 11790, 24828, 30, 46506, 2292, 16034, 3084, 62, 3672, 62, 1954, 33411, 5449, 796, 366, 83, 482, 8226, 22336, 1 ]
What is the withdrawal date associated with a date made of 1904?
SELECT "Date withdrawn" FROM table_67782 WHERE "Date made" = '1904'
[ 2061, 318, 262, 15220, 3128, 3917, 351, 257, 3128, 925, 286, 43785, 30, 46506, 366, 10430, 23019, 1, 16034, 3084, 62, 3134, 46519, 33411, 366, 10430, 925, 1, 796, 705, 1129, 3023, 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, 15220, 3128, 3917, 351, 257, 3128, 925, 286, 43785, 30, 46506, 366, 10430, 23019, 1, 16034, 3084, 62, 3134, 46519, 33411, 366, 10430, 925, 1, 796, 705, 1129, 3023, 6 ]
Which To par has a Score of 78-74-71-75=298?
SELECT AVG("To par") FROM table_61700 WHERE "Score" = '78-74-71-75=298'
[ 13828, 1675, 1582, 468, 257, 15178, 286, 8699, 12, 4524, 12, 4869, 12, 2425, 28, 27728, 30, 46506, 35224, 7203, 2514, 1582, 4943, 16034, 3084, 62, 47941, 405, 33411, 366, 26595, 1, 796, 705, 3695, 12, 4524, 12, 4869, 12, 2425, 28, 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 ]
[ 13828, 1675, 1582, 468, 257, 15178, 286, 8699, 12, 4524, 12, 4869, 12, 2425, 28, 27728, 30, 46506, 35224, 7203, 2514, 1582, 4943, 16034, 3084, 62, 47941, 405, 33411, 366, 26595, 1, 796, 705, 3695, 12, 4524, 12, 4869, 12, 2425, 28, 2...
Who did Abdelhafid Benchebla face in the quarterfinals?
SELECT "Quarterfinals" FROM table_21689 WHERE "Athlete" = 'Abdelhafid Benchebla'
[ 8241, 750, 38758, 71, 1878, 312, 3932, 2395, 2436, 64, 1986, 287, 262, 3860, 32089, 30, 46506, 366, 4507, 2571, 32089, 1, 16034, 3084, 62, 20666, 4531, 33411, 366, 32, 400, 5807, 1, 796, 705, 4826, 12381, 71, 1878, 312, 3932, 2395, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 750, 38758, 71, 1878, 312, 3932, 2395, 2436, 64, 1986, 287, 262, 3860, 32089, 30, 46506, 366, 4507, 2571, 32089, 1, 16034, 3084, 62, 20666, 4531, 33411, 366, 32, 400, 5807, 1, 796, 705, 4826, 12381, 71, 1878, 312, 3932, 2395, ...
What upper-level NAVARCH classes could be taken this Spring ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'NAVARCH' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spr...
[ 2061, 6727, 12, 5715, 47140, 31315, 6097, 714, 307, 2077, 428, 8225, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 1430, 62, 17319, 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...
[ 2061, 6727, 12, 5715, 47140, 31315, 6097, 714, 307, 2077, 428, 8225, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 1430, 62, 17319, 11, ...
What date had a margin victory of 2 strokes?
SELECT "Date" FROM table_43393 WHERE "Margin of victory" = '2 strokes'
[ 2061, 3128, 550, 257, 10330, 5373, 286, 362, 29483, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 42117, 6052, 33411, 366, 24428, 259, 286, 5373, 1, 796, 705, 17, 29483, 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, 3128, 550, 257, 10330, 5373, 286, 362, 29483, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 42117, 6052, 33411, 366, 24428, 259, 286, 5373, 1, 796, 705, 17, 29483, 6 ]
What is the numbers of the thn unit with a power greater than 220?
SELECT "Numbers" FROM table_37526 WHERE "Power (horsepower)" > '220' AND "Type" = 'thn'
[ 2061, 318, 262, 3146, 286, 262, 294, 77, 4326, 351, 257, 1176, 3744, 621, 15629, 30, 46506, 366, 49601, 1, 16034, 3084, 62, 22318, 2075, 33411, 366, 13434, 357, 30527, 6477, 16725, 1875, 705, 17572, 6, 5357, 366, 6030, 1, 796, 705, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3146, 286, 262, 294, 77, 4326, 351, 257, 1176, 3744, 621, 15629, 30, 46506, 366, 49601, 1, 16034, 3084, 62, 22318, 2075, 33411, 366, 13434, 357, 30527, 6477, 16725, 1875, 705, 17572, 6, 5357, 366, 6030, 1, 796, 705, ...
Which Streak has a Record of 21 22?
SELECT "Streak" FROM table_12895 WHERE "Record" = '21–22'
[ 13828, 9737, 461, 468, 257, 13266, 286, 2310, 2534, 30, 46506, 366, 30611, 461, 1, 16034, 3084, 62, 12762, 3865, 33411, 366, 23739, 1, 796, 705, 2481, 1906, 1828, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 9737, 461, 468, 257, 13266, 286, 2310, 2534, 30, 46506, 366, 30611, 461, 1, 16034, 3084, 62, 12762, 3865, 33411, 366, 23739, 1, 796, 705, 2481, 1906, 1828, 6 ]
Tell me the record for the date of August 18.
SELECT record FROM table_name_55 WHERE date = "august 18"
[ 24446, 502, 262, 1700, 329, 262, 3128, 286, 2932, 1248, 13, 46506, 1700, 16034, 3084, 62, 3672, 62, 2816, 33411, 3128, 796, 366, 7493, 436, 1248, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24446, 502, 262, 1700, 329, 262, 3128, 286, 2932, 1248, 13, 46506, 1700, 16034, 3084, 62, 3672, 62, 2816, 33411, 3128, 796, 366, 7493, 436, 1248, 1 ]
Show all countries and the number of people from each country with a bar chart, order y axis from low to high order.
SELECT Country, COUNT(*) FROM people GROUP BY Country ORDER BY COUNT(*)
[ 15307, 477, 2678, 290, 262, 1271, 286, 661, 422, 1123, 1499, 351, 257, 2318, 8262, 11, 1502, 331, 16488, 422, 1877, 284, 1029, 1502, 13, 46506, 12946, 11, 327, 28270, 7, 28104, 16034, 661, 44441, 11050, 12946, 38678, 11050, 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 ]
[ 15307, 477, 2678, 290, 262, 1271, 286, 661, 422, 1123, 1499, 351, 257, 2318, 8262, 11, 1502, 331, 16488, 422, 1877, 284, 1029, 1502, 13, 46506, 12946, 11, 327, 28270, 7, 28104, 16034, 661, 44441, 11050, 12946, 38678, 11050, 327, 28270, ...
what was the top team ?
SELECT "team" FROM table_203_452 ORDER BY "pos" LIMIT 1
[ 10919, 373, 262, 1353, 1074, 5633, 46506, 366, 15097, 1, 16034, 3084, 62, 22416, 62, 37730, 38678, 11050, 366, 1930, 1, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 373, 262, 1353, 1074, 5633, 46506, 366, 15097, 1, 16034, 3084, 62, 22416, 62, 37730, 38678, 11050, 366, 1930, 1, 27564, 2043, 352 ]
what is the number of patients with subdural hematoma primary disease who have been discharged to psychiatric facility-partial hospitalization?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.diagnosis = "SDH"
[ 10919, 318, 262, 1271, 286, 3871, 351, 850, 67, 1523, 339, 6759, 6086, 4165, 4369, 508, 423, 587, 26476, 284, 19906, 6841, 12, 47172, 4436, 1634, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 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, 1...
[ 10919, 318, 262, 1271, 286, 3871, 351, 850, 67, 1523, 339, 6759, 6086, 4165, 4369, 508, 423, 587, 26476, 284, 19906, 6841, 12, 47172, 4436, 1634, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 1...
Name the aircraft type for jagdgeschwader 6
SELECT aircraft_type FROM table_28342423_1 WHERE parent_unit = "Jagdgeschwader 6"
[ 5376, 262, 6215, 2099, 329, 474, 363, 67, 3212, 354, 86, 5067, 718, 46506, 6215, 62, 4906, 16034, 3084, 62, 2078, 2682, 1731, 1954, 62, 16, 33411, 2560, 62, 20850, 796, 366, 41, 363, 67, 3212, 354, 86, 5067, 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, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 6215, 2099, 329, 474, 363, 67, 3212, 354, 86, 5067, 718, 46506, 6215, 62, 4906, 16034, 3084, 62, 2078, 2682, 1731, 1954, 62, 16, 33411, 2560, 62, 20850, 796, 366, 41, 363, 67, 3212, 354, 86, 5067, 718, 1 ]
how many patients admitted before the year 2156 have diagnosis icd9 code 76518?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2156" AND diagnoses.icd9_code = "76518"
[ 4919, 867, 3871, 6848, 878, 262, 614, 362, 21599, 423, 13669, 14158, 67, 24, 2438, 767, 2996, 1507, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 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...
[ 4919, 867, 3871, 6848, 878, 262, 614, 362, 21599, 423, 13669, 14158, 67, 24, 2438, 767, 2996, 1507, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 167...
Which Nationality has a Player of larry wright?
SELECT nationality FROM table_name_86 WHERE player = "larry wright"
[ 13828, 2351, 414, 468, 257, 7853, 286, 300, 6532, 1319, 432, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 4521, 33411, 2137, 796, 366, 75, 6532, 1319, 432, 1 ]
[ 1, 1, 1, 1, 1, 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, 2351, 414, 468, 257, 7853, 286, 300, 6532, 1319, 432, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 4521, 33411, 2137, 796, 366, 75, 6532, 1319, 432, 1 ]
When was Color of green first issued?
SELECT MIN("First issued") FROM table_39610 WHERE "Color" = 'green'
[ 2215, 373, 5315, 286, 4077, 717, 4884, 30, 46506, 20625, 7203, 5962, 4884, 4943, 16034, 3084, 62, 34107, 940, 33411, 366, 10258, 1, 796, 705, 14809, 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 ]
[ 2215, 373, 5315, 286, 4077, 717, 4884, 30, 46506, 20625, 7203, 5962, 4884, 4943, 16034, 3084, 62, 34107, 940, 33411, 366, 10258, 1, 796, 705, 14809, 6 ]
The BIGGEST Post Body on Stack Overflow.
SELECT Id AS "post_link", LENGTH(Body) AS Size, CreationDate, LastEditDate FROM Posts ORDER BY LENGTH(Body) DESC LIMIT 1
[ 464, 26746, 38, 6465, 2947, 12290, 319, 23881, 3827, 11125, 13, 46506, 5121, 7054, 366, 7353, 62, 8726, 1600, 406, 49494, 7, 25842, 8, 7054, 12849, 11, 21582, 10430, 11, 4586, 18378, 10430, 16034, 12043, 38678, 11050, 406, 49494, 7, 258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 464, 26746, 38, 6465, 2947, 12290, 319, 23881, 3827, 11125, 13, 46506, 5121, 7054, 366, 7353, 62, 8726, 1600, 406, 49494, 7, 25842, 8, 7054, 12849, 11, 21582, 10430, 11, 4586, 18378, 10430, 16034, 12043, 38678, 11050, 406, 49494, 7, 258...
I want to see trend of the total number by yearid, and order by the X-axis from low to high.
SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid ORDER BY yearid
[ 40, 765, 284, 766, 5182, 286, 262, 2472, 1271, 416, 614, 312, 11, 290, 1502, 416, 262, 1395, 12, 22704, 422, 1877, 284, 1029, 13, 46506, 614, 312, 11, 327, 28270, 7, 28104, 16034, 6899, 62, 1659, 62, 69, 480, 44441, 11050, 614, 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 ]
[ 40, 765, 284, 766, 5182, 286, 262, 2472, 1271, 416, 614, 312, 11, 290, 1502, 416, 262, 1395, 12, 22704, 422, 1877, 284, 1029, 13, 46506, 614, 312, 11, 327, 28270, 7, 28104, 16034, 6899, 62, 1659, 62, 69, 480, 44441, 11050, 614, 31...
what is the date of birth for patient 81546?
SELECT patients.dob FROM patients WHERE patients.subject_id = 81546
[ 10919, 318, 262, 3128, 286, 4082, 329, 5827, 807, 1314, 3510, 30, 46506, 3871, 13, 67, 672, 16034, 3871, 33411, 3871, 13, 32796, 62, 312, 796, 807, 1314, 3510 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 3128, 286, 4082, 329, 5827, 807, 1314, 3510, 30, 46506, 3871, 13, 67, 672, 16034, 3871, 33411, 3871, 13, 32796, 62, 312, 796, 807, 1314, 3510 ]
since 4 years ago, what are the top three most frequent specimen tests ordered for patients within 2 months after the diagnosis of exam-clincal trial?
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, 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.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_...
[ 20777, 604, 812, 2084, 11, 644, 389, 262, 1353, 1115, 749, 10792, 31674, 5254, 6149, 329, 3871, 1626, 362, 1933, 706, 262, 13669, 286, 2814, 12, 565, 1939, 282, 4473, 30, 46506, 256, 18, 13, 16684, 62, 4906, 62, 20147, 16034, 357, 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...
[ 20777, 604, 812, 2084, 11, 644, 389, 262, 1353, 1115, 749, 10792, 31674, 5254, 6149, 329, 3871, 1626, 362, 1933, 706, 262, 13669, 286, 2814, 12, 565, 1939, 282, 4473, 30, 46506, 256, 18, 13, 16684, 62, 4906, 62, 20147, 16034, 357, 4...
What's the score of the game with 31-29 record?
SELECT "Score" FROM table_2679 WHERE "Record" = '31-29'
[ 2061, 338, 262, 4776, 286, 262, 983, 351, 3261, 12, 1959, 1700, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2075, 3720, 33411, 366, 23739, 1, 796, 705, 3132, 12, 1959, 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 ]
[ 2061, 338, 262, 4776, 286, 262, 983, 351, 3261, 12, 1959, 1700, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2075, 3720, 33411, 366, 23739, 1, 796, 705, 3132, 12, 1959, 6 ]
What team was visiting on February 15?
SELECT "Visitor" FROM table_58375 WHERE "Date" = 'february 15'
[ 2061, 1074, 373, 10013, 319, 3945, 1315, 30, 46506, 366, 15854, 2072, 1, 16034, 3084, 62, 3365, 22318, 33411, 366, 10430, 1, 796, 705, 69, 1765, 3728, 1315, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1074, 373, 10013, 319, 3945, 1315, 30, 46506, 366, 15854, 2072, 1, 16034, 3084, 62, 3365, 22318, 33411, 366, 10430, 1, 796, 705, 69, 1765, 3728, 1315, 6 ]
Find all the stage positions of the musicians with first name 'Solveig
SELECT DISTINCT T1.stageposition FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Solveig"
[ 16742, 477, 262, 3800, 6116, 286, 262, 17245, 351, 717, 1438, 705, 50, 6442, 328, 46506, 360, 8808, 1268, 4177, 309, 16, 13, 14247, 9150, 16034, 2854, 7054, 309, 16, 32357, 1268, 4097, 7054, 309, 17, 6177, 309, 16, 13, 3903, 9830, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16742, 477, 262, 3800, 6116, 286, 262, 17245, 351, 717, 1438, 705, 50, 6442, 328, 46506, 360, 8808, 1268, 4177, 309, 16, 13, 14247, 9150, 16034, 2854, 7054, 309, 16, 32357, 1268, 4097, 7054, 309, 17, 6177, 309, 16, 13, 3903, 9830, 7...
what is the maximum value of the heartrate of patient 010-33597 on the last intensive care unit visit?
SELECT MAX(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 = '010-33597') AND NOT patient.unitdischargetime IS NUL...
[ 10919, 318, 262, 5415, 1988, 286, 262, 2612, 4873, 286, 5827, 5534, 15, 12, 2091, 43239, 319, 262, 938, 18590, 1337, 4326, 3187, 30, 46506, 25882, 7, 85, 1287, 41007, 291, 13, 11499, 4873, 8, 16034, 9204, 41007, 291, 33411, 9204, 4100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1988, 286, 262, 2612, 4873, 286, 5827, 5534, 15, 12, 2091, 43239, 319, 262, 938, 18590, 1337, 4326, 3187, 30, 46506, 25882, 7, 85, 1287, 41007, 291, 13, 11499, 4873, 8, 16034, 9204, 41007, 291, 33411, 9204, 4100...
what was patient 9619's first value of the arterial bp mean until 08/02/2102?
SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9619)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial b...
[ 10919, 373, 5827, 9907, 1129, 338, 717, 1988, 286, 262, 30675, 498, 275, 79, 1612, 1566, 8487, 14, 2999, 14, 17, 15377, 30, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 323, 62, 312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 373, 5827, 9907, 1129, 338, 717, 1988, 286, 262, 30675, 498, 275, 79, 1612, 1566, 8487, 14, 2999, 14, 17, 15377, 30, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 323, 62, 312, ...
What is the average rating stars and title for the oldest movie?
SELECT AVG(T1.stars), T2.title FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid WHERE T2.year = (SELECT MIN(year) FROM movie)
[ 2061, 318, 262, 2811, 7955, 5788, 290, 3670, 329, 262, 13325, 3807, 30, 46506, 35224, 7, 51, 16, 13, 30783, 828, 309, 17, 13, 7839, 16034, 7955, 7054, 309, 16, 32357, 1268, 3807, 7054, 309, 17, 6177, 309, 16, 13, 13602, 796, 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 ]
[ 2061, 318, 262, 2811, 7955, 5788, 290, 3670, 329, 262, 13325, 3807, 30, 46506, 35224, 7, 51, 16, 13, 30783, 828, 309, 17, 13, 7839, 16034, 7955, 7054, 309, 16, 32357, 1268, 3807, 7054, 309, 17, 6177, 309, 16, 13, 13602, 796, 309, ...
Which Years at club have a Debut year of 1930, and Games larger than 7, and a Player of colin benham?
SELECT "Years at club" FROM table_14166 WHERE "Debut year" = '1930' AND "Games" > '7' AND "Player" = 'colin benham'
[ 13828, 13212, 379, 3430, 423, 257, 1024, 4360, 614, 286, 15533, 11, 290, 5776, 4025, 621, 767, 11, 290, 257, 7853, 286, 951, 259, 1888, 2763, 30, 46506, 366, 40630, 379, 3430, 1, 16034, 3084, 62, 1415, 23055, 33411, 366, 16587, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13212, 379, 3430, 423, 257, 1024, 4360, 614, 286, 15533, 11, 290, 5776, 4025, 621, 767, 11, 290, 257, 7853, 286, 951, 259, 1888, 2763, 30, 46506, 366, 40630, 379, 3430, 1, 16034, 3084, 62, 1415, 23055, 33411, 366, 16587, 315, ...
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 phone_number and employee_id , and list X in desc order please.
SELECT PHONE_NUMBER, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER DESC
[ 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, 3072, 62, 17618, 290, 6538, 62, 312, 837, 290, 1351, 1395, 287, 1715, 1502, 3387...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, 3072, 62, 17618, 290, 6538, 62, 312, 837, 290, 1351, 1395, 287, 1715, 1502, 3387...
In the final Stage with a Mountains Classification of Christophe Moreau, what is the Team Classification?
SELECT "Team Classification" FROM table_45371 WHERE "Mountains Classification" = 'christophe moreau' AND "Stage" = 'final'
[ 818, 262, 2457, 15371, 351, 257, 21124, 40984, 286, 1951, 43852, 3125, 559, 11, 644, 318, 262, 4816, 40984, 30, 46506, 366, 15592, 40984, 1, 16034, 3084, 62, 2231, 38056, 33411, 366, 35452, 1299, 40984, 1, 796, 705, 43533, 43852, 517, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2457, 15371, 351, 257, 21124, 40984, 286, 1951, 43852, 3125, 559, 11, 644, 318, 262, 4816, 40984, 30, 46506, 366, 15592, 40984, 1, 16034, 3084, 62, 2231, 38056, 33411, 366, 35452, 1299, 40984, 1, 796, 705, 43533, 43852, 517, ...
what time patient 13536 had last had the maximum arterial bp [systolic] value until 05/09/2105?
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13536)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial...
[ 10919, 640, 5827, 17501, 2623, 550, 938, 550, 262, 5415, 30675, 498, 275, 79, 685, 1837, 301, 4160, 60, 1988, 1566, 8870, 14, 2931, 14, 17, 13348, 30, 46506, 8262, 31534, 13, 40926, 2435, 16034, 8262, 31534, 33411, 8262, 31534, 13, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 640, 5827, 17501, 2623, 550, 938, 550, 262, 5415, 30675, 498, 275, 79, 685, 1837, 301, 4160, 60, 1988, 1566, 8870, 14, 2931, 14, 17, 13348, 30, 46506, 8262, 31534, 13, 40926, 2435, 16034, 8262, 31534, 33411, 8262, 31534, 13, 29...
who are the writers of the episode whose production code is 176206?
SELECT "Written by" FROM table_30653 WHERE "Production code" = '176206'
[ 8727, 389, 262, 8786, 286, 262, 4471, 3025, 3227, 2438, 318, 26937, 22136, 30, 46506, 366, 25354, 416, 1, 16034, 3084, 62, 1270, 46435, 33411, 366, 35027, 2438, 1, 796, 705, 24096, 22136, 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 ]
[ 8727, 389, 262, 8786, 286, 262, 4471, 3025, 3227, 2438, 318, 26937, 22136, 30, 46506, 366, 25354, 416, 1, 16034, 3084, 62, 1270, 46435, 33411, 366, 35027, 2438, 1, 796, 705, 24096, 22136, 6 ]
Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast?
SELECT radio_commentator FROM table_2794180_11 WHERE television_commentator = "Jan Gabrielsson"
[ 8241, 925, 262, 3651, 329, 5243, 7025, 618, 2365, 17371, 16528, 925, 606, 329, 5581, 7025, 30, 46506, 5243, 62, 23893, 1352, 16034, 3084, 62, 1983, 5824, 15259, 62, 1157, 33411, 5581, 62, 23893, 1352, 796, 366, 12128, 17371, 16528, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 925, 262, 3651, 329, 5243, 7025, 618, 2365, 17371, 16528, 925, 606, 329, 5581, 7025, 30, 46506, 5243, 62, 23893, 1352, 16034, 3084, 62, 1983, 5824, 15259, 62, 1157, 33411, 5581, 62, 23893, 1352, 796, 366, 12128, 17371, 16528, 1 ]
what is gender of subject id 17787?
SELECT demographic.gender FROM demographic WHERE demographic.subject_id = "17787"
[ 10919, 318, 5279, 286, 2426, 4686, 1596, 41019, 30, 46506, 16728, 13, 8388, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 1558, 41019, 1 ]
[ 1, 1, 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, 5279, 286, 2426, 4686, 1596, 41019, 30, 46506, 16728, 13, 8388, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 1558, 41019, 1 ]
Name the result with notes of quarter-finals and event of adcc 2001 absolute
SELECT result FROM table_name_65 WHERE notes = "quarter-finals" AND event = "adcc 2001 absolute"
[ 5376, 262, 1255, 351, 4710, 286, 3860, 12, 32089, 290, 1785, 286, 512, 535, 5878, 4112, 46506, 1255, 16034, 3084, 62, 3672, 62, 2996, 33411, 4710, 796, 366, 24385, 12, 32089, 1, 5357, 1785, 796, 366, 324, 535, 5878, 4112, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1255, 351, 4710, 286, 3860, 12, 32089, 290, 1785, 286, 512, 535, 5878, 4112, 46506, 1255, 16034, 3084, 62, 3672, 62, 2996, 33411, 4710, 796, 366, 24385, 12, 32089, 1, 5357, 1785, 796, 366, 324, 535, 5878, 4112, 1 ]
what is the number of patients whose year of birth is less than 2110 and lab test name is asparate aminotransferase (ast)?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2110" AND lab.label = "Asparate Aminotransferase (AST)"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 614, 286, 4082, 318, 1342, 621, 2310, 940, 290, 2248, 1332, 1438, 318, 355, 1845, 378, 716, 259, 313, 26084, 2232, 589, 357, 459, 19427, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 614, 286, 4082, 318, 1342, 621, 2310, 940, 290, 2248, 1332, 1438, 318, 355, 1845, 378, 716, 259, 313, 26084, 2232, 589, 357, 459, 19427, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, ...
What is Alyona Klimenko's Pos.?
SELECT pos FROM table_name_86 WHERE name = "alyona klimenko"
[ 2061, 318, 47535, 4450, 509, 2475, 32720, 338, 18574, 40791, 46506, 1426, 16034, 3084, 62, 3672, 62, 4521, 33411, 1438, 796, 366, 3400, 4450, 479, 2475, 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 ]
[ 2061, 318, 47535, 4450, 509, 2475, 32720, 338, 18574, 40791, 46506, 1426, 16034, 3084, 62, 3672, 62, 4521, 33411, 1438, 796, 366, 3400, 4450, 479, 2475, 32720, 1 ]
patient 003-34282 has been tested for troponin - i in 2105?
SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-34282')) AND lab.labname = 'troponin - i' AND STRFTIME('%y', lab.labresulttime) = '2...
[ 26029, 3571, 18, 12, 2682, 32568, 468, 587, 6789, 329, 14673, 261, 259, 532, 1312, 287, 362, 13348, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26029, 3571, 18, 12, 2682, 32568, 468, 587, 6789, 329, 14673, 261, 259, 532, 1312, 287, 362, 13348, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, ...
find the drug type of potassium phosphate.
SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Potassium Phosphate"
[ 19796, 262, 2563, 2099, 286, 33156, 46926, 13, 46506, 34092, 13, 30349, 62, 4906, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 25396, 26663, 1380, 14222, 378, 1 ]
[ 1, 1, 1, 1, 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, 2563, 2099, 286, 33156, 46926, 13, 46506, 34092, 13, 30349, 62, 4906, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 25396, 26663, 1380, 14222, 378, 1 ]
How many heavy attacks did the 450 Luftflotte 2 conduct?
SELECT COUNT(heavy_attacks) FROM table_name_29 WHERE luftflotte_2_sorties = 450
[ 2437, 867, 4334, 3434, 750, 262, 18523, 6026, 701, 2704, 11404, 362, 3189, 30, 46506, 327, 28270, 7, 23701, 62, 38458, 8, 16034, 3084, 62, 3672, 62, 1959, 33411, 300, 84, 701, 2704, 11404, 62, 17, 62, 30619, 444, 796, 18523 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4334, 3434, 750, 262, 18523, 6026, 701, 2704, 11404, 362, 3189, 30, 46506, 327, 28270, 7, 23701, 62, 38458, 8, 16034, 3084, 62, 3672, 62, 1959, 33411, 300, 84, 701, 2704, 11404, 62, 17, 62, 30619, 444, 796, 18523 ]
Is there any other person besides Prof. Bagchi who teaches Advanced Writing for Graduate Students ?
SELECT DISTINCT course.department, course.name, course.number, instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.name LIKE '%Advanced Writing for Graduate Students%' AND NOT instructor.name LIKE '%Bagchi%' AND offering_instructor....
[ 3792, 612, 597, 584, 1048, 13769, 4415, 13, 20127, 11072, 508, 17324, 13435, 22183, 329, 30930, 14882, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 21187, 13, 3672, 16034, 1781,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3792, 612, 597, 584, 1048, 13769, 4415, 13, 20127, 11072, 508, 17324, 13435, 22183, 329, 30930, 14882, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 21187, 13, 3672, 16034, 1781,...
Draw a bar chart about the distribution of Time and ID , and sort y-axis in ascending order please.
SELECT Time, ID FROM swimmer ORDER BY ID
[ 25302, 257, 2318, 8262, 546, 262, 6082, 286, 3862, 290, 4522, 837, 290, 3297, 331, 12, 22704, 287, 41988, 1502, 3387, 13, 46506, 3862, 11, 4522, 16034, 9422, 647, 38678, 11050, 4522 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 25302, 257, 2318, 8262, 546, 262, 6082, 286, 3862, 290, 4522, 837, 290, 3297, 331, 12, 22704, 287, 41988, 1502, 3387, 13, 46506, 3862, 11, 4522, 16034, 9422, 647, 38678, 11050, 4522 ]
Show me a bar chart about the number of races held in each year after 2014, could you list total number in descending order please?
SELECT year, COUNT(year) FROM races AS T1 JOIN results AS T2 ON T1.raceId = T2.raceId WHERE T1.year > 2014 GROUP BY year ORDER BY COUNT(year) DESC
[ 15307, 502, 257, 2318, 8262, 546, 262, 1271, 286, 9558, 2714, 287, 1123, 614, 706, 1946, 11, 714, 345, 1351, 2472, 1271, 287, 31491, 1502, 3387, 30, 46506, 614, 11, 327, 28270, 7, 1941, 8, 16034, 9558, 7054, 309, 16, 32357, 1268, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 257, 2318, 8262, 546, 262, 1271, 286, 9558, 2714, 287, 1123, 614, 706, 1946, 11, 714, 345, 1351, 2472, 1271, 287, 31491, 1502, 3387, 30, 46506, 614, 11, 327, 28270, 7, 1941, 8, 16034, 9558, 7054, 309, 16, 32357, 1268, 24...
Jason Goemaat upvotes by tag.
SELECT TagName, COUNT(*) AS UpVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 WHERE Posts.OwnerUserId = @UserId GROUP BY TagName ORDER BY UpVotes DESC
[ 26497, 1514, 19687, 265, 510, 29307, 416, 7621, 13, 46506, 17467, 5376, 11, 327, 28270, 7, 28104, 7054, 3205, 53, 6421, 16034, 44789, 3268, 21479, 32357, 1268, 2947, 36142, 6177, 2947, 36142, 13, 24835, 7390, 796, 44789, 13, 7390, 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...
[ 26497, 1514, 19687, 265, 510, 29307, 416, 7621, 13, 46506, 17467, 5376, 11, 327, 28270, 7, 28104, 7054, 3205, 53, 6421, 16034, 44789, 3268, 21479, 32357, 1268, 2947, 36142, 6177, 2947, 36142, 13, 24835, 7390, 796, 44789, 13, 7390, 3268, ...
Which system is named ELKJS?
SELECT system FROM table_name_66 WHERE name = "elkjs"
[ 13828, 1080, 318, 3706, 17852, 42, 20120, 30, 46506, 1080, 16034, 3084, 62, 3672, 62, 2791, 33411, 1438, 796, 366, 417, 74, 8457, 1 ]
[ 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, 1080, 318, 3706, 17852, 42, 20120, 30, 46506, 1080, 16034, 3084, 62, 3672, 62, 2791, 33411, 1438, 796, 366, 417, 74, 8457, 1 ]
until 2103, what are the top four most frequently diagnosed diagnoses that patients were given in the same month after the diagnosis of depressive disorder nec?
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...
[ 28446, 362, 15197, 11, 644, 389, 262, 1353, 1440, 749, 6777, 14641, 40567, 326, 3871, 547, 1813, 287, 262, 976, 1227, 706, 262, 13669, 286, 36568, 8967, 27576, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 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...
[ 28446, 362, 15197, 11, 644, 389, 262, 1353, 1440, 749, 6777, 14641, 40567, 326, 3871, 547, 1813, 287, 262, 976, 1227, 706, 262, 13669, 286, 36568, 8967, 27576, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 16034, ...
What is the most silver won by Norway?
SELECT MAX(silver) FROM table_name_76 WHERE nation = "norway"
[ 2061, 318, 262, 749, 8465, 1839, 416, 15238, 30, 46506, 25882, 7, 40503, 8, 16034, 3084, 62, 3672, 62, 4304, 33411, 3277, 796, 366, 13099, 1014, 1 ]
[ 1, 1, 1, 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, 749, 8465, 1839, 416, 15238, 30, 46506, 25882, 7, 40503, 8, 16034, 3084, 62, 3672, 62, 4304, 33411, 3277, 796, 366, 13099, 1014, 1 ]
What are the names of the county that the delegates on 'Appropriations' committee belong to?
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
[ 2061, 389, 262, 3891, 286, 262, 7968, 326, 262, 15265, 319, 705, 4677, 9219, 602, 6, 5583, 5594, 284, 30, 46506, 309, 16, 13, 12332, 88, 62, 3672, 16034, 7968, 7054, 309, 16, 32357, 1268, 3071, 7054, 309, 17, 6177, 309, 16, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 3891, 286, 262, 7968, 326, 262, 15265, 319, 705, 4677, 9219, 602, 6, 5583, 5594, 284, 30, 46506, 309, 16, 13, 12332, 88, 62, 3672, 16034, 7968, 7054, 309, 16, 32357, 1268, 3071, 7054, 309, 17, 6177, 309, 16, 13, 12...
How many byes when the draws are less than 0?
SELECT COUNT(byes) FROM table_name_22 WHERE draws < 0
[ 2437, 867, 416, 274, 618, 262, 14293, 389, 1342, 621, 657, 30, 46506, 327, 28270, 7, 1525, 274, 8, 16034, 3084, 62, 3672, 62, 1828, 33411, 14293, 1279, 657 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 416, 274, 618, 262, 14293, 389, 1342, 621, 657, 30, 46506, 327, 28270, 7, 1525, 274, 8, 16034, 3084, 62, 3672, 62, 1828, 33411, 14293, 1279, 657 ]
what was the maximum hemoglobin value for patient 9619 until 05/2102.
SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9619) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemoglobin') AND STRFTIME('%y-%m', labevents.charttime) <= '2102-05'
[ 10919, 373, 262, 5415, 16869, 49835, 1988, 329, 5827, 9907, 1129, 1566, 8870, 14, 17, 15377, 13, 46506, 25882, 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, 373, 262, 5415, 16869, 49835, 1988, 329, 5827, 9907, 1129, 1566, 8870, 14, 17, 15377, 13, 46506, 25882, 7, 23912, 31534, 13, 2100, 84, 44709, 8, 16034, 2248, 31534, 33411, 2248, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, ...
Which week has Game site of Candlestick Park?
SELECT week FROM table_name_32 WHERE game_site = "candlestick park"
[ 13828, 1285, 468, 3776, 2524, 286, 15518, 32712, 624, 3250, 30, 46506, 1285, 16034, 3084, 62, 3672, 62, 2624, 33411, 983, 62, 15654, 796, 366, 46188, 32712, 624, 3952, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 1285, 468, 3776, 2524, 286, 15518, 32712, 624, 3250, 30, 46506, 1285, 16034, 3084, 62, 3672, 62, 2624, 33411, 983, 62, 15654, 796, 366, 46188, 32712, 624, 3952, 1 ]
For those employees who did not have any job in the past, a bar chart shows the distribution of job_id and the average of salary , and group by attribute job_id, and I want to show bars in asc order.
SELECT JOB_ID, AVG(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1693, 62, 312, 290, 262, 2811, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 290, 314, 765, 284, 905, 9210, 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...
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1693, 62, 312, 290, 262, 2811, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 290, 314, 765, 284, 905, 9210, 287...
Which Losses have Draws larger than 6, and a Club of cd mestalla, and Goals against larger than 44?
SELECT MIN(losses) FROM table_name_75 WHERE draws > 6 AND club = "cd mestalla" AND goals_against > 44
[ 13828, 22014, 274, 423, 15315, 82, 4025, 621, 718, 11, 290, 257, 6289, 286, 22927, 285, 395, 30315, 11, 290, 28510, 1028, 4025, 621, 5846, 30, 46506, 20625, 7, 22462, 274, 8, 16034, 3084, 62, 3672, 62, 2425, 33411, 14293, 1875, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 22014, 274, 423, 15315, 82, 4025, 621, 718, 11, 290, 257, 6289, 286, 22927, 285, 395, 30315, 11, 290, 28510, 1028, 4025, 621, 5846, 30, 46506, 20625, 7, 22462, 274, 8, 16034, 3084, 62, 3672, 62, 2425, 33411, 14293, 1875, 718, ...
what are the top three most frequent specimen tests that patients took during the same hospital encounter after being diagnosed with hot substance accid nec since 4 years ago?
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnos...
[ 10919, 389, 262, 1353, 1115, 749, 10792, 31674, 5254, 326, 3871, 1718, 1141, 262, 976, 4436, 8791, 706, 852, 14641, 351, 3024, 9136, 697, 312, 27576, 1201, 604, 812, 2084, 30, 46506, 256, 18, 13, 16684, 62, 4906, 62, 20147, 16034, 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...
[ 10919, 389, 262, 1353, 1115, 749, 10792, 31674, 5254, 326, 3871, 1718, 1141, 262, 976, 4436, 8791, 706, 852, 14641, 351, 3024, 9136, 697, 312, 27576, 1201, 604, 812, 2084, 30, 46506, 256, 18, 13, 16684, 62, 4906, 62, 20147, 16034, 357...
Top answerers grouped by Tag.
WITH TagUsers AS (SELECT Answers.OwnerUserId AS "user_link", Tags.TagName, COUNT(Tags.TagName) AS "count" FROM Posts AS Answers INNER JOIN PostTags ON ParentId = PostTags.PostId INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE Answers.PostTypeId = 2 GROUP BY Tags.TagName, Answers.OwnerUserId) SELECT * FROM TagUsers AS...
[ 9126, 2590, 19288, 32824, 416, 17467, 13, 54, 10554, 17467, 14490, 7054, 357, 46506, 42612, 13, 42419, 12982, 7390, 7054, 366, 7220, 62, 8726, 1600, 44789, 13, 24835, 5376, 11, 327, 28270, 7, 36142, 13, 24835, 5376, 8, 7054, 366, 9127, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9126, 2590, 19288, 32824, 416, 17467, 13, 54, 10554, 17467, 14490, 7054, 357, 46506, 42612, 13, 42419, 12982, 7390, 7054, 366, 7220, 62, 8726, 1600, 44789, 13, 24835, 5376, 11, 327, 28270, 7, 36142, 13, 24835, 5376, 8, 7054, 366, 9127, ...
which illustrator was responsible for the last award winner ?
SELECT "illustrator" FROM table_203_788 ORDER BY "year" DESC LIMIT 1
[ 4758, 6406, 12392, 373, 4497, 329, 262, 938, 5764, 8464, 5633, 46506, 366, 359, 436, 12392, 1, 16034, 3084, 62, 22416, 62, 22, 3459, 38678, 11050, 366, 1941, 1, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 6406, 12392, 373, 4497, 329, 262, 938, 5764, 8464, 5633, 46506, 366, 359, 436, 12392, 1, 16034, 3084, 62, 22416, 62, 22, 3459, 38678, 11050, 366, 1941, 1, 22196, 34, 27564, 2043, 352 ]
What is the average laps for lorenzo bandini with a grid under 3?
SELECT AVG(laps) FROM table_name_91 WHERE driver = "lorenzo bandini" AND grid < 3
[ 2061, 318, 262, 2811, 24590, 329, 24044, 77, 10872, 4097, 5362, 351, 257, 10706, 739, 513, 30, 46506, 35224, 7, 75, 1686, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 4639, 796, 366, 75, 29578, 10872, 4097, 5362, 1, 5357, 10706, 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 ]
[ 2061, 318, 262, 2811, 24590, 329, 24044, 77, 10872, 4097, 5362, 351, 257, 10706, 739, 513, 30, 46506, 35224, 7, 75, 1686, 8, 16034, 3084, 62, 3672, 62, 6420, 33411, 4639, 796, 366, 75, 29578, 10872, 4097, 5362, 1, 5357, 10706, 1279, ...
proteinuria ( urine protein > 200 mg / dl ) or a creatinine > 1.5 mg / dl ( male ) or 1.4 mg / dl ( female )
SELECT * FROM table_train_157 WHERE (proteinuria = 1 OR urine_protein > 200) OR (creatinine_clearance_cl > 1.5 AND gender = 'male') OR (creatinine_clearance_cl > 1.4 AND gender = 'female')
[ 48693, 34484, 357, 18922, 7532, 1875, 939, 10527, 1220, 288, 75, 1267, 393, 257, 1827, 259, 500, 1875, 352, 13, 20, 10527, 1220, 288, 75, 357, 4257, 1267, 393, 352, 13, 19, 10527, 1220, 288, 75, 357, 4048, 1267, 46506, 1635, 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...
[ 48693, 34484, 357, 18922, 7532, 1875, 939, 10527, 1220, 288, 75, 1267, 393, 257, 1827, 259, 500, 1875, 352, 13, 20, 10527, 1220, 288, 75, 357, 4257, 1267, 393, 352, 13, 19, 10527, 1220, 288, 75, 357, 4048, 1267, 46506, 1635, 16034, ...