instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
For all employees who have the letters D or S in their first name, find hire_date and the average of manager_id bin hire_date by time, and visualize them by a bar chart, and could you list by the y axis in descending please?
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(MANAGER_ID) DESC
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 1064, 11078, 62, 4475, 290, 262, 2811, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 640, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 290, 714, 345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1064, 11078, 62, 4475, 290, 262, 2811, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 640, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 290, 714, 345...
Which Channel TV is located in Baltimore?
SELECT channel_tv___dt__ FROM table_name_88 WHERE city_of_license__market = "baltimore"
[ 13828, 11102, 3195, 318, 5140, 287, 10346, 30, 46506, 6518, 62, 14981, 17569, 28664, 834, 16034, 3084, 62, 3672, 62, 3459, 33411, 1748, 62, 1659, 62, 43085, 834, 10728, 796, 366, 65, 2501, 9401, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11102, 3195, 318, 5140, 287, 10346, 30, 46506, 6518, 62, 14981, 17569, 28664, 834, 16034, 3084, 62, 3672, 62, 3459, 33411, 1748, 62, 1659, 62, 43085, 834, 10728, 796, 366, 65, 2501, 9401, 1 ]
Which Outcome has an Opponent of wendy turnbull, and a Surface of grass?
SELECT "Outcome" FROM table_36785 WHERE "Opponent" = 'wendy turnbull' AND "Surface" = 'grass'
[ 13828, 3806, 2958, 468, 281, 9385, 3471, 286, 266, 437, 88, 1210, 16308, 11, 290, 257, 20321, 286, 8701, 30, 46506, 366, 7975, 2958, 1, 16034, 3084, 62, 2623, 41172, 33411, 366, 27524, 3471, 1, 796, 705, 86, 437, 88, 1210, 16308, 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 ]
[ 13828, 3806, 2958, 468, 281, 9385, 3471, 286, 266, 437, 88, 1210, 16308, 11, 290, 257, 20321, 286, 8701, 30, 46506, 366, 7975, 2958, 1, 16034, 3084, 62, 2623, 41172, 33411, 366, 27524, 3471, 1, 796, 705, 86, 437, 88, 1210, 16308, 6,...
what is the rank of adam gilchrist
SELECT COUNT("Rank") FROM table_23382 WHERE "Player" = 'Adam Gilchrist'
[ 10919, 318, 262, 4279, 286, 23197, 308, 346, 43533, 46506, 327, 28270, 7203, 27520, 4943, 16034, 3084, 62, 1954, 36243, 33411, 366, 14140, 1, 796, 705, 23159, 10689, 43533, 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 ]
[ 10919, 318, 262, 4279, 286, 23197, 308, 346, 43533, 46506, 327, 28270, 7203, 27520, 4943, 16034, 3084, 62, 1954, 36243, 33411, 366, 14140, 1, 796, 705, 23159, 10689, 43533, 6 ]
What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?
SELECT T2.emp_fname, T4.prof_office, T3.crs_description, T5.dept_name FROM class AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code
[ 2061, 389, 262, 717, 3891, 11, 2607, 7064, 11, 290, 13346, 286, 477, 33667, 11, 290, 635, 644, 389, 262, 16969, 286, 262, 10902, 484, 4545, 30, 46506, 309, 17, 13, 45787, 62, 69, 3672, 11, 309, 19, 13, 5577, 62, 31810, 11, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 717, 3891, 11, 2607, 7064, 11, 290, 13346, 286, 477, 33667, 11, 290, 635, 644, 389, 262, 16969, 286, 262, 10902, 484, 4545, 30, 46506, 309, 17, 13, 45787, 62, 69, 3672, 11, 309, 19, 13, 5577, 62, 31810, 11, 309, ...
When was the stokers' training ship launched?
SELECT launched FROM table_24496403_1 WHERE disposition = "Stokers' training ship"
[ 2215, 373, 262, 336, 18698, 6, 3047, 4074, 5611, 30, 46506, 5611, 16034, 3084, 62, 1731, 2920, 31102, 18, 62, 16, 33411, 24665, 796, 366, 1273, 18698, 6, 3047, 4074, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 262, 336, 18698, 6, 3047, 4074, 5611, 30, 46506, 5611, 16034, 3084, 62, 1731, 2920, 31102, 18, 62, 16, 33411, 24665, 796, 366, 1273, 18698, 6, 3047, 4074, 1 ]
How many Dates have a Score in the final of 6 4, 6 2?
SELECT SUM(date) FROM table_name_92 WHERE score_in_the_final = "6–4, 6–2"
[ 2437, 867, 44712, 423, 257, 15178, 287, 262, 2457, 286, 718, 604, 11, 718, 362, 30, 46506, 35683, 7, 4475, 8, 16034, 3084, 62, 3672, 62, 5892, 33411, 4776, 62, 259, 62, 1169, 62, 20311, 796, 366, 21, 1906, 19, 11, 718, 1906, 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 ]
[ 2437, 867, 44712, 423, 257, 15178, 287, 262, 2457, 286, 718, 604, 11, 718, 362, 30, 46506, 35683, 7, 4475, 8, 16034, 3084, 62, 3672, 62, 5892, 33411, 4776, 62, 259, 62, 1169, 62, 20311, 796, 366, 21, 1906, 19, 11, 718, 1906, 17, ...
Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?
SELECT "Region name" FROM table_30737 WHERE "Regional Page #" = '1-3, 5-7, 9-11, 13-15'
[ 13828, 3814, 468, 257, 7915, 2443, 1303, 286, 352, 12, 18, 11, 642, 12, 22, 11, 860, 12, 1157, 11, 1511, 12, 1314, 30, 46506, 366, 47371, 1438, 1, 16034, 3084, 62, 22996, 2718, 33411, 366, 8081, 1538, 7873, 1303, 1, 796, 705, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 3814, 468, 257, 7915, 2443, 1303, 286, 352, 12, 18, 11, 642, 12, 22, 11, 860, 12, 1157, 11, 1511, 12, 1314, 30, 46506, 366, 47371, 1438, 1, 16034, 3084, 62, 22996, 2718, 33411, 366, 8081, 1538, 7873, 1303, 1, 796, 705, 16, ...
List of all question links.
SELECT 'http://chemistry.stackexchange.com/q/' + CAST(q.Id AS TEXT(10)) FROM Posts AS q WHERE q.PostTypeId = 1 ORDER BY q.Id
[ 8053, 286, 477, 1808, 6117, 13, 46506, 705, 4023, 1378, 15245, 4592, 13, 301, 330, 365, 87, 3803, 13, 785, 14, 80, 14, 6, 1343, 327, 11262, 7, 80, 13, 7390, 7054, 40383, 7, 940, 4008, 16034, 12043, 7054, 10662, 33411, 10662, 13, 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 ]
[ 8053, 286, 477, 1808, 6117, 13, 46506, 705, 4023, 1378, 15245, 4592, 13, 301, 330, 365, 87, 3803, 13, 785, 14, 80, 14, 6, 1343, 327, 11262, 7, 80, 13, 7390, 7054, 40383, 7, 940, 4008, 16034, 12043, 7054, 10662, 33411, 10662, 13, 6...
What is the Result with a Venue that is n?
SELECT result FROM table_name_45 WHERE venue = "n"
[ 2061, 318, 262, 25414, 351, 257, 9932, 518, 326, 318, 299, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 2231, 33411, 14359, 796, 366, 77, 1 ]
[ 1, 1, 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, 25414, 351, 257, 9932, 518, 326, 318, 299, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 2231, 33411, 14359, 796, 366, 77, 1 ]
Which song is from Volume:Issue 63:5?
SELECT "Song" FROM table_34332 WHERE "Volume:Issue" = '63:5'
[ 13828, 3496, 318, 422, 14701, 25, 45147, 8093, 25, 20, 30, 46506, 366, 44241, 1, 16034, 3084, 62, 2682, 32148, 33411, 366, 31715, 25, 45147, 1, 796, 705, 5066, 25, 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 ]
[ 13828, 3496, 318, 422, 14701, 25, 45147, 8093, 25, 20, 30, 46506, 366, 44241, 1, 16034, 3084, 62, 2682, 32148, 33411, 366, 31715, 25, 45147, 1, 796, 705, 5066, 25, 20, 6 ]
on this month/30, when was the last time that patient 010-16572 had the maximum systemicdiastolic?
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-16572')) AND NOT vitalperiodic.systemicdiastoli...
[ 261, 428, 1227, 14, 1270, 11, 618, 373, 262, 938, 640, 326, 5827, 5534, 15, 12, 1433, 48724, 550, 262, 5415, 21971, 10989, 459, 4160, 30, 46506, 9204, 41007, 291, 13, 672, 3168, 341, 2435, 16034, 9204, 41007, 291, 33411, 9204, 41007, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 261, 428, 1227, 14, 1270, 11, 618, 373, 262, 938, 640, 326, 5827, 5534, 15, 12, 1433, 48724, 550, 262, 5415, 21971, 10989, 459, 4160, 30, 46506, 9204, 41007, 291, 13, 672, 3168, 341, 2435, 16034, 9204, 41007, 291, 33411, 9204, 41007, ...
Who is the opponent on June 6?
SELECT "Opponent" FROM table_53239 WHERE "Date" = 'june 6'
[ 8241, 318, 262, 6125, 319, 2795, 718, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 4310, 23516, 33411, 366, 10430, 1, 796, 705, 73, 1726, 718, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 318, 262, 6125, 319, 2795, 718, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 4310, 23516, 33411, 366, 10430, 1, 796, 705, 73, 1726, 718, 6 ]
How many people were in the crowd for a game than had carlton as the visiting team?
SELECT "Crowd" FROM table_10128 WHERE "Away team" = 'carlton'
[ 2437, 867, 661, 547, 287, 262, 4315, 329, 257, 983, 621, 550, 1097, 75, 1122, 355, 262, 10013, 1074, 30, 46506, 366, 34, 3986, 1, 16034, 3084, 62, 8784, 2078, 33411, 366, 32, 1014, 1074, 1, 796, 705, 66, 7063, 1122, 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 ]
[ 2437, 867, 661, 547, 287, 262, 4315, 329, 257, 983, 621, 550, 1097, 75, 1122, 355, 262, 10013, 1074, 30, 46506, 366, 34, 3986, 1, 16034, 3084, 62, 8784, 2078, 33411, 366, 32, 1014, 1074, 1, 796, 705, 66, 7063, 1122, 6 ]
What is the fewest number of points associated with more than 8 games?
SELECT MIN("Points") FROM table_37097 WHERE "Games" > '8'
[ 2061, 318, 262, 1178, 395, 1271, 286, 2173, 3917, 351, 517, 621, 807, 1830, 30, 46506, 20625, 7203, 40710, 4943, 16034, 3084, 62, 20167, 5607, 33411, 366, 24474, 1, 1875, 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 ]
[ 2061, 318, 262, 1178, 395, 1271, 286, 2173, 3917, 351, 517, 621, 807, 1830, 30, 46506, 20625, 7203, 40710, 4943, 16034, 3084, 62, 20167, 5607, 33411, 366, 24474, 1, 1875, 705, 23, 6 ]
Which locations did Gordon Johncock hold the pole position?
SELECT location FROM table_22673872_1 WHERE pole_position = "Gordon Johncock"
[ 13828, 7064, 750, 11646, 1757, 21517, 1745, 262, 16825, 2292, 30, 46506, 4067, 16034, 3084, 62, 1828, 3134, 2548, 4761, 62, 16, 33411, 16825, 62, 9150, 796, 366, 47073, 1757, 21517, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 7064, 750, 11646, 1757, 21517, 1745, 262, 16825, 2292, 30, 46506, 4067, 16034, 3084, 62, 1828, 3134, 2548, 4761, 62, 16, 33411, 16825, 62, 9150, 796, 366, 47073, 1757, 21517, 1 ]
What is Tournament, when Margin is Victory of 6 Strokes?
SELECT tournament FROM table_name_30 WHERE margin_of_victory = "6 strokes"
[ 2061, 318, 9595, 11, 618, 11899, 259, 318, 21203, 286, 718, 30183, 5209, 30, 46506, 7756, 16034, 3084, 62, 3672, 62, 1270, 33411, 10330, 62, 1659, 62, 32433, 652, 796, 366, 21, 29483, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9595, 11, 618, 11899, 259, 318, 21203, 286, 718, 30183, 5209, 30, 46506, 7756, 16034, 3084, 62, 3672, 62, 1270, 33411, 10330, 62, 1659, 62, 32433, 652, 796, 366, 21, 29483, 1 ]
Name the fa cup apps for arthur morton
SELECT "FA Cup Apps" FROM table_23196 WHERE "Name" = 'Arthur Morton'
[ 5376, 262, 24685, 6508, 6725, 329, 610, 11098, 5596, 261, 46506, 366, 7708, 5454, 27710, 1, 16034, 3084, 62, 1954, 25272, 33411, 366, 5376, 1, 796, 705, 29874, 35766, 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, 24685, 6508, 6725, 329, 610, 11098, 5596, 261, 46506, 366, 7708, 5454, 27710, 1, 16034, 3084, 62, 1954, 25272, 33411, 366, 5376, 1, 796, 705, 29874, 35766, 6 ]
Will OMS 995 classes take place on Friday ?
SELECT DISTINCT course_offering.friday FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'OMS' AND course.number = 995 AND semester.semester = 'WN' AND semester.year = 2016
[ 8743, 440, 5653, 860, 3865, 6097, 1011, 1295, 319, 3217, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 8310, 2567, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, 2364, 1586, 6177, 1781, 13, 17319, 62, 312, 796, 1781, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 8743, 440, 5653, 860, 3865, 6097, 1011, 1295, 319, 3217, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 8310, 2567, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, 2364, 1586, 6177, 1781, 13, 17319, 62, 312, 796, 1781, ...
What artist was released in 2005?
SELECT artist FROM table_name_71 WHERE year = 2005
[ 2061, 6802, 373, 2716, 287, 5075, 30, 46506, 6802, 16034, 3084, 62, 3672, 62, 4869, 33411, 614, 796, 5075 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 6802, 373, 2716, 287, 5075, 30, 46506, 6802, 16034, 3084, 62, 3672, 62, 4869, 33411, 614, 796, 5075 ]
For each payment method, return how many customers use it.
SELECT payment_method_code, COUNT(*) FROM customers GROUP BY payment_method_code
[ 1890, 1123, 6074, 2446, 11, 1441, 703, 867, 4297, 779, 340, 13, 46506, 6074, 62, 24396, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 4297, 44441, 11050, 6074, 62, 24396, 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 ]
[ 1890, 1123, 6074, 2446, 11, 1441, 703, 867, 4297, 779, 340, 13, 46506, 6074, 62, 24396, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 4297, 44441, 11050, 6074, 62, 24396, 62, 8189 ]
how many female patients had pneumonia?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "PNEUMONIA"
[ 4919, 867, 4048, 3871, 550, 35647, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 8388, 796, 366, 37, 1, 5357, 16728, 13, 47356, 5958, 796, 366, 47, 12161, 5883, 1340, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 4048, 3871, 550, 35647, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 8388, 796, 366, 37, 1, 5357, 16728, 13, 47356, 5958, 796, 366, 47, 12161, 5883, 1340, 3...
If the public is 4, what is the total?
SELECT "Total" FROM table_3545 WHERE "Public" = '4'
[ 1532, 262, 1171, 318, 604, 11, 644, 318, 262, 2472, 30, 46506, 366, 14957, 1, 16034, 3084, 62, 2327, 2231, 33411, 366, 15202, 1, 796, 705, 19, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1532, 262, 1171, 318, 604, 11, 644, 318, 262, 2472, 30, 46506, 366, 14957, 1, 16034, 3084, 62, 2327, 2231, 33411, 366, 15202, 1, 796, 705, 19, 6 ]
What is Mike Souchak's to par score?
SELECT "To Par" FROM table_50674 WHERE "Player" = 'mike souchak'
[ 2061, 318, 4995, 311, 7673, 461, 338, 284, 1582, 4776, 30, 46506, 366, 2514, 2547, 1, 16034, 3084, 62, 1120, 45385, 33411, 366, 14140, 1, 796, 705, 76, 522, 264, 7673, 461, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 4995, 311, 7673, 461, 338, 284, 1582, 4776, 30, 46506, 366, 2514, 2547, 1, 16034, 3084, 62, 1120, 45385, 33411, 366, 14140, 1, 796, 705, 76, 522, 264, 7673, 461, 6 ]
What are the results of those elections for which Marcy Kaptur is the incumbent?
SELECT "Results" FROM table_1798 WHERE "Incumbent" = 'Marcy Kaptur'
[ 2061, 389, 262, 2482, 286, 883, 7024, 329, 543, 1526, 948, 509, 2373, 333, 318, 262, 23526, 30, 46506, 366, 25468, 1, 16034, 3084, 62, 1558, 4089, 33411, 366, 25517, 2178, 298, 1, 796, 705, 7676, 948, 509, 2373, 333, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 2482, 286, 883, 7024, 329, 543, 1526, 948, 509, 2373, 333, 318, 262, 23526, 30, 46506, 366, 25468, 1, 16034, 3084, 62, 1558, 4089, 33411, 366, 25517, 2178, 298, 1, 796, 705, 7676, 948, 509, 2373, 333, 6 ]
what was the last hospital discharge time of patient 029-27704?
SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '029-27704' ORDER BY patient.hospitaldischargetime DESC LIMIT 1
[ 10919, 373, 262, 938, 4436, 17655, 640, 286, 5827, 657, 1959, 12, 1983, 32869, 30, 46506, 5827, 13, 49257, 6381, 354, 7641, 524, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 48891, 12, 1983, 32869, 6, 38678, 11050, 582...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 938, 4436, 17655, 640, 286, 5827, 657, 1959, 12, 1983, 32869, 30, 46506, 5827, 13, 49257, 6381, 354, 7641, 524, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 48891, 12, 1983, 32869, 6, 38678, 11050, 582...
What is the result from 2003 from the US Open?
SELECT "2003" FROM table_41429 WHERE "Tournament" = 'us open'
[ 2061, 318, 262, 1255, 422, 5816, 422, 262, 1294, 4946, 30, 46506, 366, 16088, 1, 16034, 3084, 62, 37309, 1959, 33411, 366, 51, 5138, 1, 796, 705, 385, 1280, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1255, 422, 5816, 422, 262, 1294, 4946, 30, 46506, 366, 16088, 1, 16034, 3084, 62, 37309, 1959, 33411, 366, 51, 5138, 1, 796, 705, 385, 1280, 6 ]
When are the birthdays of customer who are classified as 'Good Customer' status, and count them by a line chart, and show from low to high by the X-axis please.
SELECT date_of_birth, COUNT(date_of_birth) FROM Customers WHERE customer_status_code = 'Good Customer' ORDER BY date_of_birth
[ 2215, 389, 262, 4082, 12545, 286, 6491, 508, 389, 10090, 355, 705, 10248, 22092, 6, 3722, 11, 290, 954, 606, 416, 257, 1627, 8262, 11, 290, 905, 422, 1877, 284, 1029, 416, 262, 1395, 12, 22704, 3387, 13, 46506, 3128, 62, 1659, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2215, 389, 262, 4082, 12545, 286, 6491, 508, 389, 10090, 355, 705, 10248, 22092, 6, 3722, 11, 290, 954, 606, 416, 257, 1627, 8262, 11, 290, 905, 422, 1877, 284, 1029, 416, 262, 1395, 12, 22704, 3387, 13, 46506, 3128, 62, 1659, 62, ...
what is the maximum number of hull nunbers where ship name is kri yos sudarso?
SELECT MAX(hull_numbers) FROM table_12232526_2 WHERE ship_name = "KRI Yos Sudarso"
[ 10919, 318, 262, 5415, 1271, 286, 23644, 48157, 1213, 810, 4074, 1438, 318, 479, 380, 331, 418, 424, 27455, 568, 30, 46506, 25882, 7, 71, 724, 62, 77, 17024, 8, 16034, 3084, 62, 1065, 1954, 1495, 2075, 62, 17, 33411, 4074, 62, 3672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 5415, 1271, 286, 23644, 48157, 1213, 810, 4074, 1438, 318, 479, 380, 331, 418, 424, 27455, 568, 30, 46506, 25882, 7, 71, 724, 62, 77, 17024, 8, 16034, 3084, 62, 1065, 1954, 1495, 2075, 62, 17, 33411, 4074, 62, 3672,...
What venue has euro 2004 q. as the competition?
SELECT "Venue" FROM table_66269 WHERE "Competition" = 'euro 2004 q.'
[ 2061, 14359, 468, 11063, 5472, 10662, 13, 355, 262, 5449, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 2791, 26276, 33411, 366, 7293, 15620, 1, 796, 705, 44252, 5472, 10662, 2637 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 14359, 468, 11063, 5472, 10662, 13, 355, 262, 5449, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 2791, 26276, 33411, 366, 7293, 15620, 1, 796, 705, 44252, 5472, 10662, 2637 ]
How many reports were the for the cleveland burke lakefront airport circut?
SELECT COUNT("Report") FROM table_72116 WHERE "Circuit" = 'Cleveland Burke Lakefront Airport'
[ 2437, 867, 3136, 547, 262, 329, 262, 1190, 9731, 4356, 365, 13546, 8534, 9003, 2498, 315, 30, 46506, 327, 28270, 7203, 19100, 4943, 16034, 3084, 62, 4761, 18298, 33411, 366, 31560, 5013, 1, 796, 705, 34, 5715, 392, 23259, 6233, 8534, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3136, 547, 262, 329, 262, 1190, 9731, 4356, 365, 13546, 8534, 9003, 2498, 315, 30, 46506, 327, 28270, 7203, 19100, 4943, 16034, 3084, 62, 4761, 18298, 33411, 366, 31560, 5013, 1, 796, 705, 34, 5715, 392, 23259, 6233, 8534, ...
What is the record of the game before week 5 and a bye game site?
SELECT "Record" FROM table_36717 WHERE "Week" < '5' AND "Game Site" = 'bye'
[ 2061, 318, 262, 1700, 286, 262, 983, 878, 1285, 642, 290, 257, 33847, 983, 2524, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 27824, 1558, 33411, 366, 20916, 1, 1279, 705, 20, 6, 5357, 366, 8777, 14413, 1, 796, 705, 16390, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1700, 286, 262, 983, 878, 1285, 642, 290, 257, 33847, 983, 2524, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 27824, 1558, 33411, 366, 20916, 1, 1279, 705, 20, 6, 5357, 366, 8777, 14413, 1, 796, 705, 16390, 6 ]
What is the sum of Broadcasts (TV) 1, when Series is '3 4', and when US Release Date is '27 December 2006'?
SELECT SUM(broadcasts__tv__1) FROM table_name_47 WHERE series = "3 4" AND us_release_date = "27 december 2006"
[ 2061, 318, 262, 2160, 286, 9765, 40924, 357, 6849, 8, 352, 11, 618, 7171, 318, 705, 18, 604, 3256, 290, 618, 1294, 13868, 7536, 318, 705, 1983, 3426, 4793, 30960, 46506, 35683, 7, 36654, 40924, 834, 14981, 834, 16, 8, 16034, 3084, 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...
[ 2061, 318, 262, 2160, 286, 9765, 40924, 357, 6849, 8, 352, 11, 618, 7171, 318, 705, 18, 604, 3256, 290, 618, 1294, 13868, 7536, 318, 705, 1983, 3426, 4793, 30960, 46506, 35683, 7, 36654, 40924, 834, 14981, 834, 16, 8, 16034, 3084, 6...
which record is faster , 50km race walk or marathon
SELECT "event" FROM table_203_102 WHERE "event" IN ('50 km race walk', 'marathon') ORDER BY "performance" LIMIT 1
[ 4758, 1700, 318, 5443, 837, 2026, 13276, 3234, 2513, 393, 22336, 46506, 366, 15596, 1, 16034, 3084, 62, 22416, 62, 15377, 33411, 366, 15596, 1, 3268, 19203, 1120, 10571, 3234, 2513, 3256, 705, 3876, 12938, 11537, 38678, 11050, 366, 26585,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1700, 318, 5443, 837, 2026, 13276, 3234, 2513, 393, 22336, 46506, 366, 15596, 1, 16034, 3084, 62, 22416, 62, 15377, 33411, 366, 15596, 1, 3268, 19203, 1120, 10571, 3234, 2513, 3256, 705, 3876, 12938, 11537, 38678, 11050, 366, 26585,...
A bar chart for showing the number of the facility codes of apartments with more than 4 bedrooms, sort by the y-axis in ascending please.
SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code ORDER BY COUNT(facility_code)
[ 32, 2318, 8262, 329, 4478, 262, 1271, 286, 262, 6841, 12416, 286, 19592, 351, 517, 621, 604, 38529, 11, 3297, 416, 262, 331, 12, 22704, 287, 41988, 3387, 13, 46506, 6841, 62, 8189, 11, 327, 28270, 7, 38942, 879, 62, 8189, 8, 16034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 32, 2318, 8262, 329, 4478, 262, 1271, 286, 262, 6841, 12416, 286, 19592, 351, 517, 621, 604, 38529, 11, 3297, 416, 262, 331, 12, 22704, 287, 41988, 3387, 13, 46506, 6841, 62, 8189, 11, 327, 28270, 7, 38942, 879, 62, 8189, 8, 16034, ...
Return the number of the claim start date for the claims whose claimed amount is no more than the average
SELECT Date_Claim_Made, COUNT(Date_Claim_Made) FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims)
[ 13615, 262, 1271, 286, 262, 1624, 923, 3128, 329, 262, 3667, 3025, 4752, 2033, 318, 645, 517, 621, 262, 2811, 46506, 7536, 62, 44819, 62, 24616, 11, 327, 28270, 7, 10430, 62, 44819, 62, 24616, 8, 16034, 36880, 33411, 26308, 62, 50, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13615, 262, 1271, 286, 262, 1624, 923, 3128, 329, 262, 3667, 3025, 4752, 2033, 318, 645, 517, 621, 262, 2811, 46506, 7536, 62, 44819, 62, 24616, 11, 327, 28270, 7, 10430, 62, 44819, 62, 24616, 8, 16034, 36880, 33411, 26308, 62, 50, ...
Find the average prices of all products from each manufacture, and list each company's name.
SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name
[ 16742, 262, 2811, 4536, 286, 477, 3186, 422, 1123, 6161, 11, 290, 1351, 1123, 1664, 338, 1438, 13, 46506, 35224, 7, 51, 16, 13, 20888, 828, 309, 17, 13, 3672, 16034, 3186, 7054, 309, 16, 32357, 1268, 11372, 7054, 309, 17, 6177, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16742, 262, 2811, 4536, 286, 477, 3186, 422, 1123, 6161, 11, 290, 1351, 1123, 1664, 338, 1438, 13, 46506, 35224, 7, 51, 16, 13, 20888, 828, 309, 17, 13, 3672, 16034, 3186, 7054, 309, 16, 32357, 1268, 11372, 7054, 309, 17, 6177, 309,...
What is the average number of against with 11 wins and less than 0 draws?
SELECT AVG(against) FROM table_name_31 WHERE wins = 11 AND draws < 0
[ 2061, 318, 262, 2811, 1271, 286, 1028, 351, 1367, 7864, 290, 1342, 621, 657, 14293, 30, 46506, 35224, 7, 32826, 8, 16034, 3084, 62, 3672, 62, 3132, 33411, 7864, 796, 1367, 5357, 14293, 1279, 657 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 1271, 286, 1028, 351, 1367, 7864, 290, 1342, 621, 657, 14293, 30, 46506, 35224, 7, 32826, 8, 16034, 3084, 62, 3672, 62, 3132, 33411, 7864, 796, 1367, 5357, 14293, 1279, 657 ]
Which parliament is sylvia lim swee lian?
SELECT "Parliament" FROM table_73066 WHERE "Name" = 'Sylvia Lim Swee Lian'
[ 13828, 8540, 318, 827, 6780, 544, 1761, 3490, 68, 300, 666, 30, 46506, 366, 10044, 5130, 1, 16034, 3084, 62, 43916, 2791, 33411, 366, 5376, 1, 796, 705, 50, 2645, 8869, 7576, 19372, 68, 406, 666, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 8540, 318, 827, 6780, 544, 1761, 3490, 68, 300, 666, 30, 46506, 366, 10044, 5130, 1, 16034, 3084, 62, 43916, 2791, 33411, 366, 5376, 1, 796, 705, 50, 2645, 8869, 7576, 19372, 68, 406, 666, 6 ]
What is Timo Lehkonen's highest pick number?
SELECT MAX(pick__number) FROM table_2850912_5 WHERE player = "Timo Lehkonen"
[ 2061, 318, 5045, 78, 29921, 74, 34481, 338, 4511, 2298, 1271, 30, 46506, 25882, 7, 27729, 834, 17618, 8, 16034, 3084, 62, 2078, 29022, 1065, 62, 20, 33411, 2137, 796, 366, 14967, 78, 29921, 74, 34481, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5045, 78, 29921, 74, 34481, 338, 4511, 2298, 1271, 30, 46506, 25882, 7, 27729, 834, 17618, 8, 16034, 3084, 62, 2078, 29022, 1065, 62, 20, 33411, 2137, 796, 366, 14967, 78, 29921, 74, 34481, 1 ]
Posts closed since 01/2012 by month.
SELECT CAST(YEAR(p.CreationDate) AS TEXT(10)) + '/' + CAST(MONTH(p.CreationDate) AS TEXT(19)) AS dt, COUNT(p.Id) AS pcount FROM Posts AS p WHERE p.CreationDate > '2012-01-01' GROUP BY YEAR(p.CreationDate), MONTH(p.CreationDate)
[ 21496, 4838, 1201, 5534, 14, 6999, 416, 1227, 13, 46506, 327, 11262, 7, 56, 17133, 7, 79, 13, 12443, 341, 10430, 8, 7054, 40383, 7, 940, 4008, 1343, 31051, 6, 1343, 327, 11262, 7, 27857, 4221, 7, 79, 13, 12443, 341, 10430, 8, 7054...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 21496, 4838, 1201, 5534, 14, 6999, 416, 1227, 13, 46506, 327, 11262, 7, 56, 17133, 7, 79, 13, 12443, 341, 10430, 8, 7054, 40383, 7, 940, 4008, 1343, 31051, 6, 1343, 327, 11262, 7, 27857, 4221, 7, 79, 13, 12443, 341, 10430, 8, 7054...
Find the name and capacity of products with price greater than 700 (in USD) Show bar chart, I want to list in asc by the x axis.
SELECT catalog_entry_name, capacity FROM Catalog_Contents WHERE price_in_dollars > 700 ORDER BY catalog_entry_name
[ 16742, 262, 1438, 290, 5339, 286, 3186, 351, 2756, 3744, 621, 13037, 357, 259, 11403, 8, 5438, 2318, 8262, 11, 314, 765, 284, 1351, 287, 10570, 416, 262, 2124, 16488, 13, 46506, 18388, 62, 13000, 62, 3672, 11, 5339, 16034, 44515, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16742, 262, 1438, 290, 5339, 286, 3186, 351, 2756, 3744, 621, 13037, 357, 259, 11403, 8, 5438, 2318, 8262, 11, 314, 765, 284, 1351, 287, 10570, 416, 262, 2124, 16488, 13, 46506, 18388, 62, 13000, 62, 3672, 11, 5339, 16034, 44515, 62, ...
On December 4, Tampa Bay has a record of 12-13-2.
SELECT record FROM table_name_42 WHERE home = "tampa bay" AND date = "december 4"
[ 2202, 3426, 604, 11, 15528, 4696, 468, 257, 1700, 286, 1105, 12, 1485, 12, 17, 13, 46506, 1700, 16034, 3084, 62, 3672, 62, 3682, 33411, 1363, 796, 366, 83, 13299, 15489, 1, 5357, 3128, 796, 366, 2934, 3273, 604, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2202, 3426, 604, 11, 15528, 4696, 468, 257, 1700, 286, 1105, 12, 1485, 12, 17, 13, 46506, 1700, 16034, 3084, 62, 3672, 62, 3682, 33411, 1363, 796, 366, 83, 13299, 15489, 1, 5357, 3128, 796, 366, 2934, 3273, 604, 1 ]
did the year 1957 have more or less than 4 liberal councillors ?
SELECT (SELECT "liberal\ncouncillors" FROM table_204_349 WHERE "year" = 1957) > 4
[ 20839, 262, 614, 25177, 423, 517, 393, 1342, 621, 604, 7270, 43321, 5633, 46506, 357, 46506, 366, 35739, 59, 10782, 977, 20346, 669, 1, 16034, 3084, 62, 18638, 62, 27371, 33411, 366, 1941, 1, 796, 25177, 8, 1875, 604 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 20839, 262, 614, 25177, 423, 517, 393, 1342, 621, 604, 7270, 43321, 5633, 46506, 357, 46506, 366, 35739, 59, 10782, 977, 20346, 669, 1, 16034, 3084, 62, 18638, 62, 27371, 33411, 366, 1941, 1, 796, 25177, 8, 1875, 604 ]
what flights go from PITTSBURGH to BALTIMORE after 800 o'clock next wednesday
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, date_day, days, flight WHERE ((date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time...
[ 10919, 13956, 467, 422, 49040, 4694, 38926, 17511, 284, 347, 31429, 3955, 6965, 706, 10460, 267, 6, 15750, 1306, 29445, 3462, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13956, 467, 422, 49040, 4694, 38926, 17511, 284, 347, 31429, 3955, 6965, 706, 10460, 267, 6, 15750, 1306, 29445, 3462, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, ...
What publisher created Crysis Warhead?
SELECT publisher FROM table_name_35 WHERE title = "crysis warhead"
[ 2061, 9991, 2727, 8152, 13429, 1810, 2256, 30, 46506, 9991, 16034, 3084, 62, 3672, 62, 2327, 33411, 3670, 796, 366, 20470, 13429, 1175, 2256, 1 ]
[ 1, 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, 9991, 2727, 8152, 13429, 1810, 2256, 30, 46506, 9991, 16034, 3084, 62, 3672, 62, 2327, 33411, 3670, 796, 366, 20470, 13429, 1175, 2256, 1 ]
What is the smallest rank when there are fewer than 1 silver, 4 golds and less than 0 bronze?
SELECT MIN(rank) FROM table_name_10 WHERE silver < 1 AND gold = 4 AND bronze < 0
[ 2061, 318, 262, 18197, 4279, 618, 612, 389, 7380, 621, 352, 8465, 11, 604, 3869, 82, 290, 1342, 621, 657, 22101, 30, 46506, 20625, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 940, 33411, 8465, 1279, 352, 5357, 3869, 796, 604, 5357, 2210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18197, 4279, 618, 612, 389, 7380, 621, 352, 8465, 11, 604, 3869, 82, 290, 1342, 621, 657, 22101, 30, 46506, 20625, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 940, 33411, 8465, 1279, 352, 5357, 3869, 796, 604, 5357, 2210...
Which Race has a Runners of 7 and Odds of 1/3?
SELECT "Race" FROM table_79623 WHERE "Runners" = '7' AND "Odds" = '1/3'
[ 13828, 12588, 468, 257, 5660, 2741, 286, 767, 290, 20664, 82, 286, 352, 14, 18, 30, 46506, 366, 35157, 1, 16034, 3084, 62, 41060, 1954, 33411, 366, 10987, 2741, 1, 796, 705, 22, 6, 5357, 366, 46, 33714, 1, 796, 705, 16, 14, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 12588, 468, 257, 5660, 2741, 286, 767, 290, 20664, 82, 286, 352, 14, 18, 30, 46506, 366, 35157, 1, 16034, 3084, 62, 41060, 1954, 33411, 366, 10987, 2741, 1, 796, 705, 22, 6, 5357, 366, 46, 33714, 1, 796, 705, 16, 14, 18, ...
What is the 6:30pm show that has The Early Show at 8am and Local Programs at 9am?
SELECT "6:30 pm" FROM table_60043 WHERE "9:00 am" = 'local programs' AND "8:00 am" = 'the early show'
[ 2061, 318, 262, 718, 25, 1270, 4426, 905, 326, 468, 383, 12556, 5438, 379, 807, 321, 290, 10714, 26179, 379, 860, 321, 30, 46506, 366, 21, 25, 1270, 9114, 1, 16034, 3084, 62, 8054, 3559, 33411, 366, 24, 25, 405, 716, 1, 796, 705, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 718, 25, 1270, 4426, 905, 326, 468, 383, 12556, 5438, 379, 807, 321, 290, 10714, 26179, 379, 860, 321, 30, 46506, 366, 21, 25, 1270, 9114, 1, 16034, 3084, 62, 8054, 3559, 33411, 366, 24, 25, 405, 716, 1, 796, 705, ...
Display a line chart for what is the average prices of wines for each each?
SELECT Year, AVG(Price) FROM wine GROUP BY Year
[ 23114, 257, 1627, 8262, 329, 644, 318, 262, 2811, 4536, 286, 30680, 329, 1123, 1123, 30, 46506, 6280, 11, 35224, 7, 18124, 8, 16034, 8237, 44441, 11050, 6280 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 23114, 257, 1627, 8262, 329, 644, 318, 262, 2811, 4536, 286, 30680, 329, 1123, 1123, 30, 46506, 6280, 11, 35224, 7, 18124, 8, 16034, 8237, 44441, 11050, 6280 ]
Which Record has an Opponent of milwaukee bucks?
SELECT "Record" FROM table_12890 WHERE "Opponent" = 'milwaukee bucks'
[ 13828, 13266, 468, 281, 9385, 3471, 286, 1465, 15428, 24780, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 12762, 3829, 33411, 366, 27524, 3471, 1, 796, 705, 25433, 15428, 24780, 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, 13266, 468, 281, 9385, 3471, 286, 1465, 15428, 24780, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 12762, 3829, 33411, 366, 27524, 3471, 1, 796, 705, 25433, 15428, 24780, 6 ]
count the number of patients who were diagnosed with hyperkalemia - due to excess intake.
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'hyperkalemia - due to excess intake')
[ 9127, 262, 1271, 286, 3871, 508, 547, 14641, 351, 8718, 74, 282, 22859, 532, 2233, 284, 6992, 10337, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 5827, 13, 26029, 20850, 31712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 547, 14641, 351, 8718, 74, 282, 22859, 532, 2233, 284, 6992, 10337, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 5827, 13, 26029, 20850, 31712, ...
Who is the Opponent on January 16?
SELECT opponent FROM table_name_45 WHERE date = "january 16"
[ 8241, 318, 262, 9385, 3471, 319, 3269, 1467, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 2231, 33411, 3128, 796, 366, 13881, 2838, 1467, 1 ]
[ 1, 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, 9385, 3471, 319, 3269, 1467, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 2231, 33411, 3128, 796, 366, 13881, 2838, 1467, 1 ]
did patient 027-151154 receive angiogram - with coiling at other hospitals?
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '027-151154' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '027-151154' AND patient.hospitaldischargetime IS NULL)) AND ...
[ 20839, 5827, 657, 1983, 12, 1314, 1157, 4051, 3328, 3550, 72, 21857, 532, 351, 763, 4386, 379, 584, 11301, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 20839, 5827, 657, 1983, 12, 1314, 1157, 4051, 3328, 3550, 72, 21857, 532, 351, 763, 4386, 379, 584, 11301, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, ...
when was the last time patient 031-4423 had had an intake on 07/07/last year?
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-4423')) AND intakeoutput.cellpath LIKE '%intake%'...
[ 12518, 373, 262, 938, 640, 5827, 657, 3132, 12, 2598, 1954, 550, 550, 281, 10337, 319, 8753, 14, 2998, 14, 12957, 614, 30, 46506, 10337, 22915, 13, 600, 539, 22915, 2435, 16034, 10337, 22915, 33411, 10337, 22915, 13, 26029, 20850, 31712...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 373, 262, 938, 640, 5827, 657, 3132, 12, 2598, 1954, 550, 550, 281, 10337, 319, 8753, 14, 2998, 14, 12957, 614, 30, 46506, 10337, 22915, 13, 600, 539, 22915, 2435, 16034, 10337, 22915, 33411, 10337, 22915, 13, 26029, 20850, 31712...
What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland?
SELECT years_in_the_acc FROM table_name_24 WHERE founded < 1885 AND location = "college park, maryland"
[ 2061, 389, 262, 812, 287, 262, 15859, 286, 281, 9901, 326, 373, 9393, 878, 1248, 5332, 290, 318, 5140, 287, 5535, 3250, 11, 10769, 30, 46506, 812, 62, 259, 62, 1169, 62, 4134, 16034, 3084, 62, 3672, 62, 1731, 33411, 9393, 1279, 1248...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 812, 287, 262, 15859, 286, 281, 9901, 326, 373, 9393, 878, 1248, 5332, 290, 318, 5140, 287, 5535, 3250, 11, 10769, 30, 46506, 812, 62, 259, 62, 1169, 62, 4134, 16034, 3084, 62, 3672, 62, 1731, 33411, 9393, 1279, 1248...
What is the Until date that has a party of VLD and a beginning from date of December 17, 2007?
SELECT "Until" FROM table_71014 WHERE "Party" = 'vld' AND "From" = 'december 17, 2007'
[ 2061, 318, 262, 14303, 3128, 326, 468, 257, 2151, 286, 569, 11163, 290, 257, 3726, 422, 3128, 286, 3426, 1596, 11, 4343, 30, 46506, 366, 18273, 1, 16034, 3084, 62, 4869, 28645, 33411, 366, 33553, 1, 796, 705, 85, 335, 6, 5357, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 14303, 3128, 326, 468, 257, 2151, 286, 569, 11163, 290, 257, 3726, 422, 3128, 286, 3426, 1596, 11, 4343, 30, 46506, 366, 18273, 1, 16034, 3084, 62, 4869, 28645, 33411, 366, 33553, 1, 796, 705, 85, 335, 6, 5357, 366, ...
Which away team played at western oval?
SELECT "Away team" FROM table_57191 WHERE "Venue" = 'western oval'
[ 13828, 1497, 1074, 2826, 379, 8830, 41186, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 3553, 26492, 33411, 366, 37522, 518, 1, 796, 705, 14197, 41186, 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 ]
[ 13828, 1497, 1074, 2826, 379, 8830, 41186, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 3553, 26492, 33411, 366, 37522, 518, 1, 796, 705, 14197, 41186, 6 ]
Name the Record of Visitor of toronto st. pats with a Score of 5 4 and a Home of ottawa senators? Question 5
SELECT record FROM table_name_48 WHERE visitor = "toronto st. pats" AND score = "5–4" AND home = "ottawa senators"
[ 5376, 262, 13266, 286, 6911, 2072, 286, 7332, 5957, 336, 13, 279, 1381, 351, 257, 15178, 286, 642, 604, 290, 257, 5995, 286, 267, 926, 6909, 15469, 30, 18233, 642, 46506, 1700, 16034, 3084, 62, 3672, 62, 2780, 33411, 21493, 796, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 5376, 262, 13266, 286, 6911, 2072, 286, 7332, 5957, 336, 13, 279, 1381, 351, 257, 15178, 286, 642, 604, 290, 257, 5995, 286, 267, 926, 6909, 15469, 30, 18233, 642, 46506, 1700, 16034, 3084, 62, 3672, 62, 2780, 33411, 21493, 796, 366, ...
Name the year for laps of 200 and rank of 24
SELECT "Year" FROM table_80345 WHERE "Laps" = '200' AND "Rank" = '24'
[ 5376, 262, 614, 329, 24590, 286, 939, 290, 4279, 286, 1987, 46506, 366, 17688, 1, 16034, 3084, 62, 1795, 27712, 33411, 366, 43, 1686, 1, 796, 705, 2167, 6, 5357, 366, 27520, 1, 796, 705, 1731, 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 ]
[ 5376, 262, 614, 329, 24590, 286, 939, 290, 4279, 286, 1987, 46506, 366, 17688, 1, 16034, 3084, 62, 1795, 27712, 33411, 366, 43, 1686, 1, 796, 705, 2167, 6, 5357, 366, 27520, 1, 796, 705, 1731, 6 ]
what were the three most frequent drugs that were prescribed within 2 months to patients of age 30s after they had been diagnosed with hyperglycemia - stress related since 2104.
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hyperglycemia - stress related' AND STRFTIME('%y',...
[ 10919, 547, 262, 1115, 749, 10792, 5010, 326, 547, 14798, 1626, 362, 1933, 284, 3871, 286, 2479, 1542, 82, 706, 484, 550, 587, 14641, 351, 8718, 10853, 344, 20730, 532, 5503, 3519, 1201, 362, 13464, 13, 46506, 256, 18, 13, 30349, 3672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 547, 262, 1115, 749, 10792, 5010, 326, 547, 14798, 1626, 362, 1933, 284, 3871, 286, 2479, 1542, 82, 706, 484, 550, 587, 14641, 351, 8718, 10853, 344, 20730, 532, 5503, 3519, 1201, 362, 13464, 13, 46506, 256, 18, 13, 30349, 3672...
What was the Time when Set 3 was 25 14?
SELECT time FROM table_name_70 WHERE set_3 = "25–14"
[ 2061, 373, 262, 3862, 618, 5345, 513, 373, 1679, 1478, 30, 46506, 640, 16034, 3084, 62, 3672, 62, 2154, 33411, 900, 62, 18, 796, 366, 1495, 1906, 1415, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 3862, 618, 5345, 513, 373, 1679, 1478, 30, 46506, 640, 16034, 3084, 62, 3672, 62, 2154, 33411, 900, 62, 18, 796, 366, 1495, 1906, 1415, 1 ]
Show the number of headquarters from each headquarters
SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Headquarters
[ 15307, 262, 1271, 286, 10043, 422, 1123, 10043, 46506, 32193, 11, 327, 28270, 7, 13847, 8230, 8, 16034, 1664, 44441, 11050, 32193 ]
[ 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, 10043, 422, 1123, 10043, 46506, 32193, 11, 327, 28270, 7, 13847, 8230, 8, 16034, 1664, 44441, 11050, 32193 ]
Top SO users From Tanur.
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%mumbai%' OR UPPER(Location) LIKE '%mumbai%' OR Location LIKE '%mumbai%' AND Reputation >= 1000 ORDER BY Reputation DESC
[ 9126, 12809, 2985, 3574, 11818, 333, 13, 46506, 371, 3913, 62, 41359, 13246, 3419, 28729, 357, 12532, 1137, 11050, 1432, 7094, 22196, 34, 8, 7054, 25113, 1600, 5121, 7054, 366, 7220, 62, 8726, 1600, 1432, 7094, 16034, 18987, 33411, 406, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12809, 2985, 3574, 11818, 333, 13, 46506, 371, 3913, 62, 41359, 13246, 3419, 28729, 357, 12532, 1137, 11050, 1432, 7094, 22196, 34, 8, 7054, 25113, 1600, 5121, 7054, 366, 7220, 62, 8726, 1600, 1432, 7094, 16034, 18987, 33411, 406, ...
What is the 98kg for Santo Domingo, Domincan on 1 October 2006?
SELECT "98kg" FROM table_65003 WHERE "Santo Domingo , Dominican" = '1 october 2006'
[ 2061, 318, 262, 9661, 10025, 329, 10844, 78, 360, 3383, 78, 11, 9666, 1939, 272, 319, 352, 3267, 4793, 30, 46506, 366, 4089, 10025, 1, 16034, 3084, 62, 2996, 11245, 33411, 366, 50, 14723, 360, 3383, 78, 837, 32022, 1, 796, 705, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9661, 10025, 329, 10844, 78, 360, 3383, 78, 11, 9666, 1939, 272, 319, 352, 3267, 4793, 30, 46506, 366, 4089, 10025, 1, 16034, 3084, 62, 2996, 11245, 33411, 366, 50, 14723, 360, 3383, 78, 837, 32022, 1, 796, 705, 16, ...
what is admission time and discharge time of subject id 64208?
SELECT demographic.admittime, demographic.dischtime FROM demographic WHERE demographic.subject_id = "64208"
[ 10919, 318, 13938, 640, 290, 17655, 640, 286, 2426, 4686, 5598, 21315, 30, 46506, 16728, 13, 324, 20124, 524, 11, 16728, 13, 6381, 354, 2435, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 2414, 21315, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13938, 640, 290, 17655, 640, 286, 2426, 4686, 5598, 21315, 30, 46506, 16728, 13, 324, 20124, 524, 11, 16728, 13, 6381, 354, 2435, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 2414, 21315, 1 ]
what is the average ga cup goals when the league cup apps is 2, the fa cup apps is 3 and the league goals is 3?
SELECT AVG(fa_cup_goals) FROM table_name_96 WHERE league_cup_apps = "2" AND fa_cup_apps = "3" AND league_goals = 3
[ 10919, 318, 262, 2811, 31986, 6508, 4661, 618, 262, 4652, 6508, 6725, 318, 362, 11, 262, 24685, 6508, 6725, 318, 513, 290, 262, 4652, 4661, 318, 513, 30, 46506, 35224, 7, 13331, 62, 25244, 62, 2188, 874, 8, 16034, 3084, 62, 3672, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 2811, 31986, 6508, 4661, 618, 262, 4652, 6508, 6725, 318, 362, 11, 262, 24685, 6508, 6725, 318, 513, 290, 262, 4652, 4661, 318, 513, 30, 46506, 35224, 7, 13331, 62, 25244, 62, 2188, 874, 8, 16034, 3084, 62, 3672, 62...
What team played at lake oval while away?
SELECT away_team FROM table_name_51 WHERE venue = "lake oval"
[ 2061, 1074, 2826, 379, 13546, 41186, 981, 1497, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 4349, 33411, 14359, 796, 366, 27180, 41186, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1074, 2826, 379, 13546, 41186, 981, 1497, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 4349, 33411, 14359, 796, 366, 27180, 41186, 1 ]
What was the cargo value in 2005 with a ship size of all product carriers?
SELECT "2005" FROM table_42582 WHERE "Ship size" = 'all product carriers'
[ 2061, 373, 262, 15892, 1988, 287, 5075, 351, 257, 4074, 2546, 286, 477, 1720, 16651, 30, 46506, 366, 14315, 1, 16034, 3084, 62, 32114, 6469, 33411, 366, 25586, 2546, 1, 796, 705, 439, 1720, 16651, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 15892, 1988, 287, 5075, 351, 257, 4074, 2546, 286, 477, 1720, 16651, 30, 46506, 366, 14315, 1, 16034, 3084, 62, 32114, 6469, 33411, 366, 25586, 2546, 1, 796, 705, 439, 1720, 16651, 6 ]
i need 2 FIRST class tickets from DALLAS FORT WORTH to SAN FRANCISCO
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, fare, fare_basis, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND fare_basis.class_type = 'FIRST' AND far...
[ 72, 761, 362, 31328, 1398, 8587, 422, 360, 7036, 1921, 7473, 51, 21881, 4221, 284, 37376, 8782, 20940, 37719, 14058, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 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...
[ 72, 761, 362, 31328, 1398, 8587, 422, 360, 7036, 1921, 7473, 51, 21881, 4221, 284, 37376, 8782, 20940, 37719, 14058, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 6...
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of price , and group by attribute name, sort in desc by the x-axis.
SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1438, 290, 262, 2160, 286, 2756, 837, 290, 1448, 416, 11688, 1438, 11, 3297, 287, 1715, 416, 262, 2124, 12, 22704, 13, 46506, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 1438, 290, 262, 2160, 286, 2756, 837, 290, 1448, 416, 11688, 1438, 11, 3297, 287, 1715, 416, 262, 2124, 12, 22704, 13, 46506, 3...
Which Congress has a # of cosponsors of 19?
SELECT congress FROM table_name_51 WHERE _number_of_cosponsors = 19
[ 13828, 3162, 468, 257, 1303, 286, 269, 39500, 286, 678, 30, 46506, 8681, 16034, 3084, 62, 3672, 62, 4349, 33411, 4808, 17618, 62, 1659, 62, 66, 39500, 796, 678 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 3162, 468, 257, 1303, 286, 269, 39500, 286, 678, 30, 46506, 8681, 16034, 3084, 62, 3672, 62, 4349, 33411, 4808, 17618, 62, 1659, 62, 66, 39500, 796, 678 ]
give me the number of patients whose insurance is self pay and procedure long title is angioplasty of other non-coronary vessel(s)?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Self Pay" AND procedures.long_title = "Angioplasty of other non-coronary vessel(s)"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 5096, 318, 2116, 1414, 290, 8771, 890, 3670, 318, 3550, 14922, 75, 7833, 286, 584, 1729, 12, 10215, 261, 560, 8837, 7, 82, 19427, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 5096, 318, 2116, 1414, 290, 8771, 890, 3670, 318, 3550, 14922, 75, 7833, 286, 584, 1729, 12, 10215, 261, 560, 8837, 7, 82, 19427, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, ...
Which Purpose has a Name of oak?
SELECT "Purpose" FROM table_11763 WHERE "Name" = 'oak'
[ 13828, 32039, 468, 257, 6530, 286, 26210, 30, 46506, 366, 30026, 3455, 1, 16034, 3084, 62, 1157, 49641, 33411, 366, 5376, 1, 796, 705, 15877, 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 ]
[ 13828, 32039, 468, 257, 6530, 286, 26210, 30, 46506, 366, 30026, 3455, 1, 16034, 3084, 62, 1157, 49641, 33411, 366, 5376, 1, 796, 705, 15877, 6 ]
For each distinct product name, show its average product price, show X-axis from high to low order.
SELECT Product_Name, AVG(Product_Price) FROM Products GROUP BY Product_Name ORDER BY Product_Name DESC
[ 1890, 1123, 7310, 1720, 1438, 11, 905, 663, 2811, 1720, 2756, 11, 905, 1395, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 8721, 62, 5376, 11, 35224, 7, 15667, 62, 18124, 8, 16034, 18675, 44441, 11050, 8721, 62, 5376, 38678, 11050...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1890, 1123, 7310, 1720, 1438, 11, 905, 663, 2811, 1720, 2756, 11, 905, 1395, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 8721, 62, 5376, 11, 35224, 7, 15667, 62, 18124, 8, 16034, 18675, 44441, 11050, 8721, 62, 5376, 38678, 11050...
Votes to old posts by age. (From 100 answers you get roughly 1 vote per week)
WITH RecentVotes AS (SELECT PostId, COUNT(Id) AS VoteCount FROM Votes WHERE DATEDIFF(week, CreationDate, GETDATE()) = @base GROUP BY PostId), AnswerAge AS (SELECT Id AS PostId, DATEDIFF(week, CreationDate, GETDATE()) AS Age FROM Posts WHERE PostTypeId = 2) SELECT Age, SUM(VoteCount) * 1.0 / COUNT(AnswerAge.PostId) AS P...
[ 53, 6421, 284, 1468, 6851, 416, 2479, 13, 357, 4863, 1802, 7429, 345, 651, 7323, 352, 3015, 583, 1285, 8, 54, 10554, 22926, 53, 6421, 7054, 357, 46506, 2947, 7390, 11, 327, 28270, 7, 7390, 8, 7054, 19175, 12332, 16034, 39584, 33411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 53, 6421, 284, 1468, 6851, 416, 2479, 13, 357, 4863, 1802, 7429, 345, 651, 7323, 352, 3015, 583, 1285, 8, 54, 10554, 22926, 53, 6421, 7054, 357, 46506, 2947, 7390, 11, 327, 28270, 7, 7390, 8, 7054, 19175, 12332, 16034, 39584, 33411, ...
What Round against Aleksander Emelianenko had a time of 5:00?
SELECT "Round" FROM table_40258 WHERE "Time" = '5:00' AND "Opponent" = 'aleksander emelianenko'
[ 2061, 10485, 1028, 9300, 591, 4066, 2295, 417, 666, 32720, 550, 257, 640, 286, 642, 25, 405, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 1821, 25600, 33411, 366, 7575, 1, 796, 705, 20, 25, 405, 6, 5357, 366, 27524, 3471, 1, 796, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 10485, 1028, 9300, 591, 4066, 2295, 417, 666, 32720, 550, 257, 640, 286, 642, 25, 405, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 1821, 25600, 33411, 366, 7575, 1, 796, 705, 20, 25, 405, 6, 5357, 366, 27524, 3471, 1, 796, 70...
The ship MS Vistafjord has what in service for NAL?
SELECT "In service for NAL" FROM table_63946 WHERE "Ship" = 'ms vistafjord'
[ 464, 4074, 6579, 569, 396, 1878, 73, 585, 468, 644, 287, 2139, 329, 399, 1847, 30, 46506, 366, 818, 2139, 329, 399, 1847, 1, 16034, 3084, 62, 21, 2670, 3510, 33411, 366, 25586, 1, 796, 705, 907, 410, 396, 1878, 73, 585, 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 ]
[ 464, 4074, 6579, 569, 396, 1878, 73, 585, 468, 644, 287, 2139, 329, 399, 1847, 30, 46506, 366, 818, 2139, 329, 399, 1847, 1, 16034, 3084, 62, 21, 2670, 3510, 33411, 366, 25586, 1, 796, 705, 907, 410, 396, 1878, 73, 585, 6 ]
What is the lowest number of losses a goalkeeper with more than 2776 minutes had?
SELECT MIN(loses) FROM table_name_54 WHERE minutes > 2776
[ 2061, 318, 262, 9016, 1271, 286, 9089, 257, 26318, 351, 517, 621, 2681, 4304, 2431, 550, 30, 46506, 20625, 7, 75, 4629, 8, 16034, 3084, 62, 3672, 62, 4051, 33411, 2431, 1875, 2681, 4304 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 1271, 286, 9089, 257, 26318, 351, 517, 621, 2681, 4304, 2431, 550, 30, 46506, 20625, 7, 75, 4629, 8, 16034, 3084, 62, 3672, 62, 4051, 33411, 2431, 1875, 2681, 4304 ]
Find the names of states that have some college students playing in goalie and mid positions.
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid'
[ 16742, 262, 3891, 286, 2585, 326, 423, 617, 4152, 2444, 2712, 287, 31071, 290, 3095, 6116, 13, 46506, 309, 16, 13, 5219, 16034, 4152, 7054, 309, 16, 32357, 1268, 1949, 448, 7054, 309, 17, 6177, 309, 16, 13, 66, 5376, 796, 309, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 3891, 286, 2585, 326, 423, 617, 4152, 2444, 2712, 287, 31071, 290, 3095, 6116, 13, 46506, 309, 16, 13, 5219, 16034, 4152, 7054, 309, 16, 32357, 1268, 1949, 448, 7054, 309, 17, 6177, 309, 16, 13, 66, 5376, 796, 309, 17, ...
Album # of 1st was released on what date?
SELECT "Released" FROM table_36118 WHERE "Album#" = '1st'
[ 2348, 4435, 1303, 286, 352, 301, 373, 2716, 319, 644, 3128, 30, 46506, 366, 45037, 1, 16034, 3084, 62, 2623, 16817, 33411, 366, 2348, 4435, 2, 1, 796, 705, 16, 301, 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 ]
[ 2348, 4435, 1303, 286, 352, 301, 373, 2716, 319, 644, 3128, 30, 46506, 366, 45037, 1, 16034, 3084, 62, 2623, 16817, 33411, 366, 2348, 4435, 2, 1, 796, 705, 16, 301, 6 ]
What are the students ids of students who have more than one allergy?
SELECT stuid FROM has_allergy GROUP BY stuid HAVING COUNT(*) >= 2
[ 2061, 389, 262, 2444, 220, 2340, 286, 2444, 508, 423, 517, 621, 530, 36197, 30, 46506, 336, 27112, 16034, 468, 62, 439, 26079, 44441, 11050, 336, 27112, 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 ]
[ 2061, 389, 262, 2444, 220, 2340, 286, 2444, 508, 423, 517, 621, 530, 36197, 30, 46506, 336, 27112, 16034, 468, 62, 439, 26079, 44441, 11050, 336, 27112, 367, 10116, 2751, 327, 28270, 7, 28104, 18189, 362 ]
mini mental state examination ( mmse ) total score < 27
SELECT * FROM table_train_82 WHERE mini_mental_state_examination_mmse < 27
[ 45313, 5110, 1181, 12452, 357, 8085, 325, 1267, 2472, 4776, 1279, 2681, 46506, 1635, 16034, 3084, 62, 27432, 62, 6469, 33411, 9927, 62, 37098, 62, 5219, 62, 47779, 62, 3020, 325, 1279, 2681 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 45313, 5110, 1181, 12452, 357, 8085, 325, 1267, 2472, 4776, 1279, 2681, 46506, 1635, 16034, 3084, 62, 27432, 62, 6469, 33411, 9927, 62, 37098, 62, 5219, 62, 47779, 62, 3020, 325, 1279, 2681 ]
What is the placement date of the order whose invoice number is 10?
SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10
[ 2061, 318, 262, 13127, 3128, 286, 262, 1502, 3025, 45458, 1271, 318, 838, 30, 46506, 309, 16, 13, 4475, 62, 2875, 62, 21820, 16034, 6266, 7054, 309, 16, 32357, 1268, 29311, 7054, 309, 17, 6177, 309, 16, 13, 2875, 62, 312, 796, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 13127, 3128, 286, 262, 1502, 3025, 45458, 1271, 318, 838, 30, 46506, 309, 16, 13, 4475, 62, 2875, 62, 21820, 16034, 6266, 7054, 309, 16, 32357, 1268, 29311, 7054, 309, 17, 6177, 309, 16, 13, 2875, 62, 312, 796, 309, ...
tell me the daily maximum respiration of patient 005-12192 since 12/26/2102.
SELECT MAX(vitalperiodic.respiration) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-12192')) AND NOT vitalperiodic.respiration IS ...
[ 33331, 502, 262, 4445, 5415, 1217, 15297, 286, 5827, 3571, 20, 12, 1065, 17477, 1201, 1105, 14, 2075, 14, 17, 15377, 13, 46506, 25882, 7, 85, 1287, 41007, 291, 13, 411, 10514, 8, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 33331, 502, 262, 4445, 5415, 1217, 15297, 286, 5827, 3571, 20, 12, 1065, 17477, 1201, 1105, 14, 2075, 14, 17, 15377, 13, 46506, 25882, 7, 85, 1287, 41007, 291, 13, 411, 10514, 8, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, ...
android tag usage by user.
SELECT t.TagName, p.OwnerUserId, p.CreationDate FROM Posts AS p INNER JOIN PostTags AS pt ON p.Id = pt.PostId INNER JOIN Tags AS t ON pt.TagId = t.Id AND t.TagName LIKE '%android%' WHERE DATEDIFF(d, GETDATE(), CreationDate) >= -30
[ 19411, 7621, 8748, 416, 2836, 13, 46506, 256, 13, 24835, 5376, 11, 279, 13, 42419, 12982, 7390, 11, 279, 13, 12443, 341, 10430, 16034, 12043, 7054, 279, 3268, 21479, 32357, 1268, 2947, 36142, 7054, 42975, 6177, 279, 13, 7390, 796, 42975...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 19411, 7621, 8748, 416, 2836, 13, 46506, 256, 13, 24835, 5376, 11, 279, 13, 42419, 12982, 7390, 11, 279, 13, 12443, 341, 10430, 16034, 12043, 7054, 279, 3268, 21479, 32357, 1268, 2947, 36142, 7054, 42975, 6177, 279, 13, 7390, 796, 42975...
What number of examines after 2005 has a pass percentage of 78.35% with less than 297 students?
SELECT COUNT("Number of Examinees") FROM table_62497 WHERE "Year" > '2005' AND "Pass Percentage" = '78.35%' AND "Number of Passed Students" < '297'
[ 2061, 1271, 286, 28025, 706, 5075, 468, 257, 1208, 5873, 286, 8699, 13, 2327, 4, 351, 1342, 621, 41103, 2444, 30, 46506, 327, 28270, 7203, 15057, 286, 1475, 9862, 274, 4943, 16034, 3084, 62, 21, 1731, 5607, 33411, 366, 17688, 1, 1875,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 28025, 706, 5075, 468, 257, 1208, 5873, 286, 8699, 13, 2327, 4, 351, 1342, 621, 41103, 2444, 30, 46506, 327, 28270, 7203, 15057, 286, 1475, 9862, 274, 4943, 16034, 3084, 62, 21, 1731, 5607, 33411, 366, 17688, 1, 1875,...
count the number of patients whose insurance is private and procedure long title is coronary arteriography using a single catheter?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Coronary arteriography using a single catheter"
[ 9127, 262, 1271, 286, 3871, 3025, 5096, 318, 2839, 290, 8771, 890, 3670, 318, 37151, 30675, 72, 4867, 1262, 257, 2060, 3797, 43332, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 2147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9127, 262, 1271, 286, 3871, 3025, 5096, 318, 2839, 290, 8771, 890, 3670, 318, 37151, 30675, 72, 4867, 1262, 257, 2060, 3797, 43332, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 2147...
List all of the ids for left-footed players with a height between 180cm and 190cm.
SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = "left"
[ 8053, 477, 286, 262, 220, 2340, 329, 1364, 12, 43127, 1938, 351, 257, 6001, 1022, 11546, 11215, 290, 19884, 11215, 13, 46506, 2137, 62, 15042, 62, 312, 16034, 7853, 33411, 6001, 18189, 11546, 5357, 6001, 19841, 19884, 17828, 4877, 9782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 477, 286, 262, 220, 2340, 329, 1364, 12, 43127, 1938, 351, 257, 6001, 1022, 11546, 11215, 290, 19884, 11215, 13, 46506, 2137, 62, 15042, 62, 312, 16034, 7853, 33411, 6001, 18189, 11546, 5357, 6001, 19841, 19884, 17828, 4877, 9782, ...
Which matches had draw odds from Bet365 higher than 3?
SELECT * FROM football_data WHERE b365d > 3
[ 13828, 7466, 550, 3197, 10402, 422, 5147, 24760, 2440, 621, 513, 30, 46506, 1635, 16034, 4346, 62, 7890, 33411, 275, 24760, 67, 1875, 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 ]
[ 13828, 7466, 550, 3197, 10402, 422, 5147, 24760, 2440, 621, 513, 30, 46506, 1635, 16034, 4346, 62, 7890, 33411, 275, 24760, 67, 1875, 513 ]
Name the city with Feb of 66 f / 18.9 c
SELECT city FROM table_name_63 WHERE feb = "66 °f / 18.9 °c"
[ 5376, 262, 1748, 351, 3158, 286, 7930, 277, 1220, 1248, 13, 24, 269, 46506, 1748, 16034, 3084, 62, 3672, 62, 5066, 33411, 730, 65, 796, 366, 2791, 22074, 69, 1220, 1248, 13, 24, 22074, 66, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 1748, 351, 3158, 286, 7930, 277, 1220, 1248, 13, 24, 269, 46506, 1748, 16034, 3084, 62, 3672, 62, 5066, 33411, 730, 65, 796, 366, 2791, 22074, 69, 1220, 1248, 13, 24, 22074, 66, 1 ]
tell me the amount of deliver 2.0 that patient 27703 has received on last month/05.
SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27703)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.lab...
[ 33331, 502, 262, 2033, 286, 5203, 362, 13, 15, 326, 5827, 2681, 36809, 468, 2722, 319, 938, 1227, 14, 2713, 13, 46506, 35683, 7, 259, 79, 1133, 85, 658, 62, 33967, 13, 17287, 8, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 33331, 502, 262, 2033, 286, 5203, 362, 13, 15, 326, 5827, 2681, 36809, 468, 2722, 319, 938, 1227, 14, 2713, 13, 46506, 35683, 7, 259, 79, 1133, 85, 658, 62, 33967, 13, 17287, 8, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287...
What was the home team's score at the game where Richmond was the away team?
SELECT home_team AS score FROM table_name_19 WHERE away_team = "richmond"
[ 2061, 373, 262, 1363, 1074, 338, 4776, 379, 262, 983, 810, 16940, 373, 262, 1497, 1074, 30, 46506, 1363, 62, 15097, 7054, 4776, 16034, 3084, 62, 3672, 62, 1129, 33411, 1497, 62, 15097, 796, 366, 7527, 6327, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1363, 1074, 338, 4776, 379, 262, 983, 810, 16940, 373, 262, 1497, 1074, 30, 46506, 1363, 62, 15097, 7054, 4776, 16034, 3084, 62, 3672, 62, 1129, 33411, 1497, 62, 15097, 796, 366, 7527, 6327, 1 ]
what are the number of times weld county is listed on this chart ?
SELECT COUNT(*) FROM table_204_279 WHERE "principal\ncounty" = 'weld county'
[ 10919, 389, 262, 1271, 286, 1661, 26650, 7968, 318, 5610, 319, 428, 8262, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 26050, 33411, 366, 1050, 1939, 8521, 59, 77, 9127, 88, 1, 796, 705, 732, 335, 7968, 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 ]
[ 10919, 389, 262, 1271, 286, 1661, 26650, 7968, 318, 5610, 319, 428, 8262, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 26050, 33411, 366, 1050, 1939, 8521, 59, 77, 9127, 88, 1, 796, 705, 732, 335, 7968, 6 ]
Name the security forces for 2009
SELECT "Security Forces" FROM table_57139 WHERE "Year" = '2009'
[ 5376, 262, 2324, 3386, 329, 3717, 46506, 366, 24074, 12700, 1, 16034, 3084, 62, 3553, 20219, 33411, 366, 17688, 1, 796, 705, 10531, 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 ]
[ 5376, 262, 2324, 3386, 329, 3717, 46506, 366, 24074, 12700, 1, 16034, 3084, 62, 3553, 20219, 33411, 366, 17688, 1, 796, 705, 10531, 6 ]
Name the kicks with goals of 1
SELECT "Kicks" FROM table_69272 WHERE "Goals" = '1'
[ 5376, 262, 17364, 351, 4661, 286, 352, 46506, 366, 42, 3378, 1, 16034, 3084, 62, 3388, 29807, 33411, 366, 5247, 874, 1, 796, 705, 16, 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, 17364, 351, 4661, 286, 352, 46506, 366, 42, 3378, 1, 16034, 3084, 62, 3388, 29807, 33411, 366, 5247, 874, 1, 796, 705, 16, 6 ]
Name the total number of director for vesni ko m st ediskov
SELECT COUNT(director) FROM table_23141790_1 WHERE original_title = "Vesničko má středisková"
[ 5376, 262, 2472, 1271, 286, 3437, 329, 410, 274, 8461, 41727, 285, 336, 1225, 1984, 709, 46506, 327, 28270, 7, 35248, 8, 16034, 3084, 62, 1954, 1415, 1558, 3829, 62, 16, 33411, 2656, 62, 7839, 796, 366, 53, 274, 8461, 46195, 7204, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 2472, 1271, 286, 3437, 329, 410, 274, 8461, 41727, 285, 336, 1225, 1984, 709, 46506, 327, 28270, 7, 35248, 8, 16034, 3084, 62, 1954, 1415, 1558, 3829, 62, 16, 33411, 2656, 62, 7839, 796, 366, 53, 274, 8461, 46195, 7204, 2...
List the creation year, name and budget of each department.
SELECT creation, name, budget_in_billions FROM department
[ 8053, 262, 6282, 614, 11, 1438, 290, 4466, 286, 1123, 5011, 13, 46506, 6282, 11, 1438, 11, 4466, 62, 259, 62, 35546, 507, 16034, 5011 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 262, 6282, 614, 11, 1438, 290, 4466, 286, 1123, 5011, 13, 46506, 6282, 11, 1438, 11, 4466, 62, 259, 62, 35546, 507, 16034, 5011 ]
what is the name of a procedure that patient 73713 has been given for two times since 11/2105?
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 737...
[ 10919, 318, 262, 1438, 286, 257, 8771, 326, 5827, 37517, 1485, 468, 587, 1813, 329, 734, 1661, 1201, 1367, 14, 17, 13348, 30, 46506, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 1676, 771...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1438, 286, 257, 8771, 326, 5827, 37517, 1485, 468, 587, 1813, 329, 734, 1661, 1201, 1367, 14, 17, 13348, 30, 46506, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 1676, 771...
posts with more than 2 comments before the first period.
SELECT SUBSTRING(Body, 0, (STR_POSITION(Body, '.') + 1)), STR_POSITION(Body, '.') + 1, Body FROM Posts WHERE CommentCount > 2
[ 24875, 351, 517, 621, 362, 3651, 878, 262, 717, 2278, 13, 46506, 28932, 18601, 2751, 7, 25842, 11, 657, 11, 357, 18601, 62, 37997, 17941, 7, 25842, 11, 705, 2637, 8, 1343, 352, 36911, 19269, 62, 37997, 17941, 7, 25842, 11, 705, 2637...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24875, 351, 517, 621, 362, 3651, 878, 262, 717, 2278, 13, 46506, 28932, 18601, 2751, 7, 25842, 11, 657, 11, 357, 18601, 62, 37997, 17941, 7, 25842, 11, 705, 2637, 8, 1343, 352, 36911, 19269, 62, 37997, 17941, 7, 25842, 11, 705, 2637...