instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
What is the full amount of averages when the sellouts are less than 14, the season is 2011-12, and attendance is less than 162,474?
SELECT COUNT(average) FROM table_name_73 WHERE sellouts < 14 AND season = "2011-12" AND attendance < 162 OFFSET 474
[ 2061, 318, 262, 1336, 2033, 286, 25694, 618, 262, 3677, 5269, 389, 1342, 621, 1478, 11, 262, 1622, 318, 2813, 12, 1065, 11, 290, 14858, 318, 1342, 621, 25090, 11, 38652, 30, 46506, 327, 28270, 7, 23913, 8, 16034, 3084, 62, 3672, 62,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 318, 262, 1336, 2033, 286, 25694, 618, 262, 3677, 5269, 389, 1342, 621, 1478, 11, 262, 1622, 318, 2813, 12, 1065, 11, 290, 14858, 318, 1342, 621, 25090, 11, 38652, 30, 46506, 327, 28270, 7, 23913, 8, 16034, 3084, 62, 3672, 62,...
How many stadiums does each country have?
SELECT country, COUNT(*) FROM stadium GROUP BY country
[ 2437, 867, 37924, 857, 1123, 1499, 423, 30, 46506, 1499, 11, 327, 28270, 7, 28104, 16034, 10308, 44441, 11050, 1499 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 37924, 857, 1123, 1499, 423, 30, 46506, 1499, 11, 327, 28270, 7, 28104, 16034, 10308, 44441, 11050, 1499 ]
Who was the home team when the vistor team was the Montreal Canadiens on February 12?
SELECT home FROM table_name_60 WHERE visitor = "montreal canadiens" AND date = "february 12"
[ 8241, 373, 262, 1363, 1074, 618, 262, 410, 32380, 1074, 373, 262, 12871, 33664, 319, 3945, 1105, 30, 46506, 1363, 16034, 3084, 62, 3672, 62, 1899, 33411, 21493, 796, 366, 8691, 5305, 460, 9189, 641, 1, 5357, 3128, 796, 366, 69, 1765, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 1363, 1074, 618, 262, 410, 32380, 1074, 373, 262, 12871, 33664, 319, 3945, 1105, 30, 46506, 1363, 16034, 3084, 62, 3672, 62, 1899, 33411, 21493, 796, 366, 8691, 5305, 460, 9189, 641, 1, 5357, 3128, 796, 366, 69, 1765, ...
What is the smallest total from Japan with a rank larger than 3?
SELECT MIN("Total") FROM table_7455 WHERE "Nation" = 'japan' AND "Rank" > '3'
[ 2061, 318, 262, 18197, 2472, 422, 2869, 351, 257, 4279, 4025, 621, 513, 30, 46506, 20625, 7203, 14957, 4943, 16034, 3084, 62, 22, 30505, 33411, 366, 46108, 1, 796, 705, 73, 2674, 6, 5357, 366, 27520, 1, 1875, 705, 18, 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, 18197, 2472, 422, 2869, 351, 257, 4279, 4025, 621, 513, 30, 46506, 20625, 7203, 14957, 4943, 16034, 3084, 62, 22, 30505, 33411, 366, 46108, 1, 796, 705, 73, 2674, 6, 5357, 366, 27520, 1, 1875, 705, 18, 6 ]
Positive score questions per month.
SELECT MONTH(CreationDate), PostTypeId, COUNT(Id) FROM Posts WHERE YEAR(CreationDate) = '##Year##' AND PostTypeId <= 2 AND Score <= 0 GROUP BY MONTH(CreationDate), PostTypeId ORDER BY MONTH(CreationDate)
[ 21604, 1800, 4776, 2683, 583, 1227, 13, 46506, 25000, 4221, 7, 12443, 341, 10430, 828, 2947, 6030, 7390, 11, 327, 28270, 7, 7390, 8, 16034, 12043, 33411, 32914, 7, 12443, 341, 10430, 8, 796, 705, 2235, 17688, 2235, 6, 5357, 2947, 6030...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 21604, 1800, 4776, 2683, 583, 1227, 13, 46506, 25000, 4221, 7, 12443, 341, 10430, 828, 2947, 6030, 7390, 11, 327, 28270, 7, 7390, 8, 16034, 12043, 33411, 32914, 7, 12443, 341, 10430, 8, 796, 705, 2235, 17688, 2235, 6, 5357, 2947, 6030...
What is the quantity of upper-level classes that are 9 credits ?
SELECT COUNT(DISTINCT course.course_id) FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 9 AND program_course.category LIKE 'ULCS'
[ 2061, 318, 262, 12040, 286, 6727, 12, 5715, 6097, 326, 389, 860, 10824, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 1781, 13, 17319, 62, 312, 8, 16034, 1781, 3268, 21479, 32357, 1268, 1430, 62, 17319, 6177, 1430, 62, 17319, 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...
[ 2061, 318, 262, 12040, 286, 6727, 12, 5715, 6097, 326, 389, 860, 10824, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 1781, 13, 17319, 62, 312, 8, 16034, 1781, 3268, 21479, 32357, 1268, 1430, 62, 17319, 6177, 1430, 62, 17319, 13, ...
what was the total number of wins ?
SELECT COUNT(*) FROM table_203_689 WHERE "result" = 'win'
[ 10919, 373, 262, 2472, 1271, 286, 7864, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 22416, 62, 40523, 33411, 366, 20274, 1, 796, 705, 5404, 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 ]
[ 10919, 373, 262, 2472, 1271, 286, 7864, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 22416, 62, 40523, 33411, 366, 20274, 1, 796, 705, 5404, 6 ]
Plot the average of age by grouped by home city as a bar graph, and show X in asc order please.
SELECT Home_city, AVG(Age) FROM driver GROUP BY Home_city ORDER BY Home_city
[ 43328, 262, 2811, 286, 2479, 416, 32824, 416, 1363, 1748, 355, 257, 2318, 4823, 11, 290, 905, 1395, 287, 10570, 1502, 3387, 13, 46506, 5995, 62, 19205, 11, 35224, 7, 23396, 8, 16034, 4639, 44441, 11050, 5995, 62, 19205, 38678, 11050, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 43328, 262, 2811, 286, 2479, 416, 32824, 416, 1363, 1748, 355, 257, 2318, 4823, 11, 290, 905, 1395, 287, 10570, 1502, 3387, 13, 46506, 5995, 62, 19205, 11, 35224, 7, 23396, 8, 16034, 4639, 44441, 11050, 5995, 62, 19205, 38678, 11050, ...
Old Mo's Second Spring was the film title used in nomination in what year?
SELECT year__ceremony_ FROM table_17350255_1 WHERE film_title_used_in_nomination = "Old Mo's Second Spring"
[ 19620, 4270, 338, 5498, 8225, 373, 262, 2646, 3670, 973, 287, 11872, 287, 644, 614, 30, 46506, 614, 834, 344, 2787, 1647, 62, 16034, 3084, 62, 1558, 14877, 13381, 62, 16, 33411, 2646, 62, 7839, 62, 1484, 62, 259, 62, 26601, 1883, 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 ]
[ 19620, 4270, 338, 5498, 8225, 373, 262, 2646, 3670, 973, 287, 11872, 287, 644, 614, 30, 46506, 614, 834, 344, 2787, 1647, 62, 16034, 3084, 62, 1558, 14877, 13381, 62, 16, 33411, 2646, 62, 7839, 62, 1484, 62, 259, 62, 26601, 1883, 79...
until 1 year ago, patient 003-39724 had any allergies?
SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-39724')) AND DATETIME(allergy.allergytime) <= DATETIME(CURRENT_TIME(), '-1 y...
[ 28446, 352, 614, 2084, 11, 5827, 3571, 18, 12, 33372, 1731, 550, 597, 36665, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 36197, 33411, 36197, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 28446, 352, 614, 2084, 11, 5827, 3571, 18, 12, 33372, 1731, 550, 597, 36665, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 36197, 33411, 36197, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 160...
Name the segment c with episode less than 179 and segment b of s sticker
SELECT segment_c FROM table_name_63 WHERE episode < 179 AND segment_b = "s sticker"
[ 5376, 262, 10618, 269, 351, 4471, 1342, 621, 27228, 290, 10618, 275, 286, 264, 27735, 46506, 10618, 62, 66, 16034, 3084, 62, 3672, 62, 5066, 33411, 4471, 1279, 27228, 5357, 10618, 62, 65, 796, 366, 82, 27735, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10618, 269, 351, 4471, 1342, 621, 27228, 290, 10618, 275, 286, 264, 27735, 46506, 10618, 62, 66, 16034, 3084, 62, 3672, 62, 5066, 33411, 4471, 1279, 27228, 5357, 10618, 62, 65, 796, 366, 82, 27735, 1 ]
What party has an incumbent of Stanyarne Wilson?
SELECT "Party" FROM table_35754 WHERE "Incumbent" = 'stanyarne wilson'
[ 2061, 2151, 468, 281, 23526, 286, 520, 1092, 283, 710, 8127, 30, 46506, 366, 33553, 1, 16034, 3084, 62, 2327, 41874, 33411, 366, 25517, 2178, 298, 1, 796, 705, 301, 1092, 283, 710, 39716, 1559, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2151, 468, 281, 23526, 286, 520, 1092, 283, 710, 8127, 30, 46506, 366, 33553, 1, 16034, 3084, 62, 2327, 41874, 33411, 366, 25517, 2178, 298, 1, 796, 705, 301, 1092, 283, 710, 39716, 1559, 6 ]
Which 2009 year has a total of 1, and 2004 year of 7th?
SELECT "2009" FROM table_68542 WHERE "Total" = '1' AND "2004" = '7th'
[ 13828, 3717, 614, 468, 257, 2472, 286, 352, 11, 290, 5472, 614, 286, 767, 400, 30, 46506, 366, 10531, 1, 16034, 3084, 62, 35978, 3682, 33411, 366, 14957, 1, 796, 705, 16, 6, 5357, 366, 15724, 1, 796, 705, 22, 400, 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, 3717, 614, 468, 257, 2472, 286, 352, 11, 290, 5472, 614, 286, 767, 400, 30, 46506, 366, 10531, 1, 16034, 3084, 62, 35978, 3682, 33411, 366, 14957, 1, 796, 705, 16, 6, 5357, 366, 15724, 1, 796, 705, 22, 400, 6 ]
Which Game has a Result of win, and an Opponent of new hampshire, and a Season smaller than 2008?
SELECT "Game" FROM table_35451 WHERE "Result" = 'win' AND "Opponent" = 'new hampshire' AND "Season" < '2008'
[ 13828, 3776, 468, 257, 25414, 286, 1592, 11, 290, 281, 9385, 3471, 286, 649, 289, 696, 10932, 11, 290, 257, 7369, 4833, 621, 3648, 30, 46506, 366, 8777, 1, 16034, 3084, 62, 2327, 36330, 33411, 366, 23004, 1, 796, 705, 5404, 6, 5357,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3776, 468, 257, 25414, 286, 1592, 11, 290, 281, 9385, 3471, 286, 649, 289, 696, 10932, 11, 290, 257, 7369, 4833, 621, 3648, 30, 46506, 366, 8777, 1, 16034, 3084, 62, 2327, 36330, 33411, 366, 23004, 1, 796, 705, 5404, 6, 5357,...
Which state has the most wildfires?
SELECT state FROM fires GROUP BY state ORDER BY COUNT(*) DESC LIMIT 1
[ 13828, 1181, 468, 262, 749, 48298, 30, 46506, 1181, 16034, 12252, 44441, 11050, 1181, 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 ]
[ 13828, 1181, 468, 262, 749, 48298, 30, 46506, 1181, 16034, 12252, 44441, 11050, 1181, 38678, 11050, 327, 28270, 7, 28104, 22196, 34, 27564, 2043, 352 ]
What was the score when 7260 people attended the game?
SELECT "Score" FROM table_2300 WHERE "Attendance" = '7260'
[ 2061, 373, 262, 4776, 618, 7724, 1899, 661, 9141, 262, 983, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 1954, 405, 33411, 366, 8086, 437, 590, 1, 796, 705, 4761, 1899, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 618, 7724, 1899, 661, 9141, 262, 983, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 1954, 405, 33411, 366, 8086, 437, 590, 1, 796, 705, 4761, 1899, 6 ]
what is the winter olympics when the country is soviet union and holmenkollen is 1970, 1979?
SELECT SUM(winter_olympics) FROM table_name_5 WHERE country = "soviet union" AND holmenkollen = "1970, 1979"
[ 10919, 318, 262, 7374, 267, 6760, 873, 618, 262, 1499, 318, 523, 85, 1155, 6441, 290, 6039, 3653, 74, 29952, 318, 8069, 11, 13521, 30, 46506, 35683, 7, 40078, 62, 3366, 3149, 873, 8, 16034, 3084, 62, 3672, 62, 20, 33411, 1499, 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, 1, 1 ]
[ 10919, 318, 262, 7374, 267, 6760, 873, 618, 262, 1499, 318, 523, 85, 1155, 6441, 290, 6039, 3653, 74, 29952, 318, 8069, 11, 13521, 30, 46506, 35683, 7, 40078, 62, 3366, 3149, 873, 8, 16034, 3084, 62, 3672, 62, 20, 33411, 1499, 796, ...
With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900?
SELECT chambering FROM table_26967904_1 WHERE f_bolt = "N (lbf)" AND p_max___bar__ = 3900
[ 3152, 644, 2099, 286, 11847, 278, 318, 262, 376, 18100, 299, 357, 75, 19881, 8, 290, 262, 350, 3509, 357, 5657, 8, 5014, 405, 30, 46506, 11847, 278, 16034, 3084, 62, 26276, 37601, 3023, 62, 16, 33411, 277, 62, 25593, 796, 366, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3152, 644, 2099, 286, 11847, 278, 318, 262, 376, 18100, 299, 357, 75, 19881, 8, 290, 262, 350, 3509, 357, 5657, 8, 5014, 405, 30, 46506, 11847, 278, 16034, 3084, 62, 26276, 37601, 3023, 62, 16, 33411, 277, 62, 25593, 796, 366, 45, ...
Which Democratic has a District smaller than 7, and a Republican of dan mansell?
SELECT "Democratic" FROM table_37324 WHERE "District" < '7' AND "Republican" = 'dan mansell'
[ 13828, 4390, 468, 257, 5665, 4833, 621, 767, 11, 290, 257, 3415, 286, 46078, 582, 7255, 30, 46506, 366, 33939, 1, 16034, 3084, 62, 2718, 33916, 33411, 366, 44857, 1, 1279, 705, 22, 6, 5357, 366, 25777, 1, 796, 705, 25604, 582, 7255,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4390, 468, 257, 5665, 4833, 621, 767, 11, 290, 257, 3415, 286, 46078, 582, 7255, 30, 46506, 366, 33939, 1, 16034, 3084, 62, 2718, 33916, 33411, 366, 44857, 1, 1279, 705, 22, 6, 5357, 366, 25777, 1, 796, 705, 25604, 582, 7255,...
what status is the vehicle numbers of adb977554?
SELECT status FROM table_name_78 WHERE vehicle_numbers = "adb977554"
[ 10919, 3722, 318, 262, 4038, 3146, 286, 512, 65, 5607, 2425, 4051, 30, 46506, 3722, 16034, 3084, 62, 3672, 62, 3695, 33411, 4038, 62, 77, 17024, 796, 366, 324, 65, 5607, 2425, 4051, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3722, 318, 262, 4038, 3146, 286, 512, 65, 5607, 2425, 4051, 30, 46506, 3722, 16034, 3084, 62, 3672, 62, 3695, 33411, 4038, 62, 77, 17024, 796, 366, 324, 65, 5607, 2425, 4051, 1 ]
How many UpVotes and DownVotes I've given?.
SELECT Id AS "user_link", Reputation, UpVotes, DownVotes FROM Users WHERE Id = @UserId
[ 2437, 867, 3205, 53, 6421, 290, 5588, 53, 6421, 314, 1053, 1813, 30, 13, 46506, 5121, 7054, 366, 7220, 62, 8726, 1600, 1432, 7094, 11, 3205, 53, 6421, 11, 5588, 53, 6421, 16034, 18987, 33411, 5121, 796, 2488, 12982, 7390 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 3205, 53, 6421, 290, 5588, 53, 6421, 314, 1053, 1813, 30, 13, 46506, 5121, 7054, 366, 7220, 62, 8726, 1600, 1432, 7094, 11, 3205, 53, 6421, 11, 5588, 53, 6421, 16034, 18987, 33411, 5121, 796, 2488, 12982, 7390 ]
get the id of the patients who had been diagnosed with hy kid nos w cr kid i-iv until 1 year ago.
SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hy kid nos w cr kid i-iv') AND DATETIME(diagnoses_icd.charttime) <= DATETI...
[ 1136, 262, 4686, 286, 262, 3871, 508, 550, 587, 14641, 351, 2537, 5141, 43630, 266, 1067, 5141, 1312, 12, 452, 1566, 352, 614, 2084, 13, 46506, 25349, 13, 32796, 62, 312, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1136, 262, 4686, 286, 262, 3871, 508, 550, 587, 14641, 351, 2537, 5141, 43630, 266, 1067, 5141, 1312, 12, 452, 1566, 352, 614, 2084, 13, 46506, 25349, 13, 32796, 62, 312, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357, ...
how many patients whose admission year is less than 2194 and diagnoses short title is diabetic retinopathy nos?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2194" AND diagnoses.short_title = "Diabetic retinopathy NOS"
[ 4919, 867, 3871, 3025, 13938, 614, 318, 1342, 621, 362, 22913, 290, 40567, 1790, 3670, 318, 44016, 1005, 259, 27189, 43630, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13938, 614, 318, 1342, 621, 362, 22913, 290, 40567, 1790, 3670, 318, 44016, 1005, 259, 27189, 43630, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, ...
show the number of patients who were transferred within this facility and the procedure icd9 code is 8321.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND procedures.icd9_code = "8321"
[ 12860, 262, 1271, 286, 3871, 508, 547, 11172, 1626, 428, 6841, 290, 262, 8771, 14158, 67, 24, 2438, 318, 9698, 2481, 13, 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...
[ 12860, 262, 1271, 286, 3871, 508, 547, 11172, 1626, 428, 6841, 290, 262, 8771, 14158, 67, 24, 2438, 318, 9698, 2481, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268,...
Who was the incumbent when Arthur Osborne won the election?
SELECT incumbent FROM table_name_55 WHERE winner = "arthur osborne"
[ 8241, 373, 262, 23526, 618, 13514, 29667, 1839, 262, 3071, 30, 46506, 23526, 16034, 3084, 62, 3672, 62, 2816, 33411, 8464, 796, 366, 283, 11098, 28686, 13555, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 23526, 618, 13514, 29667, 1839, 262, 3071, 30, 46506, 23526, 16034, 3084, 62, 3672, 62, 2816, 33411, 8464, 796, 366, 283, 11098, 28686, 13555, 1 ]
What label has a catalog of chem036cd?
SELECT label FROM table_name_2 WHERE catalog = "chem036cd"
[ 2061, 6167, 468, 257, 18388, 286, 4607, 48597, 10210, 30, 46506, 6167, 16034, 3084, 62, 3672, 62, 17, 33411, 18388, 796, 366, 15245, 48597, 10210, 1 ]
[ 1, 1, 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, 6167, 468, 257, 18388, 286, 4607, 48597, 10210, 30, 46506, 6167, 16034, 3084, 62, 3672, 62, 17, 33411, 18388, 796, 366, 15245, 48597, 10210, 1 ]
What is the work number for Victor?
SELECT "Works Number" FROM table_78346 WHERE "Name" = 'victor'
[ 2061, 318, 262, 670, 1271, 329, 12622, 30, 46506, 366, 23044, 7913, 1, 16034, 3084, 62, 3695, 30557, 33411, 366, 5376, 1, 796, 705, 32433, 273, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 670, 1271, 329, 12622, 30, 46506, 366, 23044, 7913, 1, 16034, 3084, 62, 3695, 30557, 33411, 366, 5376, 1, 796, 705, 32433, 273, 6 ]
show me a list of flights from DENVER to SAN FRANCISCO for 9 1 1991
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND date_day.day_number = 1 AND date_day.month_number = 9 ...
[ 12860, 502, 257, 1351, 286, 13956, 422, 37692, 5959, 284, 37376, 8782, 20940, 1797, 8220, 329, 860, 352, 10249, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12860, 502, 257, 1351, 286, 13956, 422, 37692, 5959, 284, 37376, 8782, 20940, 1797, 8220, 329, 860, 352, 10249, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15...
What was the ranking of Beirasar Rosal a, the year they played 32 games?
SELECT MAX(rank) FROM table_name_6 WHERE team = "beirasar rosalía" AND games < 32
[ 2061, 373, 262, 12759, 286, 38693, 42391, 10018, 282, 257, 11, 262, 614, 484, 2826, 3933, 1830, 30, 46506, 25882, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 21, 33411, 1074, 796, 366, 1350, 343, 42391, 686, 21680, 29690, 1, 5357, 1830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12759, 286, 38693, 42391, 10018, 282, 257, 11, 262, 614, 484, 2826, 3933, 1830, 30, 46506, 25882, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 21, 33411, 1074, 796, 366, 1350, 343, 42391, 686, 21680, 29690, 1, 5357, 1830, ...
who is the opponents when the surface is clay and the date is 12 july 1992?
SELECT opponents FROM table_name_93 WHERE surface = "clay" AND date = "12 july 1992"
[ 8727, 318, 262, 7691, 618, 262, 4417, 318, 21558, 290, 262, 3128, 318, 1105, 474, 2062, 9768, 30, 46506, 7691, 16034, 3084, 62, 3672, 62, 6052, 33411, 4417, 796, 366, 565, 323, 1, 5357, 3128, 796, 366, 1065, 474, 2062, 9768, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 7691, 618, 262, 4417, 318, 21558, 290, 262, 3128, 318, 1105, 474, 2062, 9768, 30, 46506, 7691, 16034, 3084, 62, 3672, 62, 6052, 33411, 4417, 796, 366, 565, 323, 1, 5357, 3128, 796, 366, 1065, 474, 2062, 9768, 1 ]
What is the nation for 6 total?
SELECT nation FROM table_name_13 WHERE total = 6
[ 2061, 318, 262, 3277, 329, 718, 2472, 30, 46506, 3277, 16034, 3084, 62, 3672, 62, 1485, 33411, 2472, 796, 718 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3277, 329, 718, 2472, 30, 46506, 3277, 16034, 3084, 62, 3672, 62, 1485, 33411, 2472, 796, 718 ]
i'm sorry i want to book a flight from ATLANTA to DENVER colorado
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 = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER...
[ 72, 1101, 7926, 1312, 765, 284, 1492, 257, 5474, 422, 5161, 25697, 5603, 284, 37692, 5959, 3124, 4533, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 72, 1101, 7926, 1312, 765, 284, 1492, 257, 5474, 422, 5161, 25697, 5603, 284, 37692, 5959, 3124, 4533, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9...
How many runners-up did Espartanos de Margarita have?
SELECT runners_up FROM table_name_84 WHERE team = "espartanos de margarita"
[ 2437, 867, 19323, 12, 929, 750, 20386, 433, 40015, 390, 11899, 283, 5350, 423, 30, 46506, 19323, 62, 929, 16034, 3084, 62, 3672, 62, 5705, 33411, 1074, 796, 366, 274, 3911, 40015, 390, 6145, 283, 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, 1, 1, 1 ]
[ 2437, 867, 19323, 12, 929, 750, 20386, 433, 40015, 390, 11899, 283, 5350, 423, 30, 46506, 19323, 62, 929, 16034, 3084, 62, 3672, 62, 5705, 33411, 1074, 796, 366, 274, 3911, 40015, 390, 6145, 283, 5350, 1 ]
what were the total number of times filmfare awards can be seen listed on this chart as the award ceremony ?
SELECT COUNT(*) FROM table_203_757 WHERE "award ceremony" = 'filmfare awards'
[ 10919, 547, 262, 2472, 1271, 286, 1661, 2646, 9496, 13304, 460, 307, 1775, 5610, 319, 428, 8262, 355, 262, 5764, 10542, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 22416, 62, 39251, 33411, 366, 707, 446, 10542, 1, 796, 705, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 547, 262, 2472, 1271, 286, 1661, 2646, 9496, 13304, 460, 307, 1775, 5610, 319, 428, 8262, 355, 262, 5764, 10542, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 22416, 62, 39251, 33411, 366, 707, 446, 10542, 1, 796, 705, 26...
who is the the voice actor (japanese) with character name being goku
SELECT "Voice Actor (Japanese)" FROM table_19134 WHERE "Character Name" = 'Goku'
[ 8727, 318, 262, 262, 3809, 8674, 357, 73, 2674, 2771, 8, 351, 2095, 1438, 852, 467, 23063, 46506, 366, 35708, 27274, 357, 25324, 16725, 16034, 3084, 62, 1129, 19880, 33411, 366, 27275, 6530, 1, 796, 705, 38, 11601, 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 ]
[ 8727, 318, 262, 262, 3809, 8674, 357, 73, 2674, 2771, 8, 351, 2095, 1438, 852, 467, 23063, 46506, 366, 35708, 27274, 357, 25324, 16725, 16034, 3084, 62, 1129, 19880, 33411, 366, 27275, 6530, 1, 796, 705, 38, 11601, 6 ]
What are the first and last names of the customers with the 10 cheapest invoices?
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10
[ 2061, 389, 262, 717, 290, 938, 3891, 286, 262, 4297, 351, 262, 838, 28918, 800, 78, 1063, 30, 46506, 309, 16, 13, 11085, 62, 3672, 11, 309, 16, 13, 12957, 62, 3672, 16034, 4297, 7054, 309, 16, 32357, 1268, 800, 78, 1063, 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...
[ 2061, 389, 262, 717, 290, 938, 3891, 286, 262, 4297, 351, 262, 838, 28918, 800, 78, 1063, 30, 46506, 309, 16, 13, 11085, 62, 3672, 11, 309, 16, 13, 12957, 62, 3672, 16034, 4297, 7054, 309, 16, 32357, 1268, 800, 78, 1063, 7054, 309...
Which competition was at wilderspool?
SELECT "Competition" FROM table_52639 WHERE "Venue" = 'wilderspool'
[ 13828, 5449, 373, 379, 4295, 364, 7742, 30, 46506, 366, 7293, 15620, 1, 16034, 3084, 62, 48531, 2670, 33411, 366, 37522, 518, 1, 796, 705, 21992, 364, 7742, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 5449, 373, 379, 4295, 364, 7742, 30, 46506, 366, 7293, 15620, 1, 16034, 3084, 62, 48531, 2670, 33411, 366, 37522, 518, 1, 796, 705, 21992, 364, 7742, 6 ]
Show me a bar chart for what are the different budget type codes, and how many documents are there for each?, and could you list in desc by the y axis please?
SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code ORDER BY COUNT(*) DESC
[ 15307, 502, 257, 2318, 8262, 329, 644, 389, 262, 1180, 4466, 2099, 12416, 11, 290, 703, 867, 4963, 389, 612, 329, 1123, 21747, 290, 714, 345, 1351, 287, 1715, 416, 262, 331, 16488, 3387, 30, 46506, 15401, 62, 6030, 62, 10669, 11, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15307, 502, 257, 2318, 8262, 329, 644, 389, 262, 1180, 4466, 2099, 12416, 11, 290, 703, 867, 4963, 389, 612, 329, 1123, 21747, 290, 714, 345, 1351, 287, 1715, 416, 262, 331, 16488, 3387, 30, 46506, 15401, 62, 6030, 62, 10669, 11, 32...
For those employees who did not have any job in the past, give me the comparison about the sum of employee_id over the hire_date bin hire_date by time by a bar chart, and list by the y axis in desc.
SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID) DESC
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 1577, 502, 262, 7208, 546, 262, 2160, 286, 6538, 62, 312, 625, 262, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 640, 416, 257, 2318, 8262, 11, 290, 1351, 416, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2160, 286, 6538, 62, 312, 625, 262, 11078, 62, 4475, 9874, 11078, 62, 4475, 416, 640, 416, 257, 2318, 8262, 11, 290, 1351, 416, 26...
How many copies per particle are created by the enterotoxin?
SELECT copies_per_particle FROM table_140968_1 WHERE function = "Enterotoxin"
[ 2437, 867, 9088, 583, 18758, 389, 2727, 416, 262, 3802, 313, 39366, 30, 46506, 9088, 62, 525, 62, 3911, 1548, 16034, 3084, 62, 1415, 2931, 3104, 62, 16, 33411, 2163, 796, 366, 17469, 313, 39366, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9088, 583, 18758, 389, 2727, 416, 262, 3802, 313, 39366, 30, 46506, 9088, 62, 525, 62, 3911, 1548, 16034, 3084, 62, 1415, 2931, 3104, 62, 16, 33411, 2163, 796, 366, 17469, 313, 39366, 1 ]
Average comment score by length.
SELECT MIN(LENGTH(Text)), AVG(CAST(Score AS FLOAT)) FROM Comments GROUP BY LENGTH(Text) / 15 ORDER BY LENGTH(Text) / 15
[ 26287, 2912, 4776, 416, 4129, 13, 46506, 20625, 7, 43, 49494, 7, 8206, 36911, 35224, 7, 44647, 7, 26595, 7054, 9977, 46, 1404, 4008, 16034, 19502, 44441, 11050, 406, 49494, 7, 8206, 8, 1220, 1315, 38678, 11050, 406, 49494, 7, 8206, 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 ]
[ 26287, 2912, 4776, 416, 4129, 13, 46506, 20625, 7, 43, 49494, 7, 8206, 36911, 35224, 7, 44647, 7, 26595, 7054, 9977, 46, 1404, 4008, 16034, 19502, 44441, 11050, 406, 49494, 7, 8206, 8, 1220, 1315, 38678, 11050, 406, 49494, 7, 8206, 8,...
Score per answer (ranking; non-CW).
SELECT RANK() OVER (ORDER BY R.Ratio DESC) AS Rank, R.Id AS "user_link", R.Ratio FROM (SELECT U.Id, CAST(SUM(A.Score) AS FLOAT) / COUNT(A.Score) AS Ratio FROM Posts AS A INNER JOIN Users AS U ON U.Id = A.OwnerUserId WHERE A.PostTypeId = 2 AND A.CommunityOwnedDate IS NULL GROUP BY U.Id HAVING COUNT(A.Id) >= '##MinimumAn...
[ 26595, 583, 3280, 357, 28405, 26, 1729, 12, 43538, 737, 46506, 371, 15154, 3419, 28729, 357, 12532, 1137, 11050, 371, 13, 29665, 952, 22196, 34, 8, 7054, 10916, 11, 371, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 371, 13, 29665, 952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26595, 583, 3280, 357, 28405, 26, 1729, 12, 43538, 737, 46506, 371, 15154, 3419, 28729, 357, 12532, 1137, 11050, 371, 13, 29665, 952, 22196, 34, 8, 7054, 10916, 11, 371, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 371, 13, 29665, 952, ...
Find the first names of all the teachers that teach in classroom 110.
SELECT firstname FROM teachers WHERE classroom = 110
[ 16742, 262, 717, 3891, 286, 477, 262, 7799, 326, 4545, 287, 15806, 9796, 13, 46506, 717, 3672, 16034, 7799, 33411, 15806, 796, 9796 ]
[ 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, 717, 3891, 286, 477, 262, 7799, 326, 4545, 287, 15806, 9796, 13, 46506, 717, 3672, 16034, 7799, 33411, 15806, 796, 9796 ]
Count the number of customers who are active.
SELECT COUNT(*) FROM customer WHERE active = '1'
[ 12332, 262, 1271, 286, 4297, 508, 389, 4075, 13, 46506, 327, 28270, 7, 28104, 16034, 6491, 33411, 4075, 796, 705, 16, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12332, 262, 1271, 286, 4297, 508, 389, 4075, 13, 46506, 327, 28270, 7, 28104, 16034, 6491, 33411, 4075, 796, 705, 16, 6 ]
Date of 1 october 2003 had what attendance?
SELECT attendance FROM table_name_18 WHERE date = "1 october 2003"
[ 10430, 286, 352, 19318, 2023, 5816, 550, 644, 14858, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 1507, 33411, 3128, 796, 366, 16, 19318, 2023, 5816, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10430, 286, 352, 19318, 2023, 5816, 550, 644, 14858, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 1507, 33411, 3128, 796, 366, 16, 19318, 2023, 5816, 1 ]
Show the draft pick numbers and draft classes of players whose positions are defenders.
SELECT Draft_Pick_Number, Draft_Class FROM match_season WHERE POSITION = "Defender"
[ 15307, 262, 4538, 2298, 3146, 290, 4538, 6097, 286, 1938, 3025, 6116, 389, 16355, 13, 46506, 13650, 62, 31686, 62, 15057, 11, 13650, 62, 9487, 16034, 2872, 62, 6230, 33411, 28069, 17941, 796, 366, 7469, 2194, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4538, 2298, 3146, 290, 4538, 6097, 286, 1938, 3025, 6116, 389, 16355, 13, 46506, 13650, 62, 31686, 62, 15057, 11, 13650, 62, 9487, 16034, 2872, 62, 6230, 33411, 28069, 17941, 796, 366, 7469, 2194, 1 ]
Name the M809 seris with M939 series of M931/932
SELECT m809_series FROM table_name_88 WHERE m939_series = "m931/932"
[ 5376, 262, 337, 34583, 1055, 271, 351, 337, 24, 2670, 2168, 286, 337, 24, 3132, 14, 24, 2624, 46506, 285, 34583, 62, 25076, 16034, 3084, 62, 3672, 62, 3459, 33411, 285, 24, 2670, 62, 25076, 796, 366, 76, 24, 3132, 14, 24, 2624, 1 ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 337, 34583, 1055, 271, 351, 337, 24, 2670, 2168, 286, 337, 24, 3132, 14, 24, 2624, 46506, 285, 34583, 62, 25076, 16034, 3084, 62, 3672, 62, 3459, 33411, 285, 24, 2670, 62, 25076, 796, 366, 76, 24, 3132, 14, 24, 2624, 1 ...
Magic comment shorthand thing (doesn't work well).
SELECT Text FROM Comments WHERE Text LIKE '%\%\%' ESCAPE '\'
[ 22975, 2912, 45883, 1517, 357, 45084, 470, 670, 880, 737, 46506, 8255, 16034, 19502, 33411, 8255, 34178, 705, 4, 59, 4, 59, 4, 6, 40251, 45721, 705, 43054 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 22975, 2912, 45883, 1517, 357, 45084, 470, 670, 880, 737, 46506, 8255, 16034, 19502, 33411, 8255, 34178, 705, 4, 59, 4, 59, 4, 6, 40251, 45721, 705, 43054 ]
What is the Postion, when the Club/Team is Warroad Lakers, and when the Name is Roger Christian?
SELECT "Position" FROM table_41477 WHERE "Club/Team" = 'warroad lakers' AND "Name" = 'roger christian'
[ 2061, 318, 262, 2947, 295, 11, 618, 262, 6289, 14, 15592, 318, 1810, 6344, 19616, 11, 290, 618, 262, 6530, 318, 13637, 4302, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 37309, 3324, 33411, 366, 42350, 14, 15592, 1, 796, 705, 5767, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2947, 295, 11, 618, 262, 6289, 14, 15592, 318, 1810, 6344, 19616, 11, 290, 618, 262, 6530, 318, 13637, 4302, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 37309, 3324, 33411, 366, 42350, 14, 15592, 1, 796, 705, 5767, 63...
A bar chart about the number of faluts for different fault description recorded in the logs, and could you list from high to low by the y-axis?
SELECT fault_description, COUNT(fault_description) FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY fault_description ORDER BY COUNT(fault_description) DESC
[ 32, 2318, 8262, 546, 262, 1271, 286, 24215, 5500, 329, 1180, 8046, 6764, 6264, 287, 262, 17259, 11, 290, 714, 345, 1351, 422, 1029, 284, 1877, 416, 262, 331, 12, 22704, 30, 46506, 8046, 62, 11213, 11, 327, 28270, 7, 69, 1721, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 32, 2318, 8262, 546, 262, 1271, 286, 24215, 5500, 329, 1180, 8046, 6764, 6264, 287, 262, 17259, 11, 290, 714, 345, 1351, 422, 1029, 284, 1877, 416, 262, 331, 12, 22704, 30, 46506, 8046, 62, 11213, 11, 327, 28270, 7, 69, 1721, 62, ...
When was the game played at glenferrie oval?
SELECT "Date" FROM table_10130 WHERE "Venue" = 'glenferrie oval'
[ 2215, 373, 262, 983, 2826, 379, 1278, 268, 2232, 5034, 41186, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 8784, 1270, 33411, 366, 37522, 518, 1, 796, 705, 4743, 268, 2232, 5034, 41186, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 373, 262, 983, 2826, 379, 1278, 268, 2232, 5034, 41186, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 8784, 1270, 33411, 366, 37522, 518, 1, 796, 705, 4743, 268, 2232, 5034, 41186, 6 ]
Show the party and the number of drivers in each party Plot them as bar chart, and order in asc by the X-axis please.
SELECT Party, COUNT(*) FROM driver GROUP BY Party ORDER BY Party
[ 15307, 262, 2151, 290, 262, 1271, 286, 6643, 287, 1123, 2151, 28114, 606, 355, 2318, 8262, 11, 290, 1502, 287, 10570, 416, 262, 1395, 12, 22704, 3387, 13, 46506, 3615, 11, 327, 28270, 7, 28104, 16034, 4639, 44441, 11050, 3615, 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 ]
[ 15307, 262, 2151, 290, 262, 1271, 286, 6643, 287, 1123, 2151, 28114, 606, 355, 2318, 8262, 11, 290, 1502, 287, 10570, 416, 262, 1395, 12, 22704, 3387, 13, 46506, 3615, 11, 327, 28270, 7, 28104, 16034, 4639, 44441, 11050, 3615, 38678, ...
For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by weekday, order in asc by the y-axis.
SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID)
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 6538, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 11, 1502, 287, 10570, 416, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 6538, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 11, 1502, 287, 10570, 416, 262, ...
What was the aveg/g for the qb with the Att-Cmp-Int of 117 215 6?
SELECT COUNT("Avg/G") FROM table_9026 WHERE "Att-Cmp-Int" = '117–215–6'
[ 2061, 373, 262, 257, 303, 70, 14, 70, 329, 262, 10662, 65, 351, 262, 3460, 12, 34, 3149, 12, 5317, 286, 19048, 22951, 718, 30, 46506, 327, 28270, 7203, 48997, 14, 38, 4943, 16034, 3084, 62, 3829, 2075, 33411, 366, 8086, 12, 34, 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 ]
[ 2061, 373, 262, 257, 303, 70, 14, 70, 329, 262, 10662, 65, 351, 262, 3460, 12, 34, 3149, 12, 5317, 286, 19048, 22951, 718, 30, 46506, 327, 28270, 7203, 48997, 14, 38, 4943, 16034, 3084, 62, 3829, 2075, 33411, 366, 8086, 12, 34, 31...
what is the percentile of 639.0 in a laboratory lactate dehydrogenase (ld) test given the same as patient 59473's age in their first hospital encounter?
SELECT DISTINCT t1.c1 FROM (SELECT labevents.valuenum, PERCENT_RANK() OVER (ORDER BY labevents.valuenum) AS c1 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'lactate dehydrogenase (ld)') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHE...
[ 10919, 318, 262, 37894, 286, 718, 2670, 13, 15, 287, 257, 14010, 26222, 378, 28151, 8648, 589, 357, 335, 8, 1332, 1813, 262, 976, 355, 5827, 7863, 37804, 338, 2479, 287, 511, 717, 4436, 8791, 30, 46506, 360, 8808, 1268, 4177, 256, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 37894, 286, 718, 2670, 13, 15, 287, 257, 14010, 26222, 378, 28151, 8648, 589, 357, 335, 8, 1332, 1813, 262, 976, 355, 5827, 7863, 37804, 338, 2479, 287, 511, 717, 4436, 8791, 30, 46506, 360, 8808, 1268, 4177, 256, 1...
What was the record when Minnesota was the visiting team?
SELECT "Record" FROM table_71470 WHERE "Visitor" = 'minnesota'
[ 2061, 373, 262, 1700, 618, 8919, 373, 262, 10013, 1074, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 45722, 2154, 33411, 366, 15854, 2072, 1, 796, 705, 1084, 8360, 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, 373, 262, 1700, 618, 8919, 373, 262, 10013, 1074, 30, 46506, 366, 23739, 1, 16034, 3084, 62, 45722, 2154, 33411, 366, 15854, 2072, 1, 796, 705, 1084, 8360, 6 ]
What is the date of the match for the wbc flyweight (112) title?
SELECT date FROM table_12262182_2 WHERE titles = "WBC Flyweight (112)"
[ 2061, 318, 262, 3128, 286, 262, 2872, 329, 262, 266, 15630, 6129, 6551, 357, 14686, 8, 3670, 30, 46506, 3128, 16034, 3084, 62, 1065, 29119, 24294, 62, 17, 33411, 8714, 796, 366, 54, 2749, 13575, 6551, 357, 14686, 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, 1, 1, 1 ]
[ 2061, 318, 262, 3128, 286, 262, 2872, 329, 262, 266, 15630, 6129, 6551, 357, 14686, 8, 3670, 30, 46506, 3128, 16034, 3084, 62, 1065, 29119, 24294, 62, 17, 33411, 8714, 796, 366, 54, 2749, 13575, 6551, 357, 14686, 16725 ]
How many stages were there where the winner and the points classification were Alberto Contador?
SELECT COUNT(stage) FROM table_15294880_2 WHERE winner = "Alberto Contador" AND points_classification = "Alberto Contador"
[ 2437, 867, 9539, 547, 612, 810, 262, 8464, 290, 262, 2173, 17923, 547, 40649, 2345, 7079, 30, 46506, 327, 28270, 7, 14247, 8, 16034, 3084, 62, 1314, 1959, 2780, 1795, 62, 17, 33411, 8464, 796, 366, 2348, 32371, 2345, 7079, 1, 5357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9539, 547, 612, 810, 262, 8464, 290, 262, 2173, 17923, 547, 40649, 2345, 7079, 30, 46506, 327, 28270, 7, 14247, 8, 16034, 3084, 62, 1314, 1959, 2780, 1795, 62, 17, 33411, 8464, 796, 366, 2348, 32371, 2345, 7079, 1, 5357, ...
List the pitchers for the 1970 season
SELECT "Pitcher" FROM table_2175 WHERE "Seasons" = '1970'
[ 8053, 262, 25259, 329, 262, 8069, 1622, 46506, 366, 47, 23640, 1, 16034, 3084, 62, 17, 17430, 33411, 366, 4653, 2812, 1, 796, 705, 30986, 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 ]
[ 8053, 262, 25259, 329, 262, 8069, 1622, 46506, 366, 47, 23640, 1, 16034, 3084, 62, 17, 17430, 33411, 366, 4653, 2812, 1, 796, 705, 30986, 6 ]
When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?
SELECT COUNT("Type of Fare") FROM table_23941 WHERE "31-Day Pass" = 'N/A' AND "Cash Fare" = 'N/A'
[ 2215, 299, 14, 64, 318, 262, 5003, 10030, 290, 299, 14, 64, 318, 262, 3261, 12, 820, 1208, 703, 867, 3858, 286, 14505, 389, 612, 30, 46506, 327, 28270, 7203, 6030, 286, 35205, 4943, 16034, 3084, 62, 23516, 3901, 33411, 366, 3132, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 299, 14, 64, 318, 262, 5003, 10030, 290, 299, 14, 64, 318, 262, 3261, 12, 820, 1208, 703, 867, 3858, 286, 14505, 389, 612, 30, 46506, 327, 28270, 7203, 6030, 286, 35205, 4943, 16034, 3084, 62, 23516, 3901, 33411, 366, 3132, 12...
Which yacht name has a Combined elapsed time of 179d 11h 58m 14s?
SELECT "Yacht name" FROM table_70390 WHERE "Combined elapsed time" = '179d 11h 58m 14s'
[ 13828, 43207, 1438, 468, 257, 32028, 42118, 640, 286, 27228, 67, 1367, 71, 7618, 76, 1478, 82, 30, 46506, 366, 56, 19725, 1438, 1, 16034, 3084, 62, 2154, 25964, 33411, 366, 20575, 1389, 42118, 640, 1, 796, 705, 21738, 67, 1367, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 43207, 1438, 468, 257, 32028, 42118, 640, 286, 27228, 67, 1367, 71, 7618, 76, 1478, 82, 30, 46506, 366, 56, 19725, 1438, 1, 16034, 3084, 62, 2154, 25964, 33411, 366, 20575, 1389, 42118, 640, 1, 796, 705, 21738, 67, 1367, 71, ...
Which venue was founded after 1967 and had the league North American Soccer League?
SELECT venue FROM table_name_93 WHERE founded > 1967 AND league = "north american soccer league"
[ 13828, 14359, 373, 9393, 706, 15904, 290, 550, 262, 4652, 2258, 1605, 15872, 4041, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 6052, 33411, 9393, 1875, 15904, 5357, 4652, 796, 366, 43588, 45630, 272, 11783, 4652, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 14359, 373, 9393, 706, 15904, 290, 550, 262, 4652, 2258, 1605, 15872, 4041, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 6052, 33411, 9393, 1875, 15904, 5357, 4652, 796, 366, 43588, 45630, 272, 11783, 4652, 1 ]
how many patients' primary disease is hypertension but not coronary artery disease/cardiac cath and their year of death is in or before 2115?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" AND demographic.dod_year <= "2115.0"
[ 4919, 867, 3871, 6, 4165, 4369, 318, 37454, 475, 407, 37151, 37646, 4369, 14, 9517, 9607, 32171, 290, 511, 614, 286, 1918, 318, 287, 393, 878, 362, 15363, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 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...
[ 4919, 867, 3871, 6, 4165, 4369, 318, 37454, 475, 407, 37151, 37646, 4369, 14, 9517, 9607, 32171, 290, 511, 614, 286, 1918, 318, 287, 393, 878, 362, 15363, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8,...
What is Launched, when Commissioned is '25 July 1998'?
SELECT launched FROM table_name_50 WHERE commissioned = "25 july 1998"
[ 2061, 318, 19826, 1740, 11, 618, 4513, 276, 318, 705, 1495, 2901, 7795, 30960, 46506, 5611, 16034, 3084, 62, 3672, 62, 1120, 33411, 20462, 796, 366, 1495, 474, 2062, 7795, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 19826, 1740, 11, 618, 4513, 276, 318, 705, 1495, 2901, 7795, 30960, 46506, 5611, 16034, 3084, 62, 3672, 62, 1120, 33411, 20462, 796, 366, 1495, 474, 2062, 7795, 1 ]
What is the lowest number of bronze medals for a country with less than 1 gold and 0 silver?
SELECT MIN("Bronze") FROM table_15105 WHERE "Gold" = '1' AND "Silver" < '0'
[ 2061, 318, 262, 9016, 1271, 286, 22101, 28057, 329, 257, 1499, 351, 1342, 621, 352, 3869, 290, 657, 8465, 30, 46506, 20625, 7203, 18760, 2736, 4943, 16034, 3084, 62, 1314, 13348, 33411, 366, 13306, 1, 796, 705, 16, 6, 5357, 366, 26766...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 1271, 286, 22101, 28057, 329, 257, 1499, 351, 1342, 621, 352, 3869, 290, 657, 8465, 30, 46506, 20625, 7203, 18760, 2736, 4943, 16034, 3084, 62, 1314, 13348, 33411, 366, 13306, 1, 796, 705, 16, 6, 5357, 366, 26766...
What away team scored 9.15 (69)?
SELECT "Away team" FROM table_33145 WHERE "Away team score" = '9.15 (69)'
[ 2061, 1497, 1074, 7781, 860, 13, 1314, 357, 3388, 19427, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 2091, 18781, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 24, 13, 1314, 357, 3388, 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 ]
[ 2061, 1497, 1074, 7781, 860, 13, 1314, 357, 3388, 19427, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 2091, 18781, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 24, 13, 1314, 357, 3388, 33047 ]
what is the district where the incumbent is richard kelly?
SELECT "District" FROM table_18336 WHERE "Incumbent" = 'Richard Kelly'
[ 10919, 318, 262, 4783, 810, 262, 23526, 318, 5527, 446, 885, 12810, 30, 46506, 366, 44857, 1, 16034, 3084, 62, 1507, 29211, 33411, 366, 25517, 2178, 298, 1, 796, 705, 22245, 9077, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 4783, 810, 262, 23526, 318, 5527, 446, 885, 12810, 30, 46506, 366, 44857, 1, 16034, 3084, 62, 1507, 29211, 33411, 366, 25517, 2178, 298, 1, 796, 705, 22245, 9077, 6 ]
what is the team when the rounds is all engine is mercedes hwa and driver is sam abay?
SELECT team FROM table_name_54 WHERE rounds = "all" AND engine = "mercedes hwa" AND driver = "sam abay"
[ 10919, 318, 262, 1074, 618, 262, 9196, 318, 477, 3113, 318, 4017, 19285, 289, 10247, 290, 4639, 318, 6072, 450, 323, 30, 46506, 1074, 16034, 3084, 62, 3672, 62, 4051, 33411, 9196, 796, 366, 439, 1, 5357, 3113, 796, 366, 647, 19285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1074, 618, 262, 9196, 318, 477, 3113, 318, 4017, 19285, 289, 10247, 290, 4639, 318, 6072, 450, 323, 30, 46506, 1074, 16034, 3084, 62, 3672, 62, 4051, 33411, 9196, 796, 366, 439, 1, 5357, 3113, 796, 366, 647, 19285, ...
how many patients are suggested with the procedure colonoscopy?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Colonoscopy"
[ 4919, 867, 3871, 389, 5220, 351, 262, 8771, 7633, 17500, 11081, 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, 62, 312, 796, 9021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 5220, 351, 262, 8771, 7633, 17500, 11081, 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, 62, 312, 796, 9021...
How many matches has 51 draws and more than 6 against?
SELECT SUM(matches) FROM table_name_86 WHERE against > 6 AND draw = 51
[ 2437, 867, 7466, 468, 6885, 14293, 290, 517, 621, 718, 1028, 30, 46506, 35683, 7, 6759, 2052, 8, 16034, 3084, 62, 3672, 62, 4521, 33411, 1028, 1875, 718, 5357, 3197, 796, 6885 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 7466, 468, 6885, 14293, 290, 517, 621, 718, 1028, 30, 46506, 35683, 7, 6759, 2052, 8, 16034, 3084, 62, 3672, 62, 4521, 33411, 1028, 1875, 718, 5357, 3197, 796, 6885 ]
Which Release date has a Director of tom palmer, and a Production Num larger than 5956?
SELECT release_date FROM table_name_92 WHERE director = "tom palmer" AND production_num > 5956
[ 13828, 13868, 3128, 468, 257, 5890, 286, 16667, 6340, 647, 11, 290, 257, 19174, 31835, 4025, 621, 642, 50148, 30, 46506, 2650, 62, 4475, 16034, 3084, 62, 3672, 62, 5892, 33411, 3437, 796, 366, 39532, 6340, 647, 1, 5357, 3227, 62, 2251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13868, 3128, 468, 257, 5890, 286, 16667, 6340, 647, 11, 290, 257, 19174, 31835, 4025, 621, 642, 50148, 30, 46506, 2650, 62, 4475, 16034, 3084, 62, 3672, 62, 5892, 33411, 3437, 796, 366, 39532, 6340, 647, 1, 5357, 3227, 62, 2251...
Which School has a Year Left of 1966, and a Mascot of indians?
SELECT school FROM table_name_8 WHERE year_left = 1966 AND mascot = "indians"
[ 13828, 3961, 468, 257, 6280, 9578, 286, 19322, 11, 290, 257, 337, 3372, 313, 286, 773, 1547, 30, 46506, 1524, 16034, 3084, 62, 3672, 62, 23, 33411, 614, 62, 9464, 796, 19322, 5357, 37358, 796, 366, 521, 1547, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3961, 468, 257, 6280, 9578, 286, 19322, 11, 290, 257, 337, 3372, 313, 286, 773, 1547, 30, 46506, 1524, 16034, 3084, 62, 3672, 62, 23, 33411, 614, 62, 9464, 796, 19322, 5357, 37358, 796, 366, 521, 1547, 1 ]
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the average of department_id bin hire_date by weekday, and visualize them by a bar chart, and rank from high to low by the y axis.
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(DEPARTMENT_ID) DESC
[ 1890, 883, 4409, 3025, 9588, 318, 287, 262, 2837, 286, 38055, 290, 1105, 830, 290, 5810, 318, 407, 9242, 393, 5011, 1271, 857, 407, 4961, 284, 2319, 11, 1064, 11078, 62, 4475, 290, 262, 2811, 286, 5011, 62, 312, 9874, 11078, 62, 447...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3025, 9588, 318, 287, 262, 2837, 286, 38055, 290, 1105, 830, 290, 5810, 318, 407, 9242, 393, 5011, 1271, 857, 407, 4961, 284, 2319, 11, 1064, 11078, 62, 4475, 290, 262, 2811, 286, 5011, 62, 312, 9874, 11078, 62, 447...
On what date was the venue VFL Park?
SELECT "Date" FROM table_54157 WHERE "Venue" = 'vfl park'
[ 2202, 644, 3128, 373, 262, 14359, 569, 3697, 3250, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 4051, 18458, 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 ]
[ 2202, 644, 3128, 373, 262, 14359, 569, 3697, 3250, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 4051, 18458, 33411, 366, 37522, 518, 1, 796, 705, 85, 2704, 3952, 6 ]
What is Event, when Date is '19 December 2009'?
SELECT event FROM table_name_6 WHERE date = "19 december 2009"
[ 2061, 318, 8558, 11, 618, 7536, 318, 705, 1129, 3426, 3717, 30960, 46506, 1785, 16034, 3084, 62, 3672, 62, 21, 33411, 3128, 796, 366, 1129, 390, 3273, 3717, 1 ]
[ 1, 1, 1, 1, 1, 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, 8558, 11, 618, 7536, 318, 705, 1129, 3426, 3717, 30960, 46506, 1785, 16034, 3084, 62, 3672, 62, 21, 33411, 3128, 796, 366, 1129, 390, 3273, 3717, 1 ]
Which Lead has a Nation of switzerland?
SELECT "Lead" FROM table_75136 WHERE "Nation" = 'switzerland'
[ 13828, 20116, 468, 257, 8741, 286, 1509, 13947, 30, 46506, 366, 20451, 1, 16034, 3084, 62, 2425, 20809, 33411, 366, 46108, 1, 796, 705, 2032, 13947, 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, 20116, 468, 257, 8741, 286, 1509, 13947, 30, 46506, 366, 20451, 1, 16034, 3084, 62, 2425, 20809, 33411, 366, 46108, 1, 796, 705, 2032, 13947, 6 ]
i was wondering what patient 10211's average value of heart rate on 04/01/2104 was?
SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10211)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'hear...
[ 72, 373, 11263, 644, 5827, 15143, 1157, 338, 2811, 1988, 286, 2612, 2494, 319, 8702, 14, 486, 14, 17, 13464, 373, 30, 46506, 35224, 7, 40926, 31534, 13, 2100, 84, 44709, 8, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 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...
[ 72, 373, 11263, 644, 5827, 15143, 1157, 338, 2811, 1988, 286, 2612, 2494, 319, 8702, 14, 486, 14, 17, 13464, 373, 30, 46506, 35224, 7, 40926, 31534, 13, 2100, 84, 44709, 8, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 323, ...
Which party's candidate is Grech Louis Grech?
SELECT party FROM table_name_36 WHERE candidate = "grech louis grech"
[ 13828, 2151, 338, 4540, 318, 11955, 354, 5593, 11955, 354, 30, 46506, 2151, 16034, 3084, 62, 3672, 62, 2623, 33411, 4540, 796, 366, 16694, 354, 21081, 271, 10536, 354, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 2151, 338, 4540, 318, 11955, 354, 5593, 11955, 354, 30, 46506, 2151, 16034, 3084, 62, 3672, 62, 2623, 33411, 4540, 796, 366, 16694, 354, 21081, 271, 10536, 354, 1 ]
What city is the School, Highland, in that ranks less than 8 and had its first title before 1980 and its last title later than 1960?
SELECT city FROM table_name_55 WHERE rank < 8 AND first < 1980 AND last > 1960 AND school = "highland"
[ 2061, 1748, 318, 262, 3961, 11, 39874, 11, 287, 326, 9803, 1342, 621, 807, 290, 550, 663, 717, 3670, 878, 7169, 290, 663, 938, 3670, 1568, 621, 9507, 30, 46506, 1748, 16034, 3084, 62, 3672, 62, 2816, 33411, 4279, 1279, 807, 5357, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1748, 318, 262, 3961, 11, 39874, 11, 287, 326, 9803, 1342, 621, 807, 290, 550, 663, 717, 3670, 878, 7169, 290, 663, 938, 3670, 1568, 621, 9507, 30, 46506, 1748, 16034, 3084, 62, 3672, 62, 2816, 33411, 4279, 1279, 807, 5357, 71...
How many players lost to eventual winner in the season when ASC Jeanne d'Arc lost to eventual runner up?
SELECT COUNT("lost to eventual winner") FROM table_17668 WHERE "lost to eventual runner-up" = 'ASC Jeanne d''Arc'
[ 2437, 867, 1938, 2626, 284, 19657, 8464, 287, 262, 1622, 618, 25400, 48202, 288, 6, 24021, 2626, 284, 19657, 17490, 510, 30, 46506, 327, 28270, 7203, 33224, 284, 19657, 8464, 4943, 16034, 3084, 62, 1558, 35809, 33411, 366, 33224, 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 ]
[ 2437, 867, 1938, 2626, 284, 19657, 8464, 287, 262, 1622, 618, 25400, 48202, 288, 6, 24021, 2626, 284, 19657, 17490, 510, 30, 46506, 327, 28270, 7203, 33224, 284, 19657, 8464, 4943, 16034, 3084, 62, 1558, 35809, 33411, 366, 33224, 284, 1...
What is the total Decile that has a state authority, fairlie area and roll smarter than 206?
SELECT COUNT("Decile") FROM table_79982 WHERE "Authority" = 'state' AND "Area" = 'fairlie' AND "Roll" < '206'
[ 2061, 318, 262, 2472, 4280, 576, 326, 468, 257, 1181, 4934, 11, 3148, 14485, 1989, 290, 4836, 23714, 621, 27253, 30, 46506, 327, 28270, 7203, 10707, 576, 4943, 16034, 3084, 62, 45455, 6469, 33411, 366, 13838, 414, 1, 796, 705, 5219, 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 ]
[ 2061, 318, 262, 2472, 4280, 576, 326, 468, 257, 1181, 4934, 11, 3148, 14485, 1989, 290, 4836, 23714, 621, 27253, 30, 46506, 327, 28270, 7203, 10707, 576, 4943, 16034, 3084, 62, 45455, 6469, 33411, 366, 13838, 414, 1, 796, 705, 5219, 6...
Name the 4 vea for 6 sas at 60 zastich?
SELECT "4 vea" FROM table_58641 WHERE "6 sas" = '60 zastich'
[ 5376, 262, 604, 1569, 64, 329, 718, 264, 292, 379, 3126, 1976, 459, 488, 30, 46506, 366, 19, 1569, 64, 1, 16034, 3084, 62, 3365, 42759, 33411, 366, 21, 264, 292, 1, 796, 705, 1899, 1976, 459, 488, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 604, 1569, 64, 329, 718, 264, 292, 379, 3126, 1976, 459, 488, 30, 46506, 366, 19, 1569, 64, 1, 16034, 3084, 62, 3365, 42759, 33411, 366, 21, 264, 292, 1, 796, 705, 1899, 1976, 459, 488, 6 ]
what did patient 31854 last have as an intake today?
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid 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 = 31854)) AND DATETIME(inputevents_cv....
[ 10919, 750, 5827, 39320, 4051, 938, 423, 355, 281, 10337, 1909, 30, 46506, 288, 62, 23814, 13, 18242, 16034, 288, 62, 23814, 33411, 288, 62, 23814, 13, 9186, 312, 3268, 357, 46506, 287, 79, 1133, 85, 658, 62, 33967, 13, 9186, 312, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 750, 5827, 39320, 4051, 938, 423, 355, 281, 10337, 1909, 30, 46506, 288, 62, 23814, 13, 18242, 16034, 288, 62, 23814, 33411, 288, 62, 23814, 13, 9186, 312, 3268, 357, 46506, 287, 79, 1133, 85, 658, 62, 33967, 13, 9186, 312, 1...
How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26?
SELECT COUNT("Draw") FROM table_33191 WHERE "Loss" < '8' AND "Point" > '30' AND "Goal Diff" > '26'
[ 2437, 867, 2472, 14293, 547, 612, 351, 257, 1342, 621, 807, 2994, 11, 517, 621, 1542, 2173, 11, 290, 257, 3061, 814, 4025, 621, 2608, 30, 46506, 327, 28270, 7203, 25302, 4943, 16034, 3084, 62, 2091, 26492, 33411, 366, 43, 793, 1, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 2472, 14293, 547, 612, 351, 257, 1342, 621, 807, 2994, 11, 517, 621, 1542, 2173, 11, 290, 257, 3061, 814, 4025, 621, 2608, 30, 46506, 327, 28270, 7203, 25302, 4943, 16034, 3084, 62, 2091, 26492, 33411, 366, 43, 793, 1, 12...
What is 2001, when 1994 is 'A', and when Tournament is 'Monte Carlo Masters'?
SELECT "2001" FROM table_44359 WHERE "1994" = 'a' AND "Tournament" = 'monte carlo masters'
[ 2061, 318, 5878, 11, 618, 9162, 318, 705, 32, 3256, 290, 618, 9595, 318, 705, 9069, 660, 40089, 15812, 30960, 46506, 366, 14585, 1, 16034, 3084, 62, 2598, 30743, 33411, 366, 22666, 1, 796, 705, 64, 6, 5357, 366, 51, 5138, 1, 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 ]
[ 2061, 318, 5878, 11, 618, 9162, 318, 705, 32, 3256, 290, 618, 9595, 318, 705, 9069, 660, 40089, 15812, 30960, 46506, 366, 14585, 1, 16034, 3084, 62, 2598, 30743, 33411, 366, 22666, 1, 796, 705, 64, 6, 5357, 366, 51, 5138, 1, 796, ...
Stacked bar chart of the total number for with each Sex in each rank, order by the x axis in descending.
SELECT Rank, COUNT(*) FROM Faculty GROUP BY Sex, Rank ORDER BY Rank DESC
[ 1273, 6021, 2318, 8262, 286, 262, 2472, 1271, 329, 351, 1123, 14419, 287, 1123, 4279, 11, 1502, 416, 262, 2124, 16488, 287, 31491, 13, 46506, 10916, 11, 327, 28270, 7, 28104, 16034, 35262, 44441, 11050, 14419, 11, 10916, 38678, 11050, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1273, 6021, 2318, 8262, 286, 262, 2472, 1271, 329, 351, 1123, 14419, 287, 1123, 4279, 11, 1502, 416, 262, 2124, 16488, 287, 31491, 13, 46506, 10916, 11, 327, 28270, 7, 28104, 16034, 35262, 44441, 11050, 14419, 11, 10916, 38678, 11050, 1...
Find the three most expensive procedures.
SELECT name FROM procedures ORDER BY cost LIMIT 3
[ 16742, 262, 1115, 749, 5789, 9021, 13, 46506, 1438, 16034, 9021, 38678, 11050, 1575, 27564, 2043, 513 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16742, 262, 1115, 749, 5789, 9021, 13, 46506, 1438, 16034, 9021, 38678, 11050, 1575, 27564, 2043, 513 ]
I want the R 53 of D 41 of r 21
SELECT "R 53" FROM table_55700 WHERE "D 41" = 'r 21'
[ 40, 765, 262, 371, 7192, 286, 360, 6073, 286, 374, 2310, 46506, 366, 49, 7192, 1, 16034, 3084, 62, 2816, 9879, 33411, 366, 35, 6073, 1, 796, 705, 81, 2310, 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 ]
[ 40, 765, 262, 371, 7192, 286, 360, 6073, 286, 374, 2310, 46506, 366, 49, 7192, 1, 16034, 3084, 62, 2816, 9879, 33411, 366, 35, 6073, 1, 796, 705, 81, 2310, 6 ]
What was the final episode credited of 187?
SELECT final_episode FROM table_name_72 WHERE episodes_credited = 187
[ 2061, 373, 262, 2457, 4471, 18141, 286, 27649, 30, 46506, 2457, 62, 38668, 16034, 3084, 62, 3672, 62, 4761, 33411, 8640, 62, 66, 19465, 796, 27649 ]
[ 1, 1, 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, 2457, 4471, 18141, 286, 27649, 30, 46506, 2457, 62, 38668, 16034, 3084, 62, 3672, 62, 4761, 33411, 8640, 62, 66, 19465, 796, 27649 ]
What Player is a Wide Receiver?
SELECT "Player" FROM table_74914 WHERE "Position" = 'wide receiver'
[ 2061, 7853, 318, 257, 23399, 39106, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 22, 2920, 1415, 33411, 366, 26545, 1, 796, 705, 4421, 9733, 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, 7853, 318, 257, 23399, 39106, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 22, 2920, 1415, 33411, 366, 26545, 1, 796, 705, 4421, 9733, 6 ]
What is the Market Share that has Assets of 25 Million and a rank of 23?
SELECT "Market Share" FROM table_60026 WHERE "Assets (USD) Millions" = '25' AND "Rank" = '23'
[ 2061, 318, 262, 5991, 8734, 326, 468, 41059, 286, 1679, 23425, 290, 257, 4279, 286, 2242, 30, 46506, 366, 27470, 8734, 1, 16034, 3084, 62, 8054, 2075, 33411, 366, 8021, 1039, 357, 29072, 8, 39830, 1, 796, 705, 1495, 6, 5357, 366, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5991, 8734, 326, 468, 41059, 286, 1679, 23425, 290, 257, 4279, 286, 2242, 30, 46506, 366, 27470, 8734, 1, 16034, 3084, 62, 8054, 2075, 33411, 366, 8021, 1039, 357, 29072, 8, 39830, 1, 796, 705, 1495, 6, 5357, 366, 27...
Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position?
SELECT grand_prix FROM table_name_24 WHERE fastest_lap = "gerhard berger" AND pole_position = "jacques villeneuve"
[ 13828, 4490, 1293, 87, 550, 27602, 10424, 18157, 1362, 287, 465, 14162, 14779, 290, 257, 474, 330, 13281, 4489, 1734, 45177, 16825, 2292, 30, 46506, 4490, 62, 3448, 87, 16034, 3084, 62, 3672, 62, 1731, 33411, 14162, 62, 37796, 796, 366,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 4490, 1293, 87, 550, 27602, 10424, 18157, 1362, 287, 465, 14162, 14779, 290, 257, 474, 330, 13281, 4489, 1734, 45177, 16825, 2292, 30, 46506, 4490, 62, 3448, 87, 16034, 3084, 62, 3672, 62, 1731, 33411, 14162, 62, 37796, 796, 366,...
number of papers published in ACL 2015
SELECT DISTINCT COUNT(DISTINCT paper.paperid) FROM paper, venue WHERE paper.year = 2015 AND venue.venueid = paper.venueid AND venue.venuename = 'ACL'
[ 17618, 286, 9473, 3199, 287, 17382, 1853, 46506, 360, 8808, 1268, 4177, 327, 28270, 7, 35, 8808, 1268, 4177, 3348, 13, 20189, 312, 8, 16034, 3348, 11, 14359, 33411, 3348, 13, 1941, 796, 1853, 5357, 14359, 13, 4080, 312, 796, 3348, 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 ]
[ 17618, 286, 9473, 3199, 287, 17382, 1853, 46506, 360, 8808, 1268, 4177, 327, 28270, 7, 35, 8808, 1268, 4177, 3348, 13, 20189, 312, 8, 16034, 3348, 11, 14359, 33411, 3348, 13, 1941, 796, 1853, 5357, 14359, 13, 4080, 312, 796, 3348, 13,...
What game has a platform(s) of playstation 3, when the genre is platform game?
SELECT "Game" FROM table_13804 WHERE "Platform(s)" = 'playstation 3' AND "Genre" = 'platform game'
[ 2061, 983, 468, 257, 3859, 7, 82, 8, 286, 711, 17529, 513, 11, 618, 262, 12121, 318, 3859, 983, 30, 46506, 366, 8777, 1, 16034, 3084, 62, 1485, 36088, 33411, 366, 37148, 7, 82, 16725, 796, 705, 1759, 17529, 513, 6, 5357, 366, 1374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 983, 468, 257, 3859, 7, 82, 8, 286, 711, 17529, 513, 11, 618, 262, 12121, 318, 3859, 983, 30, 46506, 366, 8777, 1, 16034, 3084, 62, 1485, 36088, 33411, 366, 37148, 7, 82, 16725, 796, 705, 1759, 17529, 513, 6, 5357, 366, 1374...
yes or no for the melbourne that has no for adelaide, no for gold coast?
SELECT "Melbourne" FROM table_67838 WHERE "Adelaide" = 'yes' AND "Gold Coast" = 'no'
[ 8505, 393, 645, 329, 262, 7758, 12544, 326, 468, 645, 329, 512, 25078, 11, 645, 329, 3869, 7051, 30, 46506, 366, 21102, 12544, 1, 16034, 3084, 62, 30924, 2548, 33411, 366, 2782, 25078, 1, 796, 705, 8505, 6, 5357, 366, 13306, 8545, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8505, 393, 645, 329, 262, 7758, 12544, 326, 468, 645, 329, 512, 25078, 11, 645, 329, 3869, 7051, 30, 46506, 366, 21102, 12544, 1, 16034, 3084, 62, 30924, 2548, 33411, 366, 2782, 25078, 1, 796, 705, 8505, 6, 5357, 366, 13306, 8545, 1...
Which assets did not incur any fault log? List the asset model.
SELECT asset_model FROM Assets WHERE NOT asset_id IN (SELECT asset_id FROM Fault_Log)
[ 13828, 6798, 750, 407, 35870, 597, 8046, 2604, 30, 7343, 262, 11171, 2746, 13, 46506, 11171, 62, 19849, 16034, 41059, 33411, 5626, 11171, 62, 312, 3268, 357, 46506, 11171, 62, 312, 16034, 40050, 62, 11187, 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 ]
[ 13828, 6798, 750, 407, 35870, 597, 8046, 2604, 30, 7343, 262, 11171, 2746, 13, 46506, 11171, 62, 19849, 16034, 41059, 33411, 5626, 11171, 62, 312, 3268, 357, 46506, 11171, 62, 312, 16034, 40050, 62, 11187, 8 ]
What show featured the song 'little shop of horrors'?
SELECT "Show" FROM table_74234 WHERE "Song title" = 'Little Shop of Horrors'
[ 2061, 905, 8096, 262, 3496, 705, 31629, 6128, 286, 26611, 30960, 46506, 366, 15307, 1, 16034, 3084, 62, 4524, 24409, 33411, 366, 44241, 3670, 1, 796, 705, 22253, 13705, 286, 6075, 5965, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 905, 8096, 262, 3496, 705, 31629, 6128, 286, 26611, 30960, 46506, 366, 15307, 1, 16034, 3084, 62, 4524, 24409, 33411, 366, 44241, 3670, 1, 796, 705, 22253, 13705, 286, 6075, 5965, 6 ]
What is the number of the first game?
SELECT MIN("Game") FROM table_3070
[ 2061, 318, 262, 1271, 286, 262, 717, 983, 30, 46506, 20625, 7203, 8777, 4943, 16034, 3084, 62, 1270, 2154 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1271, 286, 262, 717, 983, 30, 46506, 20625, 7203, 8777, 4943, 16034, 3084, 62, 1270, 2154 ]
SELECT * from Comments c WHERE c.PostId in (SELECT Id FROM Posts WHERE YEAR ( CreationDate ) = 2015).
SELECT * FROM Comments AS c WHERE c.PostId IN (SELECT Id FROM Posts WHERE YEAR(CreationDate) = 2015)
[ 46506, 1635, 422, 19502, 269, 33411, 269, 13, 6307, 7390, 287, 357, 46506, 5121, 16034, 12043, 33411, 32914, 357, 21582, 10430, 1267, 796, 1853, 737, 46506, 1635, 16034, 19502, 7054, 269, 33411, 269, 13, 6307, 7390, 3268, 357, 46506, 5121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 46506, 1635, 422, 19502, 269, 33411, 269, 13, 6307, 7390, 287, 357, 46506, 5121, 16034, 12043, 33411, 32914, 357, 21582, 10430, 1267, 796, 1853, 737, 46506, 1635, 16034, 19502, 7054, 269, 33411, 269, 13, 6307, 7390, 3268, 357, 46506, 5121...
A line chart for finding the number of the enrollment date for all the tests that have 'Pass' result.
SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" GROUP BY date_of_enrolment
[ 32, 1627, 8262, 329, 4917, 262, 1271, 286, 262, 20753, 3128, 329, 477, 262, 5254, 326, 423, 705, 14478, 6, 1255, 13, 46506, 3128, 62, 1659, 62, 268, 3225, 434, 11, 327, 28270, 7, 4475, 62, 1659, 62, 268, 3225, 434, 8, 16034, 13613...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 32, 1627, 8262, 329, 4917, 262, 1271, 286, 262, 20753, 3128, 329, 477, 262, 5254, 326, 423, 705, 14478, 6, 1255, 13, 46506, 3128, 62, 1659, 62, 268, 3225, 434, 11, 327, 28270, 7, 4475, 62, 1659, 62, 268, 3225, 434, 8, 16034, 13613...