instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
A bar chart about how many hosts does each nationality have? List the nationality and the count.
SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality
[ 32, 2318, 8262, 546, 703, 867, 11453, 857, 1123, 29835, 423, 30, 7343, 262, 29835, 290, 262, 954, 13, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 44441, 11050, 2351, 414 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2318, 8262, 546, 703, 867, 11453, 857, 1123, 29835, 423, 30, 7343, 262, 29835, 290, 262, 954, 13, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 44441, 11050, 2351, 414 ]
What Field was Commissioned in 1958, 2005?
SELECT "Field" FROM table_42978 WHERE "Commissioned" = '1958, 2005'
[ 2061, 7663, 373, 4513, 276, 287, 24648, 11, 5075, 30, 46506, 366, 15878, 1, 16034, 3084, 62, 11785, 3695, 33411, 366, 50246, 276, 1, 796, 705, 1129, 3365, 11, 5075, 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, 7663, 373, 4513, 276, 287, 24648, 11, 5075, 30, 46506, 366, 15878, 1, 16034, 3084, 62, 11785, 3695, 33411, 366, 50246, 276, 1, 796, 705, 1129, 3365, 11, 5075, 6 ]
Who was the constructor of the car that had a Q1 pos of less than 8 and a Q1 time of 1:15.038?
SELECT constructor FROM table_name_84 WHERE q1_pos < 8 AND q1_time = "1:15.038"
[ 8241, 373, 262, 23772, 286, 262, 1097, 326, 550, 257, 1195, 16, 1426, 286, 1342, 621, 807, 290, 257, 1195, 16, 640, 286, 352, 25, 1314, 13, 15, 2548, 30, 46506, 23772, 16034, 3084, 62, 3672, 62, 5705, 33411, 10662, 16, 62, 1930, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23772, 286, 262, 1097, 326, 550, 257, 1195, 16, 1426, 286, 1342, 621, 807, 290, 257, 1195, 16, 640, 286, 352, 25, 1314, 13, 15, 2548, 30, 46506, 23772, 16034, 3084, 62, 3672, 62, 5705, 33411, 10662, 16, 62, 1930, 1...
Which livery is from 1919?
SELECT livery FROM table_name_57 WHERE date = "1919"
[ 13828, 300, 6315, 318, 422, 30992, 30, 46506, 300, 6315, 16034, 3084, 62, 3672, 62, 3553, 33411, 3128, 796, 366, 1129, 1129, 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, 300, 6315, 318, 422, 30992, 30, 46506, 300, 6315, 16034, 3084, 62, 3672, 62, 3553, 33411, 3128, 796, 366, 1129, 1129, 1 ]
What venue did the European Championships' 400 m Hurdles take place?
SELECT venue FROM table_name_7 WHERE notes = "400 m hurdles" AND competition = "european championships"
[ 2061, 14359, 750, 262, 3427, 24782, 6, 7337, 285, 367, 2799, 829, 1011, 1295, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 22, 33411, 4710, 796, 366, 7029, 285, 34283, 1, 5357, 5449, 796, 366, 44252, 431, 272, 27459, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 750, 262, 3427, 24782, 6, 7337, 285, 367, 2799, 829, 1011, 1295, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 22, 33411, 4710, 796, 366, 7029, 285, 34283, 1, 5357, 5449, 796, 366, 44252, 431, 272, 27459, 1 ]
What is the lowest quantity of the 1b n2 type, which was retired in 1907-12?
SELECT MIN(quantity) FROM table_name_50 WHERE type = "1b n2" AND retired = "1907-12"
[ 2061, 318, 262, 9016, 12040, 286, 262, 352, 65, 299, 17, 2099, 11, 543, 373, 9880, 287, 41435, 12, 1065, 30, 46506, 20625, 7, 40972, 414, 8, 16034, 3084, 62, 3672, 62, 1120, 33411, 2099, 796, 366, 16, 65, 299, 17, 1, 5357, 9880, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 12040, 286, 262, 352, 65, 299, 17, 2099, 11, 543, 373, 9880, 287, 41435, 12, 1065, 30, 46506, 20625, 7, 40972, 414, 8, 16034, 3084, 62, 3672, 62, 1120, 33411, 2099, 796, 366, 16, 65, 299, 17, 1, 5357, 9880, ...
What was the profession of the celebrity who was featured on season 15 and finished 7th place?
SELECT "Notability/Profession" FROM table_73697 WHERE "Season" = '15' AND "Finish" = '7th'
[ 2061, 373, 262, 7573, 286, 262, 16527, 508, 373, 8096, 319, 1622, 1315, 290, 5201, 767, 400, 1295, 30, 46506, 366, 3673, 1799, 14, 15404, 2521, 1, 16034, 3084, 62, 49150, 5607, 33411, 366, 18960, 1, 796, 705, 1314, 6, 5357, 366, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7573, 286, 262, 16527, 508, 373, 8096, 319, 1622, 1315, 290, 5201, 767, 400, 1295, 30, 46506, 366, 3673, 1799, 14, 15404, 2521, 1, 16034, 3084, 62, 49150, 5607, 33411, 366, 18960, 1, 796, 705, 1314, 6, 5357, 366, 486...
Find the number of married patients who had a lab test for folate.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "Folate"
[ 16742, 262, 1271, 286, 6405, 3871, 508, 550, 257, 2248, 1332, 329, 5955, 378, 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, 76, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 1271, 286, 6405, 3871, 508, 550, 257, 2248, 1332, 329, 5955, 378, 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, 76, 62, ...
What is the title that aired from 17 may 2008 21 june 2008 on Nederland 3?
SELECT "Name" FROM table_21954 WHERE "Channel" = 'Nederland 3' AND "Premiere / Aired" = '17 May 2008 – 21 June 2008'
[ 2061, 318, 262, 3670, 326, 18530, 422, 1596, 743, 3648, 2310, 474, 1726, 3648, 319, 399, 5702, 1044, 513, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 28896, 4051, 33411, 366, 29239, 1, 796, 705, 45, 5702, 1044, 513, 6, 5357, 366, 2491...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3670, 326, 18530, 422, 1596, 743, 3648, 2310, 474, 1726, 3648, 319, 399, 5702, 1044, 513, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 28896, 4051, 33411, 366, 29239, 1, 796, 705, 45, 5702, 1044, 513, 6, 5357, 366, 2491...
How many different players does the Washington Redskins have?
SELECT COUNT("Player") FROM table_29331 WHERE "NFL Team" = 'Washington Redskins'
[ 2437, 867, 1180, 1938, 857, 262, 2669, 22038, 423, 30, 46506, 327, 28270, 7203, 14140, 4943, 16034, 3084, 62, 1959, 31697, 33411, 366, 32078, 4816, 1, 796, 705, 17402, 22038, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1180, 1938, 857, 262, 2669, 22038, 423, 30, 46506, 327, 28270, 7203, 14140, 4943, 16034, 3084, 62, 1959, 31697, 33411, 366, 32078, 4816, 1, 796, 705, 17402, 22038, 6 ]
Which song was released 12/8/70 with a time of 2:54?
SELECT "Song Title" FROM table_78432 WHERE "Release Date" = '12/8/70' AND "Time" = '2:54'
[ 13828, 3496, 373, 2716, 1105, 14, 23, 14, 2154, 351, 257, 640, 286, 362, 25, 4051, 30, 46506, 366, 44241, 11851, 1, 16034, 3084, 62, 37688, 2624, 33411, 366, 26362, 7536, 1, 796, 705, 1065, 14, 23, 14, 2154, 6, 5357, 366, 7575, 1,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3496, 373, 2716, 1105, 14, 23, 14, 2154, 351, 257, 640, 286, 362, 25, 4051, 30, 46506, 366, 44241, 11851, 1, 16034, 3084, 62, 37688, 2624, 33411, 366, 26362, 7536, 1, 796, 705, 1065, 14, 23, 14, 2154, 6, 5357, 366, 7575, 1,...
What is the earliest year won Paul Azinger had with a to par higher than 5?
SELECT MIN("Year won") FROM table_70429 WHERE "Player" = 'paul azinger' AND "To par" > '5'
[ 2061, 318, 262, 14555, 614, 1839, 3362, 7578, 3889, 550, 351, 257, 284, 1582, 2440, 621, 642, 30, 46506, 20625, 7203, 17688, 1839, 4943, 16034, 3084, 62, 2154, 11785, 33411, 366, 14140, 1, 796, 705, 79, 2518, 35560, 3889, 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 ]
[ 2061, 318, 262, 14555, 614, 1839, 3362, 7578, 3889, 550, 351, 257, 284, 1582, 2440, 621, 642, 30, 46506, 20625, 7203, 17688, 1839, 4943, 16034, 3084, 62, 2154, 11785, 33411, 366, 14140, 1, 796, 705, 79, 2518, 35560, 3889, 6, 5357, 366...
what is the name of the drug which has been prescribed to patient 30307 two times?
SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30307) GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 = 2
[ 10919, 318, 262, 1438, 286, 262, 2563, 543, 468, 587, 14798, 284, 5827, 1542, 22996, 734, 1661, 30, 46506, 256, 16, 13, 30349, 16034, 357, 46506, 34092, 13, 30349, 11, 327, 28270, 7, 18302, 24370, 13, 9688, 4475, 8, 7054, 269, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 286, 262, 2563, 543, 468, 587, 14798, 284, 5827, 1542, 22996, 734, 1661, 30, 46506, 256, 16, 13, 30349, 16034, 357, 46506, 34092, 13, 30349, 11, 327, 28270, 7, 18302, 24370, 13, 9688, 4475, 8, 7054, 269, 16, 1...
Show me Epistemology courses of 15 credits .
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Epistemology%' OR name LIKE '%Epistemology%') AND credits = 15
[ 15307, 502, 4551, 396, 368, 1435, 10902, 286, 1315, 10824, 764, 46506, 360, 8808, 1268, 4177, 5011, 11, 1438, 11, 1271, 16034, 1781, 33411, 357, 11213, 34178, 705, 4, 13807, 396, 368, 1435, 4, 6, 6375, 1438, 34178, 705, 4, 13807, 396,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4551, 396, 368, 1435, 10902, 286, 1315, 10824, 764, 46506, 360, 8808, 1268, 4177, 5011, 11, 1438, 11, 1271, 16034, 1781, 33411, 357, 11213, 34178, 705, 4, 13807, 396, 368, 1435, 4, 6, 6375, 1438, 34178, 705, 4, 13807, 396,...
when patient 028-45460 was last diagnosed with hyperkalemia - severe (> 6.1 meq/dl) since 2104?
SELECT diagnosis.diagnosistime FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-45460')) AND diagnosis.diagnosisname = 'hyperkalemia - severe...
[ 12518, 5827, 657, 2078, 12, 34229, 1899, 373, 938, 14641, 351, 8718, 74, 282, 22859, 532, 6049, 45160, 718, 13, 16, 502, 80, 14, 25404, 8, 1201, 362, 13464, 30, 46506, 13669, 13, 47356, 418, 396, 524, 16034, 13669, 33411, 13669, 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...
[ 12518, 5827, 657, 2078, 12, 34229, 1899, 373, 938, 14641, 351, 8718, 74, 282, 22859, 532, 6049, 45160, 718, 13, 16, 502, 80, 14, 25404, 8, 1201, 362, 13464, 30, 46506, 13669, 13, 47356, 418, 396, 524, 16034, 13669, 33411, 13669, 13, ...
what is the number of patients whose year of birth is less than 2060 and lab test fluid is pleural?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2060" AND lab.fluid = "Pleural"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 614, 286, 4082, 318, 1342, 621, 1160, 1899, 290, 2248, 1332, 11711, 318, 3339, 1523, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 3235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 1899, 290, 2248, 1332, 11711, 318, 3339, 1523, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 3235...
give me the number of patients on main type drug prescription who have cerebral embolism with cerebral infarction diagnoses.
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 = "Crbl emblsm w infrct" AND prescriptions.drug_type = "MAIN"
[ 26535, 502, 262, 1271, 286, 3871, 319, 1388, 2099, 2563, 15077, 508, 423, 31169, 4072, 349, 1042, 351, 31169, 1167, 283, 596, 40567, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 214...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 319, 1388, 2099, 2563, 15077, 508, 423, 31169, 4072, 349, 1042, 351, 31169, 1167, 283, 596, 40567, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 214...
What are the name and code of the location with the smallest number of documents?
SELECT T2.location_name, T1.location_code FROM document_locations AS T1 JOIN ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY COUNT(*) LIMIT 1
[ 2061, 389, 262, 1438, 290, 2438, 286, 262, 4067, 351, 262, 18197, 1271, 286, 4963, 30, 46506, 309, 17, 13, 24886, 62, 3672, 11, 309, 16, 13, 24886, 62, 8189, 16034, 3188, 62, 17946, 602, 7054, 309, 16, 32357, 1268, 1006, 62, 17946, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 290, 2438, 286, 262, 4067, 351, 262, 18197, 1271, 286, 4963, 30, 46506, 309, 17, 13, 24886, 62, 3672, 11, 309, 16, 13, 24886, 62, 8189, 16034, 3188, 62, 17946, 602, 7054, 309, 16, 32357, 1268, 1006, 62, 17946, ...
What is Team 2, when Score is 2 - 1?
SELECT "Team 2" FROM table_46808 WHERE "Score" = '2 - 1'
[ 2061, 318, 4816, 362, 11, 618, 15178, 318, 362, 532, 352, 30, 46506, 366, 15592, 362, 1, 16034, 3084, 62, 3510, 28362, 33411, 366, 26595, 1, 796, 705, 17, 532, 352, 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, 318, 4816, 362, 11, 618, 15178, 318, 362, 532, 352, 30, 46506, 366, 15592, 362, 1, 16034, 3084, 62, 3510, 28362, 33411, 366, 26595, 1, 796, 705, 17, 532, 352, 6 ]
Tell me the sum of closed for city of pittsburgh and capacity larger than 59,000
SELECT SUM(closed) FROM table_name_73 WHERE city = "pittsburgh" AND capacity > 59 OFFSET 000
[ 24446, 502, 262, 2160, 286, 4838, 329, 1748, 286, 279, 715, 11931, 290, 5339, 4025, 621, 7863, 11, 830, 46506, 35683, 7, 20225, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 1748, 796, 366, 79, 715, 11931, 1, 5357, 5339, 1875, 7863, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2160, 286, 4838, 329, 1748, 286, 279, 715, 11931, 290, 5339, 4025, 621, 7863, 11, 830, 46506, 35683, 7, 20225, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 1748, 796, 366, 79, 715, 11931, 1, 5357, 5339, 1875, 7863, 39...
Which County has a School of bloomfield?
SELECT county FROM table_name_32 WHERE school = "bloomfield"
[ 13828, 3418, 468, 257, 3961, 286, 29955, 3245, 30, 46506, 7968, 16034, 3084, 62, 3672, 62, 2624, 33411, 1524, 796, 366, 2436, 4207, 3245, 1 ]
[ 1, 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, 3418, 468, 257, 3961, 286, 29955, 3245, 30, 46506, 7968, 16034, 3084, 62, 3672, 62, 2624, 33411, 1524, 796, 366, 2436, 4207, 3245, 1 ]
What date was the record 21-11?
SELECT "Date" FROM table_64757 WHERE "Record" = '21-11'
[ 2061, 3128, 373, 262, 1700, 2310, 12, 1157, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 2414, 39251, 33411, 366, 23739, 1, 796, 705, 2481, 12, 1157, 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, 3128, 373, 262, 1700, 2310, 12, 1157, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 2414, 39251, 33411, 366, 23739, 1, 796, 705, 2481, 12, 1157, 6 ]
What'd the total Dolphin points when there was an attendance of 52,860?
SELECT COUNT("Dolphins points") FROM table_62766 WHERE "Attendance" = '52,860'
[ 2061, 1549, 262, 2472, 44576, 2173, 618, 612, 373, 281, 14858, 286, 6740, 11, 45039, 30, 46506, 327, 28270, 7203, 35, 16547, 2173, 4943, 16034, 3084, 62, 49856, 2791, 33411, 366, 8086, 437, 590, 1, 796, 705, 4309, 11, 45039, 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 ]
[ 2061, 1549, 262, 2472, 44576, 2173, 618, 612, 373, 281, 14858, 286, 6740, 11, 45039, 30, 46506, 327, 28270, 7203, 35, 16547, 2173, 4943, 16034, 3084, 62, 49856, 2791, 33411, 366, 8086, 437, 590, 1, 796, 705, 4309, 11, 45039, 6 ]
Who was the Constructor when the Grid was 2?
SELECT constructor FROM table_name_63 WHERE grid = 2
[ 8241, 373, 262, 28407, 273, 618, 262, 24846, 373, 362, 30, 46506, 23772, 16034, 3084, 62, 3672, 62, 5066, 33411, 10706, 796, 362 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 28407, 273, 618, 262, 24846, 373, 362, 30, 46506, 23772, 16034, 3084, 62, 3672, 62, 5066, 33411, 10706, 796, 362 ]
How many items in each participant type code? Show me a pie chart!
SELECT Participant_Type_Code, COUNT(Participant_Type_Code) FROM Participants GROUP BY Participant_Type_Code
[ 2437, 867, 3709, 287, 1123, 18399, 2099, 2438, 30, 5438, 502, 257, 2508, 8262, 0, 46506, 29880, 62, 6030, 62, 10669, 11, 327, 28270, 7, 34363, 415, 62, 6030, 62, 10669, 8, 16034, 26122, 44441, 11050, 29880, 62, 6030, 62, 10669 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3709, 287, 1123, 18399, 2099, 2438, 30, 5438, 502, 257, 2508, 8262, 0, 46506, 29880, 62, 6030, 62, 10669, 11, 327, 28270, 7, 34363, 415, 62, 6030, 62, 10669, 8, 16034, 26122, 44441, 11050, 29880, 62, 6030, 62, 10669 ]
tell me the method of intake of aspirin 300 mg re supp?
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'aspirin 300 mg re supp'
[ 33331, 502, 262, 2446, 286, 10337, 286, 49550, 5867, 10527, 302, 802, 30, 46506, 360, 8808, 1268, 4177, 14103, 13, 81, 448, 1329, 1084, 16034, 14103, 33411, 14103, 13, 30349, 3672, 796, 705, 292, 4063, 259, 5867, 10527, 302, 802, 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 ]
[ 33331, 502, 262, 2446, 286, 10337, 286, 49550, 5867, 10527, 302, 802, 30, 46506, 360, 8808, 1268, 4177, 14103, 13, 81, 448, 1329, 1084, 16034, 14103, 33411, 14103, 13, 30349, 3672, 796, 705, 292, 4063, 259, 5867, 10527, 302, 802, 6 ]
Answers with word '.BY' for 'data.table' tag posts.
SELECT OwnerUserId AS "user_link", Id AS "post_link" FROM Posts WHERE ParentId IN (SELECT Id FROM Posts WHERE Tags LIKE '%data.table%' AND Body COLLATE Latin1_General_CS_AS LIKE '%column%') AND Body COLLATE Latin1_General_CS_AS LIKE '%.BY%'
[ 2025, 37848, 351, 1573, 45302, 17513, 6, 329, 705, 7890, 13, 11487, 6, 7621, 6851, 13, 46506, 23853, 12982, 7390, 7054, 366, 7220, 62, 8726, 1600, 5121, 7054, 366, 7353, 62, 8726, 1, 16034, 12043, 33411, 16774, 7390, 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...
[ 2025, 37848, 351, 1573, 45302, 17513, 6, 329, 705, 7890, 13, 11487, 6, 7621, 6851, 13, 46506, 23853, 12982, 7390, 7054, 366, 7220, 62, 8726, 1600, 5121, 7054, 366, 7353, 62, 8726, 1, 16034, 12043, 33411, 16774, 7390, 3268, 357, 46506, ...
What is the average position for a driver with less than 54 points and husaberg-bsu as equipment?
SELECT AVG("Position") FROM table_10006 WHERE "Points" < '54' AND "Equipment" = 'husaberg-bsu'
[ 2061, 318, 262, 2811, 2292, 329, 257, 4639, 351, 1342, 621, 7175, 2173, 290, 4791, 397, 6422, 12, 1443, 84, 355, 5112, 30, 46506, 35224, 7203, 26545, 4943, 16034, 3084, 62, 12825, 21, 33411, 366, 40710, 1, 1279, 705, 4051, 6, 5357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 2292, 329, 257, 4639, 351, 1342, 621, 7175, 2173, 290, 4791, 397, 6422, 12, 1443, 84, 355, 5112, 30, 46506, 35224, 7203, 26545, 4943, 16034, 3084, 62, 12825, 21, 33411, 366, 40710, 1, 1279, 705, 4051, 6, 5357, ...
For how many games on December 19 is there information on who scored the most rebounds?
SELECT COUNT(high_rebounds) FROM table_27755603_7 WHERE date = "December 19"
[ 1890, 703, 867, 1830, 319, 3426, 678, 318, 612, 1321, 319, 508, 7781, 262, 749, 18841, 30, 46506, 327, 28270, 7, 8929, 62, 34806, 3733, 8, 16034, 3084, 62, 1983, 2425, 34135, 18, 62, 22, 33411, 3128, 796, 366, 20588, 678, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 703, 867, 1830, 319, 3426, 678, 318, 612, 1321, 319, 508, 7781, 262, 749, 18841, 30, 46506, 327, 28270, 7, 8929, 62, 34806, 3733, 8, 16034, 3084, 62, 1983, 2425, 34135, 18, 62, 22, 33411, 3128, 796, 366, 20588, 678, 1 ]
what is the number of patients born before 1821 who were discharged to skilled nursing facility?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.dob_year < "1821"
[ 10919, 318, 262, 1271, 286, 3871, 4642, 878, 1248, 2481, 508, 547, 26476, 284, 14297, 19167, 6841, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 6381, 10136, 62, 24886, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 1271, 286, 3871, 4642, 878, 1248, 2481, 508, 547, 26476, 284, 14297, 19167, 6841, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 6381, 10136, 62, 24886, 7...
What is the record when the high points is listed as Stephen Curry (32)?
SELECT record FROM table_27755784_8 WHERE high_points = "Stephen Curry (32)"
[ 2061, 318, 262, 1700, 618, 262, 1029, 2173, 318, 5610, 355, 7970, 20920, 357, 2624, 19427, 46506, 1700, 16034, 3084, 62, 1983, 2425, 3553, 5705, 62, 23, 33411, 1029, 62, 13033, 796, 366, 24920, 20920, 357, 2624, 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, 1, 1, 1 ]
[ 2061, 318, 262, 1700, 618, 262, 1029, 2173, 318, 5610, 355, 7970, 20920, 357, 2624, 19427, 46506, 1700, 16034, 3084, 62, 1983, 2425, 3553, 5705, 62, 23, 33411, 1029, 62, 13033, 796, 366, 24920, 20920, 357, 2624, 16725 ]
what are the ways to consume magnesium sulfate 2g/50ml sso?
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'magnesium sulfate 2g/50ml sso'
[ 10919, 389, 262, 2842, 284, 15000, 33525, 22443, 378, 362, 70, 14, 1120, 4029, 264, 568, 30, 46506, 360, 8808, 1268, 4177, 14103, 13, 81, 448, 1329, 1084, 16034, 14103, 33411, 14103, 13, 30349, 3672, 796, 705, 19726, 27619, 22443, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 389, 262, 2842, 284, 15000, 33525, 22443, 378, 362, 70, 14, 1120, 4029, 264, 568, 30, 46506, 360, 8808, 1268, 4177, 14103, 13, 81, 448, 1329, 1084, 16034, 14103, 33411, 14103, 13, 30349, 3672, 796, 705, 19726, 27619, 22443, 378, ...
in this year patient 3097 has been admitted to the hospital?
SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 3097 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
[ 259, 428, 614, 5827, 1542, 5607, 468, 587, 6848, 284, 262, 4436, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 1542, 5607, 5357, 360, 1404, 2767, 12789, 7, 324, 8481, 13, 324, 20124, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 259, 428, 614, 5827, 1542, 5607, 468, 587, 6848, 284, 262, 4436, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 1542, 5607, 5357, 360, 1404, 2767, 12789, 7, 324, 8481, 13, 324, 20124, ...
what is the number of patients whose age is less than 31 and diagnoses short title is crnry athrscl natve vssl?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "31" AND diagnoses.short_title = "Crnry athrscl natve vssl"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 3261, 290, 40567, 1790, 3670, 318, 1067, 77, 563, 5782, 3808, 565, 34664, 303, 410, 45163, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 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, 1...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 3261, 290, 40567, 1790, 3670, 318, 1067, 77, 563, 5782, 3808, 565, 34664, 303, 410, 45163, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 1...
What's the total losses when there are 8 wins and less than 2 byes?
SELECT SUM("Losses") FROM table_64004 WHERE "Wins" = '8' AND "Byes" < '2'
[ 2061, 338, 262, 2472, 9089, 618, 612, 389, 807, 7864, 290, 1342, 621, 362, 416, 274, 30, 46506, 35683, 7203, 43, 793, 274, 4943, 16034, 3084, 62, 2414, 22914, 33411, 366, 54, 1040, 1, 796, 705, 23, 6, 5357, 366, 3886, 274, 1, 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 ]
[ 2061, 338, 262, 2472, 9089, 618, 612, 389, 807, 7864, 290, 1342, 621, 362, 416, 274, 30, 46506, 35683, 7203, 43, 793, 274, 4943, 16034, 3084, 62, 2414, 22914, 33411, 366, 54, 1040, 1, 796, 705, 23, 6, 5357, 366, 3886, 274, 1, 1279...
among patients who were prescribed famotidine 20 mg tablet, what are the three most commonly ordered drugs at the same time since 2105?
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'famotidine 20 mg tablet' AND STRFTIME('%y', medicat...
[ 35131, 3871, 508, 547, 14798, 1145, 313, 39422, 1160, 10527, 14147, 11, 644, 389, 262, 1115, 749, 8811, 6149, 5010, 379, 262, 976, 640, 1201, 362, 13348, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 357, 46506, 256, 17, 13, 30349, 3672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 35131, 3871, 508, 547, 14798, 1145, 313, 39422, 1160, 10527, 14147, 11, 644, 389, 262, 1115, 749, 8811, 6149, 5010, 379, 262, 976, 640, 1201, 362, 13348, 30, 46506, 256, 18, 13, 30349, 3672, 16034, 357, 46506, 256, 17, 13, 30349, 3672...
other than frank gleiber , who else did play by play for cbs in 1965 ?
SELECT "play-by-play" FROM table_203_773 WHERE "play-by-play" <> 'frank glieber' AND "network" = 'cbs' AND "season" = 1965
[ 847, 621, 14346, 26852, 1856, 837, 508, 2073, 750, 711, 416, 711, 329, 269, 1443, 287, 17672, 5633, 46506, 366, 1759, 12, 1525, 12, 1759, 1, 16034, 3084, 62, 22416, 62, 46871, 33411, 366, 1759, 12, 1525, 12, 1759, 1, 1279, 29, 705, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 847, 621, 14346, 26852, 1856, 837, 508, 2073, 750, 711, 416, 711, 329, 269, 1443, 287, 17672, 5633, 46506, 366, 1759, 12, 1525, 12, 1759, 1, 16034, 3084, 62, 22416, 62, 46871, 33411, 366, 1759, 12, 1525, 12, 1759, 1, 1279, 29, 705, ...
What years did the person coach who had more than 31 ties?
SELECT years FROM table_name_5 WHERE ties > 31
[ 2061, 812, 750, 262, 1048, 3985, 508, 550, 517, 621, 3261, 8470, 30, 46506, 812, 16034, 3084, 62, 3672, 62, 20, 33411, 8470, 1875, 3261 ]
[ 1, 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, 812, 750, 262, 1048, 3985, 508, 550, 517, 621, 3261, 8470, 30, 46506, 812, 16034, 3084, 62, 3672, 62, 20, 33411, 8470, 1875, 3261 ]
Which Competition has a Venue of jan breydel, bruges, belgium?
SELECT competition FROM table_name_37 WHERE venue = "jan breydel, bruges, belgium"
[ 13828, 27348, 468, 257, 9932, 518, 286, 42897, 1449, 5173, 417, 11, 275, 2143, 274, 11, 894, 70, 1505, 30, 46506, 5449, 16034, 3084, 62, 3672, 62, 2718, 33411, 14359, 796, 366, 13881, 1449, 5173, 417, 11, 275, 2143, 274, 11, 894, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 27348, 468, 257, 9932, 518, 286, 42897, 1449, 5173, 417, 11, 275, 2143, 274, 11, 894, 70, 1505, 30, 46506, 5449, 16034, 3084, 62, 3672, 62, 2718, 33411, 14359, 796, 366, 13881, 1449, 5173, 417, 11, 275, 2143, 274, 11, 894, 70...
get me the drug code of oxazepam drug.
SELECT prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Oxazepam"
[ 1136, 502, 262, 2563, 2438, 286, 12018, 1031, 538, 321, 2563, 13, 46506, 34092, 13, 687, 377, 560, 62, 30349, 62, 10210, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 38208, 1031, 538, 321, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 2563, 2438, 286, 12018, 1031, 538, 321, 2563, 13, 46506, 34092, 13, 687, 377, 560, 62, 30349, 62, 10210, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 38208, 1031, 538, 321, 1 ]
How many answers are there for a tag?.
SELECT COUNT(p1.Id) FROM Posts AS p1 INNER JOIN PostTags AS pt ON pt.TagId = @TagId INNER JOIN Posts AS p2 ON p1.ParentId = p2.Id WHERE p1.PostTypeId = 2 AND pt.PostId = p2.Id
[ 2437, 867, 7429, 389, 612, 329, 257, 7621, 30, 13, 46506, 327, 28270, 7, 79, 16, 13, 7390, 8, 16034, 12043, 7054, 279, 16, 3268, 21479, 32357, 1268, 2947, 36142, 7054, 42975, 6177, 42975, 13, 24835, 7390, 796, 2488, 24835, 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...
[ 2437, 867, 7429, 389, 612, 329, 257, 7621, 30, 13, 46506, 327, 28270, 7, 79, 16, 13, 7390, 8, 16034, 12043, 7054, 279, 16, 3268, 21479, 32357, 1268, 2947, 36142, 7054, 42975, 6177, 42975, 13, 24835, 7390, 796, 2488, 24835, 7390, 3268,...
how many days have passed since the admission of patient 006-105495 to the icu?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '006-105495' AND patient.unitdischargetime IS NULL
[ 4919, 867, 1528, 423, 3804, 1201, 262, 13938, 286, 5827, 3571, 21, 12, 13348, 33781, 284, 262, 14158, 84, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, 12789, 10786, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3804, 1201, 262, 13938, 286, 5827, 3571, 21, 12, 13348, 33781, 284, 262, 14158, 84, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, 12789, 10786, ...
Which Team classification has a Combination classification of egoi mart nez, and a Winner of tom boonen?
SELECT "Team classification" FROM table_6000 WHERE "Combination classification" = 'egoi martínez' AND "Winner" = 'tom boonen'
[ 13828, 4816, 17923, 468, 257, 14336, 1883, 17923, 286, 19225, 72, 11277, 497, 89, 11, 290, 257, 25358, 286, 16667, 1489, 34481, 30, 46506, 366, 15592, 17923, 1, 16034, 3084, 62, 43434, 33411, 366, 20575, 1883, 17923, 1, 796, 705, 1533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4816, 17923, 468, 257, 14336, 1883, 17923, 286, 19225, 72, 11277, 497, 89, 11, 290, 257, 25358, 286, 16667, 1489, 34481, 30, 46506, 366, 15592, 17923, 1, 16034, 3084, 62, 43434, 33411, 366, 20575, 1883, 17923, 1, 796, 705, 1533, ...
Which Team has a Previous team of san diego rockets, and a Position of f?
SELECT team FROM table_name_71 WHERE previous_team = "san diego rockets" AND pos = "f"
[ 13828, 4816, 468, 257, 21801, 1074, 286, 5336, 4656, 2188, 20293, 11, 290, 257, 23158, 286, 277, 30, 46506, 1074, 16034, 3084, 62, 3672, 62, 4869, 33411, 2180, 62, 15097, 796, 366, 12807, 4656, 2188, 20293, 1, 5357, 1426, 796, 366, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4816, 468, 257, 21801, 1074, 286, 5336, 4656, 2188, 20293, 11, 290, 257, 23158, 286, 277, 30, 46506, 1074, 16034, 3084, 62, 3672, 62, 4869, 33411, 2180, 62, 15097, 796, 366, 12807, 4656, 2188, 20293, 1, 5357, 1426, 796, 366, 69...
What Tournament had a Score in Final of 5 7, 4 6?
SELECT tournament FROM table_name_43 WHERE score_in_final = "5–7, 4–6"
[ 2061, 9595, 550, 257, 15178, 287, 8125, 286, 642, 767, 11, 604, 718, 30, 46506, 7756, 16034, 3084, 62, 3672, 62, 3559, 33411, 4776, 62, 259, 62, 20311, 796, 366, 20, 1906, 22, 11, 604, 1906, 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 ]
[ 2061, 9595, 550, 257, 15178, 287, 8125, 286, 642, 767, 11, 604, 718, 30, 46506, 7756, 16034, 3084, 62, 3672, 62, 3559, 33411, 4776, 62, 259, 62, 20311, 796, 366, 20, 1906, 22, 11, 604, 1906, 21, 1 ]
Name the pos for west ham united
SELECT MIN(pos) FROM table_226619_12 WHERE club = "West Ham United"
[ 5376, 262, 1426, 329, 7421, 8891, 16503, 46506, 20625, 7, 1930, 8, 16034, 3084, 62, 1828, 2791, 1129, 62, 1065, 33411, 3430, 796, 366, 15045, 4345, 1578, 1 ]
[ 1, 1, 1, 1, 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, 1426, 329, 7421, 8891, 16503, 46506, 20625, 7, 1930, 8, 16034, 3084, 62, 1828, 2791, 1129, 62, 1065, 33411, 3430, 796, 366, 15045, 4345, 1578, 1 ]
what is the number of patients with the prescription of ondansetron and have a diagnoses of chronic total occlusion of coronary artery primary disease?
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 = "Chronic total occlusion of coronary artery" AND prescriptions.drug = "Ondansetron"
[ 10919, 318, 262, 1271, 286, 3871, 351, 262, 15077, 286, 319, 67, 504, 316, 1313, 290, 423, 257, 40567, 286, 10726, 2472, 1609, 75, 4241, 286, 37151, 37646, 4165, 4369, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 15077, 286, 319, 67, 504, 316, 1313, 290, 423, 257, 40567, 286, 10726, 2472, 1609, 75, 4241, 286, 37151, 37646, 4165, 4369, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, ...
Which parish has a church named Vangsnes Kyrkje?
SELECT parish__prestegjeld_ FROM table_name_44 WHERE church_name = "vangsnes kyrkje"
[ 13828, 28830, 468, 257, 4928, 3706, 569, 27725, 2516, 42748, 74, 18015, 30, 46506, 28830, 834, 79, 2118, 1533, 18015, 335, 62, 16034, 3084, 62, 3672, 62, 2598, 33411, 4928, 62, 3672, 796, 366, 85, 27725, 2516, 479, 2417, 74, 18015, 1 ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28830, 468, 257, 4928, 3706, 569, 27725, 2516, 42748, 74, 18015, 30, 46506, 28830, 834, 79, 2118, 1533, 18015, 335, 62, 16034, 3084, 62, 3672, 62, 2598, 33411, 4928, 62, 3672, 796, 366, 85, 27725, 2516, 479, 2417, 74, 18015, 1 ...
What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?
SELECT province FROM table_27592654_2 WHERE election_date = "5 Cannot handle non-empty timestamp argument! 1861"
[ 2061, 373, 262, 8473, 351, 281, 3071, 3128, 286, 642, 2314, 5412, 1729, 12, 28920, 41033, 4578, 0, 45278, 30, 46506, 8473, 16034, 3084, 62, 1983, 3270, 2075, 4051, 62, 17, 33411, 3071, 62, 4475, 796, 366, 20, 26003, 5412, 1729, 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 ]
[ 2061, 373, 262, 8473, 351, 281, 3071, 3128, 286, 642, 2314, 5412, 1729, 12, 28920, 41033, 4578, 0, 45278, 30, 46506, 8473, 16034, 3084, 62, 1983, 3270, 2075, 4051, 62, 17, 33411, 3071, 62, 4475, 796, 366, 20, 26003, 5412, 1729, 12, ...
provide the number of patients whose ethnicity is asian and procedure long title is colonoscopy?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "ASIAN" AND procedures.long_title = "Colonoscopy"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 26289, 318, 355, 666, 290, 8771, 890, 3670, 318, 7633, 17500, 11081, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 26289, 318, 355, 666, 290, 8771, 890, 3670, 318, 7633, 17500, 11081, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6...
how many patients have done the lab test phosphate, urine and whose lab test abnormal status was delta?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "delta" AND lab.label = "Phosphate, Urine"
[ 4919, 867, 3871, 423, 1760, 262, 2248, 1332, 46926, 11, 18922, 290, 3025, 2248, 1332, 18801, 3722, 373, 25979, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 3871, 423, 1760, 262, 2248, 1332, 46926, 11, 18922, 290, 3025, 2248, 1332, 18801, 3722, 373, 25979, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, ...
What is the location of the Saints having 1979- as Years in GFL?
SELECT "Location" FROM table_61179 WHERE "Years in GFL" = '1979-' AND "Nickname" = 'saints'
[ 2061, 318, 262, 4067, 286, 262, 13048, 1719, 13521, 12, 355, 13212, 287, 402, 3697, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 21, 1157, 3720, 33411, 366, 40630, 287, 402, 3697, 1, 796, 705, 33581, 19355, 5357, 366, 23609, 3672, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4067, 286, 262, 13048, 1719, 13521, 12, 355, 13212, 287, 402, 3697, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 21, 1157, 3720, 33411, 366, 40630, 287, 402, 3697, 1, 796, 705, 33581, 19355, 5357, 366, 23609, 3672, 1, ...
What's the school of the player with a hometown of little rock, arkansas?
SELECT school FROM table_name_94 WHERE hometown = "little rock, arkansas"
[ 2061, 338, 262, 1524, 286, 262, 2137, 351, 257, 20994, 286, 1310, 3881, 11, 610, 74, 6618, 30, 46506, 1524, 16034, 3084, 62, 3672, 62, 5824, 33411, 20994, 796, 366, 31629, 3881, 11, 610, 74, 6618, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1524, 286, 262, 2137, 351, 257, 20994, 286, 1310, 3881, 11, 610, 74, 6618, 30, 46506, 1524, 16034, 3084, 62, 3672, 62, 5824, 33411, 20994, 796, 366, 31629, 3881, 11, 610, 74, 6618, 1 ]
number of silver medals earned the year switzerland earned no gold medals
SELECT "silver" FROM table_204_374 WHERE "gold" = 0
[ 17618, 286, 8465, 28057, 7366, 262, 614, 1509, 13947, 7366, 645, 3869, 28057, 46506, 366, 40503, 1, 16034, 3084, 62, 18638, 62, 31020, 33411, 366, 24267, 1, 796, 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 ]
[ 17618, 286, 8465, 28057, 7366, 262, 614, 1509, 13947, 7366, 645, 3869, 28057, 46506, 366, 40503, 1, 16034, 3084, 62, 18638, 62, 31020, 33411, 366, 24267, 1, 796, 657 ]
how many patients have had the procedure with short title aortocor bypas- 2 cor art?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Aortocor bypas-2 cor art"
[ 4919, 867, 3871, 423, 550, 262, 8771, 351, 1790, 3670, 257, 419, 420, 273, 416, 44429, 12, 362, 1162, 1242, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 3871, 423, 550, 262, 8771, 351, 1790, 3670, 257, 419, 420, 273, 416, 44429, 12, 362, 1162, 1242, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, ...
How many ties drawed at 20?
SELECT ties FROM table_name_74 WHERE drawn = "20"
[ 2437, 867, 8470, 3197, 276, 379, 1160, 30, 46506, 8470, 16034, 3084, 62, 3672, 62, 4524, 33411, 7428, 796, 366, 1238, 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, 8470, 3197, 276, 379, 1160, 30, 46506, 8470, 16034, 3084, 62, 3672, 62, 4524, 33411, 7428, 796, 366, 1238, 1 ]
what are all the report where winning constructor is williams - renault and grand prix is south african grand prix
SELECT report FROM table_1137704_2 WHERE winning_constructor = "Williams - Renault" AND grand_prix = "South African grand_prix"
[ 10919, 389, 477, 262, 989, 810, 5442, 23772, 318, 481, 1789, 82, 532, 8851, 1721, 290, 4490, 1293, 87, 318, 5366, 6580, 37189, 4490, 1293, 87, 46506, 989, 16034, 3084, 62, 1157, 2718, 32869, 62, 17, 33411, 5442, 62, 41571, 273, 796, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 389, 477, 262, 989, 810, 5442, 23772, 318, 481, 1789, 82, 532, 8851, 1721, 290, 4490, 1293, 87, 318, 5366, 6580, 37189, 4490, 1293, 87, 46506, 989, 16034, 3084, 62, 1157, 2718, 32869, 62, 17, 33411, 5442, 62, 41571, 273, 796, ...
What episode number in the series originally aired on February 28, 1992?
SELECT MIN(no_in_series) FROM table_2468961_2 WHERE original_air_date = "February 28, 1992"
[ 2061, 4471, 1271, 287, 262, 2168, 6198, 18530, 319, 3945, 2579, 11, 9768, 30, 46506, 20625, 7, 3919, 62, 259, 62, 25076, 8, 16034, 3084, 62, 1731, 3104, 4846, 16, 62, 17, 33411, 2656, 62, 958, 62, 4475, 796, 366, 21816, 2579, 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 ]
[ 2061, 4471, 1271, 287, 262, 2168, 6198, 18530, 319, 3945, 2579, 11, 9768, 30, 46506, 20625, 7, 3919, 62, 259, 62, 25076, 8, 16034, 3084, 62, 1731, 3104, 4846, 16, 62, 17, 33411, 2656, 62, 958, 62, 4475, 796, 366, 21816, 2579, 11, ...
What is the 3pm program when Local Programs are on at 7:30am?
SELECT "3:00 pm" FROM table_13179 WHERE "7:30 am" = 'local programs'
[ 2061, 318, 262, 513, 4426, 1430, 618, 10714, 26179, 389, 319, 379, 767, 25, 1270, 321, 30, 46506, 366, 18, 25, 405, 9114, 1, 16034, 3084, 62, 1485, 21738, 33411, 366, 22, 25, 1270, 716, 1, 796, 705, 12001, 4056, 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 ]
[ 2061, 318, 262, 513, 4426, 1430, 618, 10714, 26179, 389, 319, 379, 767, 25, 1270, 321, 30, 46506, 366, 18, 25, 405, 9114, 1, 16034, 3084, 62, 1485, 21738, 33411, 366, 22, 25, 1270, 716, 1, 796, 705, 12001, 4056, 6 ]
Name the most attendance for giants points of 10
SELECT MAX(attendance) FROM table_16661199_2 WHERE giants_points = 10
[ 5376, 262, 749, 14858, 329, 20178, 2173, 286, 838, 46506, 25882, 7, 1078, 437, 590, 8, 16034, 3084, 62, 1433, 2791, 16315, 24, 62, 17, 33411, 20178, 62, 13033, 796, 838 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 749, 14858, 329, 20178, 2173, 286, 838, 46506, 25882, 7, 1078, 437, 590, 8, 16034, 3084, 62, 1433, 2791, 16315, 24, 62, 17, 33411, 20178, 62, 13033, 796, 838 ]
A bar chart about what are the memories and carriers of phones?, and display by the bars from high to low.
SELECT Carrier, SUM(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY Carrier DESC
[ 32, 2318, 8262, 546, 644, 389, 262, 9846, 290, 16651, 286, 9512, 21747, 290, 3359, 416, 262, 9210, 422, 1029, 284, 1877, 13, 46506, 30252, 11, 35683, 7, 30871, 62, 259, 62, 38, 8, 16034, 3072, 44441, 11050, 30252, 38678, 11050, 30252,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2318, 8262, 546, 644, 389, 262, 9846, 290, 16651, 286, 9512, 21747, 290, 3359, 416, 262, 9210, 422, 1029, 284, 1877, 13, 46506, 30252, 11, 35683, 7, 30871, 62, 259, 62, 38, 8, 16034, 3072, 44441, 11050, 30252, 38678, 11050, 30252,...
where does CP fly to
SELECT DISTINCT airport.airport_code FROM airport, flight WHERE flight.airline_code = 'CP' AND flight.to_airport = airport.airport_code
[ 3003, 857, 16932, 6129, 284, 46506, 360, 8808, 1268, 4177, 9003, 13, 958, 634, 62, 8189, 16034, 9003, 11, 5474, 33411, 5474, 13, 958, 1370, 62, 8189, 796, 705, 8697, 6, 5357, 5474, 13, 1462, 62, 958, 634, 796, 9003, 13, 958, 634, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3003, 857, 16932, 6129, 284, 46506, 360, 8808, 1268, 4177, 9003, 13, 958, 634, 62, 8189, 16034, 9003, 11, 5474, 33411, 5474, 13, 958, 1370, 62, 8189, 796, 705, 8697, 6, 5357, 5474, 13, 1462, 62, 958, 634, 796, 9003, 13, 958, 634, ...
what is the diagnosis icd9 code and procedure of the patient id 18372?
SELECT diagnoses.icd9_code, procedures.long_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "18372"
[ 10919, 318, 262, 13669, 14158, 67, 24, 2438, 290, 8771, 286, 262, 5827, 4686, 1248, 36720, 30, 46506, 40567, 13, 291, 67, 24, 62, 8189, 11, 9021, 13, 6511, 62, 7839, 16034, 40567, 3268, 21479, 32357, 1268, 9021, 6177, 40567, 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 ]
[ 10919, 318, 262, 13669, 14158, 67, 24, 2438, 290, 8771, 286, 262, 5827, 4686, 1248, 36720, 30, 46506, 40567, 13, 291, 67, 24, 62, 8189, 11, 9021, 13, 6511, 62, 7839, 16034, 40567, 3268, 21479, 32357, 1268, 9021, 6177, 40567, 13, 18108...
What is the lightweight value with no information model and the flexible value is unknown?
SELECT "Lightweight" FROM table_31598 WHERE "Information Model" = 'no' AND "Flexible" = 'unknown'
[ 2061, 318, 262, 18700, 1988, 351, 645, 1321, 2746, 290, 262, 12846, 1988, 318, 6439, 30, 46506, 366, 15047, 6551, 1, 16034, 3084, 62, 27936, 4089, 33411, 366, 21918, 9104, 1, 796, 705, 3919, 6, 5357, 366, 37, 2588, 856, 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, 18700, 1988, 351, 645, 1321, 2746, 290, 262, 12846, 1988, 318, 6439, 30, 46506, 366, 15047, 6551, 1, 16034, 3084, 62, 27936, 4089, 33411, 366, 21918, 9104, 1, 796, 705, 3919, 6, 5357, 366, 37, 2588, 856, 1, 796, 705,...
What the full names, ids of each employee and the name of the country they are in?
SELECT T1.first_name, T1.last_name, T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id
[ 2061, 262, 1336, 3891, 11, 220, 2340, 286, 1123, 6538, 290, 262, 1438, 286, 262, 1499, 484, 389, 287, 30, 46506, 309, 16, 13, 11085, 62, 3672, 11, 309, 16, 13, 12957, 62, 3672, 11, 309, 16, 13, 7033, 1453, 62, 312, 11, 309, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 1336, 3891, 11, 220, 2340, 286, 1123, 6538, 290, 262, 1438, 286, 262, 1499, 484, 389, 287, 30, 46506, 309, 16, 13, 11085, 62, 3672, 11, 309, 16, 13, 12957, 62, 3672, 11, 309, 16, 13, 7033, 1453, 62, 312, 11, 309, 19, ...
What nationality is Diogo?
SELECT "Nat." FROM table_60812 WHERE "Name" = 'diogo'
[ 2061, 29835, 318, 6031, 24076, 30, 46506, 366, 47849, 526, 16034, 3084, 62, 28688, 1065, 33411, 366, 5376, 1, 796, 705, 10989, 24076, 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 ]
[ 2061, 29835, 318, 6031, 24076, 30, 46506, 366, 47849, 526, 16034, 3084, 62, 28688, 1065, 33411, 366, 5376, 1, 796, 705, 10989, 24076, 6 ]
how many patients had the diagnosis icd9 code e8859 and drug type addictive?
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.icd9_code = "E8859" AND prescriptions.drug_type = "ADDITIVE"
[ 4919, 867, 3871, 550, 262, 13669, 14158, 67, 24, 2438, 304, 3459, 3270, 290, 2563, 2099, 28389, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 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...
[ 4919, 867, 3871, 550, 262, 13669, 14158, 67, 24, 2438, 304, 3459, 3270, 290, 2563, 2099, 28389, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, ...
active autoimmune or immune deficiency disorder
SELECT * FROM table_train_258 WHERE autoimmune_disease = 1 OR immune_deficiency_disorder = 1
[ 5275, 46938, 393, 10900, 23580, 8967, 46506, 1635, 16034, 3084, 62, 27432, 62, 25600, 33411, 46938, 62, 67, 786, 589, 796, 352, 6375, 10900, 62, 4299, 19777, 62, 6381, 2875, 796, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5275, 46938, 393, 10900, 23580, 8967, 46506, 1635, 16034, 3084, 62, 27432, 62, 25600, 33411, 46938, 62, 67, 786, 589, 796, 352, 6375, 10900, 62, 4299, 19777, 62, 6381, 2875, 796, 352 ]
Draw a bar chart of gender versus the number of gender, and rank by the Y in asc.
SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender ORDER BY COUNT(Gender)
[ 25302, 257, 2318, 8262, 286, 5279, 9051, 262, 1271, 286, 5279, 11, 290, 4279, 416, 262, 575, 287, 10570, 13, 46506, 20247, 11, 327, 28270, 7, 41394, 8, 16034, 2137, 44441, 11050, 20247, 38678, 11050, 327, 28270, 7, 41394, 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 ]
[ 25302, 257, 2318, 8262, 286, 5279, 9051, 262, 1271, 286, 5279, 11, 290, 4279, 416, 262, 575, 287, 10570, 13, 46506, 20247, 11, 327, 28270, 7, 41394, 8, 16034, 2137, 44441, 11050, 20247, 38678, 11050, 327, 28270, 7, 41394, 8 ]
How many countries got 796.7 points?
SELECT COUNT("Rank") FROM table_66 WHERE "Points" = '796.7'
[ 2437, 867, 2678, 1392, 767, 4846, 13, 22, 2173, 30, 46506, 327, 28270, 7203, 27520, 4943, 16034, 3084, 62, 2791, 33411, 366, 40710, 1, 796, 705, 41060, 13, 22, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 2678, 1392, 767, 4846, 13, 22, 2173, 30, 46506, 327, 28270, 7203, 27520, 4943, 16034, 3084, 62, 2791, 33411, 366, 40710, 1, 796, 705, 41060, 13, 22, 6 ]
Which name has a Roll of 270?
SELECT "Name" FROM table_67634 WHERE "Roll" = '270'
[ 13828, 1438, 468, 257, 8299, 286, 20479, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 42548, 2682, 33411, 366, 26869, 1, 796, 705, 20233, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 1438, 468, 257, 8299, 286, 20479, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 42548, 2682, 33411, 366, 26869, 1, 796, 705, 20233, 6 ]
What was the Location/Attendance on september 11?
SELECT location_attendance FROM table_name_3 WHERE date = "september 11"
[ 2061, 373, 262, 13397, 14, 8086, 437, 590, 319, 384, 457, 1491, 1367, 30, 46506, 4067, 62, 1078, 437, 590, 16034, 3084, 62, 3672, 62, 18, 33411, 3128, 796, 366, 325, 457, 1491, 1367, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13397, 14, 8086, 437, 590, 319, 384, 457, 1491, 1367, 30, 46506, 4067, 62, 1078, 437, 590, 16034, 3084, 62, 3672, 62, 18, 33411, 3128, 796, 366, 325, 457, 1491, 1367, 1 ]
total of unanswered questions x user reputation.
SELECT p.Id, OwnerDisplayName, u.Reputation, Title, Tags, ViewCount, p.CreationDate, AnswerCount, COUNT(*) FROM Posts AS p, Users AS u WHERE AnswerCount > 0 AND AcceptedAnswerId IS NULL AND p.OwnerUserId = u.Id GROUP BY p.Id, OwnerDisplayName, u.Reputation, Title, Tags, ViewCount, p.CreationDate, AnswerCount
[ 23350, 286, 34001, 2683, 2124, 2836, 8507, 13, 46506, 279, 13, 7390, 11, 23853, 23114, 5376, 11, 334, 13, 6207, 7094, 11, 11851, 11, 44789, 11, 3582, 12332, 11, 279, 13, 12443, 341, 10430, 11, 23998, 12332, 11, 327, 28270, 7, 28104, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 23350, 286, 34001, 2683, 2124, 2836, 8507, 13, 46506, 279, 13, 7390, 11, 23853, 23114, 5376, 11, 334, 13, 6207, 7094, 11, 11851, 11, 44789, 11, 3582, 12332, 11, 279, 13, 12443, 341, 10430, 11, 23998, 12332, 11, 327, 28270, 7, 28104, ...
On what date was Game 1?
SELECT date FROM table_name_54 WHERE game = "game 1"
[ 2202, 644, 3128, 373, 3776, 352, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 4051, 33411, 983, 796, 366, 6057, 352, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2202, 644, 3128, 373, 3776, 352, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 4051, 33411, 983, 796, 366, 6057, 352, 1 ]
Namr the total number of played for 5 losses
SELECT COUNT("Played") FROM table_22563 WHERE "Losses" = '5'
[ 45, 321, 81, 262, 2472, 1271, 286, 2826, 329, 642, 9089, 46506, 327, 28270, 7203, 11002, 276, 4943, 16034, 3084, 62, 18182, 5066, 33411, 366, 43, 793, 274, 1, 796, 705, 20, 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 ]
[ 45, 321, 81, 262, 2472, 1271, 286, 2826, 329, 642, 9089, 46506, 327, 28270, 7203, 11002, 276, 4943, 16034, 3084, 62, 18182, 5066, 33411, 366, 43, 793, 274, 1, 796, 705, 20, 6 ]
How many Caps does the Club/province Munster, position of lock and Mick O'Driscoll have?
SELECT COUNT(caps) FROM table_name_16 WHERE club_province = "munster" AND position = "lock" AND player = "mick o'driscoll"
[ 2437, 867, 23534, 857, 262, 6289, 14, 15234, 924, 12107, 1706, 11, 2292, 286, 5793, 290, 32722, 440, 6, 6187, 2304, 692, 423, 30, 46506, 327, 28270, 7, 27979, 8, 16034, 3084, 62, 3672, 62, 1433, 33411, 3430, 62, 15234, 924, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 23534, 857, 262, 6289, 14, 15234, 924, 12107, 1706, 11, 2292, 286, 5793, 290, 32722, 440, 6, 6187, 2304, 692, 423, 30, 46506, 327, 28270, 7, 27979, 8, 16034, 3084, 62, 3672, 62, 1433, 33411, 3430, 62, 15234, 924, 796, 366...
patient 015-59552 visited an emergency room this year?
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '015-59552' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
[ 26029, 5534, 20, 12, 3270, 40427, 8672, 281, 6334, 2119, 428, 614, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 25150, 12, 3270, 40427, 6, 5357, 5827, 13, 49257, 324, 24883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5534, 20, 12, 3270, 40427, 8672, 281, 6334, 2119, 428, 614, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 25150, 12, 3270, 40427, 6, 5357, 5827, 13, 49257, 324, 24883, ...
what are the five most commonly ordered procedures for patients who have received ins drug-elut coronry st within 2 months previously?
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.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, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admi...
[ 10919, 389, 262, 1936, 749, 8811, 6149, 9021, 329, 3871, 508, 423, 2722, 1035, 2563, 12, 417, 315, 26920, 563, 336, 1626, 362, 1933, 4271, 30, 46506, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 16034, 288, 62, 291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 389, 262, 1936, 749, 8811, 6149, 9021, 329, 3871, 508, 423, 2722, 1035, 2563, 12, 417, 315, 26920, 563, 336, 1626, 362, 1933, 4271, 30, 46506, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 16034, 288, 62, 291, ...
How often does a user Accept Answers to their Questions. Calculate how often a user actually Accepts answers to their Questions (including their own answers)
SELECT Users.Id AS "user_link", Users.Id AS "user_id", COUNT(quest.Id) AS "total_questions", COUNT(quest.AcceptedAnswerId) AS "accepted_answers", CONCAT(CASE COUNT(quest.Id) WHEN 0 THEN 0 ELSE COUNT(quest.AcceptedAnswerId) * 100 / COUNT(quest.Id) END, ' %') AS "%_accepted" FROM Users LEFT JOIN Posts AS quest ON quest.O...
[ 2437, 1690, 857, 257, 2836, 21699, 42612, 284, 511, 20396, 13, 27131, 378, 703, 1690, 257, 2836, 1682, 21699, 82, 7429, 284, 511, 20396, 357, 8201, 511, 898, 7429, 8, 46506, 18987, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 18987, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 1690, 857, 257, 2836, 21699, 42612, 284, 511, 20396, 13, 27131, 378, 703, 1690, 257, 2836, 1682, 21699, 82, 7429, 284, 511, 20396, 357, 8201, 511, 898, 7429, 8, 46506, 18987, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 18987, 13,...
What is the area in km2 for Dufferin?
SELECT area_km_2 FROM table_170969_2 WHERE official_name = "Dufferin"
[ 2061, 318, 262, 1989, 287, 10571, 17, 329, 360, 13712, 259, 30, 46506, 1989, 62, 13276, 62, 17, 16034, 3084, 62, 1558, 2931, 3388, 62, 17, 33411, 1743, 62, 3672, 796, 366, 35, 13712, 259, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1989, 287, 10571, 17, 329, 360, 13712, 259, 30, 46506, 1989, 62, 13276, 62, 17, 16034, 3084, 62, 1558, 2931, 3388, 62, 17, 33411, 1743, 62, 3672, 796, 366, 35, 13712, 259, 1 ]
How many weights are there when the flange with is 304?
SELECT COUNT("Weight (kg/m)") FROM table_2286 WHERE "Flange width (mm)" = '304'
[ 2437, 867, 19590, 389, 612, 618, 262, 781, 858, 351, 318, 31672, 30, 46506, 327, 28270, 7203, 25844, 357, 10025, 14, 76, 8, 4943, 16034, 3084, 62, 1828, 4521, 33411, 366, 7414, 858, 9647, 357, 3020, 16725, 796, 705, 21288, 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 ]
[ 2437, 867, 19590, 389, 612, 618, 262, 781, 858, 351, 318, 31672, 30, 46506, 327, 28270, 7203, 25844, 357, 10025, 14, 76, 8, 4943, 16034, 3084, 62, 1828, 4521, 33411, 366, 7414, 858, 9647, 357, 3020, 16725, 796, 705, 21288, 6 ]
Which Type has a Capacity of 10 tons, and a Number of 24-27?
SELECT "Type" FROM table_8433 WHERE "Capacity" = '10 tons' AND "Number" = '24-27'
[ 13828, 5994, 468, 257, 29765, 286, 838, 10860, 11, 290, 257, 7913, 286, 1987, 12, 1983, 30, 46506, 366, 6030, 1, 16034, 3084, 62, 5705, 2091, 33411, 366, 15610, 4355, 1, 796, 705, 940, 10860, 6, 5357, 366, 15057, 1, 796, 705, 1731, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5994, 468, 257, 29765, 286, 838, 10860, 11, 290, 257, 7913, 286, 1987, 12, 1983, 30, 46506, 366, 6030, 1, 16034, 3084, 62, 5705, 2091, 33411, 366, 15610, 4355, 1, 796, 705, 940, 10860, 6, 5357, 366, 15057, 1, 796, 705, 1731, ...
Show the ids of all employees who have either destroyed a document or made an authorization to do this.
SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
[ 15307, 262, 220, 2340, 286, 477, 4409, 508, 423, 2035, 6572, 257, 3188, 393, 925, 281, 19601, 284, 466, 428, 13, 46506, 19448, 276, 62, 1525, 62, 29733, 1453, 62, 2389, 16034, 33267, 62, 1462, 62, 1350, 62, 41659, 276, 4725, 2849, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 262, 220, 2340, 286, 477, 4409, 508, 423, 2035, 6572, 257, 3188, 393, 925, 281, 19601, 284, 466, 428, 13, 46506, 19448, 276, 62, 1525, 62, 29733, 1453, 62, 2389, 16034, 33267, 62, 1462, 62, 1350, 62, 41659, 276, 4725, 2849, 3...
Tell me the NHL team for mike gaffney
SELECT "NHL team" FROM table_4354 WHERE "Player" = 'mike gaffney'
[ 24446, 502, 262, 9481, 1074, 329, 285, 522, 308, 2001, 1681, 46506, 366, 45, 6581, 1074, 1, 16034, 3084, 62, 19, 32182, 33411, 366, 14140, 1, 796, 705, 76, 522, 308, 2001, 1681, 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 ]
[ 24446, 502, 262, 9481, 1074, 329, 285, 522, 308, 2001, 1681, 46506, 366, 45, 6581, 1074, 1, 16034, 3084, 62, 19, 32182, 33411, 366, 14140, 1, 796, 705, 76, 522, 308, 2001, 1681, 6 ]
what is the difference between the year seitz died and the year aizele died ?
SELECT ABS((SELECT "death year" FROM table_204_734 WHERE "first name" = 'seitz') - (SELECT "death year" FROM table_204_734 WHERE "first name" = 'aizele'))
[ 10919, 318, 262, 3580, 1022, 262, 614, 384, 4224, 3724, 290, 262, 614, 257, 1096, 293, 3724, 5633, 46506, 29950, 19510, 46506, 366, 22595, 614, 1, 16034, 3084, 62, 18638, 62, 22, 2682, 33411, 366, 11085, 1438, 1, 796, 705, 325, 4224, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 3580, 1022, 262, 614, 384, 4224, 3724, 290, 262, 614, 257, 1096, 293, 3724, 5633, 46506, 29950, 19510, 46506, 366, 22595, 614, 1, 16034, 3084, 62, 18638, 62, 22, 2682, 33411, 366, 11085, 1438, 1, 796, 705, 325, 4224, ...
is there a TW flight from LAS VEGAS to NEW YORK
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LAS ...
[ 271, 612, 257, 17306, 5474, 422, 406, 1921, 569, 7156, 1921, 284, 12682, 28154, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 271, 612, 257, 17306, 5474, 422, 406, 1921, 569, 7156, 1921, 284, 12682, 28154, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 3...
Find the names of catalog entries with level number 8, and count them by a bar chart, I want to show x-axis in desc order.
SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY catalog_entry_name DESC
[ 16742, 262, 3891, 286, 18388, 12784, 351, 1241, 1271, 807, 11, 290, 954, 606, 416, 257, 2318, 8262, 11, 314, 765, 284, 905, 2124, 12, 22704, 287, 1715, 1502, 13, 46506, 18388, 62, 13000, 62, 3672, 11, 327, 28270, 7, 9246, 11794, 62,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 3891, 286, 18388, 12784, 351, 1241, 1271, 807, 11, 290, 954, 606, 416, 257, 2318, 8262, 11, 314, 765, 284, 905, 2124, 12, 22704, 287, 1715, 1502, 13, 46506, 18388, 62, 13000, 62, 3672, 11, 327, 28270, 7, 9246, 11794, 62,...
how many years were the naturalisation numbers below 1500 ?
SELECT COUNT("year") FROM table_203_467 WHERE "naturalisation\nby residence" + "naturalisation\nby marriage" < 1500
[ 4919, 867, 812, 547, 262, 3288, 5612, 3146, 2174, 20007, 5633, 46506, 327, 28270, 7203, 1941, 4943, 16034, 3084, 62, 22416, 62, 24669, 33411, 366, 11802, 5612, 59, 77, 1525, 11566, 1, 1343, 366, 11802, 5612, 59, 77, 1525, 4845, 1, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 812, 547, 262, 3288, 5612, 3146, 2174, 20007, 5633, 46506, 327, 28270, 7203, 1941, 4943, 16034, 3084, 62, 22416, 62, 24669, 33411, 366, 11802, 5612, 59, 77, 1525, 11566, 1, 1343, 366, 11802, 5612, 59, 77, 1525, 4845, 1, 127...
What are the ids and locations of all circuits in France or Belgium. Show bar chart.
SELECT location, circuitId FROM circuits WHERE country = "France" OR country = "Belgium"
[ 2061, 389, 262, 220, 2340, 290, 7064, 286, 477, 24907, 287, 4881, 393, 15664, 13, 5438, 2318, 8262, 13, 46506, 4067, 11, 10349, 7390, 16034, 24907, 33411, 1499, 796, 366, 28572, 1, 6375, 1499, 796, 366, 12193, 70, 1505, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 220, 2340, 290, 7064, 286, 477, 24907, 287, 4881, 393, 15664, 13, 5438, 2318, 8262, 13, 46506, 4067, 11, 10349, 7390, 16034, 24907, 33411, 1499, 796, 366, 28572, 1, 6375, 1499, 796, 366, 12193, 70, 1505, 1 ]
The earliest post posted by a user.
SELECT r.UserId, r.UserName, r.Reputation, p.CreationDate, r.CreationRank, p.Title FROM Posts AS p INNER JOIN (SELECT u.Id AS UserId, u.DisplayName AS UserName, u.Reputation AS Reputation, p.Id AS PostId, RANK() OVER (PARTITION BY u.Id ORDER BY p.CreationDate) AS CreationRank FROM Users AS u INNER JOIN Posts AS p ON (u...
[ 464, 14555, 1281, 4481, 416, 257, 2836, 13, 46506, 374, 13, 12982, 7390, 11, 374, 13, 12982, 5376, 11, 374, 13, 6207, 7094, 11, 279, 13, 12443, 341, 10430, 11, 374, 13, 12443, 341, 27520, 11, 279, 13, 19160, 16034, 12043, 7054, 279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14555, 1281, 4481, 416, 257, 2836, 13, 46506, 374, 13, 12982, 7390, 11, 374, 13, 12982, 5376, 11, 374, 13, 6207, 7094, 11, 279, 13, 12443, 341, 10430, 11, 374, 13, 12443, 341, 27520, 11, 279, 13, 19160, 16034, 12043, 7054, 279,...
What district does edward everett eslick represent?
SELECT district FROM table_1342379_41 WHERE incumbent = "Edward Everett Eslick"
[ 2061, 4783, 857, 1225, 904, 304, 33395, 1658, 75, 624, 2380, 30, 46506, 4783, 16034, 3084, 62, 19880, 1954, 3720, 62, 3901, 33411, 23526, 796, 366, 43982, 36815, 412, 6649, 624, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 4783, 857, 1225, 904, 304, 33395, 1658, 75, 624, 2380, 30, 46506, 4783, 16034, 3084, 62, 19880, 1954, 3720, 62, 3901, 33411, 23526, 796, 366, 43982, 36815, 412, 6649, 624, 1 ]
what were the top three most common lab tests for the patients with the age 20s in 2100?
SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) AND STRFTIME('%y', lab.labresulttime) = '2100' GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 3
[ 10919, 547, 262, 1353, 1115, 749, 2219, 2248, 5254, 329, 262, 3871, 351, 262, 2479, 1160, 82, 287, 38123, 30, 46506, 256, 16, 13, 23912, 3672, 16034, 357, 46506, 2248, 13, 23912, 3672, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 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, 547, 262, 1353, 1115, 749, 2219, 2248, 5254, 329, 262, 3871, 351, 262, 2479, 1160, 82, 287, 38123, 30, 46506, 256, 16, 13, 23912, 3672, 16034, 357, 46506, 2248, 13, 23912, 3672, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, ...
when had patient 027-151154 on their current hospital encounter for the first time received chest x-ray?
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-151154' AND patient.hospitaldischargetime IS NULL)) AND treat...
[ 12518, 550, 5827, 657, 1983, 12, 1314, 1157, 4051, 319, 511, 1459, 4436, 8791, 329, 262, 717, 640, 2722, 7721, 2124, 12, 2433, 30, 46506, 3513, 13, 42487, 2435, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 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...
[ 12518, 550, 5827, 657, 1983, 12, 1314, 1157, 4051, 319, 511, 1459, 4436, 8791, 329, 262, 717, 640, 2722, 7721, 2124, 12, 2433, 30, 46506, 3513, 13, 42487, 2435, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, ...
What was the overall pick for Doug Sproule of the United States?
SELECT "Overall" FROM table_56996 WHERE "Nationality" = 'united states' AND "Player" = 'doug sproule'
[ 2061, 373, 262, 4045, 2298, 329, 15115, 1338, 472, 293, 286, 262, 1578, 1829, 30, 46506, 366, 16350, 1, 16034, 3084, 62, 3980, 38565, 33411, 366, 16186, 414, 1, 796, 705, 41187, 2585, 6, 5357, 366, 14140, 1, 796, 705, 67, 20805, 599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4045, 2298, 329, 15115, 1338, 472, 293, 286, 262, 1578, 1829, 30, 46506, 366, 16350, 1, 16034, 3084, 62, 3980, 38565, 33411, 366, 16186, 414, 1, 796, 705, 41187, 2585, 6, 5357, 366, 14140, 1, 796, 705, 67, 20805, 599...
what other languages are listed in the table besides sotho ?
SELECT "most spoken language" FROM table_204_64 WHERE "most spoken language" <> 'sotho'
[ 10919, 584, 8950, 389, 5610, 287, 262, 3084, 13769, 264, 849, 78, 5633, 46506, 366, 1712, 9635, 3303, 1, 16034, 3084, 62, 18638, 62, 2414, 33411, 366, 1712, 9635, 3303, 1, 1279, 29, 705, 82, 849, 78, 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 ]
[ 10919, 584, 8950, 389, 5610, 287, 262, 3084, 13769, 264, 849, 78, 5633, 46506, 366, 1712, 9635, 3303, 1, 16034, 3084, 62, 18638, 62, 2414, 33411, 366, 1712, 9635, 3303, 1, 1279, 29, 705, 82, 849, 78, 6 ]
How much does the Independencia weight?
SELECT MIN("tons ( L.ton )") FROM table_26174 WHERE "Warship" = 'Independencia'
[ 2437, 881, 857, 262, 1423, 2690, 29634, 3463, 30, 46506, 20625, 7203, 27288, 357, 406, 13, 1122, 1267, 4943, 16034, 3084, 62, 2075, 22985, 33411, 366, 41508, 1056, 1, 796, 705, 5497, 2690, 29634, 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 ]
[ 2437, 881, 857, 262, 1423, 2690, 29634, 3463, 30, 46506, 20625, 7203, 27288, 357, 406, 13, 1122, 1267, 4943, 16034, 3084, 62, 2075, 22985, 33411, 366, 41508, 1056, 1, 796, 705, 5497, 2690, 29634, 6 ]
What was the location for the team name of patriots?
SELECT location FROM table_24195232_1 WHERE team_name = "Patriots"
[ 2061, 373, 262, 4067, 329, 262, 1074, 1438, 286, 12650, 1747, 30, 46506, 4067, 16034, 3084, 62, 1731, 22186, 24339, 62, 16, 33411, 1074, 62, 3672, 796, 366, 12130, 44447, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 4067, 329, 262, 1074, 1438, 286, 12650, 1747, 30, 46506, 4067, 16034, 3084, 62, 1731, 22186, 24339, 62, 16, 33411, 1074, 62, 3672, 796, 366, 12130, 44447, 1 ]
Tell me the song with year before 2013 and music director of yuvan shankar raja and film of billa ii
SELECT song FROM table_name_23 WHERE year < 2013 AND music_director = "yuvan shankar raja" AND film = "billa ii"
[ 24446, 502, 262, 3496, 351, 614, 878, 2211, 290, 2647, 3437, 286, 331, 84, 10438, 427, 962, 283, 374, 27792, 290, 2646, 286, 2855, 64, 21065, 46506, 3496, 16034, 3084, 62, 3672, 62, 1954, 33411, 614, 1279, 2211, 5357, 2647, 62, 35248,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3496, 351, 614, 878, 2211, 290, 2647, 3437, 286, 331, 84, 10438, 427, 962, 283, 374, 27792, 290, 2646, 286, 2855, 64, 21065, 46506, 3496, 16034, 3084, 62, 3672, 62, 1954, 33411, 614, 1279, 2211, 5357, 2647, 62, 35248,...
what is the number of patients whose primary disease is atrial septal defect\mitral valve replacement;repair atrial-septal defect/sda and drug route is neb?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA" AND prescriptions.route = "NEB"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 379, 4454, 384, 457, 282, 11855, 59, 2781, 1373, 22580, 9014, 26, 49932, 379, 4454, 12, 325, 457, 282, 11855, 14, 82, 6814, 290, 2563, 6339, 318, 45508, 30, 46506, 327, 28270, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 379, 4454, 384, 457, 282, 11855, 59, 2781, 1373, 22580, 9014, 26, 49932, 379, 4454, 12, 325, 457, 282, 11855, 14, 82, 6814, 290, 2563, 6339, 318, 45508, 30, 46506, 327, 28270, ...
what is the number of male patients who had home health care discharge?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.discharge_location = "HOME HEALTH CARE"
[ 10919, 318, 262, 1271, 286, 4257, 3871, 508, 550, 1363, 1535, 1337, 17655, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 8388, 796, 366, 44, 1, 5357, 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 ]
[ 10919, 318, 262, 1271, 286, 4257, 3871, 508, 550, 1363, 1535, 1337, 17655, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 8388, 796, 366, 44, 1, 5357, 16728, 13, 6381, 1...