instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
What's the end score of the game where Shane Battier (8) did the high rebounds?
SELECT score FROM table_23281862_6 WHERE high_rebounds = "Shane Battier (8)"
[ 2061, 338, 262, 886, 4776, 286, 262, 983, 810, 24379, 12350, 959, 357, 23, 8, 750, 262, 1029, 18841, 30, 46506, 4776, 16034, 3084, 62, 1954, 2078, 1507, 5237, 62, 21, 33411, 1029, 62, 34806, 3733, 796, 366, 2484, 1531, 12350, 959, 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 ]
[ 2061, 338, 262, 886, 4776, 286, 262, 983, 810, 24379, 12350, 959, 357, 23, 8, 750, 262, 1029, 18841, 30, 46506, 4776, 16034, 3084, 62, 1954, 2078, 1507, 5237, 62, 21, 33411, 1029, 62, 34806, 3733, 796, 366, 2484, 1531, 12350, 959, 3...
What was the score in the game where the Blazers were the home team?
SELECT score FROM table_name_95 WHERE home = "blazers"
[ 2061, 373, 262, 4776, 287, 262, 983, 810, 262, 34766, 547, 262, 1363, 1074, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 3865, 33411, 1363, 796, 366, 2436, 1031, 364, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 287, 262, 983, 810, 262, 34766, 547, 262, 1363, 1074, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 3865, 33411, 1363, 796, 366, 2436, 1031, 364, 1 ]
What is the points number when 20 shows for played, and lost is 0?
SELECT "Points for" FROM table_76611 WHERE "Played" = '20' AND "Lost" = '0'
[ 2061, 318, 262, 2173, 1271, 618, 1160, 2523, 329, 2826, 11, 290, 2626, 318, 657, 30, 46506, 366, 40710, 329, 1, 16034, 3084, 62, 22, 2791, 1157, 33411, 366, 11002, 276, 1, 796, 705, 1238, 6, 5357, 366, 31042, 1, 796, 705, 15, 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 ]
[ 2061, 318, 262, 2173, 1271, 618, 1160, 2523, 329, 2826, 11, 290, 2626, 318, 657, 30, 46506, 366, 40710, 329, 1, 16034, 3084, 62, 22, 2791, 1157, 33411, 366, 11002, 276, 1, 796, 705, 1238, 6, 5357, 366, 31042, 1, 796, 705, 15, 6 ]
What is the year with a kurtis kraft 500a chassis?
SELECT SUM("Year") FROM table_71618 WHERE "Chassis" = 'kurtis kraft 500a'
[ 2061, 318, 262, 614, 351, 257, 479, 3325, 271, 479, 1617, 5323, 64, 24587, 30, 46506, 35683, 7203, 17688, 4943, 16034, 3084, 62, 22, 1433, 1507, 33411, 366, 1925, 20297, 1, 796, 705, 74, 3325, 271, 479, 1617, 5323, 64, 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, 614, 351, 257, 479, 3325, 271, 479, 1617, 5323, 64, 24587, 30, 46506, 35683, 7203, 17688, 4943, 16034, 3084, 62, 22, 1433, 1507, 33411, 366, 1925, 20297, 1, 796, 705, 74, 3325, 271, 479, 1617, 5323, 64, 6 ]
how many patients born before year 2087 had the lab test fluid pleural?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2087" AND lab.fluid = "Pleural"
[ 4919, 867, 3871, 4642, 878, 614, 1160, 5774, 550, 262, 2248, 1332, 11711, 3339, 1523, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4642, 878, 614, 1160, 5774, 550, 262, 2248, 1332, 11711, 3339, 1523, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, ...
Return the average age of captains in each class, and I want to show from high to low by the total number.
SELECT Class, AVG(age) FROM captain GROUP BY Class ORDER BY AVG(age) DESC
[ 13615, 262, 2811, 2479, 286, 37551, 287, 1123, 1398, 11, 290, 314, 765, 284, 905, 422, 1029, 284, 1877, 416, 262, 2472, 1271, 13, 46506, 5016, 11, 35224, 7, 496, 8, 16034, 10654, 44441, 11050, 5016, 38678, 11050, 35224, 7, 496, 8, 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 ]
[ 13615, 262, 2811, 2479, 286, 37551, 287, 1123, 1398, 11, 290, 314, 765, 284, 905, 422, 1029, 284, 1877, 416, 262, 2472, 1271, 13, 46506, 5016, 11, 35224, 7, 496, 8, 16034, 10654, 44441, 11050, 5016, 38678, 11050, 35224, 7, 496, 8, 2...
How many accounts for different account details? Draw a bar chart, sort X-axis in asc order please.
SELECT other_account_details, COUNT(other_account_details) FROM Accounts GROUP BY other_account_details ORDER BY other_account_details
[ 2437, 867, 5504, 329, 1180, 1848, 3307, 30, 15315, 257, 2318, 8262, 11, 3297, 1395, 12, 22704, 287, 10570, 1502, 3387, 13, 46506, 584, 62, 23317, 62, 36604, 11, 327, 28270, 7, 847, 62, 23317, 62, 36604, 8, 16034, 35584, 44441, 11050, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 5504, 329, 1180, 1848, 3307, 30, 15315, 257, 2318, 8262, 11, 3297, 1395, 12, 22704, 287, 10570, 1502, 3387, 13, 46506, 584, 62, 23317, 62, 36604, 11, 327, 28270, 7, 847, 62, 23317, 62, 36604, 8, 16034, 35584, 44441, 11050, ...
Which home team scored 15.11 (101)?
SELECT "Home team" FROM table_56745 WHERE "Home team score" = '15.11 (101)'
[ 13828, 1363, 1074, 7781, 1315, 13, 1157, 357, 8784, 19427, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 20, 3134, 2231, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 1314, 13, 1157, 357, 8784, 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 ]
[ 13828, 1363, 1074, 7781, 1315, 13, 1157, 357, 8784, 19427, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 20, 3134, 2231, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 1314, 13, 1157, 357, 8784, 33047 ]
Show me a bar chart for what are the different ids and names of the stations that have had more than 12 bikes available?, show in desc by the x axis.
SELECT name, id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12 ORDER BY name DESC
[ 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, 21747, 905, 287, 1715, 416, 262, 2124, 16488, 13, 46506, 1438, 11, 4686, 16034, 4429, 7054, 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...
[ 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, 21747, 905, 287, 1715, 416, 262, 2124, 16488, 13, 46506, 1438, 11, 4686, 16034, 4429, 7054, 309, ...
How many podiums for the driver with 18 stage wins?
SELECT COUNT(podiums) FROM table_18811741_15 WHERE stage_wins = 18
[ 2437, 867, 27941, 82, 329, 262, 4639, 351, 1248, 3800, 7864, 30, 46506, 327, 28270, 7, 79, 12664, 82, 8, 16034, 3084, 62, 20356, 17657, 3901, 62, 1314, 33411, 3800, 62, 86, 1040, 796, 1248 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 27941, 82, 329, 262, 4639, 351, 1248, 3800, 7864, 30, 46506, 327, 28270, 7, 79, 12664, 82, 8, 16034, 3084, 62, 20356, 17657, 3901, 62, 1314, 33411, 3800, 62, 86, 1040, 796, 1248 ]
Which nation won the boxing championship in 2012?
SELECT nation_represented FROM table_name_1 WHERE year = 2012
[ 13828, 3277, 1839, 262, 21576, 12184, 287, 2321, 30, 46506, 3277, 62, 33469, 16034, 3084, 62, 3672, 62, 16, 33411, 614, 796, 2321 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 3277, 1839, 262, 21576, 12184, 287, 2321, 30, 46506, 3277, 62, 33469, 16034, 3084, 62, 3672, 62, 16, 33411, 614, 796, 2321 ]
What is Home team Venue for the hawthorn team?
SELECT venue FROM table_name_58 WHERE home_team = "hawthorn"
[ 2061, 318, 5995, 1074, 9932, 518, 329, 262, 23185, 400, 1211, 1074, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 3365, 33411, 1363, 62, 15097, 796, 366, 26615, 400, 1211, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 5995, 1074, 9932, 518, 329, 262, 23185, 400, 1211, 1074, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 3365, 33411, 1363, 62, 15097, 796, 366, 26615, 400, 1211, 1 ]
Who is every successor for the Washington 3rd District?
SELECT "Successor" FROM table_24495 WHERE "District" = 'Washington 3rd'
[ 8241, 318, 790, 17270, 329, 262, 2669, 513, 4372, 5665, 30, 46506, 366, 33244, 273, 1, 16034, 3084, 62, 1731, 33781, 33411, 366, 44857, 1, 796, 705, 17402, 513, 4372, 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 ]
[ 8241, 318, 790, 17270, 329, 262, 2669, 513, 4372, 5665, 30, 46506, 366, 33244, 273, 1, 16034, 3084, 62, 1731, 33781, 33411, 366, 44857, 1, 796, 705, 17402, 513, 4372, 6 ]
how long did bob martinez serve as director ?
SELECT "term of office" - "term of office" FROM table_203_376 WHERE "name" = 'bob martinez'
[ 4919, 890, 750, 29202, 11277, 18885, 4691, 355, 3437, 5633, 46506, 366, 4354, 286, 2607, 1, 532, 366, 4354, 286, 2607, 1, 16034, 3084, 62, 22416, 62, 32128, 33411, 366, 3672, 1, 796, 705, 65, 672, 11277, 18885, 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 ]
[ 4919, 890, 750, 29202, 11277, 18885, 4691, 355, 3437, 5633, 46506, 366, 4354, 286, 2607, 1, 532, 366, 4354, 286, 2607, 1, 16034, 3084, 62, 22416, 62, 32128, 33411, 366, 3672, 1, 796, 705, 65, 672, 11277, 18885, 6 ]
What are the number of rooms for each bed type Show bar chart, could you list by the y axis from high to low?
SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType ORDER BY COUNT(*) DESC
[ 2061, 389, 262, 1271, 286, 9519, 329, 1123, 3996, 2099, 5438, 2318, 8262, 11, 714, 345, 1351, 416, 262, 331, 16488, 422, 1029, 284, 1877, 30, 46506, 3996, 6030, 11, 327, 28270, 7, 28104, 16034, 42043, 44441, 11050, 3996, 6030, 38678, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 9519, 329, 1123, 3996, 2099, 5438, 2318, 8262, 11, 714, 345, 1351, 416, 262, 331, 16488, 422, 1029, 284, 1877, 30, 46506, 3996, 6030, 11, 327, 28270, 7, 28104, 16034, 42043, 44441, 11050, 3996, 6030, 38678, ...
List the age of each head of departments in a bar chart ordered by age.
SELECT name, age FROM head ORDER BY age
[ 8053, 262, 2479, 286, 1123, 1182, 286, 13346, 287, 257, 2318, 8262, 6149, 416, 2479, 13, 46506, 1438, 11, 2479, 16034, 1182, 38678, 11050, 2479 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 262, 2479, 286, 1123, 1182, 286, 13346, 287, 257, 2318, 8262, 6149, 416, 2479, 13, 46506, 1438, 11, 2479, 16034, 1182, 38678, 11050, 2479 ]
What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?
SELECT washington, _dc FROM table_13012165_1 WHERE new_york = "Ramapo LL Ramapo"
[ 2061, 3466, 2826, 287, 2669, 11, 6257, 262, 614, 326, 7431, 41817, 27140, 7431, 41817, 373, 262, 983, 287, 968, 1971, 30, 46506, 20518, 1122, 11, 4808, 17896, 16034, 3084, 62, 1485, 486, 20666, 20, 62, 16, 33411, 649, 62, 88, 967, 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 ]
[ 2061, 3466, 2826, 287, 2669, 11, 6257, 262, 614, 326, 7431, 41817, 27140, 7431, 41817, 373, 262, 983, 287, 968, 1971, 30, 46506, 20518, 1122, 11, 4808, 17896, 16034, 3084, 62, 1485, 486, 20666, 20, 62, 16, 33411, 649, 62, 88, 967, 7...
What was the result for week 14?
SELECT result FROM table_name_29 WHERE week = 14
[ 2061, 373, 262, 1255, 329, 1285, 1478, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 1959, 33411, 1285, 796, 1478 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 1255, 329, 1285, 1478, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 1959, 33411, 1285, 796, 1478 ]
How many patients have a procedure icd9 code 5185 and drug route buccal?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "5185" AND prescriptions.route = "BUCCAL"
[ 2437, 867, 3871, 423, 257, 8771, 14158, 67, 24, 2438, 642, 21652, 290, 2563, 6339, 809, 535, 282, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 3871, 423, 257, 8771, 14158, 67, 24, 2438, 642, 21652, 290, 2563, 6339, 809, 535, 282, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728,...
What is the title of the single with the peak position of 10 and from France?
SELECT "Title" FROM table_79844 WHERE "Peak position" = '10' AND "Country" = 'france'
[ 2061, 318, 262, 3670, 286, 262, 2060, 351, 262, 9103, 2292, 286, 838, 290, 422, 4881, 30, 46506, 366, 19160, 1, 16034, 3084, 62, 43240, 2598, 33411, 366, 6435, 461, 2292, 1, 796, 705, 940, 6, 5357, 366, 33921, 1, 796, 705, 69, 813...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3670, 286, 262, 2060, 351, 262, 9103, 2292, 286, 838, 290, 422, 4881, 30, 46506, 366, 19160, 1, 16034, 3084, 62, 43240, 2598, 33411, 366, 6435, 461, 2292, 1, 796, 705, 940, 6, 5357, 366, 33921, 1, 796, 705, 69, 813...
Name the most attendance
SELECT MIN("Attendance") FROM table_28665
[ 5376, 262, 749, 14858, 46506, 20625, 7203, 8086, 437, 590, 4943, 16034, 3084, 62, 2078, 36879 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 749, 14858, 46506, 20625, 7203, 8086, 437, 590, 4943, 16034, 3084, 62, 2078, 36879 ]
What was the away team's score when Collingwood was the home team?
SELECT "Away team score" FROM table_51839 WHERE "Home team" = 'collingwood'
[ 2061, 373, 262, 1497, 1074, 338, 4776, 618, 7778, 278, 3822, 373, 262, 1363, 1074, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 44085, 2670, 33411, 366, 16060, 1074, 1, 796, 705, 26000, 278, 3822, 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 ]
[ 2061, 373, 262, 1497, 1074, 338, 4776, 618, 7778, 278, 3822, 373, 262, 1363, 1074, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 44085, 2670, 33411, 366, 16060, 1074, 1, 796, 705, 26000, 278, 3822, 6 ]
what flights go from BOSTON to PITTSBURGH after 1205 in the afternoon
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.departure_time > 1205 AND flight.to_airport = AIRPORT_SERVICE_1.ai...
[ 10919, 13956, 467, 422, 347, 10892, 1340, 284, 49040, 4694, 38926, 17511, 706, 1105, 2713, 287, 262, 6672, 46506, 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...
[ 10919, 13956, 467, 422, 347, 10892, 1340, 284, 49040, 4694, 38926, 17511, 706, 1105, 2713, 287, 262, 6672, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11,...
give me the number of patients whose age is less than 41 and lab test category is blood gas?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "41" AND lab."CATEGORY" = "Blood Gas"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 6073, 290, 2248, 1332, 6536, 318, 2910, 3623, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2479, 318, 1342, 621, 6073, 290, 2248, 1332, 6536, 318, 2910, 3623, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 61...
An easy ACC class is what I need .
SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department LIKE '%ACC%' AND program_course.course_id = course.course_id AND program_course.workload < 3
[ 2025, 2562, 15859, 1398, 318, 644, 314, 761, 764, 46506, 360, 8808, 1268, 4177, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 1430, 62, 17319, 13, 1818, 2220, 16034, 1781, 11, 1430, 62, 17319, 33411, 1781, 13, 10378, 1823, 34178, 705, 4, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2025, 2562, 15859, 1398, 318, 644, 314, 761, 764, 46506, 360, 8808, 1268, 4177, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 1430, 62, 17319, 13, 1818, 2220, 16034, 1781, 11, 1430, 62, 17319, 33411, 1781, 13, 10378, 1823, 34178, 705, 4, ...
What was the preliminary average for Miss Mississippi?
SELECT "Preliminary Average" FROM table_20675 WHERE "State" = 'Mississippi'
[ 2061, 373, 262, 15223, 2811, 329, 4544, 13797, 30, 46506, 366, 47, 2411, 38429, 13475, 1, 16034, 3084, 62, 22136, 2425, 33411, 366, 9012, 1, 796, 705, 17140, 747, 12715, 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, 373, 262, 15223, 2811, 329, 4544, 13797, 30, 46506, 366, 47, 2411, 38429, 13475, 1, 16034, 3084, 62, 22136, 2425, 33411, 366, 9012, 1, 796, 705, 17140, 747, 12715, 6 ]
What is the soccer stadium with the varsity name is citadins?
SELECT soccer_stadium FROM table_27369069_4 WHERE varsity_name = "Citadins"
[ 2061, 318, 262, 11783, 10308, 351, 262, 410, 45826, 1438, 318, 15433, 324, 1040, 30, 46506, 11783, 62, 301, 6271, 16034, 3084, 62, 1983, 30803, 3312, 24, 62, 19, 33411, 410, 45826, 62, 3672, 796, 366, 34, 270, 324, 1040, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11783, 10308, 351, 262, 410, 45826, 1438, 318, 15433, 324, 1040, 30, 46506, 11783, 62, 301, 6271, 16034, 3084, 62, 1983, 30803, 3312, 24, 62, 19, 33411, 410, 45826, 62, 3672, 796, 366, 34, 270, 324, 1040, 1 ]
What's the Bible Gothic for the word hand?
SELECT bible_gothic FROM table_name_7 WHERE english = "hand"
[ 2061, 338, 262, 9111, 38845, 329, 262, 1573, 1021, 30, 46506, 41169, 62, 70, 849, 291, 16034, 3084, 62, 3672, 62, 22, 33411, 46932, 796, 366, 4993, 1 ]
[ 1, 1, 1, 1, 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, 9111, 38845, 329, 262, 1573, 1021, 30, 46506, 41169, 62, 70, 849, 291, 16034, 3084, 62, 3672, 62, 22, 33411, 46932, 796, 366, 4993, 1 ]
Sum the amount for all the payments processed with Visa by each year using a bar chart, and could you sort by the total number from high to low please?
SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY SUM(Amount_Payment) DESC
[ 13065, 262, 2033, 329, 477, 262, 7524, 13686, 351, 27645, 416, 1123, 614, 1262, 257, 2318, 8262, 11, 290, 714, 345, 3297, 416, 262, 2472, 1271, 422, 1029, 284, 1877, 3387, 30, 46506, 7536, 62, 19197, 434, 62, 24616, 11, 35683, 7, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13065, 262, 2033, 329, 477, 262, 7524, 13686, 351, 27645, 416, 1123, 614, 1262, 257, 2318, 8262, 11, 290, 714, 345, 3297, 416, 262, 2472, 1271, 422, 1029, 284, 1877, 3387, 30, 46506, 7536, 62, 19197, 434, 62, 24616, 11, 35683, 7, 31...
What's the code of the district with 800.5 people per km2?
SELECT "Code" FROM table_3953 WHERE "Density in 2011 (/km\u00b2)" = '800.5'
[ 2061, 338, 262, 2438, 286, 262, 4783, 351, 10460, 13, 20, 661, 583, 10571, 17, 30, 46506, 366, 10669, 1, 16034, 3084, 62, 2670, 4310, 33411, 366, 35, 6377, 287, 2813, 50247, 13276, 59, 84, 405, 65, 17, 16725, 796, 705, 7410, 13, 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 ]
[ 2061, 338, 262, 2438, 286, 262, 4783, 351, 10460, 13, 20, 661, 583, 10571, 17, 30, 46506, 366, 10669, 1, 16034, 3084, 62, 2670, 4310, 33411, 366, 35, 6377, 287, 2813, 50247, 13276, 59, 84, 405, 65, 17, 16725, 796, 705, 7410, 13, 2...
What is the score for Hawthorn as an away team?
SELECT away_team AS score FROM table_name_7 WHERE away_team = "hawthorn"
[ 2061, 318, 262, 4776, 329, 41457, 1211, 355, 281, 1497, 1074, 30, 46506, 1497, 62, 15097, 7054, 4776, 16034, 3084, 62, 3672, 62, 22, 33411, 1497, 62, 15097, 796, 366, 26615, 400, 1211, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4776, 329, 41457, 1211, 355, 281, 1497, 1074, 30, 46506, 1497, 62, 15097, 7054, 4776, 16034, 3084, 62, 3672, 62, 22, 33411, 1497, 62, 15097, 796, 366, 26615, 400, 1211, 1 ]
What attendance has October 16, 2005 as the date?
SELECT attendance FROM table_name_81 WHERE date = "october 16, 2005"
[ 2061, 14858, 468, 3267, 1467, 11, 5075, 355, 262, 3128, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 6659, 33411, 3128, 796, 366, 38441, 2023, 1467, 11, 5075, 1 ]
[ 1, 1, 1, 1, 1, 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, 14858, 468, 3267, 1467, 11, 5075, 355, 262, 3128, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 6659, 33411, 3128, 796, 366, 38441, 2023, 1467, 11, 5075, 1 ]
Which Team has a Year smaller than 2007, and a Class of gts?
SELECT "Team" FROM table_40711 WHERE "Year" < '2007' AND "Class" = 'gts'
[ 13828, 4816, 468, 257, 6280, 4833, 621, 4343, 11, 290, 257, 5016, 286, 308, 912, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 30120, 1157, 33411, 366, 17688, 1, 1279, 705, 12726, 6, 5357, 366, 9487, 1, 796, 705, 70, 912, 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 ]
[ 13828, 4816, 468, 257, 6280, 4833, 621, 4343, 11, 290, 257, 5016, 286, 308, 912, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 30120, 1157, 33411, 366, 17688, 1, 1279, 705, 12726, 6, 5357, 366, 9487, 1, 796, 705, 70, 912, 6 ]
Show the position of players and the corresponding number of players.
SELECT POSITION, COUNT(*) FROM match_season GROUP BY POSITION
[ 15307, 262, 2292, 286, 1938, 290, 262, 11188, 1271, 286, 1938, 13, 46506, 28069, 17941, 11, 327, 28270, 7, 28104, 16034, 2872, 62, 6230, 44441, 11050, 28069, 17941 ]
[ 1, 1, 1, 1, 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, 2292, 286, 1938, 290, 262, 11188, 1271, 286, 1938, 13, 46506, 28069, 17941, 11, 327, 28270, 7, 28104, 16034, 2872, 62, 6230, 44441, 11050, 28069, 17941 ]
For those employees who did not have any job in the past, give me the comparison about the average of manager_id over the hire_date bin hire_date by weekday, and rank total number from high to low order please.
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(MANAGER_ID) DESC
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 1577, 502, 262, 7208, 546, 262, 2811, 286, 4706, 62, 312, 625, 262, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 4279, 2472, 1271, 422, 1029, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2811, 286, 4706, 62, 312, 625, 262, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 4279, 2472, 1271, 422, 1029, 284, ...
Name the average year for brookvale oval and margin more than 46
SELECT AVG(year) FROM table_name_99 WHERE venue = "brookvale oval" AND margin > 46
[ 5376, 262, 2811, 614, 329, 1379, 482, 41161, 41186, 290, 10330, 517, 621, 6337, 46506, 35224, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 2079, 33411, 14359, 796, 366, 19094, 41161, 41186, 1, 5357, 10330, 1875, 6337 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2811, 614, 329, 1379, 482, 41161, 41186, 290, 10330, 517, 621, 6337, 46506, 35224, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 2079, 33411, 14359, 796, 366, 19094, 41161, 41186, 1, 5357, 10330, 1875, 6337 ]
How many throws did Needle have?
SELECT throws FROM table_name_10 WHERE surname = "needle"
[ 2437, 867, 12542, 750, 10664, 293, 423, 30, 46506, 12542, 16034, 3084, 62, 3672, 62, 940, 33411, 40358, 796, 366, 31227, 293, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 12542, 750, 10664, 293, 423, 30, 46506, 12542, 16034, 3084, 62, 3672, 62, 940, 33411, 40358, 796, 366, 31227, 293, 1 ]
What Kit/Factory has a J250 model made by Jabiru?
SELECT kit_factory FROM table_name_90 WHERE manufacturer = "jabiru" AND model = "j250"
[ 2061, 10897, 14, 22810, 468, 257, 449, 9031, 2746, 925, 416, 24404, 35406, 30, 46506, 6220, 62, 69, 9548, 16034, 3084, 62, 3672, 62, 3829, 33411, 11554, 796, 366, 27935, 35406, 1, 5357, 2746, 796, 366, 73, 9031, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10897, 14, 22810, 468, 257, 449, 9031, 2746, 925, 416, 24404, 35406, 30, 46506, 6220, 62, 69, 9548, 16034, 3084, 62, 3672, 62, 3829, 33411, 11554, 796, 366, 27935, 35406, 1, 5357, 2746, 796, 366, 73, 9031, 1 ]
what was the last time of patient 7698's e 20 fs po intake on last month/04?
SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 7698)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label ...
[ 10919, 373, 262, 938, 640, 286, 5827, 767, 39357, 338, 304, 1160, 43458, 745, 10337, 319, 938, 1227, 14, 3023, 30, 46506, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 286, 5827, 767, 39357, 338, 304, 1160, 43458, 745, 10337, 319, 938, 1227, 14, 3023, 30, 46506, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, ...
what are the number of times bangalore is listed as the destination ?
SELECT COUNT(*) FROM table_204_78 WHERE "destination" = 'bangalore'
[ 10919, 389, 262, 1271, 286, 1661, 20188, 40612, 318, 5610, 355, 262, 10965, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 3695, 33411, 366, 16520, 1883, 1, 796, 705, 36668, 40612, 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 ]
[ 10919, 389, 262, 1271, 286, 1661, 20188, 40612, 318, 5610, 355, 262, 10965, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 3695, 33411, 366, 16520, 1883, 1, 796, 705, 36668, 40612, 6 ]
provide the number of patients whose gender is m and diagnoses long title is bone marrow replaced by transplant?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Bone marrow replaced by transplant"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 5279, 318, 285, 290, 40567, 890, 3670, 318, 9970, 44173, 6928, 416, 23319, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 5279, 318, 285, 290, 40567, 890, 3670, 318, 9970, 44173, 6928, 416, 23319, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 4...
How many time does the platelet count occur when prothrombin time and bleeding time are prolonged?
SELECT COUNT("Platelet count") FROM table_24817 WHERE "Prothrombin time" = 'Prolonged' AND "Bleeding time" = 'Prolonged'
[ 2437, 867, 640, 857, 262, 7480, 1616, 954, 3051, 618, 386, 400, 398, 8800, 640, 290, 16832, 640, 389, 20573, 30, 46506, 327, 28270, 7203, 3646, 378, 1616, 954, 4943, 16034, 3084, 62, 23045, 1558, 33411, 366, 2964, 400, 398, 8800, 640,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 640, 857, 262, 7480, 1616, 954, 3051, 618, 386, 400, 398, 8800, 640, 290, 16832, 640, 389, 20573, 30, 46506, 327, 28270, 7203, 3646, 378, 1616, 954, 4943, 16034, 3084, 62, 23045, 1558, 33411, 366, 2964, 400, 398, 8800, 640,...
who was the only nation with more total medals than belgium ?
SELECT "nation" FROM table_203_374 WHERE "total" > (SELECT "total" FROM table_203_374 WHERE "nation" = 'belgium')
[ 8727, 373, 262, 691, 3277, 351, 517, 2472, 28057, 621, 894, 70, 1505, 5633, 46506, 366, 25729, 1, 16034, 3084, 62, 22416, 62, 31020, 33411, 366, 23350, 1, 1875, 357, 46506, 366, 23350, 1, 16034, 3084, 62, 22416, 62, 31020, 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 ]
[ 8727, 373, 262, 691, 3277, 351, 517, 2472, 28057, 621, 894, 70, 1505, 5633, 46506, 366, 25729, 1, 16034, 3084, 62, 22416, 62, 31020, 33411, 366, 23350, 1, 1875, 357, 46506, 366, 23350, 1, 16034, 3084, 62, 22416, 62, 31020, 33411, 366,...
what was the last time patient 95088 was prescribed a drug via ih route in 11/last year?
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 95088) AND prescriptions.route = 'ih' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m',...
[ 10919, 373, 262, 938, 640, 5827, 38384, 3459, 373, 14798, 257, 2563, 2884, 1312, 71, 6339, 287, 1367, 14, 12957, 614, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 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, 1...
[ 10919, 373, 262, 938, 640, 5827, 38384, 3459, 373, 14798, 257, 2563, 2884, 1312, 71, 6339, 287, 1367, 14, 12957, 614, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 1...
what was the name of the organism that was found this month in the last test of the microbiology of the urine of patient 18677?
SELECT microbiologyevents.org_name FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18677) AND microbiologyevents.spec_type_desc = 'urine' AND NOT microbiologyevents.org_name IS NULL AND DATETIME(microbiologyevents.charttime, 'start of ...
[ 10919, 373, 262, 1438, 286, 262, 26433, 326, 373, 1043, 428, 1227, 287, 262, 938, 1332, 286, 262, 24559, 1435, 286, 262, 18922, 286, 5827, 1248, 40179, 30, 46506, 24559, 1435, 31534, 13, 2398, 62, 3672, 16034, 24559, 1435, 31534, 33411,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 373, 262, 1438, 286, 262, 26433, 326, 373, 1043, 428, 1227, 287, 262, 938, 1332, 286, 262, 24559, 1435, 286, 262, 18922, 286, 5827, 1248, 40179, 30, 46506, 24559, 1435, 31534, 13, 2398, 62, 3672, 16034, 24559, 1435, 31534, 33411,...
Who is the opponent for the game with 37,845 people in attendance?
SELECT opponent FROM table_name_64 WHERE attendance = "37,845"
[ 8241, 318, 262, 6125, 329, 262, 983, 351, 5214, 11, 23, 2231, 661, 287, 14858, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 2414, 33411, 14858, 796, 366, 2718, 11, 23, 2231, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 318, 262, 6125, 329, 262, 983, 351, 5214, 11, 23, 2231, 661, 287, 14858, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 2414, 33411, 14858, 796, 366, 2718, 11, 23, 2231, 1 ]
give me the number of patients whose gender is f and diagnoses long title is kidney dialysis as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.long_title = "Kidney dialysis as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of pro...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 5279, 318, 277, 290, 40567, 890, 3670, 318, 21919, 5980, 3097, 355, 262, 2728, 286, 18801, 6317, 286, 5827, 11, 393, 286, 1568, 45185, 11, 1231, 3068, 286, 2984, 324, 5388, 379, 640, 286, 8771, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5279, 318, 277, 290, 40567, 890, 3670, 318, 21919, 5980, 3097, 355, 262, 2728, 286, 18801, 6317, 286, 5827, 11, 393, 286, 1568, 45185, 11, 1231, 3068, 286, 2984, 324, 5388, 379, 640, 286, 8771, ...
How many races was Loki in?
SELECT COUNT(race_number) FROM table_25594888_1 WHERE yacht = "Loki"
[ 2437, 867, 9558, 373, 31771, 287, 30, 46506, 327, 28270, 7, 16740, 62, 17618, 8, 16034, 3084, 62, 1495, 3270, 2780, 3459, 62, 16, 33411, 43207, 796, 366, 43, 18228, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 9558, 373, 31771, 287, 30, 46506, 327, 28270, 7, 16740, 62, 17618, 8, 16034, 3084, 62, 1495, 3270, 2780, 3459, 62, 16, 33411, 43207, 796, 366, 43, 18228, 1 ]
How many years was Pontiac the manufacturer for Joe Gibbs Racing?
SELECT COUNT(year) FROM table_2268216_1 WHERE team = "Joe Gibbs Racing" AND manufacturer = "Pontiac"
[ 2437, 867, 812, 373, 26345, 9607, 262, 11554, 329, 5689, 41071, 14954, 30, 46506, 327, 28270, 7, 1941, 8, 16034, 3084, 62, 1828, 3104, 20666, 62, 16, 33411, 1074, 796, 366, 19585, 41071, 14954, 1, 5357, 11554, 796, 366, 48039, 9607, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 812, 373, 26345, 9607, 262, 11554, 329, 5689, 41071, 14954, 30, 46506, 327, 28270, 7, 1941, 8, 16034, 3084, 62, 1828, 3104, 20666, 62, 16, 33411, 1074, 796, 366, 19585, 41071, 14954, 1, 5357, 11554, 796, 366, 48039, 9607, 1...
count the number of patients whose death status is 1 and diagnosis long title is tietze's disease.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.long_title = "Tietze's disease"
[ 9127, 262, 1271, 286, 3871, 3025, 1918, 3722, 318, 352, 290, 13669, 890, 3670, 318, 256, 1155, 2736, 338, 4369, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 4056...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1918, 3722, 318, 352, 290, 13669, 890, 3670, 318, 256, 1155, 2736, 338, 4369, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 4056...
Who was a linebacker at Tennessee?
SELECT "Player name" FROM table_37140 WHERE "Position" = 'linebacker' AND "College" = 'tennessee'
[ 8241, 373, 257, 18961, 379, 11287, 30, 46506, 366, 14140, 1438, 1, 16034, 3084, 62, 2718, 15187, 33411, 366, 26545, 1, 796, 705, 1370, 49978, 6, 5357, 366, 38951, 1, 796, 705, 1452, 2516, 3826, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 257, 18961, 379, 11287, 30, 46506, 366, 14140, 1438, 1, 16034, 3084, 62, 2718, 15187, 33411, 366, 26545, 1, 796, 705, 1370, 49978, 6, 5357, 366, 38951, 1, 796, 705, 1452, 2516, 3826, 6 ]
what is the lowest rank when the peak position is 2, certification is platinum and the album is my december?
SELECT MIN("Rank") FROM table_14043 WHERE "Peak position" = '2' AND "Certification" = 'platinum' AND "Album" = 'my december'
[ 10919, 318, 262, 9016, 4279, 618, 262, 9103, 2292, 318, 362, 11, 18094, 318, 36516, 290, 262, 5062, 318, 616, 390, 3273, 30, 46506, 20625, 7203, 27520, 4943, 16034, 3084, 62, 1415, 48768, 33411, 366, 6435, 461, 2292, 1, 796, 705, 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...
[ 10919, 318, 262, 9016, 4279, 618, 262, 9103, 2292, 318, 362, 11, 18094, 318, 36516, 290, 262, 5062, 318, 616, 390, 3273, 30, 46506, 20625, 7203, 27520, 4943, 16034, 3084, 62, 1415, 48768, 33411, 366, 6435, 461, 2292, 1, 796, 705, 17, ...
when did patient 61339 last receive a ven cath renal dialysis, until 3 years ago?
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'ven cath renal dialysis') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 61339) AND ...
[ 12518, 750, 5827, 718, 1485, 2670, 938, 3328, 257, 8710, 32171, 44375, 5980, 3097, 11, 1566, 513, 812, 2084, 30, 46506, 9021, 62, 291, 67, 13, 40926, 2435, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 750, 5827, 718, 1485, 2670, 938, 3328, 257, 8710, 32171, 44375, 5980, 3097, 11, 1566, 513, 812, 2084, 30, 46506, 9021, 62, 291, 67, 13, 40926, 2435, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8...
what is the total number of players from ohio state ?
SELECT COUNT("player") FROM table_203_805 WHERE "college" = 'ohio state'
[ 10919, 318, 262, 2472, 1271, 286, 1938, 422, 11752, 952, 1181, 5633, 46506, 327, 28270, 7203, 7829, 4943, 16034, 3084, 62, 22416, 62, 28256, 33411, 366, 44107, 1, 796, 705, 1219, 952, 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 ]
[ 10919, 318, 262, 2472, 1271, 286, 1938, 422, 11752, 952, 1181, 5633, 46506, 327, 28270, 7203, 7829, 4943, 16034, 3084, 62, 22416, 62, 28256, 33411, 366, 44107, 1, 796, 705, 1219, 952, 1181, 6 ]
When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found?
SELECT MIN(runners_up) FROM table_name_44 WHERE team = "pachuca" AND winners > 1
[ 2215, 612, 389, 517, 621, 352, 14591, 290, 262, 1074, 2712, 318, 279, 620, 43120, 11, 644, 338, 262, 9016, 19323, 12, 929, 1043, 30, 46506, 20625, 7, 36740, 62, 929, 8, 16034, 3084, 62, 3672, 62, 2598, 33411, 1074, 796, 366, 79, 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 ]
[ 2215, 612, 389, 517, 621, 352, 14591, 290, 262, 1074, 2712, 318, 279, 620, 43120, 11, 644, 338, 262, 9016, 19323, 12, 929, 1043, 30, 46506, 20625, 7, 36740, 62, 929, 8, 16034, 3084, 62, 3672, 62, 2598, 33411, 1074, 796, 366, 79, 6...
how many patients below 83 years of age are diagnosed with single ib in-hosp w cs?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "83" AND diagnoses.short_title = "Single lb in-hosp w cs"
[ 4919, 867, 3871, 2174, 9698, 812, 286, 2479, 389, 14641, 351, 2060, 24283, 287, 12, 71, 2117, 266, 50115, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 617...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2174, 9698, 812, 286, 2479, 389, 14641, 351, 2060, 24283, 287, 12, 71, 2117, 266, 50115, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 617...
Which date has a format's album?
SELECT "Date" FROM table_66856 WHERE "Format(s)" = 'album'
[ 13828, 3128, 468, 257, 5794, 338, 5062, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 35809, 3980, 33411, 366, 26227, 7, 82, 16725, 796, 705, 40916, 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, 3128, 468, 257, 5794, 338, 5062, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 35809, 3980, 33411, 366, 26227, 7, 82, 16725, 796, 705, 40916, 6 ]
Which team was the away team when the home team was north melbourne?
SELECT "Away team" FROM table_30941 WHERE "Home team" = 'North Melbourne'
[ 13828, 1074, 373, 262, 1497, 1074, 618, 262, 1363, 1074, 373, 5093, 7758, 12544, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 26895, 3901, 33411, 366, 16060, 1074, 1, 796, 705, 14157, 14819, 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, 1074, 373, 262, 1497, 1074, 618, 262, 1363, 1074, 373, 5093, 7758, 12544, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 26895, 3901, 33411, 366, 16060, 1074, 1, 796, 705, 14157, 14819, 6 ]
What are the songs in volumes associated with the artist aged 32 or older?
SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32
[ 2061, 389, 262, 7259, 287, 15343, 3917, 351, 262, 6802, 9722, 3933, 393, 4697, 30, 46506, 309, 17, 13, 44241, 16034, 6802, 7054, 309, 16, 32357, 1268, 6115, 7054, 309, 17, 6177, 309, 16, 13, 43020, 62, 2389, 796, 309, 17, 13, 43020,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7259, 287, 15343, 3917, 351, 262, 6802, 9722, 3933, 393, 4697, 30, 46506, 309, 17, 13, 44241, 16034, 6802, 7054, 309, 16, 32357, 1268, 6115, 7054, 309, 17, 6177, 309, 16, 13, 43020, 62, 2389, 796, 309, 17, 13, 43020,...
what is the number of patients whose lab test name is bands?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "Bands"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 2248, 1332, 1438, 318, 11760, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76, 62, 312, 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 ]
[ 10919, 318, 262, 1271, 286, 3871, 3025, 2248, 1332, 1438, 318, 11760, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76, 62, 312, 796...
Return a bar chart on what are the title and maximum price of each film?
SELECT Title, MAX(T1.Price) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID GROUP BY Title
[ 13615, 257, 2318, 8262, 319, 644, 389, 262, 3670, 290, 5415, 2756, 286, 1123, 2646, 30, 46506, 11851, 11, 25882, 7, 51, 16, 13, 18124, 8, 16034, 7269, 7054, 309, 16, 32357, 1268, 2646, 7054, 309, 17, 6177, 309, 16, 13, 39750, 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 ]
[ 13615, 257, 2318, 8262, 319, 644, 389, 262, 3670, 290, 5415, 2756, 286, 1123, 2646, 30, 46506, 11851, 11, 25882, 7, 51, 16, 13, 18124, 8, 16034, 7269, 7054, 309, 16, 32357, 1268, 2646, 7054, 309, 17, 6177, 309, 16, 13, 39750, 62, ...
How many companies are headquartered in the US?
SELECT COUNT(*) FROM company WHERE Headquarters = 'USA'
[ 2437, 867, 2706, 389, 48583, 287, 262, 1294, 30, 46506, 327, 28270, 7, 28104, 16034, 1664, 33411, 32193, 796, 705, 14053, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 2706, 389, 48583, 287, 262, 1294, 30, 46506, 327, 28270, 7, 28104, 16034, 1664, 33411, 32193, 796, 705, 14053, 6 ]
User ranking for questions only, simple - no check for CW or rep cap.
SELECT p.OwnerUserId AS "user_link", COUNT(DISTINCT p.Id) AS "total_questions", SUM(CASE WHEN VoteTypeId = 2 THEN 5 WHEN VoteTypeId = 3 THEN -2 END) + (SELECT COUNT(*) FROM Posts AS acc WHERE acc.OwnerUserId = p.OwnerUserId AND NOT AcceptedAnswerId IS NULL) * 2 AS "total_reputation" FROM Posts AS p INNER JOIN Votes AS ...
[ 12982, 12759, 329, 2683, 691, 11, 2829, 532, 645, 2198, 329, 24006, 393, 1128, 1451, 13, 46506, 279, 13, 42419, 12982, 7390, 7054, 366, 7220, 62, 8726, 1600, 327, 28270, 7, 35, 8808, 1268, 4177, 279, 13, 7390, 8, 7054, 366, 23350, 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...
[ 12982, 12759, 329, 2683, 691, 11, 2829, 532, 645, 2198, 329, 24006, 393, 1128, 1451, 13, 46506, 279, 13, 42419, 12982, 7390, 7054, 366, 7220, 62, 8726, 1600, 327, 28270, 7, 35, 8808, 1268, 4177, 279, 13, 7390, 8, 7054, 366, 23350, 6...
What was the score of the away team when the game was played at vfl park?
SELECT "Away team score" FROM table_52491 WHERE "Venue" = 'vfl park'
[ 2061, 373, 262, 4776, 286, 262, 1497, 1074, 618, 262, 983, 373, 2826, 379, 410, 2704, 3952, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 48057, 6420, 33411, 366, 37522, 518, 1, 796, 705, 85, 2704, 3952, 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, 373, 262, 4776, 286, 262, 1497, 1074, 618, 262, 983, 373, 2826, 379, 410, 2704, 3952, 30, 46506, 366, 32, 1014, 1074, 4776, 1, 16034, 3084, 62, 48057, 6420, 33411, 366, 37522, 518, 1, 796, 705, 85, 2704, 3952, 6 ]
Which club has 40 tries for?
SELECT "Club" FROM table_80435 WHERE "Tries for" = '40'
[ 13828, 3430, 468, 2319, 8404, 329, 30, 46506, 366, 42350, 1, 16034, 3084, 62, 36088, 2327, 33411, 366, 51, 1678, 329, 1, 796, 705, 1821, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 3430, 468, 2319, 8404, 329, 30, 46506, 366, 42350, 1, 16034, 3084, 62, 36088, 2327, 33411, 366, 51, 1678, 329, 1, 796, 705, 1821, 6 ]
What was the score of the game with a loss of Myers (5-6)?
SELECT score FROM table_name_47 WHERE loss = "myers (5-6)"
[ 2061, 373, 262, 4776, 286, 262, 983, 351, 257, 2994, 286, 25434, 357, 20, 12, 21, 19427, 46506, 4776, 16034, 3084, 62, 3672, 62, 2857, 33411, 2994, 796, 366, 1820, 364, 357, 20, 12, 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, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 286, 262, 983, 351, 257, 2994, 286, 25434, 357, 20, 12, 21, 19427, 46506, 4776, 16034, 3084, 62, 3672, 62, 2857, 33411, 2994, 796, 366, 1820, 364, 357, 20, 12, 21, 16725 ]
What is Median Family Income, when Median Household Income is '$50,717'?
SELECT "Median family income" FROM table_60726 WHERE "Median household income" = '$50,717'
[ 2061, 318, 26178, 7884, 19003, 11, 618, 26178, 37306, 19003, 318, 705, 3, 1120, 11, 22, 1558, 30960, 46506, 366, 9921, 666, 1641, 3739, 1, 16034, 3084, 62, 31980, 2075, 33411, 366, 9921, 666, 6641, 3739, 1, 796, 705, 3, 1120, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26178, 7884, 19003, 11, 618, 26178, 37306, 19003, 318, 705, 3, 1120, 11, 22, 1558, 30960, 46506, 366, 9921, 666, 1641, 3739, 1, 16034, 3084, 62, 31980, 2075, 33411, 366, 9921, 666, 6641, 3739, 1, 796, 705, 3, 1120, 11, 22...
where is LESTER PEARSON airport
SELECT DISTINCT city.city_code FROM airport, airport_service, city WHERE airport.airport_code = airport_service.airport_code AND airport.airport_name LIKE 'LESTER PEARSON' AND city.city_code = airport_service.city_code
[ 3003, 318, 406, 1546, 5781, 350, 17133, 11782, 9003, 46506, 360, 8808, 1268, 4177, 1748, 13, 19205, 62, 8189, 16034, 9003, 11, 9003, 62, 15271, 11, 1748, 33411, 9003, 13, 958, 634, 62, 8189, 796, 9003, 62, 15271, 13, 958, 634, 62, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3003, 318, 406, 1546, 5781, 350, 17133, 11782, 9003, 46506, 360, 8808, 1268, 4177, 1748, 13, 19205, 62, 8189, 16034, 9003, 11, 9003, 62, 15271, 11, 1748, 33411, 9003, 13, 958, 634, 62, 8189, 796, 9003, 62, 15271, 13, 958, 634, 62, 8...
What Attack has a 30,00% GERB?
SELECT "Attack" FROM table_6490 WHERE "GERB" = '30,00%'
[ 2061, 8307, 468, 257, 1542, 11, 405, 4, 44186, 33, 30, 46506, 366, 27732, 1, 16034, 3084, 62, 2414, 3829, 33411, 366, 30373, 33, 1, 796, 705, 1270, 11, 405, 4, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 8307, 468, 257, 1542, 11, 405, 4, 44186, 33, 30, 46506, 366, 27732, 1, 16034, 3084, 62, 2414, 3829, 33411, 366, 30373, 33, 1, 796, 705, 1270, 11, 405, 4, 6 ]
What team was the winner when the result was 90 86?
SELECT "Winner" FROM table_6904 WHERE "Result" = '90–86'
[ 2061, 1074, 373, 262, 8464, 618, 262, 1255, 373, 4101, 9849, 30, 46506, 366, 48056, 1, 16034, 3084, 62, 3388, 3023, 33411, 366, 23004, 1, 796, 705, 3829, 1906, 4521, 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, 1074, 373, 262, 8464, 618, 262, 1255, 373, 4101, 9849, 30, 46506, 366, 48056, 1, 16034, 3084, 62, 3388, 3023, 33411, 366, 23004, 1, 796, 705, 3829, 1906, 4521, 6 ]
How many u.s. viewers (millions) have 5 as the season #?
SELECT us_viewers__millions_ FROM table_22570439_1 WHERE season__number = 5
[ 2437, 867, 334, 13, 82, 13, 10209, 357, 17805, 507, 8, 423, 642, 355, 262, 1622, 1303, 30, 46506, 514, 62, 1177, 364, 834, 17805, 507, 62, 16034, 3084, 62, 18182, 32869, 2670, 62, 16, 33411, 1622, 834, 17618, 796, 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 ]
[ 2437, 867, 334, 13, 82, 13, 10209, 357, 17805, 507, 8, 423, 642, 355, 262, 1622, 1303, 30, 46506, 514, 62, 1177, 364, 834, 17805, 507, 62, 16034, 3084, 62, 18182, 32869, 2670, 62, 16, 33411, 1622, 834, 17618, 796, 642 ]
Find the number of courses offered by Psychology department in each semester with a bar chart.
SELECT semester, COUNT(semester) FROM course AS T1 JOIN section AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' GROUP BY semester ORDER BY T1.title
[ 16742, 262, 1271, 286, 10902, 4438, 416, 18430, 5011, 287, 1123, 24878, 351, 257, 2318, 8262, 13, 46506, 24878, 11, 327, 28270, 7, 325, 6880, 353, 8, 16034, 1781, 7054, 309, 16, 32357, 1268, 2665, 7054, 309, 17, 6177, 309, 16, 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, 1...
[ 16742, 262, 1271, 286, 10902, 4438, 416, 18430, 5011, 287, 1123, 24878, 351, 257, 2318, 8262, 13, 46506, 24878, 11, 327, 28270, 7, 325, 6880, 353, 8, 16034, 1781, 7054, 309, 16, 32357, 1268, 2665, 7054, 309, 17, 6177, 309, 16, 13, 1...
Name the classes that will be offered in the next 6 semesters .
SELECT DISTINCT course.name, course.number, semester.semester, semester.year FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'FA' AND semester.year = 2017) OR (semester.semester = 'FA' AND semester.year = 2018) OR (semester.semester = 'WN' AND se...
[ 5376, 262, 6097, 326, 481, 307, 4438, 287, 262, 1306, 718, 5026, 8586, 764, 46506, 360, 8808, 1268, 4177, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 24878, 13, 325, 6880, 353, 11, 24878, 13, 1941, 16034, 1781, 11, 1781, 62, 2364, 1586...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6097, 326, 481, 307, 4438, 287, 262, 1306, 718, 5026, 8586, 764, 46506, 360, 8808, 1268, 4177, 1781, 13, 3672, 11, 1781, 13, 17618, 11, 24878, 13, 325, 6880, 353, 11, 24878, 13, 1941, 16034, 1781, 11, 1781, 62, 2364, 1586...
What is the Days, hours, minutes for 21 26 October?
SELECT "Days, hours, minutes" FROM table_66012 WHERE "Dates" = '21 – 26 october'
[ 2061, 318, 262, 12579, 11, 2250, 11, 2431, 329, 2310, 2608, 3267, 30, 46506, 366, 38770, 11, 2250, 11, 2431, 1, 16034, 3084, 62, 2791, 30206, 33411, 366, 35, 689, 1, 796, 705, 2481, 784, 2608, 19318, 2023, 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 ]
[ 2061, 318, 262, 12579, 11, 2250, 11, 2431, 329, 2310, 2608, 3267, 30, 46506, 366, 38770, 11, 2250, 11, 2431, 1, 16034, 3084, 62, 2791, 30206, 33411, 366, 35, 689, 1, 796, 705, 2481, 784, 2608, 19318, 2023, 6 ]
find me the earliest flight from BOSTON to ATLANTA
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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANT...
[ 19796, 502, 262, 14555, 5474, 422, 347, 10892, 1340, 284, 41051, 8643, 11159, 16779, 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...
[ 19796, 502, 262, 14555, 5474, 422, 347, 10892, 1340, 284, 41051, 8643, 11159, 16779, 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...
give me the number of patients whose diagnoses short title is dmi neuro nt st uncntrld?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "DMI neuro nt st uncntrld"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 40567, 1790, 3670, 318, 288, 11632, 7669, 299, 83, 336, 4591, 429, 81, 335, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 40567, 1790, 3670, 318, 288, 11632, 7669, 299, 83, 336, 4591, 429, 81, 335, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, ...
What is the Status with an Author that is colbert?
SELECT status FROM table_name_25 WHERE authors = "colbert"
[ 2061, 318, 262, 12678, 351, 281, 6434, 326, 318, 951, 4835, 30, 46506, 3722, 16034, 3084, 62, 3672, 62, 1495, 33411, 7035, 796, 366, 4033, 4835, 1 ]
[ 1, 1, 1, 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, 12678, 351, 281, 6434, 326, 318, 951, 4835, 30, 46506, 3722, 16034, 3084, 62, 3672, 62, 1495, 33411, 7035, 796, 366, 4033, 4835, 1 ]
What is the name of the parish that has a former local authority of St Neots urban district?
SELECT name FROM table_name_71 WHERE former_local_authority = "st neots urban district"
[ 2061, 318, 262, 1438, 286, 262, 28830, 326, 468, 257, 1966, 1957, 4934, 286, 520, 3169, 1747, 7876, 4783, 30, 46506, 1438, 16034, 3084, 62, 3672, 62, 4869, 33411, 1966, 62, 12001, 62, 9800, 414, 796, 366, 301, 497, 1747, 7876, 4783, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28830, 326, 468, 257, 1966, 1957, 4934, 286, 520, 3169, 1747, 7876, 4783, 30, 46506, 1438, 16034, 3084, 62, 3672, 62, 4869, 33411, 1966, 62, 12001, 62, 9800, 414, 796, 366, 301, 497, 1747, 7876, 4783, ...
What is the match total for a score over 299 and under 412 innings?
SELECT SUM("Matches") FROM table_71853 WHERE "High Score" = '299' AND "Innings" < '412'
[ 2061, 318, 262, 2872, 2472, 329, 257, 4776, 625, 31011, 290, 739, 42215, 16267, 30, 46506, 35683, 7203, 19044, 2052, 4943, 16034, 3084, 62, 45720, 4310, 33411, 366, 11922, 15178, 1, 796, 705, 22579, 6, 5357, 366, 818, 23400, 1, 1279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2872, 2472, 329, 257, 4776, 625, 31011, 290, 739, 42215, 16267, 30, 46506, 35683, 7203, 19044, 2052, 4943, 16034, 3084, 62, 45720, 4310, 33411, 366, 11922, 15178, 1, 796, 705, 22579, 6, 5357, 366, 818, 23400, 1, 1279, ...
Name the clas AAAA of school year 2000-01
SELECT "Class AAAA" FROM table_37445 WHERE "School Year" = '2000-01'
[ 5376, 262, 537, 292, 25734, 32, 286, 1524, 614, 4751, 12, 486, 46506, 366, 9487, 25734, 32, 1, 16034, 3084, 62, 31020, 2231, 33411, 366, 26130, 6280, 1, 796, 705, 11024, 12, 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, 1, 1 ]
[ 5376, 262, 537, 292, 25734, 32, 286, 1524, 614, 4751, 12, 486, 46506, 366, 9487, 25734, 32, 1, 16034, 3084, 62, 31020, 2231, 33411, 366, 26130, 6280, 1, 796, 705, 11024, 12, 486, 6 ]
how many places are in greene county ?
SELECT COUNT("name of place") FROM table_203_115 WHERE "principal county" = 'greene county'
[ 4919, 867, 4113, 389, 287, 4077, 68, 7968, 5633, 46506, 327, 28270, 7203, 3672, 286, 1295, 4943, 16034, 3084, 62, 22416, 62, 15363, 33411, 366, 1050, 1939, 8521, 7968, 1, 796, 705, 14809, 68, 7968, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 4113, 389, 287, 4077, 68, 7968, 5633, 46506, 327, 28270, 7203, 3672, 286, 1295, 4943, 16034, 3084, 62, 22416, 62, 15363, 33411, 366, 1050, 1939, 8521, 7968, 1, 796, 705, 14809, 68, 7968, 6 ]
what were patient 029-22492's allergies until 03/2103?
SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-22492')) AND STRFTIME('%y-%m', allergy.allergytime) <= '2103-03'
[ 10919, 547, 5827, 657, 1959, 12, 24137, 5892, 338, 36665, 1566, 7643, 14, 17, 15197, 30, 46506, 36197, 13, 439, 26079, 3672, 16034, 36197, 33411, 36197, 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...
[ 10919, 547, 5827, 657, 1959, 12, 24137, 5892, 338, 36665, 1566, 7643, 14, 17, 15197, 30, 46506, 36197, 13, 439, 26079, 3672, 16034, 36197, 33411, 36197, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, ...
until 4 years ago has patient 13473 received any medication?
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13473) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-4 year')
[ 28446, 604, 812, 2084, 468, 5827, 1511, 37804, 2722, 597, 14103, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 28446, 604, 812, 2084, 468, 5827, 1511, 37804, 2722, 597, 14103, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349...
What is Peter Gregg Hurley Haywood's results?
SELECT results FROM table_13657749_2 WHERE gto_winning_team = "Peter Gregg Hurley Haywood"
[ 2061, 318, 5613, 33742, 10077, 1636, 9075, 3822, 338, 2482, 30, 46506, 2482, 16034, 3084, 62, 1485, 2996, 3324, 2920, 62, 17, 33411, 308, 1462, 62, 14463, 62, 15097, 796, 366, 19727, 33742, 10077, 1636, 9075, 3822, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 5613, 33742, 10077, 1636, 9075, 3822, 338, 2482, 30, 46506, 2482, 16034, 3084, 62, 1485, 2996, 3324, 2920, 62, 17, 33411, 308, 1462, 62, 14463, 62, 15097, 796, 366, 19727, 33742, 10077, 1636, 9075, 3822, 1 ]
What is every affiliation for candidate Daren Ireland?
SELECT affiliation FROM table_25818630_1 WHERE candidate = "Daren Ireland"
[ 2061, 318, 790, 26218, 329, 4540, 360, 5757, 7517, 30, 46506, 26218, 16034, 3084, 62, 25600, 25096, 1270, 62, 16, 33411, 4540, 796, 366, 35, 5757, 7517, 1 ]
[ 1, 1, 1, 1, 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, 790, 26218, 329, 4540, 360, 5757, 7517, 30, 46506, 26218, 16034, 3084, 62, 25600, 25096, 1270, 62, 16, 33411, 4540, 796, 366, 35, 5757, 7517, 1 ]
Show all book categories and the number of books in each category, list in asc by the bar.
SELECT Category, COUNT(*) FROM book_club GROUP BY Category ORDER BY Category
[ 15307, 477, 1492, 9376, 290, 262, 1271, 286, 3835, 287, 1123, 6536, 11, 1351, 287, 10570, 416, 262, 2318, 13, 46506, 21743, 11, 327, 28270, 7, 28104, 16034, 1492, 62, 18664, 44441, 11050, 21743, 38678, 11050, 21743 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1492, 9376, 290, 262, 1271, 286, 3835, 287, 1123, 6536, 11, 1351, 287, 10570, 416, 262, 2318, 13, 46506, 21743, 11, 327, 28270, 7, 28104, 16034, 1492, 62, 18664, 44441, 11050, 21743, 38678, 11050, 21743 ]
Name the growth rate for density of 1087
SELECT COUNT("Growth rate") FROM table_2776 WHERE "Density per Kilometer" = '1087'
[ 5376, 262, 3349, 2494, 329, 12109, 286, 838, 5774, 46506, 327, 28270, 7203, 38, 13046, 2494, 4943, 16034, 3084, 62, 1983, 4304, 33411, 366, 35, 6377, 583, 19902, 15635, 1, 796, 705, 940, 5774, 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 ]
[ 5376, 262, 3349, 2494, 329, 12109, 286, 838, 5774, 46506, 327, 28270, 7203, 38, 13046, 2494, 4943, 16034, 3084, 62, 1983, 4304, 33411, 366, 35, 6377, 583, 19902, 15635, 1, 796, 705, 940, 5774, 6 ]
when was the last time in yesterday that patient 12775 has had a tf residual intake?
SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12775)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label...
[ 12518, 373, 262, 938, 640, 287, 7415, 326, 5827, 18112, 2425, 468, 550, 257, 48700, 29598, 10337, 30, 46506, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, 1133, 85, 658...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 373, 262, 938, 640, 287, 7415, 326, 5827, 18112, 2425, 468, 550, 257, 48700, 29598, 10337, 30, 46506, 287, 79, 1133, 85, 658, 62, 33967, 13, 40926, 2435, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, 1133, 85, 658...
Show all calendar dates and day Numbers in a line chart.
SELECT Calendar_Date, Day_Number FROM Ref_Calendar
[ 15307, 477, 11845, 9667, 290, 1110, 27797, 287, 257, 1627, 8262, 13, 46506, 26506, 62, 10430, 11, 3596, 62, 15057, 16034, 6524, 62, 9771, 9239 ]
[ 1, 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, 11845, 9667, 290, 1110, 27797, 287, 257, 1627, 8262, 13, 46506, 26506, 62, 10430, 11, 3596, 62, 15057, 16034, 6524, 62, 9771, 9239 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of email and manager_id in a bar chart, and order y-axis in ascending order.
SELECT EMAIL, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 905, 502, 546, 262, 6082, 286, 3053, 290, 4706, 62, 312, 287, 257, 2318, 8262, 11, 290, 1502, 331, 12, 22704, 287, 41988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 905, 502, 546, 262, 6082, 286, 3053, 290, 4706, 62, 312, 287, 257, 2318, 8262, 11, 290, 1502, 331, 12, 22704, 287, 41988, ...
Up vs Down votes by day for last week of Question or Answer.
SELECT CASE WHEN PostTypeId = 1 THEN 'Question' ELSE 'Answer' END AS "post_type", TIME_TO_STR(p.CreationDate, '%H'), COUNT(*) AS Amount, SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS UpVotes, SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) AS DownVotes, CASE WHEN SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) = 0...
[ 4933, 3691, 5588, 5690, 416, 1110, 329, 938, 1285, 286, 18233, 393, 23998, 13, 46506, 42001, 42099, 2947, 6030, 7390, 796, 352, 42243, 705, 24361, 6, 17852, 5188, 705, 33706, 6, 23578, 7054, 366, 7353, 62, 4906, 1600, 20460, 62, 10468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4933, 3691, 5588, 5690, 416, 1110, 329, 938, 1285, 286, 18233, 393, 23998, 13, 46506, 42001, 42099, 2947, 6030, 7390, 796, 352, 42243, 705, 24361, 6, 17852, 5188, 705, 33706, 6, 23578, 7054, 366, 7353, 62, 4906, 1600, 20460, 62, 10468, ...
Find users with low accepted approved edits. Lists all users with more rejected than approved edits, sorted by percentage rejected of total.
SELECT r.OwnerUserId, r.RejectionCount, COALESCE(a.ApprovedCount, 0) AS ApprovedCount, r.RejectionCount * 100 / (COALESCE(a.ApprovedCount, 0) + r.RejectionCount) AS PercentRejected FROM (SELECT OwnerUserId, COUNT(OwnerUserId) AS RejectionCount FROM SuggestedEdits WHERE NOT OwnerUserId IS NULL AND NOT RejectionDate IS N...
[ 16742, 2985, 351, 1877, 6292, 6325, 31671, 13, 44968, 477, 2985, 351, 517, 8606, 621, 6325, 31671, 11, 23243, 416, 5873, 8606, 286, 2472, 13, 46506, 374, 13, 42419, 12982, 7390, 11, 374, 13, 3041, 29192, 12332, 11, 7375, 1847, 1546, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 2985, 351, 1877, 6292, 6325, 31671, 13, 44968, 477, 2985, 351, 517, 8606, 621, 6325, 31671, 11, 23243, 416, 5873, 8606, 286, 2472, 13, 46506, 374, 13, 42419, 12982, 7390, 11, 374, 13, 3041, 29192, 12332, 11, 7375, 1847, 1546, 5...
how many days has passed since the last time that patient 005-87465 had undergone a anticonvulsant - levetiracetam procedure during their current hospital encounter?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 = '005-87465'...
[ 4919, 867, 1528, 468, 3804, 1201, 262, 938, 640, 326, 5827, 3571, 20, 12, 23, 4524, 2996, 550, 29900, 257, 1885, 4749, 85, 5753, 415, 532, 443, 16809, 343, 23253, 321, 8771, 1141, 511, 1459, 4436, 8791, 30, 46506, 352, 1635, 357, 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, 1528, 468, 3804, 1201, 262, 938, 640, 326, 5827, 3571, 20, 12, 23, 4524, 2996, 550, 29900, 257, 1885, 4749, 85, 5753, 415, 532, 443, 16809, 343, 23253, 321, 8771, 1141, 511, 1459, 4436, 8791, 30, 46506, 352, 1635, 357, 18...
What's the minimal number of dances a couple has danced?
SELECT MIN("Number of dances") FROM table_23709
[ 2061, 338, 262, 10926, 1271, 286, 38207, 257, 3155, 468, 39480, 30, 46506, 20625, 7203, 15057, 286, 38207, 4943, 16034, 3084, 62, 1954, 31495 ]
[ 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, 10926, 1271, 286, 38207, 257, 3155, 468, 39480, 30, 46506, 20625, 7203, 15057, 286, 38207, 4943, 16034, 3084, 62, 1954, 31495 ]
What is the 7am show that has All My Children at 1:30pm?
SELECT "7:00 am" FROM table_60041 WHERE "1:30 pm" = 'all my children'
[ 2061, 318, 262, 767, 321, 905, 326, 468, 1439, 2011, 8990, 379, 352, 25, 1270, 4426, 30, 46506, 366, 22, 25, 405, 716, 1, 16034, 3084, 62, 8054, 3901, 33411, 366, 16, 25, 1270, 9114, 1, 796, 705, 439, 616, 1751, 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, 767, 321, 905, 326, 468, 1439, 2011, 8990, 379, 352, 25, 1270, 4426, 30, 46506, 366, 22, 25, 405, 716, 1, 16034, 3084, 62, 8054, 3901, 33411, 366, 16, 25, 1270, 9114, 1, 796, 705, 439, 616, 1751, 6 ]
other tags on vba questions.
SELECT TagName, TagId, COUNT(*) AS cnt FROM PostTags AS pt LEFT JOIN Tags AS t ON pt.TagId = t.Id WHERE PostId IN (SELECT PostId FROM PostTags WHERE TagId = 1449) GROUP BY TagId, TagName ORDER BY cnt DESC
[ 847, 15940, 319, 410, 7012, 2683, 13, 46506, 17467, 5376, 11, 17467, 7390, 11, 327, 28270, 7, 28104, 7054, 269, 429, 16034, 2947, 36142, 7054, 42975, 12509, 9792, 32357, 1268, 44789, 7054, 256, 6177, 42975, 13, 24835, 7390, 796, 256, 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...
[ 847, 15940, 319, 410, 7012, 2683, 13, 46506, 17467, 5376, 11, 17467, 7390, 11, 327, 28270, 7, 28104, 7054, 269, 429, 16034, 2947, 36142, 7054, 42975, 12509, 9792, 32357, 1268, 44789, 7054, 256, 6177, 42975, 13, 24835, 7390, 796, 256, 13...
For all employees who have the letters D or S in their first name, a scatter chart shows the correlation between salary and commission_pct .
SELECT SALARY, COMMISSION_PCT FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 257, 41058, 8262, 2523, 262, 16096, 1022, 9588, 290, 5810, 62, 79, 310, 764, 46506, 42475, 13153, 11, 22240, 40373, 62, 47, 4177, 16034, 4409, 33411, 31328,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 257, 41058, 8262, 2523, 262, 16096, 1022, 9588, 290, 5810, 62, 79, 310, 764, 46506, 42475, 13153, 11, 22240, 40373, 62, 47, 4177, 16034, 4409, 33411, 31328,...
Calculate the number of patients with icd9 code 70715 who died in or before the year 2154.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2154.0" AND diagnoses.icd9_code = "70715"
[ 9771, 3129, 378, 262, 1271, 286, 3871, 351, 14158, 67, 24, 2438, 767, 2998, 1314, 508, 3724, 287, 393, 878, 262, 614, 362, 21526, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 2147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9771, 3129, 378, 262, 1271, 286, 3871, 351, 14158, 67, 24, 2438, 767, 2998, 1314, 508, 3724, 287, 393, 878, 262, 614, 362, 21526, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 2147...
How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have?
SELECT "Points classification" FROM table_71552 WHERE "Young rider classification" = 'lech piasecki' AND "General classification" = 'stephen roche' AND "Winner" = 'carrera jeans-vagabond'
[ 2437, 867, 2173, 750, 443, 354, 31028, 589, 49108, 11, 2239, 831, 686, 2395, 11, 290, 1097, 24420, 21029, 12, 29821, 397, 623, 423, 30, 46506, 366, 40710, 17923, 1, 16034, 3084, 62, 22, 1314, 4309, 33411, 366, 20917, 17876, 17923, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2173, 750, 443, 354, 31028, 589, 49108, 11, 2239, 831, 686, 2395, 11, 290, 1097, 24420, 21029, 12, 29821, 397, 623, 423, 30, 46506, 366, 40710, 17923, 1, 16034, 3084, 62, 22, 1314, 4309, 33411, 366, 20917, 17876, 17923, 1, ...
What is the total Money ( ) of Player of nick faldo?
SELECT SUM(money___) AS £__ FROM table_name_56 WHERE player = "nick faldo"
[ 2061, 318, 262, 2472, 12911, 357, 1267, 286, 7853, 286, 14428, 277, 41476, 30, 46506, 35683, 7, 26316, 17569, 8, 7054, 4248, 834, 16034, 3084, 62, 3672, 62, 3980, 33411, 2137, 796, 366, 17172, 277, 41476, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12911, 357, 1267, 286, 7853, 286, 14428, 277, 41476, 30, 46506, 35683, 7, 26316, 17569, 8, 7054, 4248, 834, 16034, 3084, 62, 3672, 62, 3980, 33411, 2137, 796, 366, 17172, 277, 41476, 1 ]