instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk
SELECT SUM("Gross Tonnage") FROM table_52907 WHERE "Material" = 'wood' AND "Date Commissioned" > '1846' AND "Ship" = 'esk'
[ 5376, 262, 2160, 286, 10319, 5680, 77, 496, 329, 4898, 319, 3128, 517, 256, 15386, 1248, 3510, 329, 401, 1480, 276, 290, 4074, 286, 1658, 74, 46506, 35683, 7203, 38, 1214, 16859, 77, 496, 4943, 16034, 3084, 62, 49721, 2998, 33411, 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, 2160, 286, 10319, 5680, 77, 496, 329, 4898, 319, 3128, 517, 256, 15386, 1248, 3510, 329, 401, 1480, 276, 290, 4074, 286, 1658, 74, 46506, 35683, 7203, 38, 1214, 16859, 77, 496, 4943, 16034, 3084, 62, 49721, 2998, 33411, 366...
How many spectators were at the game where Richmond was the away team?
SELECT SUM(crowd) FROM table_name_8 WHERE away_team = "richmond"
[ 2437, 867, 31704, 547, 379, 262, 983, 810, 16940, 373, 262, 1497, 1074, 30, 46506, 35683, 7, 66, 3986, 8, 16034, 3084, 62, 3672, 62, 23, 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 ]
[ 2437, 867, 31704, 547, 379, 262, 983, 810, 16940, 373, 262, 1497, 1074, 30, 46506, 35683, 7, 66, 3986, 8, 16034, 3084, 62, 3672, 62, 23, 33411, 1497, 62, 15097, 796, 366, 7527, 6327, 1 ]
What are the descriptions for the aircrafts, and count them by a bar chart, and I want to rank by the how many description in ascending.
SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description ORDER BY COUNT(Description)
[ 2061, 389, 262, 16969, 329, 262, 6215, 82, 11, 290, 954, 606, 416, 257, 2318, 8262, 11, 290, 314, 765, 284, 4279, 416, 262, 703, 867, 6764, 287, 41988, 13, 46506, 12489, 11, 327, 28270, 7, 11828, 8, 16034, 6215, 44441, 11050, 12489,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16969, 329, 262, 6215, 82, 11, 290, 954, 606, 416, 257, 2318, 8262, 11, 290, 314, 765, 284, 4279, 416, 262, 703, 867, 6764, 287, 41988, 13, 46506, 12489, 11, 327, 28270, 7, 11828, 8, 16034, 6215, 44441, 11050, 12489,...
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 could you show names in descending 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 JOB_ID DESC
[ 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 round did Ray Kurpis play?
SELECT "Round" FROM table_37544 WHERE "Player" = 'ray kurpis'
[ 2061, 2835, 750, 7760, 18132, 79, 271, 711, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 22318, 2598, 33411, 366, 14140, 1, 796, 705, 2433, 479, 333, 79, 271, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2835, 750, 7760, 18132, 79, 271, 711, 30, 46506, 366, 22685, 1, 16034, 3084, 62, 22318, 2598, 33411, 366, 14140, 1, 796, 705, 2433, 479, 333, 79, 271, 6 ]
Within a tag, percentage of questions with another tag.
SELECT COUNT(p.Id), COUNT(q.Id), COUNT(p.Id) / COUNT(q.Id) FROM Posts AS p, Posts AS q WHERE p.Tags LIKE '%##TagName##%' AND q.Tags LIKE '<##TagName##>'
[ 22005, 257, 7621, 11, 5873, 286, 2683, 351, 1194, 7621, 13, 46506, 327, 28270, 7, 79, 13, 7390, 828, 327, 28270, 7, 80, 13, 7390, 828, 327, 28270, 7, 79, 13, 7390, 8, 1220, 327, 28270, 7, 80, 13, 7390, 8, 16034, 12043, 7054, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 22005, 257, 7621, 11, 5873, 286, 2683, 351, 1194, 7621, 13, 46506, 327, 28270, 7, 79, 13, 7390, 828, 327, 28270, 7, 80, 13, 7390, 828, 327, 28270, 7, 79, 13, 7390, 8, 1220, 327, 28270, 7, 80, 13, 7390, 8, 16034, 12043, 7054, 279...
how many widowed patients had pericardiocentesis as their procedure long title.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.long_title = "Pericardiocentesis"
[ 4919, 867, 9214, 6972, 3871, 550, 583, 291, 22490, 29421, 9339, 355, 511, 8771, 890, 3670, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 9214, 6972, 3871, 550, 583, 291, 22490, 29421, 9339, 355, 511, 8771, 890, 3670, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18...
What position is the boat with 20.12 LOA (metres)?
SELECT MAX(position) FROM table_20854943_2 WHERE loa__metres_ = "20.12"
[ 2061, 2292, 318, 262, 8848, 351, 1160, 13, 1065, 17579, 32, 357, 4164, 411, 19427, 46506, 25882, 7, 9150, 8, 16034, 3084, 62, 1238, 5332, 2920, 3559, 62, 17, 33411, 2376, 64, 834, 4164, 411, 62, 796, 366, 1238, 13, 1065, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2292, 318, 262, 8848, 351, 1160, 13, 1065, 17579, 32, 357, 4164, 411, 19427, 46506, 25882, 7, 9150, 8, 16034, 3084, 62, 1238, 5332, 2920, 3559, 62, 17, 33411, 2376, 64, 834, 4164, 411, 62, 796, 366, 1238, 13, 1065, 1 ]
On broadcast date is 21march1970, how many people tuned in?
SELECT COUNT("Viewers (in millions)") FROM table_24075 WHERE "Broadcast date" = '21March1970'
[ 2202, 7025, 3128, 318, 2310, 76, 998, 30986, 11, 703, 867, 661, 16524, 287, 30, 46506, 327, 28270, 7203, 7680, 364, 357, 259, 5242, 8, 4943, 16034, 3084, 62, 16102, 2425, 33411, 366, 30507, 2701, 3128, 1, 796, 705, 2481, 16192, 30986,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7025, 3128, 318, 2310, 76, 998, 30986, 11, 703, 867, 661, 16524, 287, 30, 46506, 327, 28270, 7203, 7680, 364, 357, 259, 5242, 8, 4943, 16034, 3084, 62, 16102, 2425, 33411, 366, 30507, 2701, 3128, 1, 796, 705, 2481, 16192, 30986,...
after playing seven games , how many players individual points were above 30 ?
SELECT COUNT("name") FROM table_204_292 WHERE "games" >= 7 AND "points" > 30
[ 8499, 2712, 3598, 1830, 837, 703, 867, 1938, 1981, 2173, 547, 2029, 1542, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 32759, 33411, 366, 19966, 1, 18189, 767, 5357, 366, 13033, 1, 1875, 1542 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8499, 2712, 3598, 1830, 837, 703, 867, 1938, 1981, 2173, 547, 2029, 1542, 5633, 46506, 327, 28270, 7203, 3672, 4943, 16034, 3084, 62, 18638, 62, 32759, 33411, 366, 19966, 1, 18189, 767, 5357, 366, 13033, 1, 1875, 1542 ]
Find the description of the most popular role among the users that have logged in.
SELECT role_description FROM roles WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1)
[ 16742, 262, 6764, 286, 262, 749, 2968, 2597, 1871, 262, 2985, 326, 423, 18832, 287, 13, 46506, 2597, 62, 11213, 16034, 9176, 33411, 2597, 62, 8189, 796, 357, 46506, 2597, 62, 8189, 16034, 2985, 33411, 2836, 62, 38235, 796, 352, 44441, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6764, 286, 262, 749, 2968, 2597, 1871, 262, 2985, 326, 423, 18832, 287, 13, 46506, 2597, 62, 11213, 16034, 9176, 33411, 2597, 62, 8189, 796, 357, 46506, 2597, 62, 8189, 16034, 2985, 33411, 2836, 62, 38235, 796, 352, 44441, ...
What was the score on may 19?
SELECT "Score" FROM table_6615 WHERE "Date" = 'may 19'
[ 2061, 373, 262, 4776, 319, 743, 678, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2791, 1314, 33411, 366, 10430, 1, 796, 705, 11261, 678, 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 ]
[ 2061, 373, 262, 4776, 319, 743, 678, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2791, 1314, 33411, 366, 10430, 1, 796, 705, 11261, 678, 6 ]
what where the playoffs where the avg attendance of the team was 3416
SELECT playoffs FROM table_1908049_1 WHERE avg_attendance = 3416
[ 10919, 810, 262, 12980, 810, 262, 42781, 14858, 286, 262, 1074, 373, 4974, 1433, 46506, 12980, 16034, 3084, 62, 19782, 1795, 2920, 62, 16, 33411, 42781, 62, 1078, 437, 590, 796, 4974, 1433 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 810, 262, 12980, 810, 262, 42781, 14858, 286, 262, 1074, 373, 4974, 1433, 46506, 12980, 16034, 3084, 62, 19782, 1795, 2920, 62, 16, 33411, 42781, 62, 1078, 437, 590, 796, 4974, 1433 ]
when was the first time patient 011-31236's procedure was performed in 2101?
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-31236')) AND STRFTIME('%y', treatment.treatmenttime) = '2101'...
[ 12518, 373, 262, 717, 640, 5827, 5534, 16, 12, 27970, 2623, 338, 8771, 373, 6157, 287, 2310, 486, 30, 46506, 3513, 13, 42487, 2435, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 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...
[ 12518, 373, 262, 717, 640, 5827, 5534, 16, 12, 27970, 2623, 338, 8771, 373, 6157, 287, 2310, 486, 30, 46506, 3513, 13, 42487, 2435, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712,...
Draw a bar chart of asset make versus the number of asset make, and display in asc by the X.
SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make
[ 25302, 257, 2318, 8262, 286, 11171, 787, 9051, 262, 1271, 286, 11171, 787, 11, 290, 3359, 287, 10570, 416, 262, 1395, 13, 46506, 11171, 62, 15883, 11, 327, 28270, 7, 562, 316, 62, 15883, 8, 16034, 41059, 44441, 11050, 11171, 62, 15883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11171, 787, 9051, 262, 1271, 286, 11171, 787, 11, 290, 3359, 287, 10570, 416, 262, 1395, 13, 46506, 11171, 62, 15883, 11, 327, 28270, 7, 562, 316, 62, 15883, 8, 16034, 41059, 44441, 11050, 11171, 62, 15883...
What's the total number of picks for the player Matt Murton?
SELECT SUM("Pick") FROM table_69227 WHERE "Player" = 'matt murton'
[ 2061, 338, 262, 2472, 1271, 286, 11103, 329, 262, 2137, 4705, 5921, 1122, 30, 46506, 35683, 7203, 31686, 4943, 16034, 3084, 62, 3388, 24403, 33411, 366, 14140, 1, 796, 705, 76, 1078, 4636, 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 ]
[ 2061, 338, 262, 2472, 1271, 286, 11103, 329, 262, 2137, 4705, 5921, 1122, 30, 46506, 35683, 7203, 31686, 4943, 16034, 3084, 62, 3388, 24403, 33411, 366, 14140, 1, 796, 705, 76, 1078, 4636, 1122, 6 ]
requirement of high dose vasopressors ( defined as a cumulative vasopressor index = 4 ) to treat shock
SELECT * FROM table_train_30 WHERE receiving_vasopressor = 1
[ 8897, 24615, 286, 1029, 10742, 34439, 404, 601, 669, 357, 5447, 355, 257, 23818, 34439, 404, 44292, 6376, 796, 604, 1267, 284, 2190, 6380, 46506, 1635, 16034, 3084, 62, 27432, 62, 1270, 33411, 6464, 62, 11017, 404, 44292, 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, 1, 1, 1, 1, 1 ]
[ 8897, 24615, 286, 1029, 10742, 34439, 404, 601, 669, 357, 5447, 355, 257, 23818, 34439, 404, 44292, 6376, 796, 604, 1267, 284, 2190, 6380, 46506, 1635, 16034, 3084, 62, 27432, 62, 1270, 33411, 6464, 62, 11017, 404, 44292, 796, 352 ]
What is the regulated retail price for the tariff code ff0 prs?
SELECT "BTs retail price (regulated)" FROM table_41 WHERE "Tariff code" = 'ff0 PRS'
[ 2061, 318, 262, 17153, 6308, 2756, 329, 262, 36427, 2438, 31246, 15, 778, 82, 30, 46506, 366, 19313, 82, 6308, 2756, 357, 27739, 16725, 16034, 3084, 62, 3901, 33411, 366, 47079, 733, 2438, 1, 796, 705, 487, 15, 4810, 50, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 17153, 6308, 2756, 329, 262, 36427, 2438, 31246, 15, 778, 82, 30, 46506, 366, 19313, 82, 6308, 2756, 357, 27739, 16725, 16034, 3084, 62, 3901, 33411, 366, 47079, 733, 2438, 1, 796, 705, 487, 15, 4810, 50, 6 ]
Give me a bar chart to show the name and age for all drivers, and order bar in asc order please.
SELECT Name, Age FROM driver ORDER BY Name
[ 23318, 502, 257, 2318, 8262, 284, 905, 262, 1438, 290, 2479, 329, 477, 6643, 11, 290, 1502, 2318, 287, 10570, 1502, 3387, 13, 46506, 6530, 11, 7129, 16034, 4639, 38678, 11050, 6530 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 23318, 502, 257, 2318, 8262, 284, 905, 262, 1438, 290, 2479, 329, 477, 6643, 11, 290, 1502, 2318, 287, 10570, 1502, 3387, 13, 46506, 6530, 11, 7129, 16034, 4639, 38678, 11050, 6530 ]
What was the Away team score for Footscray?
SELECT away_team AS score FROM table_name_44 WHERE away_team = "footscray"
[ 2061, 373, 262, 21986, 1074, 4776, 329, 7870, 1416, 2433, 30, 46506, 1497, 62, 15097, 7054, 4776, 16034, 3084, 62, 3672, 62, 2598, 33411, 1497, 62, 15097, 796, 366, 5898, 1416, 2433, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 21986, 1074, 4776, 329, 7870, 1416, 2433, 30, 46506, 1497, 62, 15097, 7054, 4776, 16034, 3084, 62, 3672, 62, 2598, 33411, 1497, 62, 15097, 796, 366, 5898, 1416, 2433, 1 ]
What is the Place that has a Date of 22 august 2004?
SELECT place FROM table_name_92 WHERE date = "22 august 2004"
[ 2061, 318, 262, 8474, 326, 468, 257, 7536, 286, 2534, 16339, 436, 5472, 30, 46506, 1295, 16034, 3084, 62, 3672, 62, 5892, 33411, 3128, 796, 366, 1828, 16339, 436, 5472, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 8474, 326, 468, 257, 7536, 286, 2534, 16339, 436, 5472, 30, 46506, 1295, 16034, 3084, 62, 3672, 62, 5892, 33411, 3128, 796, 366, 1828, 16339, 436, 5472, 1 ]
Show all dates of transactions whose type code is 'SALE'.
SELECT date_of_transaction FROM transactions WHERE transaction_type_code = "SALE"
[ 15307, 477, 9667, 286, 8945, 3025, 2099, 2438, 318, 705, 50, 21358, 4458, 46506, 3128, 62, 1659, 62, 7645, 2673, 16034, 8945, 33411, 8611, 62, 4906, 62, 8189, 796, 366, 50, 21358, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 477, 9667, 286, 8945, 3025, 2099, 2438, 318, 705, 50, 21358, 4458, 46506, 3128, 62, 1659, 62, 7645, 2673, 16034, 8945, 33411, 8611, 62, 4906, 62, 8189, 796, 366, 50, 21358, 1 ]
On what date was the race at Nazareth?
SELECT date FROM table_15736385_1 WHERE location = "Nazareth"
[ 2202, 644, 3128, 373, 262, 3234, 379, 12819, 26659, 30, 46506, 3128, 16034, 3084, 62, 18458, 2623, 27203, 62, 16, 33411, 4067, 796, 366, 37235, 26659, 1 ]
[ 1, 1, 1, 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, 644, 3128, 373, 262, 3234, 379, 12819, 26659, 30, 46506, 3128, 16034, 3084, 62, 18458, 2623, 27203, 62, 16, 33411, 4067, 796, 366, 37235, 26659, 1 ]
What is the Root of All Evil with an Original air date that is september 3, 2008?
SELECT "Root of All Evil" FROM table_41255 WHERE "Original air date" = 'september 3, 2008'
[ 2061, 318, 262, 20410, 286, 1439, 10461, 351, 281, 13745, 1633, 3128, 326, 318, 384, 457, 1491, 513, 11, 3648, 30, 46506, 366, 30016, 286, 1439, 10461, 1, 16034, 3084, 62, 39226, 2816, 33411, 366, 20556, 1633, 3128, 1, 796, 705, 325, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20410, 286, 1439, 10461, 351, 281, 13745, 1633, 3128, 326, 318, 384, 457, 1491, 513, 11, 3648, 30, 46506, 366, 30016, 286, 1439, 10461, 1, 16034, 3084, 62, 39226, 2816, 33411, 366, 20556, 1633, 3128, 1, 796, 705, 325, ...
The trend about the the number of season of different Home_team over the season, order from high to low by the x-axis please.
SELECT Season, COUNT(Season) FROM game GROUP BY Home_team ORDER BY Season DESC
[ 464, 5182, 546, 262, 262, 1271, 286, 1622, 286, 1180, 5995, 62, 15097, 625, 262, 1622, 11, 1502, 422, 1029, 284, 1877, 416, 262, 2124, 12, 22704, 3387, 13, 46506, 7369, 11, 327, 28270, 7, 18960, 8, 16034, 983, 44441, 11050, 5995, 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 ]
[ 464, 5182, 546, 262, 262, 1271, 286, 1622, 286, 1180, 5995, 62, 15097, 625, 262, 1622, 11, 1502, 422, 1029, 284, 1877, 416, 262, 2124, 12, 22704, 3387, 13, 46506, 7369, 11, 327, 28270, 7, 18960, 8, 16034, 983, 44441, 11050, 5995, 62...
Show me a bar chart that bin all date of transactions into the weekday interval and the y-axis is their total number, and show y-axis in ascending order.
SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions ORDER BY COUNT(date_of_transaction)
[ 15307, 502, 257, 2318, 8262, 326, 9874, 477, 3128, 286, 8945, 656, 262, 28269, 16654, 290, 262, 331, 12, 22704, 318, 511, 2472, 1271, 11, 290, 905, 331, 12, 22704, 287, 41988, 1502, 13, 46506, 3128, 62, 1659, 62, 7645, 2673, 11, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 326, 9874, 477, 3128, 286, 8945, 656, 262, 28269, 16654, 290, 262, 331, 12, 22704, 318, 511, 2472, 1271, 11, 290, 905, 331, 12, 22704, 287, 41988, 1502, 13, 46506, 3128, 62, 1659, 62, 7645, 2673, 11, 327...
What is listed in game when the location attendance is listed as Keyarena 16,841?
SELECT MAX(game) FROM table_28768469_7 WHERE location_attendance = "KeyArena 16,841"
[ 2061, 318, 5610, 287, 983, 618, 262, 4067, 14858, 318, 5610, 355, 7383, 533, 2616, 1467, 11, 23, 3901, 30, 46506, 25882, 7, 6057, 8, 16034, 3084, 62, 27800, 41580, 3388, 62, 22, 33411, 4067, 62, 1078, 437, 590, 796, 366, 9218, 43199...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5610, 287, 983, 618, 262, 4067, 14858, 318, 5610, 355, 7383, 533, 2616, 1467, 11, 23, 3901, 30, 46506, 25882, 7, 6057, 8, 16034, 3084, 62, 27800, 41580, 3388, 62, 22, 33411, 4067, 62, 1078, 437, 590, 796, 366, 9218, 43199...
how many patients whose insurance is private and procedure icd9 code is 311?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.icd9_code = "311"
[ 4919, 867, 3871, 3025, 5096, 318, 2839, 290, 8771, 14158, 67, 24, 2438, 318, 35592, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 3871, 3025, 5096, 318, 2839, 290, 8771, 14158, 67, 24, 2438, 318, 35592, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76...
What is the latest November date with an Opponent of @ Pittsburgh Pirates and the game is more than 3?
SELECT MAX("November") FROM table_6939 WHERE "Opponent" = '@ pittsburgh pirates' AND "Game" > '3'
[ 2061, 318, 262, 3452, 3389, 3128, 351, 281, 9385, 3471, 286, 2488, 12767, 20169, 290, 262, 983, 318, 517, 621, 513, 30, 46506, 25882, 7203, 21159, 4943, 16034, 3084, 62, 3388, 2670, 33411, 366, 27524, 3471, 1, 796, 705, 31, 279, 715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3452, 3389, 3128, 351, 281, 9385, 3471, 286, 2488, 12767, 20169, 290, 262, 983, 318, 517, 621, 513, 30, 46506, 25882, 7203, 21159, 4943, 16034, 3084, 62, 3388, 2670, 33411, 366, 27524, 3471, 1, 796, 705, 31, 279, 715, ...
What is the Frequency at the Market/Rank of Burlington - Plattsburgh , Vermont - New York /143?
SELECT COUNT(frequency) FROM table_10333757_1 WHERE market_rank = "Burlington - Plattsburgh , Vermont - New York /143"
[ 2061, 318, 262, 31902, 379, 262, 5991, 14, 27520, 286, 37090, 532, 1345, 30353, 9228, 837, 16033, 532, 968, 1971, 1220, 21139, 30, 46506, 327, 28270, 7, 35324, 8, 16034, 3084, 62, 940, 20370, 39251, 62, 16, 33411, 1910, 62, 43027, 796...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 31902, 379, 262, 5991, 14, 27520, 286, 37090, 532, 1345, 30353, 9228, 837, 16033, 532, 968, 1971, 1220, 21139, 30, 46506, 327, 28270, 7, 35324, 8, 16034, 3084, 62, 940, 20370, 39251, 62, 16, 33411, 1910, 62, 43027, 796...
Find the name of the products that are not using the most frequently-used max page size.
SELECT product FROM product WHERE product <> (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY COUNT(*) DESC LIMIT 1)
[ 16742, 262, 1438, 286, 262, 3186, 326, 389, 407, 1262, 262, 749, 6777, 12, 1484, 3509, 2443, 2546, 13, 46506, 1720, 16034, 1720, 33411, 1720, 1279, 29, 357, 46506, 3509, 62, 7700, 62, 7857, 16034, 1720, 44441, 11050, 3509, 62, 7700, 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 ]
[ 16742, 262, 1438, 286, 262, 3186, 326, 389, 407, 1262, 262, 749, 6777, 12, 1484, 3509, 2443, 2546, 13, 46506, 1720, 16034, 1720, 33411, 1720, 1279, 29, 357, 46506, 3509, 62, 7700, 62, 7857, 16034, 1720, 44441, 11050, 3509, 62, 7700, 6...
Posts which had the given tag in the past.
SELECT DISTINCT PostHistory.PostId AS "post_link", Posts.OwnerUserId AS "user_link", Posts.CreationDate, Posts.LastActivityDate FROM PostHistory INNER JOIN Posts ON PostHistory.PostId = Posts.Id WHERE PostHistoryTypeId IN (3, 6, 9) AND Text LIKE '%<##tagName?featured##>%' ORDER BY Posts.CreationDate DESC
[ 21496, 543, 550, 262, 1813, 7621, 287, 262, 1613, 13, 46506, 360, 8808, 1268, 4177, 2947, 18122, 13, 6307, 7390, 7054, 366, 7353, 62, 8726, 1600, 12043, 13, 42419, 12982, 7390, 7054, 366, 7220, 62, 8726, 1600, 12043, 13, 12443, 341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 543, 550, 262, 1813, 7621, 287, 262, 1613, 13, 46506, 360, 8808, 1268, 4177, 2947, 18122, 13, 6307, 7390, 7054, 366, 7353, 62, 8726, 1600, 12043, 13, 42419, 12982, 7390, 7054, 366, 7220, 62, 8726, 1600, 12043, 13, 12443, 341, 1...
count the number of patients whose admission type is urgent and drug route is id?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.route = "ID"
[ 9127, 262, 1271, 286, 3871, 3025, 13938, 2099, 318, 18039, 290, 2563, 6339, 318, 4686, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13938, 2099, 318, 18039, 290, 2563, 6339, 318, 4686, 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, ...
What are the building, room number, semester and year of courses in the Psychology department, sorted using course title?
SELECT T2.building, T2.room_number, T2.semester, T2.year FROM course AS T1 JOIN section AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title
[ 2061, 389, 262, 2615, 11, 2119, 1271, 11, 24878, 290, 614, 286, 10902, 287, 262, 18430, 5011, 11, 23243, 1262, 1781, 3670, 30, 46506, 309, 17, 13, 16894, 11, 309, 17, 13, 3823, 62, 17618, 11, 309, 17, 13, 325, 6880, 353, 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, 2615, 11, 2119, 1271, 11, 24878, 290, 614, 286, 10902, 287, 262, 18430, 5011, 11, 23243, 1262, 1781, 3670, 30, 46506, 309, 17, 13, 16894, 11, 309, 17, 13, 3823, 62, 17618, 11, 309, 17, 13, 325, 6880, 353, 11, 309, ...
What was the crowd attendance when the home team scored 13.17 (95)?
SELECT SUM("Crowd") FROM table_58527 WHERE "Home team score" = '13.17 (95)'
[ 2061, 373, 262, 4315, 14858, 618, 262, 1363, 1074, 7781, 1511, 13, 1558, 357, 3865, 19427, 46506, 35683, 7203, 34, 3986, 4943, 16034, 3084, 62, 38905, 1983, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 1485, 13, 1558, 357, 3865, 33047 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4315, 14858, 618, 262, 1363, 1074, 7781, 1511, 13, 1558, 357, 3865, 19427, 46506, 35683, 7203, 34, 3986, 4943, 16034, 3084, 62, 38905, 1983, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 1485, 13, 1558, 357, 3865, 33047 ]
For employees with first names that end with the letter m, groups and count the first name to visualize a bar graph, list in ascending by the X-axis.
SELECT FIRST_NAME, COUNT(FIRST_NAME) FROM employees WHERE FIRST_NAME LIKE '%m' GROUP BY FIRST_NAME ORDER BY FIRST_NAME
[ 1890, 4409, 351, 717, 3891, 326, 886, 351, 262, 3850, 285, 11, 2628, 290, 954, 262, 717, 1438, 284, 38350, 257, 2318, 4823, 11, 1351, 287, 41988, 416, 262, 1395, 12, 22704, 13, 46506, 31328, 62, 20608, 11, 327, 28270, 7, 39776, 2257...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4409, 351, 717, 3891, 326, 886, 351, 262, 3850, 285, 11, 2628, 290, 954, 262, 717, 1438, 284, 38350, 257, 2318, 4823, 11, 1351, 287, 41988, 416, 262, 1395, 12, 22704, 13, 46506, 31328, 62, 20608, 11, 327, 28270, 7, 39776, 2257...
Which Player has a Place of t2?
SELECT "Player" FROM table_49294 WHERE "Place" = 't2'
[ 13828, 7853, 468, 257, 8474, 286, 256, 17, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 2920, 27696, 33411, 366, 27271, 1, 796, 705, 83, 17, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 7853, 468, 257, 8474, 286, 256, 17, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 2920, 27696, 33411, 366, 27271, 1, 796, 705, 83, 17, 6 ]
What is the Name of the person with a Total of 3 (15), and Rank of more than 3?
SELECT "Name" FROM table_43164 WHERE "Total" = '3 (15)' AND "Rank" > '3'
[ 2061, 318, 262, 6530, 286, 262, 1048, 351, 257, 7472, 286, 513, 357, 1314, 828, 290, 10916, 286, 517, 621, 513, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 3559, 23237, 33411, 366, 14957, 1, 796, 705, 18, 357, 1314, 33047, 5357, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 6530, 286, 262, 1048, 351, 257, 7472, 286, 513, 357, 1314, 828, 290, 10916, 286, 517, 621, 513, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 3559, 23237, 33411, 366, 14957, 1, 796, 705, 18, 357, 1314, 33047, 5357, 366, ...
What is KK - 5 if KK - 1 is 1,067?
SELECT kk___5 FROM table_name_42 WHERE kk___1 = "1,067"
[ 2061, 318, 509, 42, 532, 642, 611, 509, 42, 532, 352, 318, 352, 11, 15, 3134, 30, 46506, 479, 74, 17569, 20, 16034, 3084, 62, 3672, 62, 3682, 33411, 479, 74, 17569, 16, 796, 366, 16, 11, 15, 3134, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 479, 74, 17569, 20, 16034, 3084, 62, 3672, 62, 3682, 33411, 479, 74, 17569, 16, 796, 366, 16, 11, 15, 3134, 1 ]
what is the total amount of names listed ?
SELECT COUNT("full name") FROM table_204_769
[ 10919, 318, 262, 2472, 2033, 286, 3891, 5610, 5633, 46506, 327, 28270, 7203, 12853, 1438, 4943, 16034, 3084, 62, 18638, 62, 22, 3388 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 2472, 2033, 286, 3891, 5610, 5633, 46506, 327, 28270, 7203, 12853, 1438, 4943, 16034, 3084, 62, 18638, 62, 22, 3388 ]
Competition of pl, and a Score of 1-1, and a Opponents of kelantan had what date?
SELECT date FROM table_name_5 WHERE competition = "pl" AND score = "1-1" AND opponents = "kelantan"
[ 7293, 15620, 286, 458, 11, 290, 257, 15178, 286, 352, 12, 16, 11, 290, 257, 9385, 3906, 286, 885, 75, 415, 272, 550, 644, 3128, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 20, 33411, 5449, 796, 366, 489, 1, 5357, 4776, 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 ]
[ 7293, 15620, 286, 458, 11, 290, 257, 15178, 286, 352, 12, 16, 11, 290, 257, 9385, 3906, 286, 885, 75, 415, 272, 550, 644, 3128, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 20, 33411, 5449, 796, 366, 489, 1, 5357, 4776, 796, 366, ...
provide the number of patients whose marital status is divorced and primary disease is celo-vessicle fistula?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.diagnosis = "CELO-VESSICLE FISTULA"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 29555, 3722, 318, 25107, 290, 4165, 4369, 318, 18725, 78, 12, 85, 408, 1548, 18606, 4712, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 29555, 3722, 318, 25107, 290, 4165, 4369, 318, 18725, 78, 12, 85, 408, 1548, 18606, 4712, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728...
what medication was prescribed for patient 90917 in the same hospital visit after being diagnosed with pressure ulcer, low back since 64 months ago?
SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 90917 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.s...
[ 10919, 14103, 373, 14798, 329, 5827, 860, 2931, 1558, 287, 262, 976, 4436, 3187, 706, 852, 14641, 351, 3833, 14856, 2189, 11, 1877, 736, 1201, 5598, 1933, 2084, 30, 46506, 256, 17, 13, 30349, 16034, 357, 46506, 25349, 13, 32796, 62, 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...
[ 10919, 14103, 373, 14798, 329, 5827, 860, 2931, 1558, 287, 262, 976, 4436, 3187, 706, 852, 14641, 351, 3833, 14856, 2189, 11, 1877, 736, 1201, 5598, 1933, 2084, 30, 46506, 256, 17, 13, 30349, 16034, 357, 46506, 25349, 13, 32796, 62, 3...
get reputation of a user.
SELECT Id, Reputation FROM Users WHERE DisplayName = '##Name##'
[ 1136, 8507, 286, 257, 2836, 13, 46506, 5121, 11, 1432, 7094, 16034, 18987, 33411, 16531, 5376, 796, 705, 2235, 5376, 2235, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1136, 8507, 286, 257, 2836, 13, 46506, 5121, 11, 1432, 7094, 16034, 18987, 33411, 16531, 5376, 796, 705, 2235, 5376, 2235, 6 ]
What is the report for the race of Argentine Grand Prix?
SELECT report FROM table_name_88 WHERE race = "argentine grand prix"
[ 2061, 318, 262, 989, 329, 262, 3234, 286, 36399, 5675, 23832, 30, 46506, 989, 16034, 3084, 62, 3672, 62, 3459, 33411, 3234, 796, 366, 853, 298, 500, 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 ]
[ 2061, 318, 262, 989, 329, 262, 3234, 286, 36399, 5675, 23832, 30, 46506, 989, 16034, 3084, 62, 3672, 62, 3459, 33411, 3234, 796, 366, 853, 298, 500, 4490, 1293, 87, 1 ]
count the number of patients whose age is less than 68 and admission year is less than 2198?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "68" AND demographic.admityear < "2198"
[ 9127, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 8257, 290, 13938, 614, 318, 1342, 621, 362, 22337, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 496, 1279, 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 ]
[ 9127, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 8257, 290, 13938, 614, 318, 1342, 621, 362, 22337, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 496, 1279, 366, ...
What is Date, when Series is ATCC Round 5?
SELECT "Date" FROM table_9368 WHERE "Series" = 'atcc round 5'
[ 2061, 318, 7536, 11, 618, 7171, 318, 5161, 4093, 10485, 642, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 24, 27412, 33411, 366, 27996, 1, 796, 705, 265, 535, 2835, 642, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 7536, 11, 618, 7171, 318, 5161, 4093, 10485, 642, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 24, 27412, 33411, 366, 27996, 1, 796, 705, 265, 535, 2835, 642, 6 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize the relationship between salary and manager_id .
SELECT SALARY, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 38350, 262, 2776, 1022, 9588, 290, 4706, 62, 312, 764, 46506, 42475, 13153, 11, 17254, 4760, 1137, 62, 2389, 16034, 4409, 3341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 38350, 262, 2776, 1022, 9588, 290, 4706, 62, 312, 764, 46506, 42475, 13153, 11, 17254, 4760, 1137, 62, 2389, 16034, 4409, 3341...
how many total laps were there in the 2008 canadian grand prix ?
SELECT MAX("laps") FROM table_203_52
[ 4919, 867, 2472, 24590, 547, 612, 287, 262, 3648, 460, 18425, 4490, 1293, 87, 5633, 46506, 25882, 7203, 75, 1686, 4943, 16034, 3084, 62, 22416, 62, 4309 ]
[ 1, 1, 1, 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, 2472, 24590, 547, 612, 287, 262, 3648, 460, 18425, 4490, 1293, 87, 5633, 46506, 25882, 7203, 75, 1686, 4943, 16034, 3084, 62, 22416, 62, 4309 ]
Where did someone run a 58:33?
SELECT "Event/Place" FROM table_31831 WHERE "Time" = '58:33'
[ 8496, 750, 2130, 1057, 257, 7618, 25, 2091, 30, 46506, 366, 9237, 14, 27271, 1, 16034, 3084, 62, 36042, 3132, 33411, 366, 7575, 1, 796, 705, 3365, 25, 2091, 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 ]
[ 8496, 750, 2130, 1057, 257, 7618, 25, 2091, 30, 46506, 366, 9237, 14, 27271, 1, 16034, 3084, 62, 36042, 3132, 33411, 366, 7575, 1, 796, 705, 3365, 25, 2091, 6 ]
What are the top 10 states that have the highest average math score and federal revenue they got through different categories?
SELECT T2.state, SUM(c14), SUM(c25) FROM finrev_fed_17 AS T1 JOIN finrev_fed_key_17 AS T2 ON T1.state_code = T2.state_code JOIN ndecoreexcel_math_grade8 AS T3 ON T2.state = T3.state GROUP BY T2.state ORDER BY T3.average_scale_score DESC LIMIT 10
[ 2061, 389, 262, 1353, 838, 2585, 326, 423, 262, 4511, 2811, 10688, 4776, 290, 2717, 6426, 484, 1392, 832, 1180, 9376, 30, 46506, 309, 17, 13, 5219, 11, 35683, 7, 66, 1415, 828, 35683, 7, 66, 1495, 8, 16034, 957, 18218, 62, 19082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1353, 838, 2585, 326, 423, 262, 4511, 2811, 10688, 4776, 290, 2717, 6426, 484, 1392, 832, 1180, 9376, 30, 46506, 309, 17, 13, 5219, 11, 35683, 7, 66, 1415, 828, 35683, 7, 66, 1495, 8, 16034, 957, 18218, 62, 19082, ...
What is the rank for the period of 1973 89, with less than 423 games.
SELECT SUM(rank) FROM table_name_7 WHERE period = "1973–89" AND games < 423
[ 2061, 318, 262, 4279, 329, 262, 2278, 286, 15674, 9919, 11, 351, 1342, 621, 49125, 1830, 13, 46506, 35683, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 22, 33411, 2278, 796, 366, 40220, 1906, 4531, 1, 5357, 1830, 1279, 49125 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4279, 329, 262, 2278, 286, 15674, 9919, 11, 351, 1342, 621, 49125, 1830, 13, 46506, 35683, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 22, 33411, 2278, 796, 366, 40220, 1906, 4531, 1, 5357, 1830, 1279, 49125 ]
what is primary disease and procedure long title of subject name morgan mcgee?
SELECT demographic.diagnosis, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Morgan Mcgee"
[ 10919, 318, 4165, 4369, 290, 8771, 890, 3670, 286, 2426, 1438, 2146, 1030, 36650, 29622, 30, 46506, 16728, 13, 47356, 5958, 11, 9021, 13, 6511, 62, 7839, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76, 62, 312,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 4165, 4369, 290, 8771, 890, 3670, 286, 2426, 1438, 2146, 1030, 36650, 29622, 30, 46506, 16728, 13, 47356, 5958, 11, 9021, 13, 6511, 62, 7839, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76, 62, 312,...
Show the Color which has a Thai name of ?
SELECT color FROM table_name_19 WHERE thai_name = "วันพฤหัสบดี"
[ 15307, 262, 5315, 543, 468, 257, 18933, 1438, 286, 5633, 46506, 3124, 16034, 3084, 62, 3672, 62, 1129, 33411, 294, 1872, 62, 3672, 796, 366, 19567, 100, 19567, 109, 19567, 247, 19567, 252, 19567, 97, 19567, 104, 19567, 109, 19567, 103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 262, 5315, 543, 468, 257, 18933, 1438, 286, 5633, 46506, 3124, 16034, 3084, 62, 3672, 62, 1129, 33411, 294, 1872, 62, 3672, 796, 366, 19567, 100, 19567, 109, 19567, 247, 19567, 252, 19567, 97, 19567, 104, 19567, 109, 19567, 103, ...
count the number of patients whose age is less than 47 and days of hospital stay is greater than 6?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "47" AND demographic.days_stay > "6"
[ 9127, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 6298, 290, 1528, 286, 4436, 2652, 318, 3744, 621, 718, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 496, 1279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9127, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 6298, 290, 1528, 286, 4436, 2652, 318, 3744, 621, 718, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 496, 1279, ...
How many games have 23 goals with a rank greater than 9?
SELECT COUNT("Games") FROM table_75039 WHERE "Goals" = '23' AND "Rank" > '9'
[ 2437, 867, 1830, 423, 2242, 4661, 351, 257, 4279, 3744, 621, 860, 30, 46506, 327, 28270, 7203, 24474, 4943, 16034, 3084, 62, 15426, 2670, 33411, 366, 5247, 874, 1, 796, 705, 1954, 6, 5357, 366, 27520, 1, 1875, 705, 24, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1830, 423, 2242, 4661, 351, 257, 4279, 3744, 621, 860, 30, 46506, 327, 28270, 7203, 24474, 4943, 16034, 3084, 62, 15426, 2670, 33411, 366, 5247, 874, 1, 796, 705, 1954, 6, 5357, 366, 27520, 1, 1875, 705, 24, 6 ]
have patient 008-46802's sao2 been normal a month before?
SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '008-46802')) AND vitalperiodic.sao2 BETWEEN sao2_lower AND sao2_uppe...
[ 14150, 5827, 3571, 23, 12, 3510, 30863, 338, 473, 78, 17, 587, 3487, 257, 1227, 878, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 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, 1...
[ 14150, 5827, 3571, 23, 12, 3510, 30863, 338, 473, 78, 17, 587, 3487, 257, 1227, 878, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 1...
On what surface was the Australian Open (6) played on?
SELECT surface FROM table_29163303_1 WHERE championship = "Australian Open (6)"
[ 2202, 644, 4417, 373, 262, 6638, 4946, 357, 21, 8, 2826, 319, 30, 46506, 4417, 16034, 3084, 62, 1959, 24136, 22572, 62, 16, 33411, 12184, 796, 366, 38036, 4946, 357, 21, 16725 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2202, 644, 4417, 373, 262, 6638, 4946, 357, 21, 8, 2826, 319, 30, 46506, 4417, 16034, 3084, 62, 1959, 24136, 22572, 62, 16, 33411, 12184, 796, 366, 38036, 4946, 357, 21, 16725 ]
Name the surface when the partner is carlos berlocq
SELECT surface FROM table_name_13 WHERE partner = "carlos berlocq"
[ 5376, 262, 4417, 618, 262, 5212, 318, 1097, 33280, 18157, 17946, 80, 46506, 4417, 16034, 3084, 62, 3672, 62, 1485, 33411, 5212, 796, 366, 66, 7063, 418, 18157, 17946, 80, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 4417, 618, 262, 5212, 318, 1097, 33280, 18157, 17946, 80, 46506, 4417, 16034, 3084, 62, 3672, 62, 1485, 33411, 5212, 796, 366, 66, 7063, 418, 18157, 17946, 80, 1 ]
Name the segment b for 167
SELECT segment_b FROM table_15187735_13 WHERE episode = 167
[ 5376, 262, 10618, 275, 329, 26118, 46506, 10618, 62, 65, 16034, 3084, 62, 1314, 1507, 3324, 2327, 62, 1485, 33411, 4471, 796, 26118 ]
[ 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, 10618, 275, 329, 26118, 46506, 10618, 62, 65, 16034, 3084, 62, 1314, 1507, 3324, 2327, 62, 1485, 33411, 4471, 796, 26118 ]
who was the only driver that had an accident ?
SELECT "driver" FROM table_204_584 WHERE "time/retired" = 'accident'
[ 8727, 373, 262, 691, 4639, 326, 550, 281, 5778, 5633, 46506, 366, 26230, 1, 16034, 3084, 62, 18638, 62, 46352, 33411, 366, 2435, 14, 1186, 1202, 1, 796, 705, 4134, 738, 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 ]
[ 8727, 373, 262, 691, 4639, 326, 550, 281, 5778, 5633, 46506, 366, 26230, 1, 16034, 3084, 62, 18638, 62, 46352, 33411, 366, 2435, 14, 1186, 1202, 1, 796, 705, 4134, 738, 6 ]
What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21
SELECT DISTINCT T2.thing_id, T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'
[ 2061, 389, 262, 7310, 4686, 290, 2099, 286, 262, 1517, 326, 468, 262, 3722, 705, 26125, 6, 393, 468, 257, 3722, 1700, 878, 262, 3128, 705, 5539, 12, 3312, 12, 1129, 7816, 25, 3270, 25, 2481, 46506, 360, 8808, 1268, 4177, 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...
[ 2061, 389, 262, 7310, 4686, 290, 2099, 286, 262, 1517, 326, 468, 262, 3722, 705, 26125, 6, 393, 468, 257, 3722, 1700, 878, 262, 3128, 705, 5539, 12, 3312, 12, 1129, 7816, 25, 3270, 25, 2481, 46506, 360, 8808, 1268, 4177, 309, 17, ...
For those records from the products and each product's manufacturer, find founder and the average of price , and group by attribute founder, and visualize them by a bar chart, and rank in desc by the x-axis.
SELECT Founder, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1064, 9119, 290, 262, 2811, 286, 2756, 837, 290, 1448, 416, 11688, 9119, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 290, 4279, 287, 1715, 416, 262, 2124, 12, 2270...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1064, 9119, 290, 262, 2811, 286, 2756, 837, 290, 1448, 416, 11688, 9119, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 290, 4279, 287, 1715, 416, 262, 2124, 12, 2270...
What is the highest pick when the college is saginaw valley state?
SELECT MAX("Pick") FROM table_63736 WHERE "College" = 'saginaw valley state'
[ 2061, 318, 262, 4511, 2298, 618, 262, 4152, 318, 264, 23183, 707, 19272, 1181, 30, 46506, 25882, 7203, 31686, 4943, 16034, 3084, 62, 21, 2718, 2623, 33411, 366, 38951, 1, 796, 705, 82, 23183, 707, 19272, 1181, 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, 4511, 2298, 618, 262, 4152, 318, 264, 23183, 707, 19272, 1181, 30, 46506, 25882, 7203, 31686, 4943, 16034, 3084, 62, 21, 2718, 2623, 33411, 366, 38951, 1, 796, 705, 82, 23183, 707, 19272, 1181, 6 ]
What position did the Saskatchewan player get drafted as?
SELECT "Position" FROM table_51299 WHERE "College" = 'saskatchewan'
[ 2061, 2292, 750, 262, 31346, 2137, 651, 15937, 355, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 25836, 2079, 33411, 366, 38951, 1, 796, 705, 82, 2093, 29736, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2292, 750, 262, 31346, 2137, 651, 15937, 355, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 25836, 2079, 33411, 366, 38951, 1, 796, 705, 82, 2093, 29736, 6 ]
how much is the hco3 difference for patient 005-11182 second measured on the last hospital visit compared to the value first measured on the last hospital visit?
SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-11182' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi...
[ 4919, 881, 318, 262, 289, 1073, 18, 3580, 329, 5827, 3571, 20, 12, 1157, 24294, 1218, 8630, 319, 262, 938, 4436, 3187, 3688, 284, 262, 1988, 717, 8630, 319, 262, 938, 4436, 3187, 30, 46506, 357, 46506, 2248, 13, 23912, 20274, 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...
[ 4919, 881, 318, 262, 289, 1073, 18, 3580, 329, 5827, 3571, 20, 12, 1157, 24294, 1218, 8630, 319, 262, 938, 4436, 3187, 3688, 284, 262, 1988, 717, 8630, 319, 262, 938, 4436, 3187, 30, 46506, 357, 46506, 2248, 13, 23912, 20274, 16034, ...
what is the county where the market income per capita is $25,006?
SELECT county FROM table_22815568_13 WHERE market_income_per_capita = "$25,006"
[ 10919, 318, 262, 7968, 810, 262, 1910, 3739, 583, 21344, 318, 720, 1495, 11, 28041, 30, 46506, 7968, 16034, 3084, 62, 23815, 18742, 3104, 62, 1485, 33411, 1910, 62, 12519, 62, 525, 62, 11128, 5350, 796, 17971, 1495, 11, 28041, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7968, 810, 262, 1910, 3739, 583, 21344, 318, 720, 1495, 11, 28041, 30, 46506, 7968, 16034, 3084, 62, 23815, 18742, 3104, 62, 1485, 33411, 1910, 62, 12519, 62, 525, 62, 11128, 5350, 796, 17971, 1495, 11, 28041, 1 ]
what is the number of patients taking main type drug prescription who are diagnosed with hypotension of hemodialysis?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Hemododialysis hypotensn" AND prescriptions.drug_type = "MAIN"
[ 10919, 318, 262, 1271, 286, 3871, 2263, 1388, 2099, 2563, 15077, 508, 389, 14641, 351, 8813, 3004, 286, 339, 4666, 498, 3097, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 323...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1271, 286, 3871, 2263, 1388, 2099, 2563, 15077, 508, 389, 14641, 351, 8813, 3004, 286, 339, 4666, 498, 3097, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 323...
From what catalog was the release from Sundazed label?
SELECT "Catalog" FROM table_13857 WHERE "Label" = 'sundazed'
[ 4863, 644, 18388, 373, 262, 2650, 422, 3309, 13865, 6167, 30, 46506, 366, 49015, 1, 16034, 3084, 62, 20107, 3553, 33411, 366, 33986, 1, 796, 705, 82, 917, 13865, 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 ]
[ 4863, 644, 18388, 373, 262, 2650, 422, 3309, 13865, 6167, 30, 46506, 366, 49015, 1, 16034, 3084, 62, 20107, 3553, 33411, 366, 33986, 1, 796, 705, 82, 917, 13865, 6 ]
Name the 3rd round for 1st eound of out of playoffs
SELECT "3rd round" FROM table_67587 WHERE "1st round" = 'out of playoffs'
[ 5376, 262, 513, 4372, 2835, 329, 352, 301, 304, 633, 286, 503, 286, 12980, 46506, 366, 18, 4372, 2835, 1, 16034, 3084, 62, 42444, 5774, 33411, 366, 16, 301, 2835, 1, 796, 705, 448, 286, 12980, 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, 513, 4372, 2835, 329, 352, 301, 304, 633, 286, 503, 286, 12980, 46506, 366, 18, 4372, 2835, 1, 16034, 3084, 62, 42444, 5774, 33411, 366, 16, 301, 2835, 1, 796, 705, 448, 286, 12980, 6 ]
how many games were played at the ben hill griffin stadium during the 2010-2011 season ?
SELECT COUNT(*) FROM table_204_897 WHERE "site" = 'ben hill griffin stadium • gainesville'
[ 4919, 867, 1830, 547, 2826, 379, 262, 1888, 12788, 1036, 42022, 10308, 1141, 262, 3050, 12, 9804, 1622, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 4531, 22, 33411, 366, 15654, 1, 796, 705, 11722, 12788, 1036, 42022, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1830, 547, 2826, 379, 262, 1888, 12788, 1036, 42022, 10308, 1141, 262, 3050, 12, 9804, 1622, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 4531, 22, 33411, 366, 15654, 1, 796, 705, 11722, 12788, 1036, 42022, ...
what was the last value of an creatinine lab test in patient 002-41152 the previous month?
SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-41152')) AND lab.labname = 'creatinine' AND DATETIME(lab.labresulttime, 'start of m...
[ 10919, 373, 262, 938, 1988, 286, 281, 1827, 259, 500, 2248, 1332, 287, 5827, 3571, 17, 12, 42224, 4309, 262, 2180, 1227, 30, 46506, 2248, 13, 23912, 20274, 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...
[ 10919, 373, 262, 938, 1988, 286, 281, 1827, 259, 500, 2248, 1332, 287, 5827, 3571, 17, 12, 42224, 4309, 262, 2180, 1227, 30, 46506, 2248, 13, 23912, 20274, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, ...
What is the highest pts after 1952 with connaught type a?
SELECT MAX(pts) FROM table_name_79 WHERE year > 1952 AND chassis = "connaught type a"
[ 2061, 318, 262, 4511, 43344, 706, 26352, 351, 48260, 3413, 2099, 257, 30, 46506, 25882, 7, 457, 82, 8, 16034, 3084, 62, 3672, 62, 3720, 33411, 614, 1875, 26352, 5357, 24587, 796, 366, 37043, 3413, 2099, 257, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 43344, 706, 26352, 351, 48260, 3413, 2099, 257, 30, 46506, 25882, 7, 457, 82, 8, 16034, 3084, 62, 3672, 62, 3720, 33411, 614, 1875, 26352, 5357, 24587, 796, 366, 37043, 3413, 2099, 257, 1 ]
Who was in the East when TUS Geretsried II was in the South?
SELECT east FROM table_name_9 WHERE south = "tus geretsried ii"
[ 8241, 373, 287, 262, 3687, 618, 309, 2937, 402, 567, 912, 2228, 2873, 373, 287, 262, 2520, 30, 46506, 7627, 16034, 3084, 62, 3672, 62, 24, 33411, 5366, 796, 366, 83, 385, 308, 567, 912, 2228, 21065, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 287, 262, 3687, 618, 309, 2937, 402, 567, 912, 2228, 2873, 373, 287, 262, 2520, 30, 46506, 7627, 16034, 3084, 62, 3672, 62, 24, 33411, 5366, 796, 366, 83, 385, 308, 567, 912, 2228, 21065, 1 ]
On what date was the opponent the White Sox and the record 18-13?
SELECT "Date" FROM table_67932 WHERE "Opponent" = 'white sox' AND "Record" = '18-13'
[ 2202, 644, 3128, 373, 262, 6125, 262, 2635, 17689, 290, 262, 1700, 1248, 12, 1485, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 37601, 2624, 33411, 366, 27524, 3471, 1, 796, 705, 11186, 523, 87, 6, 5357, 366, 23739, 1, 796, 705, 1507,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 644, 3128, 373, 262, 6125, 262, 2635, 17689, 290, 262, 1700, 1248, 12, 1485, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 37601, 2624, 33411, 366, 27524, 3471, 1, 796, 705, 11186, 523, 87, 6, 5357, 366, 23739, 1, 796, 705, 1507,...
What is the ICAO for Hong Kong?
SELECT "ICAO" FROM table_38161 WHERE "Country" = 'hong kong'
[ 2061, 318, 262, 314, 8141, 46, 329, 9764, 9071, 30, 46506, 366, 25241, 46, 1, 16034, 3084, 62, 2548, 25948, 33411, 366, 33921, 1, 796, 705, 71, 506, 479, 506, 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, 314, 8141, 46, 329, 9764, 9071, 30, 46506, 366, 25241, 46, 1, 16034, 3084, 62, 2548, 25948, 33411, 366, 33921, 1, 796, 705, 71, 506, 479, 506, 6 ]
find out the number of patients taking medication via left eye.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "LEFT EYE"
[ 19796, 503, 262, 1271, 286, 3871, 2263, 14103, 2884, 1364, 4151, 13, 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, 62, 312, 796, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 19796, 503, 262, 1271, 286, 3871, 2263, 14103, 2884, 1364, 4151, 13, 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, 62, 312, 796, 34...
On what date was Wimbledon the home team?
SELECT "Date" FROM table_60839 WHERE "Home team" = 'wimbledon'
[ 2202, 644, 3128, 373, 39999, 49258, 262, 1363, 1074, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 28688, 2670, 33411, 366, 16060, 1074, 1, 796, 705, 86, 320, 49258, 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 ]
[ 2202, 644, 3128, 373, 39999, 49258, 262, 1363, 1074, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 28688, 2670, 33411, 366, 16060, 1074, 1, 796, 705, 86, 320, 49258, 6 ]
How many customers are there in the customer type with the most customers?
SELECT COUNT(*) FROM customers GROUP BY customer_type_code ORDER BY COUNT(*) DESC LIMIT 1
[ 2437, 867, 4297, 389, 612, 287, 262, 6491, 2099, 351, 262, 749, 4297, 30, 46506, 327, 28270, 7, 28104, 16034, 4297, 44441, 11050, 6491, 62, 4906, 62, 8189, 38678, 11050, 327, 28270, 7, 28104, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 4297, 389, 612, 287, 262, 6491, 2099, 351, 262, 749, 4297, 30, 46506, 327, 28270, 7, 28104, 16034, 4297, 44441, 11050, 6491, 62, 4906, 62, 8189, 38678, 11050, 327, 28270, 7, 28104, 22196, 34, 27564, 2043, 352 ]
Which Engine has a Model of s320 cdi?
SELECT engine FROM table_name_87 WHERE model = "s320 cdi"
[ 13828, 7117, 468, 257, 9104, 286, 264, 19504, 269, 10989, 30, 46506, 3113, 16034, 3084, 62, 3672, 62, 5774, 33411, 2746, 796, 366, 82, 19504, 269, 10989, 1 ]
[ 1, 1, 1, 1, 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, 7117, 468, 257, 9104, 286, 264, 19504, 269, 10989, 30, 46506, 3113, 16034, 3084, 62, 3672, 62, 5774, 33411, 2746, 796, 366, 82, 19504, 269, 10989, 1 ]
what is the sweet for voice actor saki fujita?
SELECT sweet FROM table_26615633_3 WHERE voice_actor = "Saki Fujita"
[ 10919, 318, 262, 6029, 329, 3809, 8674, 264, 8182, 14035, 73, 5350, 30, 46506, 6029, 16034, 3084, 62, 25540, 21599, 2091, 62, 18, 33411, 3809, 62, 11218, 796, 366, 50, 8182, 32671, 5350, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6029, 329, 3809, 8674, 264, 8182, 14035, 73, 5350, 30, 46506, 6029, 16034, 3084, 62, 25540, 21599, 2091, 62, 18, 33411, 3809, 62, 11218, 796, 366, 50, 8182, 32671, 5350, 1 ]
Create a bar chart showing total number of meter 100 across meter 200, display x-axis from high to low order.
SELECT meter_200, SUM(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC
[ 16447, 257, 2318, 8262, 4478, 2472, 1271, 286, 16430, 1802, 1973, 16430, 939, 11, 3359, 2124, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 16430, 62, 2167, 11, 35683, 7, 27231, 62, 3064, 8, 16034, 9422, 647, 44441, 11050, 16430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16447, 257, 2318, 8262, 4478, 2472, 1271, 286, 16430, 1802, 1973, 16430, 939, 11, 3359, 2124, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 16430, 62, 2167, 11, 35683, 7, 27231, 62, 3064, 8, 16034, 9422, 647, 44441, 11050, 16430, ...
Which length has a Stage of 9?
SELECT "Length" FROM table_32381 WHERE "Stage" = '9'
[ 13828, 4129, 468, 257, 15371, 286, 860, 30, 46506, 366, 24539, 1, 16034, 3084, 62, 32637, 6659, 33411, 366, 29391, 1, 796, 705, 24, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 4129, 468, 257, 15371, 286, 860, 30, 46506, 366, 24539, 1, 16034, 3084, 62, 32637, 6659, 33411, 366, 29391, 1, 796, 705, 24, 6 ]
What is the number of distinct teams that suffer elimination?
SELECT COUNT(DISTINCT team) FROM elimination
[ 2061, 318, 262, 1271, 286, 7310, 3466, 326, 8659, 21472, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 1074, 8, 16034, 21472 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1271, 286, 7310, 3466, 326, 8659, 21472, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 1074, 8, 16034, 21472 ]
For those employees who did not have any job in the past, draw a bar chart about the distribution of job_id and the sum of salary , and group by attribute job_id.
SELECT JOB_ID, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 13, 46506, 449, 9864, 62, 2389, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2160, 286, 9588, 837, 290, 1448, 416, 11688, 1693, 62, 312, 13, 46506, 449, 9864, 62, 2389, 1...
what was the last time that patient 030-60126 had a pericardiocentesis - placement of pericardial drainage catheter performed when they visited the hospital last time?
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-60126' AND NOT patient.hospitaldischargetime IS NULL ORDER BY...
[ 10919, 373, 262, 938, 640, 326, 5827, 657, 1270, 12, 41706, 2075, 550, 257, 583, 291, 22490, 29421, 9339, 532, 13127, 286, 583, 291, 446, 498, 37664, 3797, 43332, 6157, 618, 484, 8672, 262, 4436, 938, 640, 30, 46506, 3513, 13, 42487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 640, 326, 5827, 657, 1270, 12, 41706, 2075, 550, 257, 583, 291, 22490, 29421, 9339, 532, 13127, 286, 583, 291, 446, 498, 37664, 3797, 43332, 6157, 618, 484, 8672, 262, 4436, 938, 640, 30, 46506, 3513, 13, 42487, ...
What is the area of the civil parish kilworth and townland monadrishane?
SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = "Kilworth" AND townland = "Monadrishane"
[ 2061, 318, 262, 1989, 286, 262, 3026, 28830, 8769, 9268, 290, 3240, 1044, 937, 324, 37518, 1531, 30, 46506, 1989, 834, 330, 411, 834, 16034, 3084, 62, 18938, 1238, 37864, 62, 16, 33411, 3026, 62, 1845, 680, 796, 366, 42, 346, 9268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1989, 286, 262, 3026, 28830, 8769, 9268, 290, 3240, 1044, 937, 324, 37518, 1531, 30, 46506, 1989, 834, 330, 411, 834, 16034, 3084, 62, 18938, 1238, 37864, 62, 16, 33411, 3026, 62, 1845, 680, 796, 366, 42, 346, 9268, ...
How many wins or losses were there when the record was 3-0?
SELECT COUNT(result) FROM table_20850527_1 WHERE record = "3-0"
[ 2437, 867, 7864, 393, 9089, 547, 612, 618, 262, 1700, 373, 513, 12, 15, 30, 46506, 327, 28270, 7, 20274, 8, 16034, 3084, 62, 21315, 31654, 1983, 62, 16, 33411, 1700, 796, 366, 18, 12, 15, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 7864, 393, 9089, 547, 612, 618, 262, 1700, 373, 513, 12, 15, 30, 46506, 327, 28270, 7, 20274, 8, 16034, 3084, 62, 21315, 31654, 1983, 62, 16, 33411, 1700, 796, 366, 18, 12, 15, 1 ]
How many distinct FDA approval statuses are there for the medicines?
SELECT COUNT(DISTINCT FDA_approved) FROM medicine
[ 2437, 867, 7310, 14672, 7546, 1185, 2664, 389, 612, 329, 262, 23533, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 14672, 62, 29137, 8, 16034, 9007 ]
[ 1, 1, 1, 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, 7310, 14672, 7546, 1185, 2664, 389, 612, 329, 262, 23533, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 14672, 62, 29137, 8, 16034, 9007 ]
Which customer status code has least number of customers?
SELECT customer_status_code FROM customers GROUP BY customer_status_code ORDER BY COUNT(*) LIMIT 1
[ 13828, 6491, 3722, 2438, 468, 1551, 1271, 286, 4297, 30, 46506, 6491, 62, 13376, 62, 8189, 16034, 4297, 44441, 11050, 6491, 62, 13376, 62, 8189, 38678, 11050, 327, 28270, 7, 28104, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 6491, 3722, 2438, 468, 1551, 1271, 286, 4297, 30, 46506, 6491, 62, 13376, 62, 8189, 16034, 4297, 44441, 11050, 6491, 62, 13376, 62, 8189, 38678, 11050, 327, 28270, 7, 28104, 27564, 2043, 352 ]
Distribution of users by the number of upvotes.
SELECT UpVotes AS upvotes, COUNT(*) AS total_users FROM Users WHERE Reputation >= 15 GROUP BY UpVotes ORDER BY UpVotes
[ 20344, 3890, 286, 2985, 416, 262, 1271, 286, 510, 29307, 13, 46506, 3205, 53, 6421, 7054, 510, 29307, 11, 327, 28270, 7, 28104, 7054, 2472, 62, 18417, 16034, 18987, 33411, 1432, 7094, 18189, 1315, 44441, 11050, 3205, 53, 6421, 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 ]
[ 20344, 3890, 286, 2985, 416, 262, 1271, 286, 510, 29307, 13, 46506, 3205, 53, 6421, 7054, 510, 29307, 11, 327, 28270, 7, 28104, 7054, 2472, 62, 18417, 16034, 18987, 33411, 1432, 7094, 18189, 1315, 44441, 11050, 3205, 53, 6421, 38678, 11...
for how many days was the patient with patient id 6983 admitted in hospital?
SELECT demographic.days_stay FROM demographic WHERE demographic.subject_id = "6983"
[ 1640, 703, 867, 1528, 373, 262, 5827, 351, 5827, 4686, 39861, 18, 6848, 287, 4436, 30, 46506, 16728, 13, 12545, 62, 31712, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 3388, 5999, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1640, 703, 867, 1528, 373, 262, 5827, 351, 5827, 4686, 39861, 18, 6848, 287, 4436, 30, 46506, 16728, 13, 12545, 62, 31712, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 3388, 5999, 1 ]
What name is located in China?
SELECT "Name" FROM table_39800 WHERE "Location" = 'china'
[ 2061, 1438, 318, 5140, 287, 2807, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 2670, 7410, 33411, 366, 14749, 1, 796, 705, 354, 1437, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1438, 318, 5140, 287, 2807, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 2670, 7410, 33411, 366, 14749, 1, 796, 705, 354, 1437, 6 ]
What is the total overall number of the ot position player with a pick greater than 5?
SELECT COUNT(overall) FROM table_name_59 WHERE position = "ot" AND pick > 5
[ 2061, 318, 262, 2472, 4045, 1271, 286, 262, 30972, 2292, 2137, 351, 257, 2298, 3744, 621, 642, 30, 46506, 327, 28270, 7, 2502, 439, 8, 16034, 3084, 62, 3672, 62, 3270, 33411, 2292, 796, 366, 313, 1, 5357, 2298, 1875, 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 ]
[ 2061, 318, 262, 2472, 4045, 1271, 286, 262, 30972, 2292, 2137, 351, 257, 2298, 3744, 621, 642, 30, 46506, 327, 28270, 7, 2502, 439, 8, 16034, 3084, 62, 3672, 62, 3270, 33411, 2292, 796, 366, 313, 1, 5357, 2298, 1875, 642 ]
who is at the top of the chart ?
SELECT "round" FROM table_204_234 ORDER BY id LIMIT 1
[ 8727, 318, 379, 262, 1353, 286, 262, 8262, 5633, 46506, 366, 744, 1, 16034, 3084, 62, 18638, 62, 24409, 38678, 11050, 4686, 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 ]
[ 8727, 318, 379, 262, 1353, 286, 262, 8262, 5633, 46506, 366, 744, 1, 16034, 3084, 62, 18638, 62, 24409, 38678, 11050, 4686, 27564, 2043, 352 ]
What was the total number of A scores for Japan when the T score was more than 4?
SELECT COUNT("A Score") FROM table_38234 WHERE "Nation" = 'japan' AND "T Score" > '4'
[ 2061, 373, 262, 2472, 1271, 286, 317, 8198, 329, 2869, 618, 262, 309, 4776, 373, 517, 621, 604, 30, 46506, 327, 28270, 7203, 32, 15178, 4943, 16034, 3084, 62, 2548, 24409, 33411, 366, 46108, 1, 796, 705, 73, 2674, 6, 5357, 366, 51, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 1271, 286, 317, 8198, 329, 2869, 618, 262, 309, 4776, 373, 517, 621, 604, 30, 46506, 327, 28270, 7203, 32, 15178, 4943, 16034, 3084, 62, 2548, 24409, 33411, 366, 46108, 1, 796, 705, 73, 2674, 6, 5357, 366, 51, ...
what is 2000 when 2012 is 4r?
SELECT 2000 FROM table_name_4 WHERE 2012 = "4r"
[ 10919, 318, 4751, 618, 2321, 318, 604, 81, 30, 46506, 4751, 16034, 3084, 62, 3672, 62, 19, 33411, 2321, 796, 366, 19, 81, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 4751, 618, 2321, 318, 604, 81, 30, 46506, 4751, 16034, 3084, 62, 3672, 62, 19, 33411, 2321, 796, 366, 19, 81, 1 ]
What is the least amount of league of communists where municipality is mojkovac
SELECT MIN("League of Communists") FROM table_1216 WHERE "Municipality" = 'Mojkovac'
[ 2061, 318, 262, 1551, 2033, 286, 4652, 286, 40938, 810, 27264, 318, 6941, 73, 21862, 330, 46506, 20625, 7203, 24623, 286, 39049, 4943, 16034, 3084, 62, 1065, 1433, 33411, 366, 44, 9462, 1483, 1, 796, 705, 44, 13210, 21862, 330, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1551, 2033, 286, 4652, 286, 40938, 810, 27264, 318, 6941, 73, 21862, 330, 46506, 20625, 7203, 24623, 286, 39049, 4943, 16034, 3084, 62, 1065, 1433, 33411, 366, 44, 9462, 1483, 1, 796, 705, 44, 13210, 21862, 330, 6 ]
how many patients whose drug name is tizanidine?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Tizanidine"
[ 4919, 867, 3871, 3025, 2563, 1438, 318, 256, 528, 272, 39422, 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, 62, 312, 796, 34092...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 3871, 3025, 2563, 1438, 318, 256, 528, 272, 39422, 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, 62, 312, 796, 34092...
Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?
SELECT rank FROM table_name_25 WHERE silver > 1 AND gold > 1 AND bronze > 4
[ 13828, 4279, 468, 517, 621, 352, 8465, 11, 517, 621, 352, 3869, 11, 290, 517, 621, 604, 22101, 30, 46506, 4279, 16034, 3084, 62, 3672, 62, 1495, 33411, 8465, 1875, 352, 5357, 3869, 1875, 352, 5357, 22101, 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 ]
[ 13828, 4279, 468, 517, 621, 352, 8465, 11, 517, 621, 352, 3869, 11, 290, 517, 621, 604, 22101, 30, 46506, 4279, 16034, 3084, 62, 3672, 62, 1495, 33411, 8465, 1875, 352, 5357, 3869, 1875, 352, 5357, 22101, 1875, 604 ]