instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
patient 013-23115 has any disease diagnosed since 6 years ago?
SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-23115')) AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(...
[ 26029, 5534, 18, 12, 1954, 15363, 468, 597, 4369, 14641, 1201, 718, 812, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 13669, 33411, 13669, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26029, 5534, 18, 12, 1954, 15363, 468, 597, 4369, 14641, 1201, 718, 812, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 13669, 33411, 13669, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 1...
peter maes and hein vanhaezebrouck are both a part of which division ?
SELECT "division" FROM table_204_517 WHERE "name" = 'peter maes'
[ 79, 2357, 17266, 274, 290, 339, 259, 5719, 3099, 8471, 1765, 472, 694, 389, 1111, 257, 636, 286, 543, 7297, 5633, 46506, 366, 21426, 1, 16034, 3084, 62, 18638, 62, 48170, 33411, 366, 3672, 1, 796, 705, 79, 2357, 17266, 274, 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 ]
[ 79, 2357, 17266, 274, 290, 339, 259, 5719, 3099, 8471, 1765, 472, 694, 389, 1111, 257, 636, 286, 543, 7297, 5633, 46506, 366, 21426, 1, 16034, 3084, 62, 18638, 62, 48170, 33411, 366, 3672, 1, 796, 705, 79, 2357, 17266, 274, 6 ]
How many home games by each year (bin the year attr into weekdays interval)? Give me a line chart, list X-axis from low to high order.
SELECT year, COUNT(year) FROM home_game ORDER BY year
[ 2437, 867, 1363, 1830, 416, 1123, 614, 357, 8800, 262, 614, 708, 81, 656, 1285, 12545, 16654, 19427, 13786, 502, 257, 1627, 8262, 11, 1351, 1395, 12, 22704, 422, 1877, 284, 1029, 1502, 13, 46506, 614, 11, 327, 28270, 7, 1941, 8, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1363, 1830, 416, 1123, 614, 357, 8800, 262, 614, 708, 81, 656, 1285, 12545, 16654, 19427, 13786, 502, 257, 1627, 8262, 11, 1351, 1395, 12, 22704, 422, 1877, 284, 1029, 1502, 13, 46506, 614, 11, 327, 28270, 7, 1941, 8, 160...
Draw a bar chart of last name versus department_id, and order in desc by the X please.
SELECT LAST_NAME, DEPARTMENT_ID FROM employees ORDER BY LAST_NAME DESC
[ 25302, 257, 2318, 8262, 286, 938, 1438, 9051, 5011, 62, 312, 11, 290, 1502, 287, 1715, 416, 262, 1395, 3387, 13, 46506, 41894, 62, 20608, 11, 5550, 30709, 10979, 62, 2389, 16034, 4409, 38678, 11050, 41894, 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 ]
[ 25302, 257, 2318, 8262, 286, 938, 1438, 9051, 5011, 62, 312, 11, 290, 1502, 287, 1715, 416, 262, 1395, 3387, 13, 46506, 41894, 62, 20608, 11, 5550, 30709, 10979, 62, 2389, 16034, 4409, 38678, 11050, 41894, 62, 20608, 22196, 34 ]
How many heats had 2 lanes, a rank above 75, and nationality of Madagascar?
SELECT COUNT("Heat") FROM table_33596 WHERE "Lane" = '2' AND "Rank" > '75' AND "Nationality" = 'madagascar'
[ 2437, 867, 37876, 550, 362, 15296, 11, 257, 4279, 2029, 5441, 11, 290, 29835, 286, 46694, 30, 46506, 327, 28270, 7203, 39596, 4943, 16034, 3084, 62, 2091, 45734, 33411, 366, 43, 1531, 1, 796, 705, 17, 6, 5357, 366, 27520, 1, 1875, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 37876, 550, 362, 15296, 11, 257, 4279, 2029, 5441, 11, 290, 29835, 286, 46694, 30, 46506, 327, 28270, 7203, 39596, 4943, 16034, 3084, 62, 2091, 45734, 33411, 366, 43, 1531, 1, 796, 705, 17, 6, 5357, 366, 27520, 1, 1875, 7...
What is the 25 to 29 maximum if 30 to 34 is 1357?
SELECT MIN("25 to 29") FROM table_20829 WHERE "30 to 34" = '1357'
[ 2061, 318, 262, 1679, 284, 2808, 5415, 611, 1542, 284, 4974, 318, 1511, 3553, 30, 46506, 20625, 7203, 1495, 284, 2808, 4943, 16034, 3084, 62, 21315, 1959, 33411, 366, 1270, 284, 4974, 1, 796, 705, 1485, 3553, 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 ]
[ 2061, 318, 262, 1679, 284, 2808, 5415, 611, 1542, 284, 4974, 318, 1511, 3553, 30, 46506, 20625, 7203, 1495, 284, 2808, 4943, 16034, 3084, 62, 21315, 1959, 33411, 366, 1270, 284, 4974, 1, 796, 705, 1485, 3553, 6 ]
list the cheapest flight from CHARLOTTE to MEMPHIS
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, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CHARLOTTE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY...
[ 4868, 262, 28918, 5474, 422, 28521, 43, 2394, 9328, 284, 35153, 11909, 1797, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28918, 5474, 422, 28521, 43, 2394, 9328, 284, 35153, 11909, 1797, 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,...
What is the lowest gold medals of a rank 12 team?
SELECT MIN("Gold") FROM table_53220 WHERE "Rank" = '12'
[ 2061, 318, 262, 9016, 3869, 28057, 286, 257, 4279, 1105, 1074, 30, 46506, 20625, 7203, 13306, 4943, 16034, 3084, 62, 20, 2624, 1238, 33411, 366, 27520, 1, 796, 705, 1065, 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, 318, 262, 9016, 3869, 28057, 286, 257, 4279, 1105, 1074, 30, 46506, 20625, 7203, 13306, 4943, 16034, 3084, 62, 20, 2624, 1238, 33411, 366, 27520, 1, 796, 705, 1065, 6 ]
How many games were lost that had goals against of 5?
SELECT "Lost" FROM table_37513 WHERE "Goals against" = '5'
[ 2437, 867, 1830, 547, 2626, 326, 550, 4661, 1028, 286, 642, 30, 46506, 366, 31042, 1, 16034, 3084, 62, 22318, 1485, 33411, 366, 5247, 874, 1028, 1, 796, 705, 20, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1830, 547, 2626, 326, 550, 4661, 1028, 286, 642, 30, 46506, 366, 31042, 1, 16034, 3084, 62, 22318, 1485, 33411, 366, 5247, 874, 1028, 1, 796, 705, 20, 6 ]
What is the lowest jersey # of the player with a height of 191 cm from the New Jersey Devils in 2008-2009?
SELECT MIN("Jersey #") FROM table_40356 WHERE "Height (cm)" = '191' AND "2008\u20132009 Team" = 'new jersey devils'
[ 2061, 318, 262, 9016, 22383, 1303, 286, 262, 2137, 351, 257, 6001, 286, 31009, 12067, 422, 262, 968, 8221, 26199, 287, 3648, 12, 10531, 30, 46506, 20625, 7203, 36134, 4397, 1303, 4943, 16034, 3084, 62, 1821, 32066, 33411, 366, 23106, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22383, 1303, 286, 262, 2137, 351, 257, 6001, 286, 31009, 12067, 422, 262, 968, 8221, 26199, 287, 3648, 12, 10531, 30, 46506, 20625, 7203, 36134, 4397, 1303, 4943, 16034, 3084, 62, 1821, 32066, 33411, 366, 23106, 35...
Who has a career that has test larger than 41, catches over 33, and a total dismissals rate of 147?
SELECT test_career FROM table_name_46 WHERE tests > 41 AND catches > 33 AND total_dismissals = 147
[ 8241, 468, 257, 3451, 326, 468, 1332, 4025, 621, 6073, 11, 17591, 625, 4747, 11, 290, 257, 2472, 6735, 874, 2494, 286, 22909, 30, 46506, 1332, 62, 6651, 263, 16034, 3084, 62, 3672, 62, 3510, 33411, 5254, 1875, 6073, 5357, 17591, 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 ]
[ 8241, 468, 257, 3451, 326, 468, 1332, 4025, 621, 6073, 11, 17591, 625, 4747, 11, 290, 257, 2472, 6735, 874, 2494, 286, 22909, 30, 46506, 1332, 62, 6651, 263, 16034, 3084, 62, 3672, 62, 3510, 33411, 5254, 1875, 6073, 5357, 17591, 1875,...
Who won when robert kudelski finished with under 13 weeks?
SELECT winner FROM table_name_89 WHERE _number_of_weeks < 13 AND third_place = "robert kudelski"
[ 8241, 1839, 618, 686, 4835, 479, 463, 1424, 4106, 5201, 351, 739, 1511, 2745, 30, 46506, 8464, 16034, 3084, 62, 3672, 62, 4531, 33411, 4808, 17618, 62, 1659, 62, 732, 2573, 1279, 1511, 5357, 2368, 62, 5372, 796, 366, 305, 4835, 479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 618, 686, 4835, 479, 463, 1424, 4106, 5201, 351, 739, 1511, 2745, 30, 46506, 8464, 16034, 3084, 62, 3672, 62, 4531, 33411, 4808, 17618, 62, 1659, 62, 732, 2573, 1279, 1511, 5357, 2368, 62, 5372, 796, 366, 305, 4835, 479, ...
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by weekday, and show y axis from high to low order.
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) DESC
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2033, 286, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 905, 331, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2033, 286, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 905, 331, ...
Find the number of students who took some course and got A or C and group by first name in a bar chart, and rank by the x-axis from high to low please.
SELECT STU_FNAME, COUNT(STU_FNAME) FROM STUDENT AS T1 JOIN ENROLL AS T2 ON T1.STU_NUM = T2.STU_NUM WHERE T2.ENROLL_GRADE = 'C' OR T2.ENROLL_GRADE = 'A' GROUP BY STU_FNAME ORDER BY STU_FNAME DESC
[ 16742, 262, 1271, 286, 2444, 508, 1718, 617, 1781, 290, 1392, 317, 393, 327, 290, 1448, 416, 717, 1438, 287, 257, 2318, 8262, 11, 290, 4279, 416, 262, 2124, 12, 22704, 422, 1029, 284, 1877, 3387, 13, 46506, 3563, 52, 62, 37, 20608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 1271, 286, 2444, 508, 1718, 617, 1781, 290, 1392, 317, 393, 327, 290, 1448, 416, 717, 1438, 287, 257, 2318, 8262, 11, 290, 4279, 416, 262, 2124, 12, 22704, 422, 1029, 284, 1877, 3387, 13, 46506, 3563, 52, 62, 37, 20608, ...
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of first_name and manager_id , sort FIRST_NAME in desc order.
SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME DESC
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 717, 62, 3672, 290, 4706, 62, 312, 837, 3297, 31328, 62, 20608, 287, 1715, 1502,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 717, 62, 3672, 290, 4706, 62, 312, 837, 3297, 31328, 62, 20608, 287, 1715, 1502,...
How many seasons featured 29 conversions?
SELECT COUNT("Penalties") FROM table_23734 WHERE "Conversions" = '29'
[ 2437, 867, 7028, 8096, 2808, 32626, 30, 46506, 327, 28270, 7203, 25553, 10355, 4943, 16034, 3084, 62, 24693, 2682, 33411, 366, 3103, 47178, 1, 796, 705, 1959, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 7028, 8096, 2808, 32626, 30, 46506, 327, 28270, 7203, 25553, 10355, 4943, 16034, 3084, 62, 24693, 2682, 33411, 366, 3103, 47178, 1, 796, 705, 1959, 6 ]
What type of surface did Thomaz Bellucci play against tommy robredo?
SELECT surface FROM table_name_66 WHERE opponent = "tommy robredo"
[ 2061, 2099, 286, 4417, 750, 4323, 1031, 7459, 27501, 711, 1028, 16667, 1820, 3857, 48454, 30, 46506, 4417, 16034, 3084, 62, 3672, 62, 2791, 33411, 6125, 796, 366, 39532, 1820, 3857, 48454, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4417, 750, 4323, 1031, 7459, 27501, 711, 1028, 16667, 1820, 3857, 48454, 30, 46506, 4417, 16034, 3084, 62, 3672, 62, 2791, 33411, 6125, 796, 366, 39532, 1820, 3857, 48454, 1 ]
What was the score of the game against portland?
SELECT "Score" FROM table_3868 WHERE "Team" = 'Portland'
[ 2061, 373, 262, 4776, 286, 262, 983, 1028, 2493, 1044, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2548, 3104, 33411, 366, 15592, 1, 796, 705, 45330, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 286, 262, 983, 1028, 2493, 1044, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2548, 3104, 33411, 366, 15592, 1, 796, 705, 45330, 6 ]
Show me the proportion on what is the code of each location and the number of documents in that location?
SELECT Location_Code, COUNT(*) FROM Document_Locations GROUP BY Location_Code
[ 15307, 502, 262, 9823, 319, 644, 318, 262, 2438, 286, 1123, 4067, 290, 262, 1271, 286, 4963, 287, 326, 4067, 30, 46506, 13397, 62, 10669, 11, 327, 28270, 7, 28104, 16034, 16854, 62, 43, 20968, 44441, 11050, 13397, 62, 10669 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 502, 262, 9823, 319, 644, 318, 262, 2438, 286, 1123, 4067, 290, 262, 1271, 286, 4963, 287, 326, 4067, 30, 46506, 13397, 62, 10669, 11, 327, 28270, 7, 28104, 16034, 16854, 62, 43, 20968, 44441, 11050, 13397, 62, 10669 ]
Bar graph to show meter_100 from different meter 400
SELECT meter_400, meter_100 FROM swimmer
[ 10374, 4823, 284, 905, 16430, 62, 3064, 422, 1180, 16430, 7337, 46506, 16430, 62, 7029, 11, 16430, 62, 3064, 16034, 9422, 647 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10374, 4823, 284, 905, 16430, 62, 3064, 422, 1180, 16430, 7337, 46506, 16430, 62, 7029, 11, 16430, 62, 3064, 16034, 9422, 647 ]
Badge progress for Curious, Inquisitive, and Socratic. For users interested in their badge progress.
SELECT CASE WHEN days >= 5 THEN 'Yes' ELSE CONCAT(days, '/', 5) END AS Curious, CASE WHEN days >= 30 THEN 'Yes' ELSE CONCAT(days, '/', 30) END AS Inquisitive, CASE WHEN days >= 100 THEN 'Yes' ELSE CONCAT(days, '/', 100) END AS Socratic FROM (SELECT COUNT(*) AS days FROM (SELECT DATEDIFF(d, CreationDate, GETDATE()) AS c...
[ 22069, 469, 4371, 329, 44269, 11, 38010, 1800, 11, 290, 311, 15405, 13, 1114, 2985, 4609, 287, 511, 23009, 4371, 13, 46506, 42001, 42099, 1528, 18189, 642, 42243, 705, 5297, 6, 17852, 5188, 39962, 1404, 7, 12545, 11, 31051, 3256, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 22069, 469, 4371, 329, 44269, 11, 38010, 1800, 11, 290, 311, 15405, 13, 1114, 2985, 4609, 287, 511, 23009, 4371, 13, 46506, 42001, 42099, 1528, 18189, 642, 42243, 705, 5297, 6, 17852, 5188, 39962, 1404, 7, 12545, 11, 31051, 3256, 642, ...
Were there Bulletins to all contacts of the proprietary license created by Microsoft with no transport layer of security?
SELECT "Bulletins to all contacts" FROM table_43227 WHERE "Transport Layer Security" = 'no' AND "License" = 'proprietary' AND "Creator" = 'microsoft'
[ 35653, 612, 18003, 1040, 284, 477, 13961, 286, 262, 20622, 5964, 2727, 416, 5413, 351, 645, 4839, 7679, 286, 2324, 30, 46506, 366, 33481, 1616, 1040, 284, 477, 13961, 1, 16034, 3084, 62, 3559, 24403, 33411, 366, 8291, 634, 34398, 4765, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 35653, 612, 18003, 1040, 284, 477, 13961, 286, 262, 20622, 5964, 2727, 416, 5413, 351, 645, 4839, 7679, 286, 2324, 30, 46506, 366, 33481, 1616, 1040, 284, 477, 13961, 1, 16034, 3084, 62, 3559, 24403, 33411, 366, 8291, 634, 34398, 4765, ...
Bar graph to show the number of last name from different last name, list X-axis in desc order.
SELECT last_name, COUNT(last_name) FROM People GROUP BY last_name ORDER BY last_name DESC
[ 10374, 4823, 284, 905, 262, 1271, 286, 938, 1438, 422, 1180, 938, 1438, 11, 1351, 1395, 12, 22704, 287, 1715, 1502, 13, 46506, 938, 62, 3672, 11, 327, 28270, 7, 12957, 62, 3672, 8, 16034, 4380, 44441, 11050, 938, 62, 3672, 38678, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10374, 4823, 284, 905, 262, 1271, 286, 938, 1438, 422, 1180, 938, 1438, 11, 1351, 1395, 12, 22704, 287, 1715, 1502, 13, 46506, 938, 62, 3672, 11, 327, 28270, 7, 12957, 62, 3672, 8, 16034, 4380, 44441, 11050, 938, 62, 3672, 38678, 11...
What grid has an average time of +22.505 and laps larger than 23?
SELECT AVG(grid) FROM table_name_7 WHERE time = "+22.505" AND laps > 23
[ 2061, 10706, 468, 281, 2811, 640, 286, 1343, 1828, 13, 31654, 290, 24590, 4025, 621, 2242, 30, 46506, 35224, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 22, 33411, 640, 796, 43825, 1828, 13, 31654, 1, 5357, 24590, 1875, 2242 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10706, 468, 281, 2811, 640, 286, 1343, 1828, 13, 31654, 290, 24590, 4025, 621, 2242, 30, 46506, 35224, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 22, 33411, 640, 796, 43825, 1828, 13, 31654, 1, 5357, 24590, 1875, 2242 ]
what is average age of patients whose admission type is urgent and days of hospital stay is 6?
SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.days_stay = "6"
[ 10919, 318, 2811, 2479, 286, 3871, 3025, 13938, 2099, 318, 18039, 290, 1528, 286, 4436, 2652, 318, 718, 30, 46506, 35224, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 324, 3411, 62, 4906, 796, 366, 4261, 38, 3525, 1, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2811, 2479, 286, 3871, 3025, 13938, 2099, 318, 18039, 290, 1528, 286, 4436, 2652, 318, 718, 30, 46506, 35224, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 324, 3411, 62, 4906, 796, 366, 4261, 38, 3525, 1, 5...
During the Fall and Winter , what upper-level electives are offered ?
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (semester.semester = ...
[ 7191, 262, 7218, 290, 10633, 837, 644, 6727, 12, 5715, 1742, 1083, 389, 4438, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, 2364, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 7191, 262, 7218, 290, 10633, 837, 644, 6727, 12, 5715, 1742, 1083, 389, 4438, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, 2364, 1...
what is procedure long title of subject id 29541?
SELECT procedures.long_title FROM procedures WHERE procedures.subject_id = "29541"
[ 10919, 318, 8771, 890, 3670, 286, 2426, 4686, 34772, 3901, 30, 46506, 9021, 13, 6511, 62, 7839, 16034, 9021, 33411, 9021, 13, 32796, 62, 312, 796, 366, 25710, 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 ]
[ 10919, 318, 8771, 890, 3670, 286, 2426, 4686, 34772, 3901, 30, 46506, 9021, 13, 6511, 62, 7839, 16034, 9021, 33411, 9021, 13, 32796, 62, 312, 796, 366, 25710, 3901, 1 ]
If the site is sanford stadium athens, ga, what is the date?
SELECT "Date" FROM table_29073 WHERE "Site" = 'Sanford Stadium • Athens, GA'
[ 1532, 262, 2524, 318, 5336, 3841, 10308, 379, 5135, 11, 31986, 11, 644, 318, 262, 3128, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 1959, 2998, 18, 33411, 366, 29123, 1, 796, 705, 15017, 3841, 10499, 5595, 21891, 11, 14545, 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 ]
[ 1532, 262, 2524, 318, 5336, 3841, 10308, 379, 5135, 11, 31986, 11, 644, 318, 262, 3128, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 1959, 2998, 18, 33411, 366, 29123, 1, 796, 705, 15017, 3841, 10499, 5595, 21891, 11, 14545, 6 ]
Visualize a bar chart for how many authors submit to the workshop, sort Author in descending order please.
SELECT Author, COUNT(Author) FROM submission GROUP BY Author ORDER BY Author DESC
[ 36259, 1096, 257, 2318, 8262, 329, 703, 867, 7035, 9199, 284, 262, 20243, 11, 3297, 6434, 287, 31491, 1502, 3387, 13, 46506, 6434, 11, 327, 28270, 7, 13838, 8, 16034, 14498, 44441, 11050, 6434, 38678, 11050, 6434, 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 ]
[ 36259, 1096, 257, 2318, 8262, 329, 703, 867, 7035, 9199, 284, 262, 20243, 11, 3297, 6434, 287, 31491, 1502, 3387, 13, 46506, 6434, 11, 327, 28270, 7, 13838, 8, 16034, 14498, 44441, 11050, 6434, 38678, 11050, 6434, 22196, 34 ]
What is the Hanyu Pinyin with an area of 400?
SELECT "Hanyu Pinyin" FROM table_53432 WHERE "Area (km\u00b2)" = '400'
[ 2061, 318, 262, 367, 1092, 84, 350, 3541, 259, 351, 281, 1989, 286, 7337, 30, 46506, 366, 39, 1092, 84, 350, 3541, 259, 1, 16034, 3084, 62, 20, 2682, 2624, 33411, 366, 30547, 357, 13276, 59, 84, 405, 65, 17, 16725, 796, 705, 7029,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 367, 1092, 84, 350, 3541, 259, 351, 281, 1989, 286, 7337, 30, 46506, 366, 39, 1092, 84, 350, 3541, 259, 1, 16034, 3084, 62, 20, 2682, 2624, 33411, 366, 30547, 357, 13276, 59, 84, 405, 65, 17, 16725, 796, 705, 7029,...
What is the average in 2010 of the team with a code of (IATA/ICAO) or cra/lrcv?
SELECT "2010" FROM table_67116 WHERE "Code (IATA/ICAO)" = 'cra/lrcv'
[ 2061, 318, 262, 2811, 287, 3050, 286, 262, 1074, 351, 257, 2438, 286, 357, 40, 13563, 14, 25241, 46, 8, 393, 15671, 14, 75, 6015, 85, 30, 46506, 366, 10333, 1, 16034, 3084, 62, 3134, 18298, 33411, 366, 10669, 357, 40, 13563, 14, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 287, 3050, 286, 262, 1074, 351, 257, 2438, 286, 357, 40, 13563, 14, 25241, 46, 8, 393, 15671, 14, 75, 6015, 85, 30, 46506, 366, 10333, 1, 16034, 3084, 62, 3134, 18298, 33411, 366, 10669, 357, 40, 13563, 14, 2...
What person had an opponent of linda wessberg and scored an average score?
SELECT AVG(score) FROM table_name_4 WHERE player = "linda wessberg"
[ 2061, 1048, 550, 281, 6125, 286, 300, 22261, 266, 408, 3900, 290, 7781, 281, 2811, 4776, 30, 46506, 35224, 7, 26675, 8, 16034, 3084, 62, 3672, 62, 19, 33411, 2137, 796, 366, 75, 22261, 266, 408, 3900, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1048, 550, 281, 6125, 286, 300, 22261, 266, 408, 3900, 290, 7781, 281, 2811, 4776, 30, 46506, 35224, 7, 26675, 8, 16034, 3084, 62, 3672, 62, 19, 33411, 2137, 796, 366, 75, 22261, 266, 408, 3900, 1 ]
What is the score in the final of the tournament with a clay surface on 18 April 2011?
SELECT score_in_the_final FROM table_name_88 WHERE surface = "clay" AND date = "18 april 2011"
[ 2061, 318, 262, 4776, 287, 262, 2457, 286, 262, 7756, 351, 257, 21558, 4417, 319, 1248, 3035, 2813, 30, 46506, 4776, 62, 259, 62, 1169, 62, 20311, 16034, 3084, 62, 3672, 62, 3459, 33411, 4417, 796, 366, 565, 323, 1, 5357, 3128, 796,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4776, 287, 262, 2457, 286, 262, 7756, 351, 257, 21558, 4417, 319, 1248, 3035, 2813, 30, 46506, 4776, 62, 259, 62, 1169, 62, 20311, 16034, 3084, 62, 3672, 62, 3459, 33411, 4417, 796, 366, 565, 323, 1, 5357, 3128, 796,...
Can you tell me the lowest Chapter that has the Pinyin of dehua, and the Articles smaller than 16?
SELECT MIN("Chapter") FROM table_40042 WHERE "Pinyin" = 'dehua' AND "Articles" < '16'
[ 6090, 345, 1560, 502, 262, 9016, 7006, 326, 468, 262, 350, 3541, 259, 286, 390, 33061, 11, 290, 262, 22698, 4833, 621, 1467, 30, 46506, 20625, 7203, 14126, 4943, 16034, 3084, 62, 7029, 3682, 33411, 366, 47, 3541, 259, 1, 796, 705, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 6090, 345, 1560, 502, 262, 9016, 7006, 326, 468, 262, 350, 3541, 259, 286, 390, 33061, 11, 290, 262, 22698, 4833, 621, 1467, 30, 46506, 20625, 7203, 14126, 4943, 16034, 3084, 62, 7029, 3682, 33411, 366, 47, 3541, 259, 1, 796, 705, 2...
What is the record of the team with a St. Louis home?
SELECT record FROM table_name_18 WHERE home = "st. louis"
[ 2061, 318, 262, 1700, 286, 262, 1074, 351, 257, 520, 13, 5593, 1363, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 1507, 33411, 1363, 796, 366, 301, 13, 21081, 271, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 1074, 351, 257, 520, 13, 5593, 1363, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 1507, 33411, 1363, 796, 366, 301, 13, 21081, 271, 1 ]
give me the number of patients whose drug code is gcsf480i?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "GCSF480I"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 2563, 2438, 318, 308, 6359, 69, 22148, 72, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2563, 2438, 318, 308, 6359, 69, 22148, 72, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76...
What was the location of the game on February 2?
SELECT location_attendance FROM table_name_50 WHERE date = "february 2"
[ 2061, 373, 262, 4067, 286, 262, 983, 319, 3945, 362, 30, 46506, 4067, 62, 1078, 437, 590, 16034, 3084, 62, 3672, 62, 1120, 33411, 3128, 796, 366, 69, 1765, 3728, 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 ]
[ 2061, 373, 262, 4067, 286, 262, 983, 319, 3945, 362, 30, 46506, 4067, 62, 1078, 437, 590, 16034, 3084, 62, 3672, 62, 1120, 33411, 3128, 796, 366, 69, 1765, 3728, 362, 1 ]
What is the total number of titles written by Casey Johnson?
SELECT COUNT(title) FROM table_12419515_4 WHERE written_by = "Casey Johnson"
[ 2061, 318, 262, 2472, 1271, 286, 8714, 3194, 416, 21097, 5030, 30, 46506, 327, 28270, 7, 7839, 8, 16034, 3084, 62, 17464, 22186, 1314, 62, 19, 33411, 3194, 62, 1525, 796, 366, 20448, 88, 5030, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8714, 3194, 416, 21097, 5030, 30, 46506, 327, 28270, 7, 7839, 8, 16034, 3084, 62, 17464, 22186, 1314, 62, 19, 33411, 3194, 62, 1525, 796, 366, 20448, 88, 5030, 1 ]
What is Player, when Country is 'United States', when Place is 'T10', and when Score is '68-71=139'?
SELECT "Player" FROM table_60733 WHERE "Country" = 'united states' AND "Place" = 't10' AND "Score" = '68-71=139'
[ 2061, 318, 7853, 11, 618, 12946, 318, 705, 17013, 1829, 3256, 618, 8474, 318, 705, 51, 940, 3256, 290, 618, 15178, 318, 705, 3104, 12, 4869, 28, 20219, 30960, 46506, 366, 14140, 1, 16034, 3084, 62, 31980, 2091, 33411, 366, 33921, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7853, 11, 618, 12946, 318, 705, 17013, 1829, 3256, 618, 8474, 318, 705, 51, 940, 3256, 290, 618, 15178, 318, 705, 3104, 12, 4869, 28, 20219, 30960, 46506, 366, 14140, 1, 16034, 3084, 62, 31980, 2091, 33411, 366, 33921, 1, ...
tell me all the airports in the NEW YORK area
SELECT DISTINCT airport.airport_code FROM airport, airport_service, city WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'NEW YORK'
[ 33331, 502, 477, 262, 22600, 287, 262, 12682, 28154, 1989, 46506, 360, 8808, 1268, 4177, 9003, 13, 958, 634, 62, 8189, 16034, 9003, 11, 9003, 62, 15271, 11, 1748, 33411, 9003, 13, 958, 634, 62, 8189, 796, 9003, 62, 15271, 13, 958, 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...
[ 33331, 502, 477, 262, 22600, 287, 262, 12682, 28154, 1989, 46506, 360, 8808, 1268, 4177, 9003, 13, 958, 634, 62, 8189, 16034, 9003, 11, 9003, 62, 15271, 11, 1748, 33411, 9003, 13, 958, 634, 62, 8189, 796, 9003, 62, 15271, 13, 958, 6...
What is the Director for the episode titled some lapse of time ?
SELECT "Director" FROM table_7091 WHERE "Title" = '“some lapse of time”'
[ 2061, 318, 262, 5890, 329, 262, 4471, 11946, 617, 42689, 286, 640, 5633, 46506, 366, 28702, 1, 16034, 3084, 62, 2154, 6420, 33411, 366, 19160, 1, 796, 705, 447, 250, 11246, 42689, 286, 640, 447, 251, 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, 318, 262, 5890, 329, 262, 4471, 11946, 617, 42689, 286, 640, 5633, 46506, 366, 28702, 1, 16034, 3084, 62, 2154, 6420, 33411, 366, 19160, 1, 796, 705, 447, 250, 11246, 42689, 286, 640, 447, 251, 6 ]
a solid organ or bone marrow transplant patients.
SELECT * FROM table_train_14 WHERE organ_transplantation = 1 OR bone_marrow_transplant = 1
[ 64, 4735, 1618, 393, 9970, 44173, 23319, 3871, 13, 46506, 1635, 16034, 3084, 62, 27432, 62, 1415, 33411, 1618, 62, 7645, 15060, 341, 796, 352, 6375, 9970, 62, 3876, 808, 62, 7645, 15060, 796, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 64, 4735, 1618, 393, 9970, 44173, 23319, 3871, 13, 46506, 1635, 16034, 3084, 62, 27432, 62, 1415, 33411, 1618, 62, 7645, 15060, 341, 796, 352, 6375, 9970, 62, 3876, 808, 62, 7645, 15060, 796, 352 ]
when was patient 030-3372 given for the first time a lab test until 12/2101?
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-3372')) AND STRFTIME('%y-%m', lab.labresulttime) <= '2101-12' ORDER BY lab.labr...
[ 12518, 373, 5827, 657, 1270, 12, 2091, 4761, 1813, 329, 262, 717, 640, 257, 2248, 1332, 1566, 1105, 14, 2481, 486, 30, 46506, 2248, 13, 23912, 20274, 2435, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5827, 657, 1270, 12, 2091, 4761, 1813, 329, 262, 717, 640, 257, 2248, 1332, 1566, 1105, 14, 2481, 486, 30, 46506, 2248, 13, 23912, 20274, 2435, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, ...
what is insurance of subject id 81923?
SELECT demographic.insurance FROM demographic WHERE demographic.subject_id = "81923"
[ 10919, 318, 5096, 286, 2426, 4686, 807, 1129, 1954, 30, 46506, 16728, 13, 1040, 3874, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 23, 1129, 1954, 1 ]
[ 1, 1, 1, 1, 1, 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, 5096, 286, 2426, 4686, 807, 1129, 1954, 30, 46506, 16728, 13, 1040, 3874, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 23, 1129, 1954, 1 ]
what event comes after ufc 121 ?
SELECT "event" FROM table_204_363 WHERE id = (SELECT id FROM table_204_363 WHERE "event" = 'ufc 121') + 1
[ 10919, 1785, 2058, 706, 334, 16072, 20416, 5633, 46506, 366, 15596, 1, 16034, 3084, 62, 18638, 62, 35447, 33411, 4686, 796, 357, 46506, 4686, 16034, 3084, 62, 18638, 62, 35447, 33411, 366, 15596, 1, 796, 705, 3046, 66, 20416, 11537, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1785, 2058, 706, 334, 16072, 20416, 5633, 46506, 366, 15596, 1, 16034, 3084, 62, 18638, 62, 35447, 33411, 4686, 796, 357, 46506, 4686, 16034, 3084, 62, 18638, 62, 35447, 33411, 366, 15596, 1, 796, 705, 3046, 66, 20416, 11537, 134...
What theme has special notes from calgary flames gift set?
SELECT "Theme" FROM table_67145 WHERE "Special notes" = 'from calgary flames gift set'
[ 2061, 7505, 468, 2041, 4710, 422, 2386, 14849, 16209, 6979, 900, 30, 46506, 366, 47863, 1, 16034, 3084, 62, 3134, 18781, 33411, 366, 13409, 4710, 1, 796, 705, 6738, 2386, 14849, 16209, 6979, 900, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 7505, 468, 2041, 4710, 422, 2386, 14849, 16209, 6979, 900, 30, 46506, 366, 47863, 1, 16034, 3084, 62, 3134, 18781, 33411, 366, 13409, 4710, 1, 796, 705, 6738, 2386, 14849, 16209, 6979, 900, 6 ]
Find the number of rooms with more than 50 capacity for each building Show bar chart, and could you sort by the the total number in desc?
SELECT building, COUNT(*) FROM classroom WHERE capacity > 50 GROUP BY building ORDER BY COUNT(*) DESC
[ 16742, 262, 1271, 286, 9519, 351, 517, 621, 2026, 5339, 329, 1123, 2615, 5438, 2318, 8262, 11, 290, 714, 345, 3297, 416, 262, 262, 2472, 1271, 287, 1715, 30, 46506, 2615, 11, 327, 28270, 7, 28104, 16034, 15806, 33411, 5339, 1875, 2026...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16742, 262, 1271, 286, 9519, 351, 517, 621, 2026, 5339, 329, 1123, 2615, 5438, 2318, 8262, 11, 290, 714, 345, 3297, 416, 262, 262, 2472, 1271, 287, 1715, 30, 46506, 2615, 11, 327, 28270, 7, 28104, 16034, 15806, 33411, 5339, 1875, 2026...
What is the away team at lake oval?
SELECT away_team FROM table_name_28 WHERE venue = "lake oval"
[ 2061, 318, 262, 1497, 1074, 379, 13546, 41186, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 2078, 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, 318, 262, 1497, 1074, 379, 13546, 41186, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 2078, 33411, 14359, 796, 366, 27180, 41186, 1 ]
Which Attendance has an Opponent of carolina panthers?
SELECT "Attendance" FROM table_43422 WHERE "Opponent" = 'carolina panthers'
[ 13828, 46502, 590, 468, 281, 9385, 3471, 286, 1097, 47196, 15857, 7084, 30, 46506, 366, 8086, 437, 590, 1, 16034, 3084, 62, 47101, 1828, 33411, 366, 27524, 3471, 1, 796, 705, 7718, 47196, 15857, 7084, 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 ]
[ 13828, 46502, 590, 468, 281, 9385, 3471, 286, 1097, 47196, 15857, 7084, 30, 46506, 366, 8086, 437, 590, 1, 16034, 3084, 62, 47101, 1828, 33411, 366, 27524, 3471, 1, 796, 705, 7718, 47196, 15857, 7084, 6 ]
What date was the United States the region?
SELECT "Date" FROM table_46826 WHERE "Region" = 'united states'
[ 2061, 3128, 373, 262, 1578, 1829, 262, 3814, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 38472, 2075, 33411, 366, 47371, 1, 796, 705, 41187, 2585, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 3128, 373, 262, 1578, 1829, 262, 3814, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 38472, 2075, 33411, 366, 47371, 1, 796, 705, 41187, 2585, 6 ]
how many days has it been since the last stay of patient 033-22108 in the ward 1078 during this hospital visit?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '033-22108' AND patient.wardid = 1078 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1
[ 4919, 867, 1528, 468, 340, 587, 1201, 262, 938, 2652, 286, 5827, 657, 2091, 12, 1828, 15711, 287, 262, 15305, 838, 3695, 1141, 428, 4436, 3187, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 1528, 468, 340, 587, 1201, 262, 938, 2652, 286, 5827, 657, 2091, 12, 1828, 15711, 287, 262, 15305, 838, 3695, 1141, 428, 4436, 3187, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, ...
What was the team's result in week 4?
SELECT "Result" FROM table_19702 WHERE "Week" = '4'
[ 2061, 373, 262, 1074, 338, 1255, 287, 1285, 604, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 30986, 17, 33411, 366, 20916, 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 ]
[ 2061, 373, 262, 1074, 338, 1255, 287, 1285, 604, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 30986, 17, 33411, 366, 20916, 1, 796, 705, 19, 6 ]
What was the lowest number of votes Scotland cast?
SELECT MIN("Scotland") FROM table_15959
[ 2061, 373, 262, 9016, 1271, 286, 5690, 8838, 3350, 30, 46506, 20625, 7203, 47230, 4943, 16034, 3084, 62, 19707, 3270 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 9016, 1271, 286, 5690, 8838, 3350, 30, 46506, 20625, 7203, 47230, 4943, 16034, 3084, 62, 19707, 3270 ]
what is the game on june 29?
SELECT SUM(game) FROM table_name_75 WHERE date = "june 29"
[ 10919, 318, 262, 983, 319, 474, 1726, 2808, 30, 46506, 35683, 7, 6057, 8, 16034, 3084, 62, 3672, 62, 2425, 33411, 3128, 796, 366, 73, 1726, 2808, 1 ]
[ 1, 1, 1, 1, 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, 983, 319, 474, 1726, 2808, 30, 46506, 35683, 7, 6057, 8, 16034, 3084, 62, 3672, 62, 2425, 33411, 3128, 796, 366, 73, 1726, 2808, 1 ]
What is the episode number for episode title Leave Takers?
SELECT episode__number FROM table_2570269_2 WHERE episode_title = "Leave Takers"
[ 2061, 318, 262, 4471, 1271, 329, 4471, 3670, 17446, 309, 3979, 30, 46506, 4471, 834, 17618, 16034, 3084, 62, 1495, 2154, 26276, 62, 17, 33411, 4471, 62, 7839, 796, 366, 35087, 309, 3979, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4471, 1271, 329, 4471, 3670, 17446, 309, 3979, 30, 46506, 4471, 834, 17618, 16034, 3084, 62, 1495, 2154, 26276, 62, 17, 33411, 4471, 62, 7839, 796, 366, 35087, 309, 3979, 1 ]
Who was the winning driver for the Dutch Grand Prix?
SELECT winning_driver FROM table_name_25 WHERE race = "dutch grand prix"
[ 8241, 373, 262, 5442, 4639, 329, 262, 10914, 5675, 23832, 30, 46506, 5442, 62, 26230, 16034, 3084, 62, 3672, 62, 1495, 33411, 3234, 796, 366, 67, 7140, 4490, 1293, 87, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 5442, 4639, 329, 262, 10914, 5675, 23832, 30, 46506, 5442, 62, 26230, 16034, 3084, 62, 3672, 62, 1495, 33411, 3234, 796, 366, 67, 7140, 4490, 1293, 87, 1 ]
What is Score, when Player is 'Dow Finsterwald'?
SELECT "Score" FROM table_48003 WHERE "Player" = 'dow finsterwald'
[ 2061, 318, 15178, 11, 618, 7853, 318, 705, 35, 322, 4463, 1706, 21667, 30960, 46506, 366, 26595, 1, 16034, 3084, 62, 2780, 11245, 33411, 366, 14140, 1, 796, 705, 67, 322, 957, 1706, 21667, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 15178, 11, 618, 7853, 318, 705, 35, 322, 4463, 1706, 21667, 30960, 46506, 366, 26595, 1, 16034, 3084, 62, 2780, 11245, 33411, 366, 14140, 1, 796, 705, 67, 322, 957, 1706, 21667, 6 ]
Which slope length has a type of surface lift, and an elevation groundstation smaller than 1974, and a construction year(s) of 1971, and a Name or route of alpmatten 1?
SELECT "slope length" FROM table_79056 WHERE "type" = 'surface lift' AND "elevation groundstation" < '1974' AND "construction year(s)" = '1971' AND "Name or route" = 'alpmatten 1'
[ 13828, 22638, 4129, 468, 257, 2099, 286, 4417, 10303, 11, 290, 281, 22910, 2323, 17529, 4833, 621, 16489, 11, 290, 257, 5103, 614, 7, 82, 8, 286, 16382, 11, 290, 257, 6530, 393, 6339, 286, 435, 4426, 41769, 352, 30, 46506, 366, 6649...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22638, 4129, 468, 257, 2099, 286, 4417, 10303, 11, 290, 281, 22910, 2323, 17529, 4833, 621, 16489, 11, 290, 257, 5103, 614, 7, 82, 8, 286, 16382, 11, 290, 257, 6530, 393, 6339, 286, 435, 4426, 41769, 352, 30, 46506, 366, 6649...
What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385?
SELECT "Language" FROM table_36337 WHERE "Frequency" = '3 times per year' AND "ISSN" = '1136-7385'
[ 2061, 318, 262, 3303, 329, 257, 3989, 326, 468, 257, 8373, 286, 513, 1661, 583, 614, 290, 468, 281, 3180, 15571, 1271, 286, 1367, 2623, 12, 22, 27203, 30, 46506, 366, 32065, 1, 16034, 3084, 62, 2623, 31496, 33411, 366, 37, 28707, 1,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3303, 329, 257, 3989, 326, 468, 257, 8373, 286, 513, 1661, 583, 614, 290, 468, 281, 3180, 15571, 1271, 286, 1367, 2623, 12, 22, 27203, 30, 46506, 366, 32065, 1, 16034, 3084, 62, 2623, 31496, 33411, 366, 37, 28707, 1,...
What state is Tanya Plibersek from?
SELECT "State" FROM table_32627 WHERE "Member" = 'tanya plibersek'
[ 2061, 1181, 318, 309, 34183, 1345, 1856, 325, 74, 422, 30, 46506, 366, 9012, 1, 16034, 3084, 62, 39195, 1983, 33411, 366, 27608, 1, 796, 705, 83, 34183, 458, 1856, 325, 74, 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, 1181, 318, 309, 34183, 1345, 1856, 325, 74, 422, 30, 46506, 366, 9012, 1, 16034, 3084, 62, 39195, 1983, 33411, 366, 27608, 1, 796, 705, 83, 34183, 458, 1856, 325, 74, 6 ]
platelet count < 100000 / ml
SELECT * FROM table_test_27 WHERE platelet_count < 100000
[ 6816, 1616, 954, 1279, 1802, 830, 1220, 25962, 46506, 1635, 16034, 3084, 62, 9288, 62, 1983, 33411, 7480, 1616, 62, 9127, 1279, 1802, 830 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 6816, 1616, 954, 1279, 1802, 830, 1220, 25962, 46506, 1635, 16034, 3084, 62, 9288, 62, 1983, 33411, 7480, 1616, 62, 9127, 1279, 1802, 830 ]
is the number of enemy aircraft more or less than the other foes combined ?
SELECT (SELECT COUNT(*) FROM table_204_353 WHERE "foe" = 'enemy aircraft') > (SELECT COUNT(*) FROM table_204_353 WHERE "foe" <> 'enemy aircraft')
[ 271, 262, 1271, 286, 4472, 6215, 517, 393, 1342, 621, 262, 584, 20822, 5929, 5633, 46506, 357, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 33319, 33411, 366, 69, 2577, 1, 796, 705, 46970, 6215, 11537, 1875, 357, 46506, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 271, 262, 1271, 286, 4472, 6215, 517, 393, 1342, 621, 262, 584, 20822, 5929, 5633, 46506, 357, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 33319, 33411, 366, 69, 2577, 1, 796, 705, 46970, 6215, 11537, 1875, 357, 46506, 32...
Tell me the name for longitude more than 103.8 and latitude of -11.4
SELECT name FROM table_name_80 WHERE longitude > 103.8 AND latitude = -11.4
[ 24446, 502, 262, 1438, 329, 890, 3984, 517, 621, 15349, 13, 23, 290, 32477, 286, 532, 1157, 13, 19, 46506, 1438, 16034, 3084, 62, 3672, 62, 1795, 33411, 890, 3984, 1875, 15349, 13, 23, 5357, 32477, 796, 532, 1157, 13, 19 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24446, 502, 262, 1438, 329, 890, 3984, 517, 621, 15349, 13, 23, 290, 32477, 286, 532, 1157, 13, 19, 46506, 1438, 16034, 3084, 62, 3672, 62, 1795, 33411, 890, 3984, 1875, 15349, 13, 23, 5357, 32477, 796, 532, 1157, 13, 19 ]
What Player has a To par of +1 and a Score of 73-71-71=217?
SELECT player FROM table_name_24 WHERE to_par = "+1" AND score = 73 - 71 - 71 = 217
[ 2061, 7853, 468, 257, 1675, 1582, 286, 1343, 16, 290, 257, 15178, 286, 8854, 12, 4869, 12, 4869, 28, 24591, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 1731, 33411, 284, 62, 1845, 796, 43825, 16, 1, 5357, 4776, 796, 8854, 532, 9166,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7853, 468, 257, 1675, 1582, 286, 1343, 16, 290, 257, 15178, 286, 8854, 12, 4869, 12, 4869, 28, 24591, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 1731, 33411, 284, 62, 1845, 796, 43825, 16, 1, 5357, 4776, 796, 8854, 532, 9166,...
What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3 6, 6 4, [10 3]?
SELECT runner_up FROM table_name_18 WHERE third_place = "yevgeny kafelnikov" AND score = "3–6, 6–4, [10–3]"
[ 2061, 318, 262, 1438, 286, 262, 17490, 510, 618, 331, 1990, 5235, 88, 479, 1878, 417, 45451, 373, 2368, 1295, 290, 262, 4776, 373, 513, 718, 11, 718, 604, 11, 685, 940, 513, 60, 30, 46506, 17490, 62, 929, 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...
[ 2061, 318, 262, 1438, 286, 262, 17490, 510, 618, 331, 1990, 5235, 88, 479, 1878, 417, 45451, 373, 2368, 1295, 290, 262, 4776, 373, 513, 718, 11, 718, 604, 11, 685, 940, 513, 60, 30, 46506, 17490, 62, 929, 16034, 3084, 62, 3672, 62...
How many bank branches are there?
SELECT COUNT(*) FROM bank
[ 2437, 867, 3331, 13737, 389, 612, 30, 46506, 327, 28270, 7, 28104, 16034, 3331 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 3331, 13737, 389, 612, 30, 46506, 327, 28270, 7, 28104, 16034, 3331 ]
For those employees who did not have any job in the past, give me the comparison about the amount of hire_date over the hire_date bin hire_date by time by a bar chart, and show by the y axis in desc please.
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY COUNT(HIRE_DATE) DESC
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 1577, 502, 262, 7208, 546, 262, 2033, 286, 11078, 62, 4475, 625, 262, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 640, 416, 257, 2318, 8262, 11, 290, 905, 416, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 1577, 502, 262, 7208, 546, 262, 2033, 286, 11078, 62, 4475, 625, 262, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 640, 416, 257, 2318, 8262, 11, 290, 905, 416, 2...
Tell me the report for circuit of modena
SELECT "Report" FROM table_56810 WHERE "Circuit" = 'modena'
[ 24446, 502, 262, 989, 329, 10349, 286, 953, 8107, 46506, 366, 19100, 1, 16034, 3084, 62, 49211, 940, 33411, 366, 31560, 5013, 1, 796, 705, 4666, 8107, 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 ]
[ 24446, 502, 262, 989, 329, 10349, 286, 953, 8107, 46506, 366, 19100, 1, 16034, 3084, 62, 49211, 940, 33411, 366, 31560, 5013, 1, 796, 705, 4666, 8107, 6 ]
which incumbent died before john george montagu ?
SELECT "former incumbent" FROM table_204_820 WHERE "date" < (SELECT "date" FROM table_204_820 WHERE "former incumbent" = 'john george montagu') ORDER BY id DESC LIMIT 1
[ 4758, 23526, 3724, 878, 45610, 4903, 3643, 40689, 11433, 5633, 46506, 366, 16354, 23526, 1, 16034, 3084, 62, 18638, 62, 41739, 33411, 366, 4475, 1, 1279, 357, 46506, 366, 4475, 1, 16034, 3084, 62, 18638, 62, 41739, 33411, 366, 16354, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23526, 3724, 878, 45610, 4903, 3643, 40689, 11433, 5633, 46506, 366, 16354, 23526, 1, 16034, 3084, 62, 18638, 62, 41739, 33411, 366, 4475, 1, 1279, 357, 46506, 366, 4475, 1, 16034, 3084, 62, 18638, 62, 41739, 33411, 366, 16354, 23...
Show me a bar chart for what are the different ids and names of the stations that have had more than 12 bikes available?
SELECT name, id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12
[ 15307, 502, 257, 2318, 8262, 329, 644, 389, 262, 1180, 220, 2340, 290, 3891, 286, 262, 8985, 326, 423, 550, 517, 621, 1105, 16715, 1695, 30, 46506, 1438, 11, 4686, 16034, 4429, 7054, 309, 16, 32357, 1268, 3722, 7054, 309, 17, 6177, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 502, 257, 2318, 8262, 329, 644, 389, 262, 1180, 220, 2340, 290, 3891, 286, 262, 8985, 326, 423, 550, 517, 621, 1105, 16715, 1695, 30, 46506, 1438, 11, 4686, 16034, 4429, 7054, 309, 16, 32357, 1268, 3722, 7054, 309, 17, 6177, ...
give me the number of patients whose primary disease is cerebral aneurysm/sda and admission year is less than 2200?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CEREBRAL ANEURYSM/SDA" AND demographic.admityear < "2200"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 31169, 281, 23365, 893, 76, 14, 82, 6814, 290, 13938, 614, 318, 1342, 621, 362, 2167, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 1672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 31169, 281, 23365, 893, 76, 14, 82, 6814, 290, 13938, 614, 318, 1342, 621, 362, 2167, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 1672...
What is the low point total after 2006 with an m16 chassis?
SELECT MIN("Points") FROM table_78327 WHERE "Chassis" = 'm16' AND "Year" > '2006'
[ 2061, 318, 262, 1877, 966, 2472, 706, 4793, 351, 281, 285, 1433, 24587, 30, 46506, 20625, 7203, 40710, 4943, 16034, 3084, 62, 3695, 34159, 33411, 366, 1925, 20297, 1, 796, 705, 76, 1433, 6, 5357, 366, 17688, 1, 1875, 705, 13330, 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, 1877, 966, 2472, 706, 4793, 351, 281, 285, 1433, 24587, 30, 46506, 20625, 7203, 40710, 4943, 16034, 3084, 62, 3695, 34159, 33411, 366, 1925, 20297, 1, 796, 705, 76, 1433, 6, 5357, 366, 17688, 1, 1875, 705, 13330, 6 ]
What is the average maximum height of a shell that travels for more than 16.3 seconds at 55 and has a maximum velocity of 2200 ft/s?
SELECT AVG(max_height__ft_) FROM table_name_19 WHERE time_to_ft__m__at_55°__seconds_ > 16.3 AND m_v_ft_s = 2200
[ 2061, 318, 262, 2811, 5415, 6001, 286, 257, 7582, 326, 17781, 329, 517, 621, 1467, 13, 18, 4201, 379, 5996, 290, 468, 257, 5415, 15432, 286, 362, 2167, 10117, 14, 82, 30, 46506, 35224, 7, 9806, 62, 17015, 834, 701, 62, 8, 16034, 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...
[ 2061, 318, 262, 2811, 5415, 6001, 286, 257, 7582, 326, 17781, 329, 517, 621, 1467, 13, 18, 4201, 379, 5996, 290, 468, 257, 5415, 15432, 286, 362, 2167, 10117, 14, 82, 30, 46506, 35224, 7, 9806, 62, 17015, 834, 701, 62, 8, 16034, 3...
From what country did someone score 71?
SELECT "Country" FROM table_44390 WHERE "Score" = '71'
[ 4863, 644, 1499, 750, 2130, 4776, 9166, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 2598, 25964, 33411, 366, 26595, 1, 796, 705, 4869, 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 ]
[ 4863, 644, 1499, 750, 2130, 4776, 9166, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 2598, 25964, 33411, 366, 26595, 1, 796, 705, 4869, 6 ]
i need the flights that leave DENVER after 1900 next monday and fly to PITTSBURGH
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 = 21 AND date_day.month_number = 2 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time...
[ 72, 761, 262, 13956, 326, 2666, 37692, 5959, 706, 21489, 1306, 285, 3204, 290, 6129, 284, 49040, 4694, 38926, 17511, 46506, 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, 262, 13956, 326, 2666, 37692, 5959, 706, 21489, 1306, 285, 3204, 290, 6129, 284, 49040, 4694, 38926, 17511, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 6...
subjects with evidence of other psychiatric / neurologic disorders including, but not limited to, stroke, vascular dementia, lewy _ body disease, parkinson's disease, seizure disorder, head injury with loss of consciousness within the past 5 years, any psychotic disorder, or bipolar disorder
SELECT * FROM table_train_132 WHERE psychiatric_disease = 1 OR neurological_disease = 1 OR (stroke = 1 OR vascular_dementia = 1 OR lewy_body_disease = 1 OR parkinson_disease = 1 OR seizure_disorder = 1 OR head_injury = 1 OR loss_of_consciousness = 1 OR psychotic_disorder = 1 OR bipolar_disorder = 1)
[ 32796, 82, 351, 2370, 286, 584, 19906, 1220, 22356, 291, 11916, 1390, 11, 475, 407, 3614, 284, 11, 14000, 11, 39495, 27886, 11, 443, 21768, 4808, 1767, 4369, 11, 3952, 7899, 338, 4369, 11, 22338, 8967, 11, 1182, 5095, 351, 2994, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 32796, 82, 351, 2370, 286, 584, 19906, 1220, 22356, 291, 11916, 1390, 11, 475, 407, 3614, 284, 11, 14000, 11, 39495, 27886, 11, 443, 21768, 4808, 1767, 4369, 11, 3952, 7899, 338, 4369, 11, 22338, 8967, 11, 1182, 5095, 351, 2994, 286, ...
What is KK - 5 if KK - 1 is 1,067?
SELECT "KK - 5" FROM table_54045 WHERE "KK - 1" = '1,067'
[ 2061, 318, 509, 42, 532, 642, 611, 509, 42, 532, 352, 318, 352, 11, 15, 3134, 30, 46506, 366, 16601, 532, 642, 1, 16034, 3084, 62, 35005, 2231, 33411, 366, 16601, 532, 352, 1, 796, 705, 16, 11, 15, 3134, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 509, 42, 532, 642, 611, 509, 42, 532, 352, 318, 352, 11, 15, 3134, 30, 46506, 366, 16601, 532, 642, 1, 16034, 3084, 62, 35005, 2231, 33411, 366, 16601, 532, 352, 1, 796, 705, 16, 11, 15, 3134, 6 ]
Return a histogram on what is the code of each role and the number of employees in each role?, and show in ascending by the Y-axis please.
SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code ORDER BY COUNT(*)
[ 13615, 257, 1554, 21857, 319, 644, 318, 262, 2438, 286, 1123, 2597, 290, 262, 1271, 286, 4409, 287, 1123, 2597, 21747, 290, 905, 287, 41988, 416, 262, 575, 12, 22704, 3387, 13, 46506, 20934, 62, 10669, 11, 327, 28270, 7, 28104, 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 ]
[ 13615, 257, 1554, 21857, 319, 644, 318, 262, 2438, 286, 1123, 2597, 290, 262, 1271, 286, 4409, 287, 1123, 2597, 21747, 290, 905, 287, 41988, 416, 262, 575, 12, 22704, 3387, 13, 46506, 20934, 62, 10669, 11, 327, 28270, 7, 28104, 16034,...
What is the smallest crowd size for a game when the away team scored 17.16 (118)?
SELECT MIN("Crowd") FROM table_51786 WHERE "Away team score" = '17.16 (118)'
[ 2061, 318, 262, 18197, 4315, 2546, 329, 257, 983, 618, 262, 1497, 1074, 7781, 1596, 13, 1433, 357, 16817, 19427, 46506, 20625, 7203, 34, 3986, 4943, 16034, 3084, 62, 48170, 4521, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 1558, 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 ]
[ 2061, 318, 262, 18197, 4315, 2546, 329, 257, 983, 618, 262, 1497, 1074, 7781, 1596, 13, 1433, 357, 16817, 19427, 46506, 20625, 7203, 34, 3986, 4943, 16034, 3084, 62, 48170, 4521, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 1558, 13...
Return a bar chart showing the number of companies in each building.
SELECT T2.name, COUNT(T2.name) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T2.name
[ 13615, 257, 2318, 8262, 4478, 262, 1271, 286, 2706, 287, 1123, 2615, 13, 46506, 309, 17, 13, 3672, 11, 327, 28270, 7, 51, 17, 13, 3672, 8, 16034, 4452, 62, 17946, 602, 7054, 309, 16, 32357, 1268, 6832, 7054, 309, 17, 6177, 309, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13615, 257, 2318, 8262, 4478, 262, 1271, 286, 2706, 287, 1123, 2615, 13, 46506, 309, 17, 13, 3672, 11, 327, 28270, 7, 51, 17, 13, 3672, 8, 16034, 4452, 62, 17946, 602, 7054, 309, 16, 32357, 1268, 6832, 7054, 309, 17, 6177, 309, 16...
Posts with a single accepted answer that is upvoted at the same time.
SELECT COUNT(*) FROM Votes AS v INNER JOIN Posts AS p ON p.AcceptedAnswerId = v.PostId INNER JOIN Votes AS upv ON upv.PostId = v.PostId AND upv.VoteTypeId = 2 AND v.CreationDate = upv.CreationDate WHERE v.VoteTypeId = 1 AND p.AnswerCount = 1
[ 21496, 351, 257, 2060, 6292, 3280, 326, 318, 510, 85, 5191, 379, 262, 976, 640, 13, 46506, 327, 28270, 7, 28104, 16034, 39584, 7054, 410, 3268, 21479, 32357, 1268, 12043, 7054, 279, 6177, 279, 13, 38855, 276, 33706, 7390, 796, 410, 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...
[ 21496, 351, 257, 2060, 6292, 3280, 326, 318, 510, 85, 5191, 379, 262, 976, 640, 13, 46506, 327, 28270, 7, 28104, 16034, 39584, 7054, 410, 3268, 21479, 32357, 1268, 12043, 7054, 279, 6177, 279, 13, 38855, 276, 33706, 7390, 796, 410, 13...
For all employees who have the letters D or S in their first name, give me the comparison about the amount of job_id over the job_id , and group by attribute job_id by a bar chart, and display the number of job id from low to high order.
SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY COUNT(JOB_ID)
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 1577, 502, 262, 7208, 546, 262, 2033, 286, 1693, 62, 312, 625, 262, 1693, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 416, 257, 2318, 8262, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 1577, 502, 262, 7208, 546, 262, 2033, 286, 1693, 62, 312, 625, 262, 1693, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 416, 257, 2318, 8262, 11, ...
What Team has a Class of 350cc, with less than 13 points in 1959?
SELECT team FROM table_name_93 WHERE class = "350cc" AND points < 13 AND year = 1959
[ 2061, 4816, 468, 257, 5016, 286, 13803, 535, 11, 351, 1342, 621, 1511, 2173, 287, 23859, 30, 46506, 1074, 16034, 3084, 62, 3672, 62, 6052, 33411, 1398, 796, 366, 14877, 535, 1, 5357, 2173, 1279, 1511, 5357, 614, 796, 23859 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4816, 468, 257, 5016, 286, 13803, 535, 11, 351, 1342, 621, 1511, 2173, 287, 23859, 30, 46506, 1074, 16034, 3084, 62, 3672, 62, 6052, 33411, 1398, 796, 366, 14877, 535, 1, 5357, 2173, 1279, 1511, 5357, 614, 796, 23859 ]
is it possible for me to fly from BALTIMORE 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, 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 = 'SAN ...
[ 271, 340, 1744, 329, 502, 284, 6129, 422, 347, 31429, 3955, 6965, 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, 62, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 271, 340, 1744, 329, 502, 284, 6129, 422, 347, 31429, 3955, 6965, 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, 62, 15, 11, ...
Name the crownded for 17 september 1025
SELECT "Crowned" FROM table_26516 WHERE "Co-kingship ceased" = '17 September 1025'
[ 5376, 262, 37593, 358, 276, 329, 1596, 384, 457, 1491, 838, 1495, 46506, 366, 34, 2053, 276, 1, 16034, 3084, 62, 22980, 1433, 33411, 366, 7222, 12, 74, 654, 1056, 24368, 1, 796, 705, 1558, 2693, 838, 1495, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 37593, 358, 276, 329, 1596, 384, 457, 1491, 838, 1495, 46506, 366, 34, 2053, 276, 1, 16034, 3084, 62, 22980, 1433, 33411, 366, 7222, 12, 74, 654, 1056, 24368, 1, 796, 705, 1558, 2693, 838, 1495, 6 ]
was there a phosphate test done on patient 9833 until 73 months ago?
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'phosphate') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9833) AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(), '-73 month')
[ 9776, 612, 257, 46926, 1332, 1760, 319, 5827, 9661, 2091, 1566, 8854, 1933, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 2248, 31534, 33411, 2248, 31534, 13, 9186, 312, 3268, 357, 46506, 288, 62, 23912, 23814, 13, 9186, 312,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9776, 612, 257, 46926, 1332, 1760, 319, 5827, 9661, 2091, 1566, 8854, 1933, 2084, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 2248, 31534, 33411, 2248, 31534, 13, 9186, 312, 3268, 357, 46506, 288, 62, 23912, 23814, 13, 9186, 312,...
Can you tell me the Opponent that has the December of 2?
SELECT opponent FROM table_name_52 WHERE december = 2
[ 6090, 345, 1560, 502, 262, 9385, 3471, 326, 468, 262, 3426, 286, 362, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 4309, 33411, 390, 3273, 796, 362 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 6090, 345, 1560, 502, 262, 9385, 3471, 326, 468, 262, 3426, 286, 362, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 4309, 33411, 390, 3273, 796, 362 ]
What is the lowest rank of an episode with a rating/share (18-49) of 1.3/4?
SELECT MIN(rank__night_) FROM table_25751274_2 WHERE rating / SHARE(18 - 49) = 1.3 / 4
[ 2061, 318, 262, 9016, 4279, 286, 281, 4471, 351, 257, 7955, 14, 20077, 357, 1507, 12, 2920, 8, 286, 352, 13, 18, 14, 19, 30, 46506, 20625, 7, 43027, 834, 3847, 62, 8, 16034, 3084, 62, 1495, 2425, 1065, 4524, 62, 17, 33411, 7955, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4279, 286, 281, 4471, 351, 257, 7955, 14, 20077, 357, 1507, 12, 2920, 8, 286, 352, 13, 18, 14, 19, 30, 46506, 20625, 7, 43027, 834, 3847, 62, 8, 16034, 3084, 62, 1495, 2425, 1065, 4524, 62, 17, 33411, 7955, ...
What is no-yds when no.-yds is 1-13?
SELECT no_yds FROM table_26176081_29 WHERE no_yds = "1-13"
[ 2061, 318, 645, 12, 5173, 82, 618, 645, 7874, 5173, 82, 318, 352, 12, 1485, 30, 46506, 645, 62, 5173, 82, 16034, 3084, 62, 2075, 1558, 1899, 6659, 62, 1959, 33411, 645, 62, 5173, 82, 796, 366, 16, 12, 1485, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 645, 12, 5173, 82, 618, 645, 7874, 5173, 82, 318, 352, 12, 1485, 30, 46506, 645, 62, 5173, 82, 16034, 3084, 62, 2075, 1558, 1899, 6659, 62, 1959, 33411, 645, 62, 5173, 82, 796, 366, 16, 12, 1485, 1 ]
Who is the player from Auburn?
SELECT player FROM table_name_86 WHERE school_club_team = "auburn"
[ 8241, 318, 262, 2137, 422, 24579, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 4521, 33411, 1524, 62, 18664, 62, 15097, 796, 366, 64, 549, 700, 1 ]
[ 1, 1, 1, 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, 2137, 422, 24579, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 4521, 33411, 1524, 62, 18664, 62, 15097, 796, 366, 64, 549, 700, 1 ]
when was the number l6, with a fleet of black sea, launched?
SELECT "Launched" FROM table_4477 WHERE "Fleet" = 'black sea' AND "Number" = 'l6'
[ 12518, 373, 262, 1271, 300, 21, 11, 351, 257, 11026, 286, 2042, 5417, 11, 5611, 30, 46506, 366, 46182, 1740, 1, 16034, 3084, 62, 2598, 3324, 33411, 366, 47669, 316, 1, 796, 705, 13424, 5417, 6, 5357, 366, 15057, 1, 796, 705, 75, 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 ]
[ 12518, 373, 262, 1271, 300, 21, 11, 351, 257, 11026, 286, 2042, 5417, 11, 5611, 30, 46506, 366, 46182, 1740, 1, 16034, 3084, 62, 2598, 3324, 33411, 366, 47669, 316, 1, 796, 705, 13424, 5417, 6, 5357, 366, 15057, 1, 796, 705, 75, 2...
For those employees who was hired before 2002-06-21, show me about the distribution of job_id and the sum of department_id , and group by attribute job_id in a bar chart, and could you rank in asc by the y-axis please?
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID)
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 905, 502, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 5011, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 287, 257, 2318, 8262, 11, 290, 714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 905, 502, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 5011, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 287, 257, 2318, 8262, 11, 290, 714, ...
From which country was Sodje loaned?
SELECT "Country" FROM table_59609 WHERE "Name" = 'sodje'
[ 4863, 543, 1499, 373, 43829, 18015, 8063, 276, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 3270, 31751, 33411, 366, 5376, 1, 796, 705, 82, 375, 18015, 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 ]
[ 4863, 543, 1499, 373, 43829, 18015, 8063, 276, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 3270, 31751, 33411, 366, 5376, 1, 796, 705, 82, 375, 18015, 6 ]
When has a Tie no of 15?
SELECT date FROM table_name_17 WHERE tie_no = "15"
[ 2215, 468, 257, 36286, 645, 286, 1315, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 1558, 33411, 9839, 62, 3919, 796, 366, 1314, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 468, 257, 36286, 645, 286, 1315, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 1558, 33411, 9839, 62, 3919, 796, 366, 1314, 1 ]
Name the common name for chironius multiventris septentrionalis
SELECT common_name FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis"
[ 5376, 262, 2219, 1438, 329, 442, 1934, 3754, 1963, 452, 298, 2442, 384, 457, 298, 81, 1538, 271, 46506, 2219, 62, 3672, 16034, 3084, 62, 1507, 1120, 32568, 62, 22, 33411, 4693, 796, 366, 1925, 1934, 3754, 1963, 452, 298, 2442, 384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2219, 1438, 329, 442, 1934, 3754, 1963, 452, 298, 2442, 384, 457, 298, 81, 1538, 271, 46506, 2219, 62, 3672, 16034, 3084, 62, 1507, 1120, 32568, 62, 22, 33411, 4693, 796, 366, 1925, 1934, 3754, 1963, 452, 298, 2442, 384, ...
Which Album has a Label of msb 801?
SELECT "Album" FROM table_48125 WHERE "Label" = 'msb 801'
[ 13828, 23999, 468, 257, 36052, 286, 13845, 65, 807, 486, 30, 46506, 366, 2348, 4435, 1, 16034, 3084, 62, 2780, 11623, 33411, 366, 33986, 1, 796, 705, 907, 65, 807, 486, 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, 23999, 468, 257, 36052, 286, 13845, 65, 807, 486, 30, 46506, 366, 2348, 4435, 1, 16034, 3084, 62, 2780, 11623, 33411, 366, 33986, 1, 796, 705, 907, 65, 807, 486, 6 ]
What's the total with silver being less than 0, less than 1 gold, and 3 bronze?
SELECT SUM("Total") FROM table_63750 WHERE "Bronze" = '3' AND "Gold" < '1' AND "Silver" < '0'
[ 2061, 338, 262, 2472, 351, 8465, 852, 1342, 621, 657, 11, 1342, 621, 352, 3869, 11, 290, 513, 22101, 30, 46506, 35683, 7203, 14957, 4943, 16034, 3084, 62, 21, 2718, 1120, 33411, 366, 18760, 2736, 1, 796, 705, 18, 6, 5357, 366, 13306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 338, 262, 2472, 351, 8465, 852, 1342, 621, 657, 11, 1342, 621, 352, 3869, 11, 290, 513, 22101, 30, 46506, 35683, 7203, 14957, 4943, 16034, 3084, 62, 21, 2718, 1120, 33411, 366, 18760, 2736, 1, 796, 705, 18, 6, 5357, 366, 13306...
What is the Type with a Location with justus lipsius building, brussels, and a Year of 2012, and a President with herman van rompuy (1st term), and a Date with 23 may?
SELECT "Type" FROM table_54599 WHERE "Location" = 'justus lipsius building, brussels' AND "Year" = '2012' AND "President" = 'herman van rompuy (1st term)' AND "Date" = '23 may'
[ 2061, 318, 262, 5994, 351, 257, 13397, 351, 655, 385, 11914, 3754, 2615, 11, 865, 385, 14002, 11, 290, 257, 6280, 286, 2321, 11, 290, 257, 1992, 351, 607, 805, 5719, 374, 3361, 4669, 357, 16, 301, 3381, 828, 290, 257, 7536, 351, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 318, 262, 5994, 351, 257, 13397, 351, 655, 385, 11914, 3754, 2615, 11, 865, 385, 14002, 11, 290, 257, 6280, 286, 2321, 11, 290, 257, 1992, 351, 607, 805, 5719, 374, 3361, 4669, 357, 16, 301, 3381, 828, 290, 257, 7536, 351, 2...
Name the total seats for otorhinolaryngology
SELECT "Total Seats" FROM table_2023 WHERE "Discipline" = 'Otorhinolaryngology'
[ 5376, 262, 2472, 8632, 329, 267, 13165, 20079, 349, 560, 782, 1435, 46506, 366, 14957, 1001, 1381, 1, 16034, 3084, 62, 1238, 1954, 33411, 366, 7279, 34647, 1, 796, 705, 46, 13165, 20079, 349, 560, 782, 1435, 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 ]
[ 5376, 262, 2472, 8632, 329, 267, 13165, 20079, 349, 560, 782, 1435, 46506, 366, 14957, 1001, 1381, 1, 16034, 3084, 62, 1238, 1954, 33411, 366, 7279, 34647, 1, 796, 705, 46, 13165, 20079, 349, 560, 782, 1435, 6 ]
where was the last competition held ?
SELECT "venue" FROM table_203_504 ORDER BY "date" DESC LIMIT 1
[ 3003, 373, 262, 938, 5449, 2714, 5633, 46506, 366, 4080, 1, 16034, 3084, 62, 22416, 62, 33580, 38678, 11050, 366, 4475, 1, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3003, 373, 262, 938, 5449, 2714, 5633, 46506, 366, 4080, 1, 16034, 3084, 62, 22416, 62, 33580, 38678, 11050, 366, 4475, 1, 22196, 34, 27564, 2043, 352 ]