instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
sequence
attention_mask
sequence
labels
sequence
Find the titles and studios of the films that are produced by some film studios that contained the word 'Universal'.
SELECT title, Studio FROM film WHERE Studio LIKE "%Universal%"
[ 16742, 262, 8714, 290, 20747, 286, 262, 7328, 326, 389, 4635, 416, 617, 2646, 20747, 326, 7763, 262, 1573, 705, 38747, 4458, 46506, 3670, 11, 11733, 16034, 2646, 33411, 11733, 34178, 36521, 38747, 39658 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8714, 290, 20747, 286, 262, 7328, 326, 389, 4635, 416, 617, 2646, 20747, 326, 7763, 262, 1573, 705, 38747, 4458, 46506, 3670, 11, 11733, 16034, 2646, 33411, 11733, 34178, 36521, 38747, 39658 ]
Who is Charleston Southerns head coach where the result is L, 56-6?-
SELECT "Charleston Southerns Head Coach" FROM table_28465 WHERE "Result" = 'L, 56-6'
[ 8241, 318, 26070, 8050, 82, 1182, 3985, 810, 262, 1255, 318, 406, 11, 7265, 12, 21, 30, 12, 46506, 366, 24453, 19115, 8050, 82, 7123, 16393, 1, 16034, 3084, 62, 30336, 2996, 33411, 366, 23004, 1, 796, 705, 43, 11, 7265, 12, 21, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 318, 26070, 8050, 82, 1182, 3985, 810, 262, 1255, 318, 406, 11, 7265, 12, 21, 30, 12, 46506, 366, 24453, 19115, 8050, 82, 7123, 16393, 1, 16034, 3084, 62, 30336, 2996, 33411, 366, 23004, 1, 796, 705, 43, 11, 7265, 12, 21, 6 ]
Who is the incumbent candidate in the election of percy priest (d) 90.8% robert m. donihi (r) 9.2%?
SELECT "Incumbent" FROM table_749 WHERE "Candidates" = 'Percy Priest (D) 90.8% Robert M. Donihi (R) 9.2%'
[ 8241, 318, 262, 23526, 4540, 287, 262, 3071, 286, 583, 948, 11503, 357, 67, 8, 4101, 13, 23, 4, 686, 4835, 285, 13, 836, 4449, 72, 357, 81, 8, 860, 13, 17, 4, 30, 46506, 366, 25517, 2178, 298, 1, 16034, 3084, 62, 22, 2920, 33411, 366, 41572, 37051, 1, 796, 705, 5990, 948, 20876, 357, 35, 8, 4101, 13, 23, 4, 5199, 337, 13, 2094, 4449, 72, 357, 49, 8, 860, 13, 17, 4, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 318, 262, 23526, 4540, 287, 262, 3071, 286, 583, 948, 11503, 357, 67, 8, 4101, 13, 23, 4, 686, 4835, 285, 13, 836, 4449, 72, 357, 81, 8, 860, 13, 17, 4, 30, 46506, 366, 25517, 2178, 298, 1, 16034, 3084, 62, 22, 2920, 33411, 366, 41572, 37051, 1, 796, 705, 5990, 948, 20876, 357, 35, 8, 4101, 13, 23, 4, 5199, 337, 13, 2094, 4449, 72, 357, 49, 8, 860, 13, 17, 4, 6 ]
What country did mario lemieux play for in 1994?
SELECT "Country" FROM table_32790 WHERE "Player" = 'mario lemieux' AND "Year" = '1994'
[ 2061, 1499, 750, 1667, 952, 443, 44871, 2821, 711, 329, 287, 9162, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 34159, 3829, 33411, 366, 14140, 1, 796, 705, 3876, 952, 443, 44871, 2821, 6, 5357, 366, 17688, 1, 796, 705, 22666, 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, 1499, 750, 1667, 952, 443, 44871, 2821, 711, 329, 287, 9162, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 34159, 3829, 33411, 366, 14140, 1, 796, 705, 3876, 952, 443, 44871, 2821, 6, 5357, 366, 17688, 1, 796, 705, 22666, 6 ]
What was the margin of victory at the LPGA Championship?
SELECT margin_of_victory FROM table_name_65 WHERE tournament = "lpga championship"
[ 2061, 373, 262, 10330, 286, 5373, 379, 262, 406, 6968, 32, 10749, 30, 46506, 10330, 62, 1659, 62, 32433, 652, 16034, 3084, 62, 3672, 62, 2996, 33411, 7756, 796, 366, 34431, 4908, 12184, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10330, 286, 5373, 379, 262, 406, 6968, 32, 10749, 30, 46506, 10330, 62, 1659, 62, 32433, 652, 16034, 3084, 62, 3672, 62, 2996, 33411, 7756, 796, 366, 34431, 4908, 12184, 1 ]
What is the fewest lost with a difference of 9 and a less than 3 drawn?
SELECT MIN(lost) FROM table_name_69 WHERE difference = "9" AND drawn < 3
[ 2061, 318, 262, 1178, 395, 2626, 351, 257, 3580, 286, 860, 290, 257, 1342, 621, 513, 7428, 30, 46506, 20625, 7, 33224, 8, 16034, 3084, 62, 3672, 62, 3388, 33411, 3580, 796, 366, 24, 1, 5357, 7428, 1279, 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, 318, 262, 1178, 395, 2626, 351, 257, 3580, 286, 860, 290, 257, 1342, 621, 513, 7428, 30, 46506, 20625, 7, 33224, 8, 16034, 3084, 62, 3672, 62, 3388, 33411, 3580, 796, 366, 24, 1, 5357, 7428, 1279, 513 ]
Find the name of rooms booked by some customers whose first name contains ROY, and count them by a pie chart
SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName
[ 16742, 262, 1438, 286, 9519, 21765, 416, 617, 4297, 3025, 717, 1438, 4909, 15107, 56, 11, 290, 954, 606, 416, 257, 2508, 8262, 46506, 2119, 5376, 11, 327, 28270, 7, 3823, 5376, 8, 16034, 40425, 602, 7054, 309, 16, 32357, 1268, 42043, 7054, 309, 17, 6177, 309, 16, 13, 41178, 796, 309, 17, 13, 41178, 7390, 33411, 3274, 5376, 34178, 705, 4, 13252, 56, 4, 6, 44441, 11050, 2119, 5376 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16742, 262, 1438, 286, 9519, 21765, 416, 617, 4297, 3025, 717, 1438, 4909, 15107, 56, 11, 290, 954, 606, 416, 257, 2508, 8262, 46506, 2119, 5376, 11, 327, 28270, 7, 3823, 5376, 8, 16034, 40425, 602, 7054, 309, 16, 32357, 1268, 42043, 7054, 309, 17, 6177, 309, 16, 13, 41178, 796, 309, 17, 13, 41178, 7390, 33411, 3274, 5376, 34178, 705, 4, 13252, 56, 4, 6, 44441, 11050, 2119, 5376 ]
calculate the number of female patients with diagnoses icd9 code 42831.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.icd9_code = "42831"
[ 9948, 3129, 378, 262, 1271, 286, 4048, 3871, 351, 40567, 14158, 67, 24, 2438, 45063, 3132, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 33411, 16728, 13, 8388, 796, 366, 37, 1, 5357, 40567, 13, 291, 67, 24, 62, 8189, 796, 366, 40173, 3132, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9948, 3129, 378, 262, 1271, 286, 4048, 3871, 351, 40567, 14158, 67, 24, 2438, 45063, 3132, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 33411, 16728, 13, 8388, 796, 366, 37, 1, 5357, 40567, 13, 291, 67, 24, 62, 8189, 796, 366, 40173, 3132, 1 ]
which Place has a Player of mark brooks?
SELECT place FROM table_name_30 WHERE player = "mark brooks"
[ 4758, 8474, 468, 257, 7853, 286, 1317, 1379, 28194, 30, 46506, 1295, 16034, 3084, 62, 3672, 62, 1270, 33411, 2137, 796, 366, 4102, 1379, 28194, 1 ]
[ 1, 1, 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, 8474, 468, 257, 7853, 286, 1317, 1379, 28194, 30, 46506, 1295, 16034, 3084, 62, 3672, 62, 1270, 33411, 2137, 796, 366, 4102, 1379, 28194, 1 ]
Who won the womens singles in the 1958/1959 season?
SELECT "Womens singles" FROM table_17583 WHERE "Season" = '1958/1959'
[ 8241, 1839, 262, 1116, 641, 25287, 287, 262, 24648, 14, 45403, 1622, 30, 46506, 366, 54, 296, 641, 25287, 1, 16034, 3084, 62, 1558, 46239, 33411, 366, 18960, 1, 796, 705, 1129, 3365, 14, 45403, 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 ]
[ 8241, 1839, 262, 1116, 641, 25287, 287, 262, 24648, 14, 45403, 1622, 30, 46506, 366, 54, 296, 641, 25287, 1, 16034, 3084, 62, 1558, 46239, 33411, 366, 18960, 1, 796, 705, 1129, 3365, 14, 45403, 6 ]
Which venue did the match where Collingwood was the home team take place?
SELECT venue FROM table_name_32 WHERE home_team = "collingwood"
[ 13828, 14359, 750, 262, 2872, 810, 7778, 278, 3822, 373, 262, 1363, 1074, 1011, 1295, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 2624, 33411, 1363, 62, 15097, 796, 366, 26000, 278, 3822, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14359, 750, 262, 2872, 810, 7778, 278, 3822, 373, 262, 1363, 1074, 1011, 1295, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 2624, 33411, 1363, 62, 15097, 796, 366, 26000, 278, 3822, 1 ]
What are the titles of segment c for series episode is 21-08?
SELECT "Segment C" FROM table_19931 WHERE "Series Ep." = '21-08'
[ 2061, 389, 262, 8714, 286, 10618, 269, 329, 2168, 4471, 318, 2310, 12, 2919, 30, 46506, 366, 41030, 434, 327, 1, 16034, 3084, 62, 19104, 3132, 33411, 366, 27996, 4551, 526, 796, 705, 2481, 12, 2919, 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 ]
[ 2061, 389, 262, 8714, 286, 10618, 269, 329, 2168, 4471, 318, 2310, 12, 2919, 30, 46506, 366, 41030, 434, 327, 1, 16034, 3084, 62, 19104, 3132, 33411, 366, 27996, 4551, 526, 796, 705, 2481, 12, 2919, 6 ]
I want the score for 28 march 1979
SELECT score FROM table_name_37 WHERE date = "28 march 1979"
[ 40, 765, 262, 4776, 329, 2579, 9960, 13521, 46506, 4776, 16034, 3084, 62, 3672, 62, 2718, 33411, 3128, 796, 366, 2078, 9960, 13521, 1 ]
[ 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, 262, 4776, 329, 2579, 9960, 13521, 46506, 4776, 16034, 3084, 62, 3672, 62, 2718, 33411, 3128, 796, 366, 2078, 9960, 13521, 1 ]
count the number of patients who had taken a hematocrit test in the previous year.
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hematocrit') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year'))
[ 9127, 262, 1271, 286, 3871, 508, 550, 2077, 257, 339, 6759, 420, 799, 1332, 287, 262, 2180, 614, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357, 46506, 2248, 31534, 13, 18108, 76, 62, 312, 16034, 2248, 31534, 33411, 2248, 31534, 13, 9186, 312, 3268, 357, 46506, 288, 62, 23912, 23814, 13, 9186, 312, 16034, 288, 62, 23912, 23814, 33411, 288, 62, 23912, 23814, 13, 18242, 796, 705, 10024, 420, 799, 11537, 5357, 360, 1404, 2767, 12789, 7, 23912, 31534, 13, 40926, 2435, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 614, 3256, 705, 12, 16, 614, 6, 4008 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9127, 262, 1271, 286, 3871, 508, 550, 2077, 257, 339, 6759, 420, 799, 1332, 287, 262, 2180, 614, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357, 46506, 2248, 31534, 13, 18108, 76, 62, 312, 16034, 2248, 31534, 33411, 2248, 31534, 13, 9186, 312, 3268, 357, 46506, 288, 62, 23912, 23814, 13, 9186, 312, 16034, 288, 62, 23912, 23814, 33411, 288, 62, 23912, 23814, 13, 18242, 796, 705, 10024, 420, 799, 11537, 5357, 360, 1404, 2767, 12789, 7, 23912, 31534, 13, 40926, 2435, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 614, 3256, 705, 12, 16, 614, 6, 4008 ]
Which Condition has an unaffected Prothrombin time and a Bleeding time, and a Partial thromboplastin time of prolonged?
SELECT "Condition" FROM table_76039 WHERE "Prothrombin time" = 'unaffected' AND "Bleeding time" = 'unaffected' AND "Partial thromboplastin time" = 'prolonged'
[ 13828, 24295, 468, 281, 35290, 1041, 400, 398, 8800, 640, 290, 257, 17175, 8228, 640, 11, 290, 257, 43689, 294, 398, 65, 404, 12957, 259, 640, 286, 20573, 30, 46506, 366, 48362, 1, 16034, 3084, 62, 40761, 2670, 33411, 366, 2964, 400, 398, 8800, 640, 1, 796, 705, 403, 43958, 6, 5357, 366, 43413, 8228, 640, 1, 796, 705, 403, 43958, 6, 5357, 366, 7841, 498, 294, 398, 65, 404, 12957, 259, 640, 1, 796, 705, 1676, 6511, 276, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 24295, 468, 281, 35290, 1041, 400, 398, 8800, 640, 290, 257, 17175, 8228, 640, 11, 290, 257, 43689, 294, 398, 65, 404, 12957, 259, 640, 286, 20573, 30, 46506, 366, 48362, 1, 16034, 3084, 62, 40761, 2670, 33411, 366, 2964, 400, 398, 8800, 640, 1, 796, 705, 403, 43958, 6, 5357, 366, 43413, 8228, 640, 1, 796, 705, 403, 43958, 6, 5357, 366, 7841, 498, 294, 398, 65, 404, 12957, 259, 640, 1, 796, 705, 1676, 6511, 276, 6 ]
What name was number 7 when Mason was number 1, Owen was number 6, Jackson was number 9, and Logan was number 10?
SELECT no_7 FROM table_name_68 WHERE no_1 = "mason" AND no_9 = "jackson" AND no_10 = "logan" AND no_6 = "owen"
[ 2061, 1438, 373, 1271, 767, 618, 14737, 373, 1271, 352, 11, 22605, 373, 1271, 718, 11, 6612, 373, 1271, 860, 11, 290, 22221, 373, 1271, 838, 30, 46506, 645, 62, 22, 16034, 3084, 62, 3672, 62, 3104, 33411, 645, 62, 16, 796, 366, 76, 888, 1, 5357, 645, 62, 24, 796, 366, 19650, 1559, 1, 5357, 645, 62, 940, 796, 366, 6404, 272, 1, 5357, 645, 62, 21, 796, 366, 322, 268, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 373, 1271, 767, 618, 14737, 373, 1271, 352, 11, 22605, 373, 1271, 718, 11, 6612, 373, 1271, 860, 11, 290, 22221, 373, 1271, 838, 30, 46506, 645, 62, 22, 16034, 3084, 62, 3672, 62, 3104, 33411, 645, 62, 16, 796, 366, 76, 888, 1, 5357, 645, 62, 24, 796, 366, 19650, 1559, 1, 5357, 645, 62, 940, 796, 366, 6404, 272, 1, 5357, 645, 62, 21, 796, 366, 322, 268, 1 ]
What is the Time (EEST), when the Stage is ss8?
SELECT "Time (EEST)" FROM table_66930 WHERE "Stage" = 'ss8'
[ 2061, 318, 262, 3862, 357, 36, 6465, 828, 618, 262, 15371, 318, 37786, 23, 30, 46506, 366, 7575, 357, 36, 6465, 16725, 16034, 3084, 62, 36657, 1270, 33411, 366, 29391, 1, 796, 705, 824, 23, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3862, 357, 36, 6465, 828, 618, 262, 15371, 318, 37786, 23, 30, 46506, 366, 7575, 357, 36, 6465, 16725, 16034, 3084, 62, 36657, 1270, 33411, 366, 29391, 1, 796, 705, 824, 23, 6 ]
How many years are listed under joined for the Nor'easters?
SELECT COUNT("Joined") FROM table_2114 WHERE "Nickname" = 'Nor''easters'
[ 2437, 867, 812, 389, 5610, 739, 5399, 329, 262, 5414, 6, 68, 7060, 30, 46506, 327, 28270, 7203, 24363, 4943, 16034, 3084, 62, 17, 16562, 33411, 366, 23609, 3672, 1, 796, 705, 21991, 7061, 68, 7060, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 812, 389, 5610, 739, 5399, 329, 262, 5414, 6, 68, 7060, 30, 46506, 327, 28270, 7203, 24363, 4943, 16034, 3084, 62, 17, 16562, 33411, 366, 23609, 3672, 1, 796, 705, 21991, 7061, 68, 7060, 6 ]
Provide the number of patients with self pay insurance who stayed in the hosptial for more than 20 days.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Self Pay" AND demographic.days_stay > "20"
[ 15946, 485, 262, 1271, 286, 3871, 351, 2116, 1414, 5096, 508, 9658, 287, 262, 289, 418, 457, 498, 329, 517, 621, 1160, 1528, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 1040, 3874, 796, 366, 24704, 7119, 1, 5357, 16728, 13, 12545, 62, 31712, 1875, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15946, 485, 262, 1271, 286, 3871, 351, 2116, 1414, 5096, 508, 9658, 287, 262, 289, 418, 457, 498, 329, 517, 621, 1160, 1528, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 1040, 3874, 796, 366, 24704, 7119, 1, 5357, 16728, 13, 12545, 62, 31712, 1875, 366, 1238, 1 ]
How many total points did Oisin McConville have from his 5 matches?
SELECT COUNT(total) FROM table_name_90 WHERE player = "oisin mcconville" AND matches < 5
[ 2437, 867, 2472, 2173, 750, 440, 45763, 1982, 3103, 4244, 423, 422, 465, 642, 7466, 30, 46506, 327, 28270, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 3829, 33411, 2137, 796, 366, 10924, 259, 285, 535, 261, 4244, 1, 5357, 7466, 1279, 642 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 2472, 2173, 750, 440, 45763, 1982, 3103, 4244, 423, 422, 465, 642, 7466, 30, 46506, 327, 28270, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 3829, 33411, 2137, 796, 366, 10924, 259, 285, 535, 261, 4244, 1, 5357, 7466, 1279, 642 ]
For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by time, and list Y in asc order please.
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE)
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2033, 286, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 640, 11, 290, 1351, 575, 287, 10570, 1502, 3387, 13, 46506, 36210, 2200, 62, 35, 6158, 11, 327, 28270, 7, 25374, 2200, 62, 35, 6158, 8, 16034, 4409, 33411, 31328, 62, 20608, 34178, 705, 4, 35, 4, 6, 6375, 31328, 62, 20608, 34178, 705, 4, 50, 4, 6, 38678, 11050, 327, 28270, 7, 25374, 2200, 62, 35, 6158, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2033, 286, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 640, 11, 290, 1351, 575, 287, 10570, 1502, 3387, 13, 46506, 36210, 2200, 62, 35, 6158, 11, 327, 28270, 7, 25374, 2200, 62, 35, 6158, 8, 16034, 4409, 33411, 31328, 62, 20608, 34178, 705, 4, 35, 4, 6, 6375, 31328, 62, 20608, 34178, 705, 4, 50, 4, 6, 38678, 11050, 327, 28270, 7, 25374, 2200, 62, 35, 6158, 8 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of phone_number and commission_pct , and list total number in descending order.
SELECT PHONE_NUMBER, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 3072, 62, 17618, 290, 5810, 62, 79, 310, 837, 290, 1351, 2472, 1271, 287, 31491, 1502, 13, 46506, 9370, 11651, 62, 41359, 13246, 11, 22240, 40373, 62, 47, 4177, 16034, 4409, 33411, 5626, 5550, 30709, 10979, 62, 2389, 3268, 357, 46506, 5550, 30709, 10979, 62, 2389, 16034, 13346, 33411, 17254, 4760, 1137, 62, 2389, 38651, 8845, 1677, 1802, 5357, 939, 8, 38678, 11050, 22240, 40373, 62, 47, 4177, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 257, 2318, 8262, 2523, 262, 6082, 286, 3072, 62, 17618, 290, 5810, 62, 79, 310, 837, 290, 1351, 2472, 1271, 287, 31491, 1502, 13, 46506, 9370, 11651, 62, 41359, 13246, 11, 22240, 40373, 62, 47, 4177, 16034, 4409, 33411, 5626, 5550, 30709, 10979, 62, 2389, 3268, 357, 46506, 5550, 30709, 10979, 62, 2389, 16034, 13346, 33411, 17254, 4760, 1137, 62, 2389, 38651, 8845, 1677, 1802, 5357, 939, 8, 38678, 11050, 22240, 40373, 62, 47, 4177, 22196, 34 ]
show me all flights from BALTIMORE to DALLAS
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 = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
[ 12860, 502, 477, 13956, 422, 347, 31429, 3955, 6965, 284, 360, 7036, 1921, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 16, 11, 1748, 7054, 27993, 62, 15, 11, 1748, 7054, 27993, 62, 16, 11, 5474, 33411, 27993, 62, 15, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 19205, 62, 8189, 5357, 27993, 62, 15, 13, 19205, 62, 3672, 796, 705, 33, 31429, 3955, 6965, 6, 5357, 27993, 62, 16, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 19205, 62, 8189, 5357, 27993, 62, 16, 13, 19205, 62, 3672, 796, 705, 35, 7036, 1921, 6, 5357, 5474, 13, 6738, 62, 958, 634, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 958, 634, 62, 8189, 5357, 5474, 13, 1462, 62, 958, 634, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 958, 634, 62, 8189 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12860, 502, 477, 13956, 422, 347, 31429, 3955, 6965, 284, 360, 7036, 1921, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 16, 11, 1748, 7054, 27993, 62, 15, 11, 1748, 7054, 27993, 62, 16, 11, 5474, 33411, 27993, 62, 15, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 19205, 62, 8189, 5357, 27993, 62, 15, 13, 19205, 62, 3672, 796, 705, 33, 31429, 3955, 6965, 6, 5357, 27993, 62, 16, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 19205, 62, 8189, 5357, 27993, 62, 16, 13, 19205, 62, 3672, 796, 705, 35, 7036, 1921, 6, 5357, 5474, 13, 6738, 62, 958, 634, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 958, 634, 62, 8189, 5357, 5474, 13, 1462, 62, 958, 634, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 958, 634, 62, 8189 ]
What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?
SELECT f_id FROM song WHERE resolution > (SELECT MAX(resolution) FROM song WHERE rating < 8)
[ 2061, 318, 220, 2340, 286, 262, 7259, 3025, 6323, 318, 2440, 621, 262, 6323, 286, 597, 7259, 351, 7955, 2793, 621, 807, 30, 46506, 277, 62, 312, 16034, 3496, 33411, 6323, 1875, 357, 46506, 25882, 7, 29268, 8, 16034, 3496, 33411, 7955, 1279, 807, 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 ]
[ 2061, 318, 220, 2340, 286, 262, 7259, 3025, 6323, 318, 2440, 621, 262, 6323, 286, 597, 7259, 351, 7955, 2793, 621, 807, 30, 46506, 277, 62, 312, 16034, 3496, 33411, 6323, 1875, 357, 46506, 25882, 7, 29268, 8, 16034, 3496, 33411, 7955, 1279, 807, 8 ]
What was the result of the 2007-08 season for the city of Ferrara?
SELECT 2007 AS _08_season FROM table_name_33 WHERE city = "ferrara"
[ 2061, 373, 262, 1255, 286, 262, 4343, 12, 2919, 1622, 329, 262, 1748, 286, 19130, 3301, 30, 46506, 4343, 7054, 4808, 2919, 62, 6230, 16034, 3084, 62, 3672, 62, 2091, 33411, 1748, 796, 366, 2232, 81, 3301, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1255, 286, 262, 4343, 12, 2919, 1622, 329, 262, 1748, 286, 19130, 3301, 30, 46506, 4343, 7054, 4808, 2919, 62, 6230, 16034, 3084, 62, 3672, 62, 2091, 33411, 1748, 796, 366, 2232, 81, 3301, 1 ]
What are total transaction amounts for each transaction type, could you show by the Y-axis from low to high?
SELECT transaction_type, SUM(transaction_amount) FROM Financial_Transactions GROUP BY transaction_type ORDER BY SUM(transaction_amount)
[ 2061, 389, 2472, 8611, 6867, 329, 1123, 8611, 2099, 11, 714, 345, 905, 416, 262, 575, 12, 22704, 422, 1877, 284, 1029, 30, 46506, 8611, 62, 4906, 11, 35683, 7, 7645, 2673, 62, 17287, 8, 16034, 11302, 62, 8291, 4658, 44441, 11050, 8611, 62, 4906, 38678, 11050, 35683, 7, 7645, 2673, 62, 17287, 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 ]
[ 2061, 389, 2472, 8611, 6867, 329, 1123, 8611, 2099, 11, 714, 345, 905, 416, 262, 575, 12, 22704, 422, 1877, 284, 1029, 30, 46506, 8611, 62, 4906, 11, 35683, 7, 7645, 2673, 62, 17287, 8, 16034, 11302, 62, 8291, 4658, 44441, 11050, 8611, 62, 4906, 38678, 11050, 35683, 7, 7645, 2673, 62, 17287, 8 ]
Name the naming for fluent and poor comprehension
SELECT naming FROM table_2088_1 WHERE fluency = "fluent" AND auditory_comprehension = "poor"
[ 5376, 262, 19264, 329, 43472, 290, 3595, 35915, 46506, 19264, 16034, 3084, 62, 1238, 3459, 62, 16, 33411, 6562, 1387, 796, 366, 69, 28216, 1, 5357, 38949, 62, 785, 3866, 5135, 295, 796, 366, 36672, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19264, 329, 43472, 290, 3595, 35915, 46506, 19264, 16034, 3084, 62, 1238, 3459, 62, 16, 33411, 6562, 1387, 796, 366, 69, 28216, 1, 5357, 38949, 62, 785, 3866, 5135, 295, 796, 366, 36672, 1 ]
Where is the peak Pico Basil located?
SELECT location FROM table_name_15 WHERE peak = "pico basilé"
[ 8496, 318, 262, 9103, 350, 3713, 32520, 5140, 30, 46506, 4067, 16034, 3084, 62, 3672, 62, 1314, 33411, 9103, 796, 366, 79, 3713, 37792, 2634, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8496, 318, 262, 9103, 350, 3713, 32520, 5140, 30, 46506, 4067, 16034, 3084, 62, 3672, 62, 1314, 33411, 9103, 796, 366, 79, 3713, 37792, 2634, 1 ]
was there any results of microbiology tests for the stool (received in transport system) of patient 6196 during the last hospital visit?
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 6196 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND microbiologyevents.spec_type_desc = 'stool (received in transport system)'
[ 9776, 612, 597, 2482, 286, 24559, 1435, 5254, 329, 262, 38753, 357, 47844, 287, 4839, 1080, 8, 286, 5827, 718, 25272, 1141, 262, 938, 4436, 3187, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 718, 25272, 5357, 5626, 25349, 13, 6381, 354, 2435, 3180, 15697, 38678, 11050, 25349, 13, 324, 20124, 524, 22196, 34, 27564, 2043, 352, 8, 5357, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 796, 705, 301, 970, 357, 47844, 287, 4839, 1080, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9776, 612, 597, 2482, 286, 24559, 1435, 5254, 329, 262, 38753, 357, 47844, 287, 4839, 1080, 8, 286, 5827, 718, 25272, 1141, 262, 938, 4436, 3187, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 718, 25272, 5357, 5626, 25349, 13, 6381, 354, 2435, 3180, 15697, 38678, 11050, 25349, 13, 324, 20124, 524, 22196, 34, 27564, 2043, 352, 8, 5357, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 796, 705, 301, 970, 357, 47844, 287, 4839, 1080, 33047 ]
List all the activities we have.
SELECT activity_name FROM activity
[ 8053, 477, 262, 4568, 356, 423, 13, 46506, 3842, 62, 3672, 16034, 3842 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 477, 262, 4568, 356, 423, 13, 46506, 3842, 62, 3672, 16034, 3842 ]
Count the number of patients with brain mass intracranial hemorrhage as their primary disease who were hospitalized for more than 2 days.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND demographic.days_stay > "2"
[ 12332, 262, 1271, 286, 3871, 351, 3632, 2347, 9913, 330, 2596, 498, 42203, 496, 355, 511, 4165, 4369, 508, 547, 31736, 329, 517, 621, 362, 1528, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 33, 3861, 1268, 337, 10705, 26, 1268, 5446, 2246, 49, 1565, 12576, 367, 3620, 1581, 48587, 11879, 1, 5357, 16728, 13, 12545, 62, 31712, 1875, 366, 17, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12332, 262, 1271, 286, 3871, 351, 3632, 2347, 9913, 330, 2596, 498, 42203, 496, 355, 511, 4165, 4369, 508, 547, 31736, 329, 517, 621, 362, 1528, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 33, 3861, 1268, 337, 10705, 26, 1268, 5446, 2246, 49, 1565, 12576, 367, 3620, 1581, 48587, 11879, 1, 5357, 16728, 13, 12545, 62, 31712, 1875, 366, 17, 1 ]
Average Score of my Answers.
SELECT AVG(CAST(Score AS FLOAT)) AS "AverageScore" FROM Posts WHERE PostTypeId = 2 AND OwnerUserId = '##UserId##'
[ 26287, 15178, 286, 616, 42612, 13, 46506, 35224, 7, 44647, 7, 26595, 7054, 9977, 46, 1404, 4008, 7054, 366, 26287, 26595, 1, 16034, 12043, 33411, 2947, 6030, 7390, 796, 362, 5357, 23853, 12982, 7390, 796, 705, 2235, 12982, 7390, 2235, 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 ]
[ 26287, 15178, 286, 616, 42612, 13, 46506, 35224, 7, 44647, 7, 26595, 7054, 9977, 46, 1404, 4008, 7054, 366, 26287, 26595, 1, 16034, 12043, 33411, 2947, 6030, 7390, 796, 362, 5357, 23853, 12982, 7390, 796, 705, 2235, 12982, 7390, 2235, 6 ]
What was the attendance at the Footscray away game?
SELECT crowd FROM table_name_19 WHERE away_team = "footscray"
[ 2061, 373, 262, 14858, 379, 262, 7870, 1416, 2433, 1497, 983, 30, 46506, 4315, 16034, 3084, 62, 3672, 62, 1129, 33411, 1497, 62, 15097, 796, 366, 5898, 1416, 2433, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 14858, 379, 262, 7870, 1416, 2433, 1497, 983, 30, 46506, 4315, 16034, 3084, 62, 3672, 62, 1129, 33411, 1497, 62, 15097, 796, 366, 5898, 1416, 2433, 1 ]
All tags by count, tagname.
SELECT TagName, Tags.Count AS "count" FROM Tags ORDER BY 'count' DESC, TagName
[ 3237, 15940, 416, 954, 11, 7621, 3672, 13, 46506, 17467, 5376, 11, 44789, 13, 12332, 7054, 366, 9127, 1, 16034, 44789, 38678, 11050, 705, 9127, 6, 22196, 34, 11, 17467, 5376 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3237, 15940, 416, 954, 11, 7621, 3672, 13, 46506, 17467, 5376, 11, 44789, 13, 12332, 7054, 366, 9127, 1, 16034, 44789, 38678, 11050, 705, 9127, 6, 22196, 34, 11, 17467, 5376 ]
Which Frequency MHz is the highest one that has a Call sign of k241an?
SELECT MAX(frequency_mhz) FROM table_name_65 WHERE call_sign = "k241an"
[ 13828, 31902, 19805, 318, 262, 4511, 530, 326, 468, 257, 4889, 1051, 286, 479, 28872, 272, 30, 46506, 25882, 7, 35324, 62, 76, 32179, 8, 16034, 3084, 62, 3672, 62, 2996, 33411, 869, 62, 12683, 796, 366, 74, 28872, 272, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31902, 19805, 318, 262, 4511, 530, 326, 468, 257, 4889, 1051, 286, 479, 28872, 272, 30, 46506, 25882, 7, 35324, 62, 76, 32179, 8, 16034, 3084, 62, 3672, 62, 2996, 33411, 869, 62, 12683, 796, 366, 74, 28872, 272, 1 ]
What was the largest attended game?
SELECT MAX(attendance) FROM table_23486853_5
[ 2061, 373, 262, 4387, 9141, 983, 30, 46506, 25882, 7, 1078, 437, 590, 8, 16034, 3084, 62, 1954, 2780, 3104, 4310, 62, 20 ]
[ 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, 4387, 9141, 983, 30, 46506, 25882, 7, 1078, 437, 590, 8, 16034, 3084, 62, 1954, 2780, 3104, 4310, 62, 20 ]
list the daily average nepro w/ promod intake of patient 1269 since 09/2104.
SELECT AVG(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1269)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'nepro w/ promod' AND d_items.linksto = 'inputevents_cv') AND STRFTIME('%y-%m', inputevents_cv.charttime) >= '2104-09' GROUP BY STRFTIME('%y-%m-%d', inputevents_cv.charttime)
[ 4868, 262, 4445, 2811, 497, 1676, 266, 14, 1552, 375, 10337, 286, 5827, 1105, 3388, 1201, 7769, 14, 17, 13464, 13, 46506, 35224, 7, 259, 79, 1133, 85, 658, 62, 33967, 13, 17287, 8, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, 1133, 85, 658, 62, 33967, 13, 291, 436, 323, 62, 312, 3268, 357, 46506, 14158, 436, 592, 13, 291, 436, 323, 62, 312, 16034, 14158, 436, 592, 33411, 14158, 436, 592, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 1105, 3388, 4008, 5357, 287, 79, 1133, 85, 658, 62, 33967, 13, 9186, 312, 3268, 357, 46506, 288, 62, 23814, 13, 9186, 312, 16034, 288, 62, 23814, 33411, 288, 62, 23814, 13, 18242, 796, 705, 77, 538, 305, 266, 14, 1552, 375, 6, 5357, 288, 62, 23814, 13, 8726, 301, 78, 796, 705, 259, 79, 1133, 85, 658, 62, 33967, 11537, 5357, 19269, 9792, 12789, 10786, 4, 88, 12, 4, 76, 3256, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 8, 18189, 705, 17, 13464, 12, 2931, 6, 44441, 11050, 19269, 9792, 12789, 10786, 4, 88, 12, 4, 76, 12, 4, 67, 3256, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4868, 262, 4445, 2811, 497, 1676, 266, 14, 1552, 375, 10337, 286, 5827, 1105, 3388, 1201, 7769, 14, 17, 13464, 13, 46506, 35224, 7, 259, 79, 1133, 85, 658, 62, 33967, 13, 17287, 8, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, 1133, 85, 658, 62, 33967, 13, 291, 436, 323, 62, 312, 3268, 357, 46506, 14158, 436, 592, 13, 291, 436, 323, 62, 312, 16034, 14158, 436, 592, 33411, 14158, 436, 592, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 1105, 3388, 4008, 5357, 287, 79, 1133, 85, 658, 62, 33967, 13, 9186, 312, 3268, 357, 46506, 288, 62, 23814, 13, 9186, 312, 16034, 288, 62, 23814, 33411, 288, 62, 23814, 13, 18242, 796, 705, 77, 538, 305, 266, 14, 1552, 375, 6, 5357, 288, 62, 23814, 13, 8726, 301, 78, 796, 705, 259, 79, 1133, 85, 658, 62, 33967, 11537, 5357, 19269, 9792, 12789, 10786, 4, 88, 12, 4, 76, 3256, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 8, 18189, 705, 17, 13464, 12, 2931, 6, 44441, 11050, 19269, 9792, 12789, 10786, 4, 88, 12, 4, 76, 12, 4, 67, 3256, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 8 ]
Name the type that joined 2007
SELECT "Type" FROM table_28516 WHERE "Joined" = '2007'
[ 5376, 262, 2099, 326, 5399, 4343, 46506, 366, 6030, 1, 16034, 3084, 62, 26279, 1433, 33411, 366, 24363, 1, 796, 705, 12726, 6 ]
[ 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, 2099, 326, 5399, 4343, 46506, 366, 6030, 1, 16034, 3084, 62, 26279, 1433, 33411, 366, 24363, 1, 796, 705, 12726, 6 ]
What date did Lanny Wadkins (6) win?
SELECT "Date" FROM table_36073 WHERE "Winner" = 'lanny wadkins (6)'
[ 2061, 3128, 750, 406, 7737, 48986, 5331, 357, 21, 8, 1592, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 15277, 4790, 33411, 366, 48056, 1, 796, 705, 75, 7737, 266, 324, 5331, 357, 21, 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 ]
[ 2061, 3128, 750, 406, 7737, 48986, 5331, 357, 21, 8, 1592, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 15277, 4790, 33411, 366, 48056, 1, 796, 705, 75, 7737, 266, 324, 5331, 357, 21, 33047 ]
What player has a t57 as the finish?
SELECT player FROM table_name_65 WHERE finish = "t57"
[ 2061, 2137, 468, 257, 256, 3553, 355, 262, 5461, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 2996, 33411, 5461, 796, 366, 83, 3553, 1 ]
[ 1, 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, 2137, 468, 257, 256, 3553, 355, 262, 5461, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 2996, 33411, 5461, 796, 366, 83, 3553, 1 ]
provide the number of patients whose gender is m and primary disease is posterior communicating aneurysm/sda?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 5279, 318, 285, 290, 4165, 4369, 318, 34319, 22889, 281, 23365, 893, 76, 14, 82, 6814, 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, 47356, 5958, 796, 366, 32782, 1137, 41254, 48811, 2149, 33881, 3537, 36, 4261, 56, 12310, 14, 50, 5631, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5279, 318, 285, 290, 4165, 4369, 318, 34319, 22889, 281, 23365, 893, 76, 14, 82, 6814, 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, 47356, 5958, 796, 366, 32782, 1137, 41254, 48811, 2149, 33881, 3537, 36, 4261, 56, 12310, 14, 50, 5631, 1 ]
Where the grid is under 19, the time finished was logged as received outside assistance, what's the total number of laps?
SELECT COUNT("Laps") FROM table_11301 WHERE "Time/Retired" = 'received outside assistance' AND "Grid" < '19'
[ 8496, 262, 10706, 318, 739, 678, 11, 262, 640, 5201, 373, 18832, 355, 2722, 2354, 6829, 11, 644, 338, 262, 2472, 1271, 286, 24590, 30, 46506, 327, 28270, 7203, 43, 1686, 4943, 16034, 3084, 62, 16616, 486, 33411, 366, 7575, 14, 9781, 1202, 1, 796, 705, 47844, 2354, 6829, 6, 5357, 366, 41339, 1, 1279, 705, 1129, 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 ]
[ 8496, 262, 10706, 318, 739, 678, 11, 262, 640, 5201, 373, 18832, 355, 2722, 2354, 6829, 11, 644, 338, 262, 2472, 1271, 286, 24590, 30, 46506, 327, 28270, 7203, 43, 1686, 4943, 16034, 3084, 62, 16616, 486, 33411, 366, 7575, 14, 9781, 1202, 1, 796, 705, 47844, 2354, 6829, 6, 5357, 366, 41339, 1, 1279, 705, 1129, 6 ]
What was the number of Personal Staff Units Killed?
SELECT "Killed" FROM table_56583 WHERE "Unit" = 'personal staff'
[ 2061, 373, 262, 1271, 286, 15644, 9983, 27719, 13095, 30, 46506, 366, 42, 2967, 1, 16034, 3084, 62, 47372, 5999, 33411, 366, 26453, 1, 796, 705, 22682, 3085, 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, 373, 262, 1271, 286, 15644, 9983, 27719, 13095, 30, 46506, 366, 42, 2967, 1, 16034, 3084, 62, 47372, 5999, 33411, 366, 26453, 1, 796, 705, 22682, 3085, 6 ]
What is the score for the United States when Harry Hampton is the player and the money is $73?
SELECT score FROM table_name_23 WHERE country = "united states" AND money___$__ = "73" AND player = "harry hampton"
[ 2061, 318, 262, 4776, 329, 262, 1578, 1829, 618, 5850, 36852, 318, 262, 2137, 290, 262, 1637, 318, 720, 4790, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 1954, 33411, 1499, 796, 366, 41187, 2585, 1, 5357, 1637, 17569, 3, 834, 796, 366, 4790, 1, 5357, 2137, 796, 366, 71, 6532, 8891, 10972, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4776, 329, 262, 1578, 1829, 618, 5850, 36852, 318, 262, 2137, 290, 262, 1637, 318, 720, 4790, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 1954, 33411, 1499, 796, 366, 41187, 2585, 1, 5357, 1637, 17569, 3, 834, 796, 366, 4790, 1, 5357, 2137, 796, 366, 71, 6532, 8891, 10972, 1 ]
How many games had 22 points?
SELECT COUNT(games_played) FROM table_18018214_4 WHERE points = 22
[ 2437, 867, 1830, 550, 2534, 2173, 30, 46506, 327, 28270, 7, 19966, 62, 21542, 8, 16034, 3084, 62, 1507, 486, 6469, 1415, 62, 19, 33411, 2173, 796, 2534 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1830, 550, 2534, 2173, 30, 46506, 327, 28270, 7, 19966, 62, 21542, 8, 16034, 3084, 62, 1507, 486, 6469, 1415, 62, 19, 33411, 2173, 796, 2534 ]
give the number of patients whose discharge location is home health care and diagnosis long title is psoas muscle abscess.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND diagnoses.long_title = "Psoas muscle abscess"
[ 26535, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 1363, 1535, 1337, 290, 13669, 890, 3670, 318, 279, 568, 292, 8280, 2352, 919, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 33411, 16728, 13, 6381, 10136, 62, 24886, 796, 366, 39069, 11179, 40818, 47342, 1, 5357, 40567, 13, 6511, 62, 7839, 796, 366, 47, 568, 292, 8280, 2352, 919, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 26535, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 1363, 1535, 1337, 290, 13669, 890, 3670, 318, 279, 568, 292, 8280, 2352, 919, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 33411, 16728, 13, 6381, 10136, 62, 24886, 796, 366, 39069, 11179, 40818, 47342, 1, 5357, 40567, 13, 6511, 62, 7839, 796, 366, 47, 568, 292, 8280, 2352, 919, 1 ]
count the number of patients whose primary disease is bowel obstruction and days of hospital stay is greater than 10?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BOWEL OBSTRUCTION" AND demographic.days_stay > "10"
[ 9127, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 35711, 28118, 290, 1528, 286, 4436, 2652, 318, 3744, 621, 838, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 33, 3913, 3698, 25334, 46126, 2849, 1, 5357, 16728, 13, 12545, 62, 31712, 1875, 366, 940, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 35711, 28118, 290, 1528, 286, 4436, 2652, 318, 3744, 621, 838, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 33, 3913, 3698, 25334, 46126, 2849, 1, 5357, 16728, 13, 12545, 62, 31712, 1875, 366, 940, 1 ]
Which frequency is station wlfv-fm?
SELECT frequency FROM table_19131921_1 WHERE station = "WLFV-FM"
[ 13828, 8373, 318, 4429, 266, 1652, 85, 12, 38353, 30, 46506, 8373, 16034, 3084, 62, 1129, 1485, 1129, 2481, 62, 16, 33411, 4429, 796, 366, 54, 43, 37, 53, 12, 23264, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 8373, 318, 4429, 266, 1652, 85, 12, 38353, 30, 46506, 8373, 16034, 3084, 62, 1129, 1485, 1129, 2481, 62, 16, 33411, 4429, 796, 366, 54, 43, 37, 53, 12, 23264, 1 ]
what is the number of players who weight over 200 pounds ?
SELECT COUNT("name") FROM table_204_105 WHERE "weight (lbs.)" > 200
[ 10919, 318, 262, 1271, 286, 1938, 508, 3463, 625, 939, 8059, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 13348, 33411, 366, 6551, 357, 32133, 2014, 1, 1875, 939 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1938, 508, 3463, 625, 939, 8059, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 13348, 33411, 366, 6551, 357, 32133, 2014, 1, 1875, 939 ]
What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT?
SELECT DISTINCT T1.fname FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = T2.vice_president_vote EXCEPT SELECT DISTINCT fname FROM student WHERE city_code = "PIT"
[ 2061, 389, 262, 7310, 717, 3891, 286, 262, 2444, 508, 423, 7927, 1893, 5690, 290, 26412, 287, 257, 1748, 3025, 1748, 2438, 318, 407, 49040, 30, 46506, 360, 8808, 1268, 4177, 309, 16, 13, 69, 3672, 16034, 3710, 7054, 309, 16, 32357, 1268, 6709, 62, 22105, 7054, 309, 17, 6177, 309, 16, 13, 301, 27112, 796, 309, 17, 13, 28281, 62, 22540, 62, 27257, 7788, 42006, 33493, 360, 8808, 1268, 4177, 277, 3672, 16034, 3710, 33411, 1748, 62, 8189, 796, 366, 47, 2043, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7310, 717, 3891, 286, 262, 2444, 508, 423, 7927, 1893, 5690, 290, 26412, 287, 257, 1748, 3025, 1748, 2438, 318, 407, 49040, 30, 46506, 360, 8808, 1268, 4177, 309, 16, 13, 69, 3672, 16034, 3710, 7054, 309, 16, 32357, 1268, 6709, 62, 22105, 7054, 309, 17, 6177, 309, 16, 13, 301, 27112, 796, 309, 17, 13, 28281, 62, 22540, 62, 27257, 7788, 42006, 33493, 360, 8808, 1268, 4177, 277, 3672, 16034, 3710, 33411, 1748, 62, 8189, 796, 366, 47, 2043, 1 ]
what is the average points when the nation is wales and the pts/game is more than 5?
SELECT AVG("Points") FROM table_53673 WHERE "Nation" = 'wales' AND "Pts/game" > '5'
[ 10919, 318, 262, 2811, 2173, 618, 262, 3277, 318, 266, 2040, 290, 262, 43344, 14, 6057, 318, 517, 621, 642, 30, 46506, 35224, 7203, 40710, 4943, 16034, 3084, 62, 44468, 4790, 33411, 366, 46108, 1, 796, 705, 86, 2040, 6, 5357, 366, 47, 912, 14, 6057, 1, 1875, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 2811, 2173, 618, 262, 3277, 318, 266, 2040, 290, 262, 43344, 14, 6057, 318, 517, 621, 642, 30, 46506, 35224, 7203, 40710, 4943, 16034, 3084, 62, 44468, 4790, 33411, 366, 46108, 1, 796, 705, 86, 2040, 6, 5357, 366, 47, 912, 14, 6057, 1, 1875, 705, 20, 6 ]
Name the winning driver for round 7
SELECT "Winning Driver" FROM table_31909 WHERE "Round" = '7'
[ 5376, 262, 5442, 4639, 329, 2835, 767, 46506, 366, 16643, 768, 12434, 1, 16034, 3084, 62, 35175, 2931, 33411, 366, 22685, 1, 796, 705, 22, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 5442, 4639, 329, 2835, 767, 46506, 366, 16643, 768, 12434, 1, 16034, 3084, 62, 35175, 2931, 33411, 366, 22685, 1, 796, 705, 22, 6 ]
Which Ground has a Home team score of 18.12 (120)?
SELECT "Ground" FROM table_45238 WHERE "Home team score" = '18.12 (120)'
[ 13828, 13706, 468, 257, 5995, 1074, 4776, 286, 1248, 13, 1065, 357, 10232, 19427, 46506, 366, 35539, 1, 16034, 3084, 62, 2231, 23721, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 1507, 13, 1065, 357, 10232, 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 ]
[ 13828, 13706, 468, 257, 5995, 1074, 4776, 286, 1248, 13, 1065, 357, 10232, 19427, 46506, 366, 35539, 1, 16034, 3084, 62, 2231, 23721, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 1507, 13, 1065, 357, 10232, 33047 ]
get me patient 61500's hospial admission time since 2105.
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 61500 AND STRFTIME('%y', admissions.admittime) >= '2105'
[ 1136, 502, 5827, 718, 33698, 338, 10496, 498, 13938, 640, 1201, 362, 13348, 13, 46506, 25349, 13, 324, 20124, 524, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 718, 33698, 5357, 19269, 9792, 12789, 10786, 4, 88, 3256, 25349, 13, 324, 20124, 524, 8, 18189, 705, 17, 13348, 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 ]
[ 1136, 502, 5827, 718, 33698, 338, 10496, 498, 13938, 640, 1201, 362, 13348, 13, 46506, 25349, 13, 324, 20124, 524, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 718, 33698, 5357, 19269, 9792, 12789, 10786, 4, 88, 3256, 25349, 13, 324, 20124, 524, 8, 18189, 705, 17, 13348, 6 ]
You can give me a bar chart, that groups and counts the country name, list X-axis in descending order.
SELECT COUNTRY_NAME, COUNT(COUNTRY_NAME) FROM countries GROUP BY COUNTRY_NAME ORDER BY COUNTRY_NAME DESC
[ 1639, 460, 1577, 502, 257, 2318, 8262, 11, 326, 2628, 290, 9853, 262, 1499, 1438, 11, 1351, 1395, 12, 22704, 287, 31491, 1502, 13, 46506, 31404, 40405, 62, 20608, 11, 327, 28270, 7, 34, 19385, 40405, 62, 20608, 8, 16034, 2678, 44441, 11050, 31404, 40405, 62, 20608, 38678, 11050, 31404, 40405, 62, 20608, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1639, 460, 1577, 502, 257, 2318, 8262, 11, 326, 2628, 290, 9853, 262, 1499, 1438, 11, 1351, 1395, 12, 22704, 287, 31491, 1502, 13, 46506, 31404, 40405, 62, 20608, 11, 327, 28270, 7, 34, 19385, 40405, 62, 20608, 8, 16034, 2678, 44441, 11050, 31404, 40405, 62, 20608, 38678, 11050, 31404, 40405, 62, 20608, 22196, 34 ]
Visualize a bar chart about the distribution of All_Road and School_ID , could you sort total number from high to low order?
SELECT All_Road, School_ID FROM basketball_match ORDER BY School_ID DESC
[ 36259, 1096, 257, 2318, 8262, 546, 262, 6082, 286, 1439, 62, 29197, 290, 3961, 62, 2389, 837, 714, 345, 3297, 2472, 1271, 422, 1029, 284, 1877, 1502, 30, 46506, 1439, 62, 29197, 11, 3961, 62, 2389, 16034, 9669, 62, 15699, 38678, 11050, 3961, 62, 2389, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 36259, 1096, 257, 2318, 8262, 546, 262, 6082, 286, 1439, 62, 29197, 290, 3961, 62, 2389, 837, 714, 345, 3297, 2472, 1271, 422, 1029, 284, 1877, 1502, 30, 46506, 1439, 62, 29197, 11, 3961, 62, 2389, 16034, 9669, 62, 15699, 38678, 11050, 3961, 62, 2389, 22196, 34 ]
When is the last week that has a result of a w 34-21?
SELECT MAX("Week") FROM table_78396 WHERE "Result" = 'w 34-21'
[ 2215, 318, 262, 938, 1285, 326, 468, 257, 1255, 286, 257, 266, 4974, 12, 2481, 30, 46506, 25882, 7203, 20916, 4943, 16034, 3084, 62, 3695, 34107, 33411, 366, 23004, 1, 796, 705, 86, 4974, 12, 2481, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 318, 262, 938, 1285, 326, 468, 257, 1255, 286, 257, 266, 4974, 12, 2481, 30, 46506, 25882, 7203, 20916, 4943, 16034, 3084, 62, 3695, 34107, 33411, 366, 23004, 1, 796, 705, 86, 4974, 12, 2481, 6 ]
Tell me the average top 25 with events of 5 and cuts madde less than 3
SELECT AVG(top_25) FROM table_name_33 WHERE events = 5 AND cuts_made < 3
[ 24446, 502, 262, 2811, 1353, 1679, 351, 2995, 286, 642, 290, 6630, 285, 2860, 68, 1342, 621, 513, 46506, 35224, 7, 4852, 62, 1495, 8, 16034, 3084, 62, 3672, 62, 2091, 33411, 2995, 796, 642, 5357, 6630, 62, 9727, 1279, 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, 1, 1 ]
[ 24446, 502, 262, 2811, 1353, 1679, 351, 2995, 286, 642, 290, 6630, 285, 2860, 68, 1342, 621, 513, 46506, 35224, 7, 4852, 62, 1495, 8, 16034, 3084, 62, 3672, 62, 2091, 33411, 2995, 796, 642, 5357, 6630, 62, 9727, 1279, 513 ]
Which average rank has a total of 16?
SELECT AVG("Rank") FROM table_79699 WHERE "Total" = '16'
[ 13828, 2811, 4279, 468, 257, 2472, 286, 1467, 30, 46506, 35224, 7203, 27520, 4943, 16034, 3084, 62, 41060, 2079, 33411, 366, 14957, 1, 796, 705, 1433, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 2811, 4279, 468, 257, 2472, 286, 1467, 30, 46506, 35224, 7203, 27520, 4943, 16034, 3084, 62, 41060, 2079, 33411, 366, 14957, 1, 796, 705, 1433, 6 ]
what was the first public middle school established in hawaii ?
SELECT "school name" FROM table_203_416 ORDER BY "establishment" LIMIT 1
[ 10919, 373, 262, 717, 1171, 3504, 1524, 4920, 287, 23185, 42648, 5633, 46506, 366, 14347, 1438, 1, 16034, 3084, 62, 22416, 62, 35218, 38678, 11050, 366, 44390, 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, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 373, 262, 717, 1171, 3504, 1524, 4920, 287, 23185, 42648, 5633, 46506, 366, 14347, 1438, 1, 16034, 3084, 62, 22416, 62, 35218, 38678, 11050, 366, 44390, 1, 27564, 2043, 352 ]
Top uses from France in tag 'elixir' or 'phoenix-framework'.
WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id = p.OwnerUserId WHERE LOWER(Location) LIKE '%france%' AND (TagName = 'elixir' OR TagName = 'phoenix-framework') GROUP BY u.Id, TagName) SELECT * FROM USER_BY_TAG ORDER BY UpVotes DESC
[ 9126, 3544, 422, 4881, 287, 7621, 705, 417, 32345, 6, 393, 705, 746, 8538, 12, 30604, 4458, 54, 10554, 1294, 1137, 62, 17513, 62, 42197, 7054, 357, 46506, 371, 3913, 62, 41359, 13246, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 7, 28104, 22196, 34, 8, 7054, 10916, 11, 334, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 327, 28270, 7, 28104, 7054, 3205, 53, 6421, 16034, 44789, 7054, 256, 3268, 21479, 32357, 1268, 2947, 36142, 7054, 42975, 6177, 42975, 13, 24835, 7390, 796, 256, 13, 7390, 3268, 21479, 32357, 1268, 12043, 7054, 279, 6177, 279, 13, 24546, 7390, 796, 42975, 13, 6307, 7390, 3268, 21479, 32357, 1268, 39584, 7054, 410, 6177, 410, 13, 6307, 7390, 796, 279, 13, 7390, 5357, 19175, 6030, 7390, 796, 362, 3268, 21479, 32357, 1268, 18987, 7054, 334, 6177, 334, 13, 7390, 796, 279, 13, 42419, 12982, 7390, 33411, 406, 36048, 7, 14749, 8, 34178, 705, 4, 69, 8132, 4, 6, 5357, 357, 24835, 5376, 796, 705, 417, 32345, 6, 6375, 17467, 5376, 796, 705, 746, 8538, 12, 30604, 11537, 44441, 11050, 334, 13, 7390, 11, 17467, 5376, 8, 33493, 1635, 16034, 1294, 1137, 62, 17513, 62, 42197, 38678, 11050, 3205, 53, 6421, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3544, 422, 4881, 287, 7621, 705, 417, 32345, 6, 393, 705, 746, 8538, 12, 30604, 4458, 54, 10554, 1294, 1137, 62, 17513, 62, 42197, 7054, 357, 46506, 371, 3913, 62, 41359, 13246, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 7, 28104, 22196, 34, 8, 7054, 10916, 11, 334, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 327, 28270, 7, 28104, 7054, 3205, 53, 6421, 16034, 44789, 7054, 256, 3268, 21479, 32357, 1268, 2947, 36142, 7054, 42975, 6177, 42975, 13, 24835, 7390, 796, 256, 13, 7390, 3268, 21479, 32357, 1268, 12043, 7054, 279, 6177, 279, 13, 24546, 7390, 796, 42975, 13, 6307, 7390, 3268, 21479, 32357, 1268, 39584, 7054, 410, 6177, 410, 13, 6307, 7390, 796, 279, 13, 7390, 5357, 19175, 6030, 7390, 796, 362, 3268, 21479, 32357, 1268, 18987, 7054, 334, 6177, 334, 13, 7390, 796, 279, 13, 42419, 12982, 7390, 33411, 406, 36048, 7, 14749, 8, 34178, 705, 4, 69, 8132, 4, 6, 5357, 357, 24835, 5376, 796, 705, 417, 32345, 6, 6375, 17467, 5376, 796, 705, 746, 8538, 12, 30604, 11537, 44441, 11050, 334, 13, 7390, 11, 17467, 5376, 8, 33493, 1635, 16034, 1294, 1137, 62, 17513, 62, 42197, 38678, 11050, 3205, 53, 6421, 22196, 34 ]
Show the number of addrens history for each customer in a bar chart, and display y-axis in desc order.
SELECT T2.customer_name, COUNT(T2.customer_name) FROM Customer_Address_History AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id JOIN Addresses AS T3 ON T1.address_id = T3.address_id GROUP BY T2.customer_name ORDER BY COUNT(T2.customer_name) DESC
[ 15307, 262, 1271, 286, 751, 918, 82, 2106, 329, 1123, 6491, 287, 257, 2318, 8262, 11, 290, 3359, 331, 12, 22704, 287, 1715, 1502, 13, 46506, 309, 17, 13, 23144, 263, 62, 3672, 11, 327, 28270, 7, 51, 17, 13, 23144, 263, 62, 3672, 8, 16034, 22092, 62, 20231, 62, 18122, 7054, 309, 16, 32357, 1268, 36707, 7054, 309, 17, 6177, 309, 16, 13, 23144, 263, 62, 312, 796, 309, 17, 13, 23144, 263, 62, 312, 32357, 1268, 3060, 16746, 7054, 309, 18, 6177, 309, 16, 13, 21975, 62, 312, 796, 309, 18, 13, 21975, 62, 312, 44441, 11050, 309, 17, 13, 23144, 263, 62, 3672, 38678, 11050, 327, 28270, 7, 51, 17, 13, 23144, 263, 62, 3672, 8, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 751, 918, 82, 2106, 329, 1123, 6491, 287, 257, 2318, 8262, 11, 290, 3359, 331, 12, 22704, 287, 1715, 1502, 13, 46506, 309, 17, 13, 23144, 263, 62, 3672, 11, 327, 28270, 7, 51, 17, 13, 23144, 263, 62, 3672, 8, 16034, 22092, 62, 20231, 62, 18122, 7054, 309, 16, 32357, 1268, 36707, 7054, 309, 17, 6177, 309, 16, 13, 23144, 263, 62, 312, 796, 309, 17, 13, 23144, 263, 62, 312, 32357, 1268, 3060, 16746, 7054, 309, 18, 6177, 309, 16, 13, 21975, 62, 312, 796, 309, 18, 13, 21975, 62, 312, 44441, 11050, 309, 17, 13, 23144, 263, 62, 3672, 38678, 11050, 327, 28270, 7, 51, 17, 13, 23144, 263, 62, 3672, 8, 22196, 34 ]
What is the Club, when the value for Played is 22, and when the value for Tries is 41?
SELECT club FROM table_name_44 WHERE played = "22" AND tries_for = "41"
[ 2061, 318, 262, 6289, 11, 618, 262, 1988, 329, 33101, 318, 2534, 11, 290, 618, 262, 1988, 329, 309, 1678, 318, 6073, 30, 46506, 3430, 16034, 3084, 62, 3672, 62, 2598, 33411, 2826, 796, 366, 1828, 1, 5357, 8404, 62, 1640, 796, 366, 3901, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6289, 11, 618, 262, 1988, 329, 33101, 318, 2534, 11, 290, 618, 262, 1988, 329, 309, 1678, 318, 6073, 30, 46506, 3430, 16034, 3084, 62, 3672, 62, 2598, 33411, 2826, 796, 366, 1828, 1, 5357, 8404, 62, 1640, 796, 366, 3901, 1 ]
Which Frequency has a Multiplier of 6 ?
SELECT "Frequency" FROM table_8841 WHERE "Multiplier" = '6×'
[ 13828, 31902, 468, 257, 15237, 489, 959, 286, 718, 5633, 46506, 366, 37, 28707, 1, 16034, 3084, 62, 3459, 3901, 33411, 366, 15205, 24705, 959, 1, 796, 705, 21, 12906, 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 ]
[ 13828, 31902, 468, 257, 15237, 489, 959, 286, 718, 5633, 46506, 366, 37, 28707, 1, 16034, 3084, 62, 3459, 3901, 33411, 366, 15205, 24705, 959, 1, 796, 705, 21, 12906, 6 ]
What is the average games that were drawn with ERSC Amberg as name and less than 14 points?
SELECT AVG(drawn) FROM table_name_32 WHERE name = "ersc amberg" AND points < 14
[ 2061, 318, 262, 2811, 1830, 326, 547, 7428, 351, 13793, 6173, 1703, 3900, 355, 1438, 290, 1342, 621, 1478, 2173, 30, 46506, 35224, 7, 41549, 8, 16034, 3084, 62, 3672, 62, 2624, 33411, 1438, 796, 366, 364, 66, 716, 3900, 1, 5357, 2173, 1279, 1478 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1830, 326, 547, 7428, 351, 13793, 6173, 1703, 3900, 355, 1438, 290, 1342, 621, 1478, 2173, 30, 46506, 35224, 7, 41549, 8, 16034, 3084, 62, 3672, 62, 2624, 33411, 1438, 796, 366, 364, 66, 716, 3900, 1, 5357, 2173, 1279, 1478 ]
What is the team 2 with a team 1 us gor e?
SELECT team_2 FROM table_name_88 WHERE team_1 = "us gorée"
[ 2061, 318, 262, 1074, 362, 351, 257, 1074, 352, 514, 30344, 304, 30, 46506, 1074, 62, 17, 16034, 3084, 62, 3672, 62, 3459, 33411, 1074, 62, 16, 796, 366, 385, 30344, 22161, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1074, 362, 351, 257, 1074, 352, 514, 30344, 304, 30, 46506, 1074, 62, 17, 16034, 3084, 62, 3672, 62, 3459, 33411, 1074, 62, 16, 796, 366, 385, 30344, 22161, 1 ]
Name the D 43 when it has D 46 of d 26
SELECT "D 43 \u221a" FROM table_53301 WHERE "D 46 \u221a" = 'd 26'
[ 5376, 262, 360, 5946, 618, 340, 468, 360, 6337, 286, 288, 2608, 46506, 366, 35, 5946, 3467, 84, 26115, 64, 1, 16034, 3084, 62, 44994, 486, 33411, 366, 35, 6337, 3467, 84, 26115, 64, 1, 796, 705, 67, 2608, 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 ]
[ 5376, 262, 360, 5946, 618, 340, 468, 360, 6337, 286, 288, 2608, 46506, 366, 35, 5946, 3467, 84, 26115, 64, 1, 16034, 3084, 62, 44994, 486, 33411, 366, 35, 6337, 3467, 84, 26115, 64, 1, 796, 705, 67, 2608, 6 ]
What stadium does FK Rudar play in?
SELECT "Stadium" FROM table_30654 WHERE "Home team" = 'FK Rudar'
[ 2061, 10308, 857, 376, 42, 17421, 283, 711, 287, 30, 46506, 366, 1273, 6271, 1, 16034, 3084, 62, 1270, 39111, 33411, 366, 16060, 1074, 1, 796, 705, 26236, 17421, 283, 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, 10308, 857, 376, 42, 17421, 283, 711, 287, 30, 46506, 366, 1273, 6271, 1, 16034, 3084, 62, 1270, 39111, 33411, 366, 16060, 1074, 1, 796, 705, 26236, 17421, 283, 6 ]
What event has 7860 notes?
SELECT "Event" FROM table_13589 WHERE "Notes" = '7860'
[ 2061, 1785, 468, 8699, 1899, 4710, 30, 46506, 366, 9237, 1, 16034, 3084, 62, 1485, 44169, 33411, 366, 16130, 1, 796, 705, 3695, 1899, 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 ]
[ 2061, 1785, 468, 8699, 1899, 4710, 30, 46506, 366, 9237, 1, 16034, 3084, 62, 1485, 44169, 33411, 366, 16130, 1, 796, 705, 3695, 1899, 6 ]
What party is listed for the Representative under the 85th congress?
SELECT party FROM table_2841865_2 WHERE congress = "85th"
[ 2061, 2151, 318, 5610, 329, 262, 19920, 739, 262, 7600, 400, 8681, 30, 46506, 2151, 16034, 3084, 62, 30336, 1507, 2996, 62, 17, 33411, 8681, 796, 366, 5332, 400, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2151, 318, 5610, 329, 262, 19920, 739, 262, 7600, 400, 8681, 30, 46506, 2151, 16034, 3084, 62, 30336, 1507, 2996, 62, 17, 33411, 8681, 796, 366, 5332, 400, 1 ]
Answers on closed questions by a specific user (with close reasons). If a question was closed multiple times, it will be shown more than once in the results of this query
SELECT q.Id AS "post_link", a.Id AS "post_link", CASE Comment WHEN 1 THEN 'Exact Duplicate' WHEN 2 THEN 'Off-topic' WHEN 3 THEN 'Subjective and argumentative' WHEN 4 THEN 'Not a real question' WHEN 7 THEN 'Too localized' WHEN 10 THEN 'General reference' WHEN 20 THEN 'Noise or pointless' WHEN 101 THEN 'Duplicate' WHEN 102 THEN 'Off-topic' WHEN 103 THEN 'Unclear what you''re asking' WHEN 104 THEN 'Too broad' WHEN 105 THEN 'Primarily opinion-based' END AS "close_reason", q.Score, a.Score, q.ViewCount, q.Tags FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id INNER JOIN PostHistory AS ph ON ph.PostId = q.Id WHERE (NOT q.ClosedDate IS NULL) AND (a.OwnerUserId = '##userId##') AND (ph.PostHistoryTypeId = 10) ORDER BY q.Id DESC
[ 2025, 37848, 319, 4838, 2683, 416, 257, 2176, 2836, 357, 4480, 1969, 3840, 737, 1002, 257, 1808, 373, 4838, 3294, 1661, 11, 340, 481, 307, 3402, 517, 621, 1752, 287, 262, 2482, 286, 428, 12405, 46506, 10662, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 257, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 42001, 18957, 42099, 352, 42243, 705, 3109, 529, 49821, 5344, 6, 42099, 362, 42243, 705, 9362, 12, 26652, 6, 42099, 513, 42243, 705, 19776, 425, 290, 4578, 876, 6, 42099, 604, 42243, 705, 3673, 257, 1103, 1808, 6, 42099, 767, 42243, 705, 23307, 36618, 6, 42099, 838, 42243, 705, 12218, 4941, 6, 42099, 1160, 42243, 705, 2949, 786, 393, 27158, 6, 42099, 8949, 42243, 705, 35660, 489, 5344, 6, 42099, 15143, 42243, 705, 9362, 12, 26652, 6, 42099, 15349, 42243, 705, 3118, 20063, 644, 345, 7061, 260, 4737, 6, 42099, 14436, 42243, 705, 23307, 3154, 6, 42099, 13343, 42243, 705, 23828, 3093, 4459, 12, 3106, 6, 23578, 7054, 366, 19836, 62, 41181, 1600, 10662, 13, 26595, 11, 257, 13, 26595, 11, 10662, 13, 7680, 12332, 11, 10662, 13, 36142, 16034, 12043, 7054, 10662, 3268, 21479, 32357, 1268, 12043, 7054, 257, 6177, 257, 13, 24546, 7390, 796, 10662, 13, 7390, 3268, 21479, 32357, 1268, 2947, 18122, 7054, 872, 6177, 872, 13, 6307, 7390, 796, 10662, 13, 7390, 33411, 357, 11929, 10662, 13, 2601, 1335, 10430, 3180, 15697, 8, 5357, 357, 64, 13, 42419, 12982, 7390, 796, 705, 2235, 7220, 7390, 2235, 11537, 5357, 357, 746, 13, 6307, 18122, 6030, 7390, 796, 838, 8, 38678, 11050, 10662, 13, 7390, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 319, 4838, 2683, 416, 257, 2176, 2836, 357, 4480, 1969, 3840, 737, 1002, 257, 1808, 373, 4838, 3294, 1661, 11, 340, 481, 307, 3402, 517, 621, 1752, 287, 262, 2482, 286, 428, 12405, 46506, 10662, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 257, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 42001, 18957, 42099, 352, 42243, 705, 3109, 529, 49821, 5344, 6, 42099, 362, 42243, 705, 9362, 12, 26652, 6, 42099, 513, 42243, 705, 19776, 425, 290, 4578, 876, 6, 42099, 604, 42243, 705, 3673, 257, 1103, 1808, 6, 42099, 767, 42243, 705, 23307, 36618, 6, 42099, 838, 42243, 705, 12218, 4941, 6, 42099, 1160, 42243, 705, 2949, 786, 393, 27158, 6, 42099, 8949, 42243, 705, 35660, 489, 5344, 6, 42099, 15143, 42243, 705, 9362, 12, 26652, 6, 42099, 15349, 42243, 705, 3118, 20063, 644, 345, 7061, 260, 4737, 6, 42099, 14436, 42243, 705, 23307, 3154, 6, 42099, 13343, 42243, 705, 23828, 3093, 4459, 12, 3106, 6, 23578, 7054, 366, 19836, 62, 41181, 1600, 10662, 13, 26595, 11, 257, 13, 26595, 11, 10662, 13, 7680, 12332, 11, 10662, 13, 36142, 16034, 12043, 7054, 10662, 3268, 21479, 32357, 1268, 12043, 7054, 257, 6177, 257, 13, 24546, 7390, 796, 10662, 13, 7390, 3268, 21479, 32357, 1268, 2947, 18122, 7054, 872, 6177, 872, 13, 6307, 7390, 796, 10662, 13, 7390, 33411, 357, 11929, 10662, 13, 2601, 1335, 10430, 3180, 15697, 8, 5357, 357, 64, 13, 42419, 12982, 7390, 796, 705, 2235, 7220, 7390, 2235, 11537, 5357, 357, 746, 13, 6307, 18122, 6030, 7390, 796, 838, 8, 38678, 11050, 10662, 13, 7390, 22196, 34 ]
show me patient 002-41152's hospial admission time in this year.
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '002-41152' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
[ 12860, 502, 5827, 3571, 17, 12, 42224, 4309, 338, 10496, 498, 13938, 640, 287, 428, 614, 13, 46506, 5827, 13, 49257, 324, 20124, 524, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 21601, 12, 42224, 4309, 6, 5357, 360, 1404, 2767, 12789, 7, 26029, 13, 49257, 324, 20124, 524, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 614, 3256, 705, 12, 15, 614, 11537 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12860, 502, 5827, 3571, 17, 12, 42224, 4309, 338, 10496, 498, 13938, 640, 287, 428, 614, 13, 46506, 5827, 13, 49257, 324, 20124, 524, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 21601, 12, 42224, 4309, 6, 5357, 360, 1404, 2767, 12789, 7, 26029, 13, 49257, 324, 20124, 524, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 614, 3256, 705, 12, 15, 614, 11537 ]
wong chin hung was transferred to his new team on what date ?
SELECT "date" FROM table_204_968 WHERE "player" = 'wong chin hung'
[ 86, 506, 22531, 9174, 373, 11172, 284, 465, 649, 1074, 319, 644, 3128, 5633, 46506, 366, 4475, 1, 16034, 3084, 62, 18638, 62, 38956, 33411, 366, 7829, 1, 796, 705, 86, 506, 22531, 9174, 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 ]
[ 86, 506, 22531, 9174, 373, 11172, 284, 465, 649, 1074, 319, 644, 3128, 5633, 46506, 366, 4475, 1, 16034, 3084, 62, 18638, 62, 38956, 33411, 366, 7829, 1, 796, 705, 86, 506, 22531, 9174, 6 ]
When was Ranma : netsuretsu kakutouhen first release by Banpresto?
SELECT "Initial Release Date" FROM table_15277 WHERE "Publisher" = 'banpresto' AND "Japanese Title" = 'ranma ½: netsuretsu kakutouhen'
[ 2215, 373, 23075, 2611, 1058, 31720, 495, 912, 84, 479, 461, 315, 280, 831, 717, 2650, 416, 10274, 79, 2118, 78, 30, 46506, 366, 24243, 13868, 7536, 1, 16034, 3084, 62, 1314, 27019, 33411, 366, 46471, 1, 796, 705, 3820, 79, 2118, 78, 6, 5357, 366, 25324, 11851, 1, 796, 705, 2596, 2611, 25208, 25, 31720, 495, 912, 84, 479, 461, 315, 280, 831, 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, 1 ]
[ 2215, 373, 23075, 2611, 1058, 31720, 495, 912, 84, 479, 461, 315, 280, 831, 717, 2650, 416, 10274, 79, 2118, 78, 30, 46506, 366, 24243, 13868, 7536, 1, 16034, 3084, 62, 1314, 27019, 33411, 366, 46471, 1, 796, 705, 3820, 79, 2118, 78, 6, 5357, 366, 25324, 11851, 1, 796, 705, 2596, 2611, 25208, 25, 31720, 495, 912, 84, 479, 461, 315, 280, 831, 6 ]
What was the record after the January 6 game?
SELECT record FROM table_name_44 WHERE date = "january 6"
[ 2061, 373, 262, 1700, 706, 262, 3269, 718, 983, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 2598, 33411, 3128, 796, 366, 13881, 2838, 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 ]
[ 2061, 373, 262, 1700, 706, 262, 3269, 718, 983, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 2598, 33411, 3128, 796, 366, 13881, 2838, 718, 1 ]
Which Age (as of 1 February 2014) has a Rank smaller than 9, and a Death date of 24 january 2007?
SELECT age__as_of_1_february_2014_ FROM table_name_3 WHERE rank < 9 AND death_date = "24 january 2007"
[ 13828, 7129, 357, 292, 286, 352, 3945, 1946, 8, 468, 257, 10916, 4833, 621, 860, 11, 290, 257, 5830, 3128, 286, 1987, 42897, 2838, 4343, 30, 46506, 2479, 834, 292, 62, 1659, 62, 16, 62, 69, 1765, 3728, 62, 4967, 62, 16034, 3084, 62, 3672, 62, 18, 33411, 4279, 1279, 860, 5357, 1918, 62, 4475, 796, 366, 1731, 42897, 2838, 4343, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7129, 357, 292, 286, 352, 3945, 1946, 8, 468, 257, 10916, 4833, 621, 860, 11, 290, 257, 5830, 3128, 286, 1987, 42897, 2838, 4343, 30, 46506, 2479, 834, 292, 62, 1659, 62, 16, 62, 69, 1765, 3728, 62, 4967, 62, 16034, 3084, 62, 3672, 62, 18, 33411, 4279, 1279, 860, 5357, 1918, 62, 4475, 796, 366, 1731, 42897, 2838, 4343, 1 ]
What was the round when he fought Joe Stevenson?
SELECT "Round" FROM table_46150 WHERE "Opponent" = 'joe stevenson'
[ 2061, 373, 262, 2835, 618, 339, 8350, 5689, 38681, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 3510, 8628, 33411, 366, 27524, 3471, 1, 796, 705, 73, 2577, 2876, 574, 1559, 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, 373, 262, 2835, 618, 339, 8350, 5689, 38681, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 3510, 8628, 33411, 366, 27524, 3471, 1, 796, 705, 73, 2577, 2876, 574, 1559, 6 ]
A bar chart about how many hosts does each nationality have? List the nationality and the count, and order in ascending by the names.
SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY Nationality
[ 32, 2318, 8262, 546, 703, 867, 11453, 857, 1123, 29835, 423, 30, 7343, 262, 29835, 290, 262, 954, 11, 290, 1502, 287, 41988, 416, 262, 3891, 13, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 44441, 11050, 2351, 414, 38678, 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, 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, 11, 290, 1502, 287, 41988, 416, 262, 3891, 13, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 44441, 11050, 2351, 414, 38678, 11050, 2351, 414 ]
Find the addresses and author IDs of the course authors that teach at least two courses.
SELECT T1.address_line_1, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING COUNT(*) >= 2
[ 16742, 262, 9405, 290, 1772, 32373, 286, 262, 1781, 7035, 326, 4545, 379, 1551, 734, 10902, 13, 46506, 309, 16, 13, 21975, 62, 1370, 62, 16, 11, 309, 17, 13, 9800, 62, 312, 16034, 20537, 62, 30515, 669, 62, 392, 62, 51, 315, 669, 7054, 309, 16, 32357, 1268, 2734, 8448, 7054, 309, 17, 6177, 309, 16, 13, 9800, 62, 312, 796, 309, 17, 13, 9800, 62, 312, 44441, 11050, 309, 17, 13, 9800, 62, 312, 367, 10116, 2751, 327, 28270, 7, 28104, 18189, 362 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16742, 262, 9405, 290, 1772, 32373, 286, 262, 1781, 7035, 326, 4545, 379, 1551, 734, 10902, 13, 46506, 309, 16, 13, 21975, 62, 1370, 62, 16, 11, 309, 17, 13, 9800, 62, 312, 16034, 20537, 62, 30515, 669, 62, 392, 62, 51, 315, 669, 7054, 309, 16, 32357, 1268, 2734, 8448, 7054, 309, 17, 6177, 309, 16, 13, 9800, 62, 312, 796, 309, 17, 13, 9800, 62, 312, 44441, 11050, 309, 17, 13, 9800, 62, 312, 367, 10116, 2751, 327, 28270, 7, 28104, 18189, 362 ]
How many throws did Needle have?
SELECT "Throws" FROM table_36224 WHERE "Surname" = 'needle'
[ 2437, 867, 12542, 750, 10664, 293, 423, 30, 46506, 366, 817, 8516, 1, 16034, 3084, 62, 2623, 24137, 33411, 366, 50, 700, 480, 1, 796, 705, 31227, 293, 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 ]
[ 2437, 867, 12542, 750, 10664, 293, 423, 30, 46506, 366, 817, 8516, 1, 16034, 3084, 62, 2623, 24137, 33411, 366, 50, 700, 480, 1, 796, 705, 31227, 293, 6 ]
What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw?
SELECT COUNT("Byes") FROM table_36427 WHERE "Draws" < '1' AND "Wins" < '8'
[ 2061, 318, 262, 2472, 1271, 286, 416, 274, 3917, 351, 7380, 621, 807, 7864, 290, 7380, 621, 352, 3197, 30, 46506, 327, 28270, 7203, 3886, 274, 4943, 16034, 3084, 62, 26780, 1983, 33411, 366, 25302, 82, 1, 1279, 705, 16, 6, 5357, 366, 54, 1040, 1, 1279, 705, 23, 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 ]
[ 2061, 318, 262, 2472, 1271, 286, 416, 274, 3917, 351, 7380, 621, 807, 7864, 290, 7380, 621, 352, 3197, 30, 46506, 327, 28270, 7203, 3886, 274, 4943, 16034, 3084, 62, 26780, 1983, 33411, 366, 25302, 82, 1, 1279, 705, 16, 6, 5357, 366, 54, 1040, 1, 1279, 705, 23, 6 ]
Migration notes in schema at Data.SE. http://meta.stackexchange.com/questions/280576/migration-notes-in-schema-at-data-se
SELECT PostId AS "post_link", CreationDate, PostHistoryTypeId AS "type", CASE WHEN PostHistoryTypeId = 35 THEN 'Away' WHEN PostHistoryTypeId = 36 THEN 'Here' END AS migrated, Comment FROM PostHistory WHERE PostId = '##postid:int?36025884##'
[ 44, 4254, 4710, 287, 32815, 379, 6060, 13, 5188, 13, 2638, 1378, 28961, 13, 301, 330, 365, 87, 3803, 13, 785, 14, 6138, 507, 14, 21033, 37452, 14, 76, 4254, 12, 17815, 12, 259, 12, 15952, 2611, 12, 265, 12, 7890, 12, 325, 46506, 2947, 7390, 7054, 366, 7353, 62, 8726, 1600, 21582, 10430, 11, 2947, 18122, 6030, 7390, 7054, 366, 4906, 1600, 42001, 42099, 2947, 18122, 6030, 7390, 796, 3439, 42243, 705, 32, 1014, 6, 42099, 2947, 18122, 6030, 7390, 796, 4570, 42243, 705, 4342, 6, 23578, 7054, 40227, 11, 18957, 16034, 2947, 18122, 33411, 2947, 7390, 796, 705, 2235, 7353, 312, 25, 600, 30, 15277, 1495, 40353, 2235, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 44, 4254, 4710, 287, 32815, 379, 6060, 13, 5188, 13, 2638, 1378, 28961, 13, 301, 330, 365, 87, 3803, 13, 785, 14, 6138, 507, 14, 21033, 37452, 14, 76, 4254, 12, 17815, 12, 259, 12, 15952, 2611, 12, 265, 12, 7890, 12, 325, 46506, 2947, 7390, 7054, 366, 7353, 62, 8726, 1600, 21582, 10430, 11, 2947, 18122, 6030, 7390, 7054, 366, 4906, 1600, 42001, 42099, 2947, 18122, 6030, 7390, 796, 3439, 42243, 705, 32, 1014, 6, 42099, 2947, 18122, 6030, 7390, 796, 4570, 42243, 705, 4342, 6, 23578, 7054, 40227, 11, 18957, 16034, 2947, 18122, 33411, 2947, 7390, 796, 705, 2235, 7353, 312, 25, 600, 30, 15277, 1495, 40353, 2235, 6 ]
how many patients who had been diagnosed with hypotension?
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'hypotension')
[ 4919, 867, 3871, 508, 550, 587, 14641, 351, 8813, 3004, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 5827, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 13669, 13, 26029, 20850, 31712, 312, 16034, 13669, 33411, 13669, 13, 47356, 5958, 3672, 796, 705, 36362, 313, 3004, 11537 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 3871, 508, 550, 587, 14641, 351, 8813, 3004, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 5827, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 13669, 13, 26029, 20850, 31712, 312, 16034, 13669, 33411, 13669, 13, 47356, 5958, 3672, 796, 705, 36362, 313, 3004, 11537 ]
What is the average points of players from club with name 'AIB'.
SELECT AVG(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = "AIB"
[ 2061, 318, 262, 2811, 2173, 286, 1938, 422, 3430, 351, 1438, 705, 32, 9865, 4458, 46506, 35224, 7, 51, 17, 13, 40710, 8, 16034, 3430, 7054, 309, 16, 32357, 1268, 2137, 7054, 309, 17, 6177, 309, 16, 13, 42350, 62, 2389, 796, 309, 17, 13, 42350, 62, 2389, 33411, 309, 16, 13, 3672, 796, 366, 32, 9865, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2173, 286, 1938, 422, 3430, 351, 1438, 705, 32, 9865, 4458, 46506, 35224, 7, 51, 17, 13, 40710, 8, 16034, 3430, 7054, 309, 16, 32357, 1268, 2137, 7054, 309, 17, 6177, 309, 16, 13, 42350, 62, 2389, 796, 309, 17, 13, 42350, 62, 2389, 33411, 309, 16, 13, 3672, 796, 366, 32, 9865, 1 ]
is the AA flight 813 from BOSTON to OAKLAND a flight that goes straight through from BOSTON to OAKLAND without stopping at another city
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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND flight.flight_number = 813 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.stops = 0) AND flight.airline_code = 'AA'
[ 271, 262, 15923, 5474, 807, 1485, 422, 347, 10892, 1340, 284, 440, 10206, 28182, 257, 5474, 326, 2925, 3892, 832, 422, 347, 10892, 1340, 284, 440, 10206, 28182, 1231, 12225, 379, 1194, 1748, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 16, 11, 1748, 7054, 27993, 62, 15, 11, 1748, 7054, 27993, 62, 16, 11, 5474, 33411, 14808, 7, 34, 9050, 62, 16, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 19205, 62, 8189, 5357, 27993, 62, 16, 13, 19205, 62, 3672, 796, 705, 46, 10206, 28182, 6, 5357, 5474, 13, 22560, 62, 17618, 796, 807, 1485, 5357, 5474, 13, 1462, 62, 958, 634, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 958, 634, 62, 8189, 8, 5357, 27993, 62, 15, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 19205, 62, 8189, 5357, 27993, 62, 15, 13, 19205, 62, 3672, 796, 705, 8202, 41924, 6, 5357, 5474, 13, 6738, 62, 958, 634, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 958, 634, 62, 8189, 8, 5357, 5474, 13, 301, 2840, 796, 657, 8, 5357, 5474, 13, 958, 1370, 62, 8189, 796, 705, 3838, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 15923, 5474, 807, 1485, 422, 347, 10892, 1340, 284, 440, 10206, 28182, 257, 5474, 326, 2925, 3892, 832, 422, 347, 10892, 1340, 284, 440, 10206, 28182, 1231, 12225, 379, 1194, 1748, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 16, 11, 1748, 7054, 27993, 62, 15, 11, 1748, 7054, 27993, 62, 16, 11, 5474, 33411, 14808, 7, 34, 9050, 62, 16, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 19205, 62, 8189, 5357, 27993, 62, 16, 13, 19205, 62, 3672, 796, 705, 46, 10206, 28182, 6, 5357, 5474, 13, 22560, 62, 17618, 796, 807, 1485, 5357, 5474, 13, 1462, 62, 958, 634, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 958, 634, 62, 8189, 8, 5357, 27993, 62, 15, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 19205, 62, 8189, 5357, 27993, 62, 15, 13, 19205, 62, 3672, 796, 705, 8202, 41924, 6, 5357, 5474, 13, 6738, 62, 958, 634, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 958, 634, 62, 8189, 8, 5357, 5474, 13, 301, 2840, 796, 657, 8, 5357, 5474, 13, 958, 1370, 62, 8189, 796, 705, 3838, 6 ]
Name the team for susan bates
SELECT "Team" FROM table_26893 WHERE "Listed Owner(s)" = 'Susan Bates'
[ 5376, 262, 1074, 329, 2341, 272, 275, 689, 46506, 366, 15592, 1, 16034, 3084, 62, 2075, 49682, 33411, 366, 43, 6347, 23853, 7, 82, 16725, 796, 705, 45842, 35591, 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 ]
[ 5376, 262, 1074, 329, 2341, 272, 275, 689, 46506, 366, 15592, 1, 16034, 3084, 62, 2075, 49682, 33411, 366, 43, 6347, 23853, 7, 82, 16725, 796, 705, 45842, 35591, 6 ]
What is the 2005 figure when 2002 is A and 2010 is 3R?
SELECT 2005 FROM table_name_29 WHERE 2002 = "a" AND 2010 = "3r"
[ 2061, 318, 262, 5075, 3785, 618, 6244, 318, 317, 290, 3050, 318, 513, 49, 30, 46506, 5075, 16034, 3084, 62, 3672, 62, 1959, 33411, 6244, 796, 366, 64, 1, 5357, 3050, 796, 366, 18, 81, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5075, 3785, 618, 6244, 318, 317, 290, 3050, 318, 513, 49, 30, 46506, 5075, 16034, 3084, 62, 3672, 62, 1959, 33411, 6244, 796, 366, 64, 1, 5357, 3050, 796, 366, 18, 81, 1 ]
Manager of lyman lamb / marty berghammer is in what league?
SELECT league FROM table_name_59 WHERE manager = "lyman lamb / marty berghammer"
[ 13511, 286, 22404, 805, 19343, 1220, 11277, 88, 18157, 456, 321, 647, 318, 287, 644, 4652, 30, 46506, 4652, 16034, 3084, 62, 3672, 62, 3270, 33411, 4706, 796, 366, 306, 805, 19343, 1220, 11277, 88, 18157, 456, 321, 647, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13511, 286, 22404, 805, 19343, 1220, 11277, 88, 18157, 456, 321, 647, 318, 287, 644, 4652, 30, 46506, 4652, 16034, 3084, 62, 3672, 62, 3270, 33411, 4706, 796, 366, 306, 805, 19343, 1220, 11277, 88, 18157, 456, 321, 647, 1 ]
provide the number of government health insurance patients who had right and left heart catheterization.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.short_title = "Rt/left heart card cath"
[ 15234, 485, 262, 1271, 286, 1230, 1535, 5096, 3871, 508, 550, 826, 290, 1364, 2612, 3797, 43332, 1634, 13, 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, 796, 9021, 13, 18108, 76, 62, 312, 33411, 16728, 13, 1040, 3874, 796, 366, 28848, 1, 5357, 9021, 13, 19509, 62, 7839, 796, 366, 49, 83, 14, 9464, 2612, 2657, 32171, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1230, 1535, 5096, 3871, 508, 550, 826, 290, 1364, 2612, 3797, 43332, 1634, 13, 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, 796, 9021, 13, 18108, 76, 62, 312, 33411, 16728, 13, 1040, 3874, 796, 366, 28848, 1, 5357, 9021, 13, 19509, 62, 7839, 796, 366, 49, 83, 14, 9464, 2612, 2657, 32171, 1 ]
Vote Breakdown on a user's answers/questions.. VoteType: 1 = Accept; 2 = Upvote; 3 = Downvote PostType: 1 = Question; 2 = Answer
SELECT COUNT(*) FROM Votes AS v JOIN Posts AS p ON p.Id = v.PostId AND VoteTypeId = @VoteType AND PostTypeId = @PostType AND OwnerUserId = @UserId
[ 37394, 12243, 2902, 319, 257, 2836, 338, 7429, 14, 6138, 507, 492, 19175, 6030, 25, 352, 796, 21699, 26, 362, 796, 3205, 27257, 26, 513, 796, 5588, 27257, 198, 6307, 6030, 25, 352, 796, 18233, 26, 362, 796, 23998, 46506, 327, 28270, 7, 28104, 16034, 39584, 7054, 410, 32357, 1268, 12043, 7054, 279, 6177, 279, 13, 7390, 796, 410, 13, 6307, 7390, 5357, 19175, 6030, 7390, 796, 2488, 37394, 6030, 5357, 2947, 6030, 7390, 796, 2488, 6307, 6030, 5357, 23853, 12982, 7390, 796, 2488, 12982, 7390 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 37394, 12243, 2902, 319, 257, 2836, 338, 7429, 14, 6138, 507, 492, 19175, 6030, 25, 352, 796, 21699, 26, 362, 796, 3205, 27257, 26, 513, 796, 5588, 27257, 198, 6307, 6030, 25, 352, 796, 18233, 26, 362, 796, 23998, 46506, 327, 28270, 7, 28104, 16034, 39584, 7054, 410, 32357, 1268, 12043, 7054, 279, 6177, 279, 13, 7390, 796, 410, 13, 6307, 7390, 5357, 19175, 6030, 7390, 796, 2488, 37394, 6030, 5357, 2947, 6030, 7390, 796, 2488, 6307, 6030, 5357, 23853, 12982, 7390, 796, 2488, 12982, 7390 ]
What type of school had an enrollment in 2009 of 224?
SELECT type FROM table_2076595_1 WHERE enrollment__2009_ = 224
[ 2061, 2099, 286, 1524, 550, 281, 20753, 287, 3717, 286, 26063, 30, 46506, 2099, 16034, 3084, 62, 22745, 2996, 3865, 62, 16, 33411, 20753, 834, 10531, 62, 796, 26063 ]
[ 1, 1, 1, 1, 1, 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, 2099, 286, 1524, 550, 281, 20753, 287, 3717, 286, 26063, 30, 46506, 2099, 16034, 3084, 62, 22745, 2996, 3865, 62, 16, 33411, 20753, 834, 10531, 62, 796, 26063 ]
Who is the opponent of game 54, which was in Los Angeles and was before day 18?
SELECT "Opponent" FROM table_35560 WHERE "Location/attendance" = 'los angeles' AND "Date" < '18' AND "Game" = '54'
[ 8241, 318, 262, 6125, 286, 983, 7175, 11, 543, 373, 287, 5401, 5652, 290, 373, 878, 1110, 1248, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 28567, 1899, 33411, 366, 14749, 14, 1078, 437, 590, 1, 796, 705, 33280, 18304, 274, 6, 5357, 366, 10430, 1, 1279, 705, 1507, 6, 5357, 366, 8777, 1, 796, 705, 4051, 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 ]
[ 8241, 318, 262, 6125, 286, 983, 7175, 11, 543, 373, 287, 5401, 5652, 290, 373, 878, 1110, 1248, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 28567, 1899, 33411, 366, 14749, 14, 1078, 437, 590, 1, 796, 705, 33280, 18304, 274, 6, 5357, 366, 10430, 1, 1279, 705, 1507, 6, 5357, 366, 8777, 1, 796, 705, 4051, 6 ]
what are the names and ids of customers whose address contains TN?, and I want to sort from high to low by the bars.
SELECT customer_name, customer_id FROM Customers WHERE customer_address LIKE "%TN%" ORDER BY customer_name DESC
[ 10919, 389, 262, 3891, 290, 220, 2340, 286, 4297, 3025, 2209, 4909, 29025, 21747, 290, 314, 765, 284, 3297, 422, 1029, 284, 1877, 416, 262, 9210, 13, 46506, 6491, 62, 3672, 11, 6491, 62, 312, 16034, 36707, 33411, 6491, 62, 21975, 34178, 36521, 46559, 39658, 38678, 11050, 6491, 62, 3672, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 389, 262, 3891, 290, 220, 2340, 286, 4297, 3025, 2209, 4909, 29025, 21747, 290, 314, 765, 284, 3297, 422, 1029, 284, 1877, 416, 262, 9210, 13, 46506, 6491, 62, 3672, 11, 6491, 62, 312, 16034, 36707, 33411, 6491, 62, 21975, 34178, 36521, 46559, 39658, 38678, 11050, 6491, 62, 3672, 22196, 34 ]
In 1961, what was the Chassis when the points were lower than 6?
SELECT "Chassis" FROM table_71423 WHERE "Points" < '6' AND "Year" = '1961'
[ 818, 20510, 11, 644, 373, 262, 609, 20297, 618, 262, 2173, 547, 2793, 621, 718, 30, 46506, 366, 1925, 20297, 1, 16034, 3084, 62, 45722, 1954, 33411, 366, 40710, 1, 1279, 705, 21, 6, 5357, 366, 17688, 1, 796, 705, 1129, 5333, 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 ]
[ 818, 20510, 11, 644, 373, 262, 609, 20297, 618, 262, 2173, 547, 2793, 621, 718, 30, 46506, 366, 1925, 20297, 1, 16034, 3084, 62, 45722, 1954, 33411, 366, 40710, 1, 1279, 705, 21, 6, 5357, 366, 17688, 1, 796, 705, 1129, 5333, 6 ]
when was the first time this year that patient 49141 was diagnosed with chronic cholecystitis?
SELECT diagnoses_icd.charttime FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'chronic cholecystitis') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 49141) AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY diagnoses_icd.charttime LIMIT 1
[ 12518, 373, 262, 717, 640, 428, 614, 326, 5827, 5125, 23756, 373, 14641, 351, 10726, 1727, 293, 948, 301, 11815, 30, 46506, 40567, 62, 291, 67, 13, 40926, 2435, 16034, 40567, 62, 291, 67, 33411, 40567, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796, 357, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 291, 67, 24, 62, 8189, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 796, 705, 354, 4565, 1727, 293, 948, 301, 11815, 11537, 5357, 40567, 62, 291, 67, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 5125, 23756, 8, 5357, 360, 1404, 2767, 12789, 7, 47356, 4629, 62, 291, 67, 13, 40926, 2435, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 614, 3256, 705, 12, 15, 614, 11537, 38678, 11050, 40567, 62, 291, 67, 13, 40926, 2435, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12518, 373, 262, 717, 640, 428, 614, 326, 5827, 5125, 23756, 373, 14641, 351, 10726, 1727, 293, 948, 301, 11815, 30, 46506, 40567, 62, 291, 67, 13, 40926, 2435, 16034, 40567, 62, 291, 67, 33411, 40567, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796, 357, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 291, 67, 24, 62, 8189, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 796, 705, 354, 4565, 1727, 293, 948, 301, 11815, 11537, 5357, 40567, 62, 291, 67, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 5125, 23756, 8, 5357, 360, 1404, 2767, 12789, 7, 47356, 4629, 62, 291, 67, 13, 40926, 2435, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 614, 3256, 705, 12, 15, 614, 11537, 38678, 11050, 40567, 62, 291, 67, 13, 40926, 2435, 27564, 2043, 352 ]
what are the top three most commonly prescribed drugs in 2101?
SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE STRFTIME('%y', prescriptions.startdate) = '2101' GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 3
[ 10919, 389, 262, 1353, 1115, 749, 8811, 14798, 5010, 287, 2310, 486, 30, 46506, 256, 16, 13, 30349, 16034, 357, 46506, 34092, 13, 30349, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 7, 28104, 22196, 34, 8, 7054, 269, 16, 16034, 34092, 33411, 19269, 9792, 12789, 10786, 4, 88, 3256, 34092, 13, 9688, 4475, 8, 796, 705, 2481, 486, 6, 44441, 11050, 34092, 13, 30349, 8, 7054, 256, 16, 33411, 256, 16, 13, 66, 16, 19841, 513 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8811, 14798, 5010, 287, 2310, 486, 30, 46506, 256, 16, 13, 30349, 16034, 357, 46506, 34092, 13, 30349, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 7, 28104, 22196, 34, 8, 7054, 269, 16, 16034, 34092, 33411, 19269, 9792, 12789, 10786, 4, 88, 3256, 34092, 13, 9688, 4475, 8, 796, 705, 2481, 486, 6, 44441, 11050, 34092, 13, 30349, 8, 7054, 256, 16, 33411, 256, 16, 13, 66, 16, 19841, 513 ]
how many patients whose insurance is private and diagnoses long title is shock, unspecified?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.long_title = "Shock, unspecified"
[ 4919, 867, 3871, 3025, 5096, 318, 2839, 290, 40567, 890, 3670, 318, 6380, 11, 29547, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 33411, 16728, 13, 1040, 3874, 796, 366, 29067, 1, 5357, 40567, 13, 6511, 62, 7839, 796, 366, 31646, 11, 29547, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3025, 5096, 318, 2839, 290, 40567, 890, 3670, 318, 6380, 11, 29547, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 33411, 16728, 13, 1040, 3874, 796, 366, 29067, 1, 5357, 40567, 13, 6511, 62, 7839, 796, 366, 31646, 11, 29547, 1 ]
what's the grid with time +37.949?
SELECT COUNT("Grid") FROM table_5071 WHERE "Time" = '+37.949'
[ 10919, 338, 262, 10706, 351, 640, 1343, 2718, 13, 48581, 30, 46506, 327, 28270, 7203, 41339, 4943, 16034, 3084, 62, 1120, 4869, 33411, 366, 7575, 1, 796, 705, 10, 2718, 13, 48581, 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 ]
[ 10919, 338, 262, 10706, 351, 640, 1343, 2718, 13, 48581, 30, 46506, 327, 28270, 7203, 41339, 4943, 16034, 3084, 62, 1120, 4869, 33411, 366, 7575, 1, 796, 705, 10, 2718, 13, 48581, 6 ]
what is the total number of 2nd leg where aggregate is 7-2
SELECT COUNT(2 AS nd_leg) FROM table_1061075_1 WHERE aggregate = "7-2"
[ 10919, 318, 262, 2472, 1271, 286, 362, 358, 1232, 810, 19406, 318, 767, 12, 17, 46506, 327, 28270, 7, 17, 7054, 299, 67, 62, 1455, 8, 16034, 3084, 62, 15801, 940, 2425, 62, 16, 33411, 19406, 796, 366, 22, 12, 17, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 2472, 1271, 286, 362, 358, 1232, 810, 19406, 318, 767, 12, 17, 46506, 327, 28270, 7, 17, 7054, 299, 67, 62, 1455, 8, 16034, 3084, 62, 15801, 940, 2425, 62, 16, 33411, 19406, 796, 366, 22, 12, 17, 1 ]
What is the Name when the team is the st. paul a.c., with a Birthdate of 3 august 1890?
SELECT "Name" FROM table_7408 WHERE "Team" = 'st. paul a.c.' AND "Birthdate" = '3 august 1890'
[ 2061, 318, 262, 6530, 618, 262, 1074, 318, 262, 336, 13, 279, 2518, 257, 13, 66, 1539, 351, 257, 17647, 4475, 286, 513, 16339, 436, 31982, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 22, 26200, 33411, 366, 15592, 1, 796, 705, 301, 13, 279, 2518, 257, 13, 66, 2637, 5357, 366, 38480, 4475, 1, 796, 705, 18, 16339, 436, 31982, 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 ]
[ 2061, 318, 262, 6530, 618, 262, 1074, 318, 262, 336, 13, 279, 2518, 257, 13, 66, 1539, 351, 257, 17647, 4475, 286, 513, 16339, 436, 31982, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 22, 26200, 33411, 366, 15592, 1, 796, 705, 301, 13, 279, 2518, 257, 13, 66, 2637, 5357, 366, 38480, 4475, 1, 796, 705, 18, 16339, 436, 31982, 6 ]