instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
What school was founded in 1791?
SELECT "School" FROM table_23894 WHERE "Founded" = '1791'
[ 2061, 1524, 373, 9393, 287, 1596, 6420, 30, 46506, 366, 26130, 1, 16034, 3084, 62, 1954, 4531, 19, 33411, 366, 37, 6302, 1, 796, 705, 1558, 6420, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1524, 373, 9393, 287, 1596, 6420, 30, 46506, 366, 26130, 1, 16034, 3084, 62, 1954, 4531, 19, 33411, 366, 37, 6302, 1, 796, 705, 1558, 6420, 6 ]
Visualize the general trend of the number of date of completion over the date of completion, and display x axis from low to high order.
SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment GROUP BY date_of_completion ORDER BY date_of_completion
[ 36259, 1096, 262, 2276, 5182, 286, 262, 1271, 286, 3128, 286, 11939, 625, 262, 3128, 286, 11939, 11, 290, 3359, 2124, 16488, 422, 1877, 284, 1029, 1502, 13, 46506, 3128, 62, 1659, 62, 785, 24547, 11, 327, 28270, 7, 4475, 62, 1659, 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...
[ 36259, 1096, 262, 2276, 5182, 286, 262, 1271, 286, 3128, 286, 11939, 625, 262, 3128, 286, 11939, 11, 290, 3359, 2124, 16488, 422, 1877, 284, 1029, 1502, 13, 46506, 3128, 62, 1659, 62, 785, 24547, 11, 327, 28270, 7, 4475, 62, 1659, 6...
When the date is 8 october 2008 what is the sum of attendance?
SELECT SUM("Attendance") FROM table_63108 WHERE "Date" = '8 october 2008'
[ 2215, 262, 3128, 318, 807, 19318, 2023, 3648, 644, 318, 262, 2160, 286, 14858, 30, 46506, 35683, 7203, 8086, 437, 590, 4943, 16034, 3084, 62, 5066, 15711, 33411, 366, 10430, 1, 796, 705, 23, 19318, 2023, 3648, 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 ]
[ 2215, 262, 3128, 318, 807, 19318, 2023, 3648, 644, 318, 262, 2160, 286, 14858, 30, 46506, 35683, 7203, 8086, 437, 590, 4943, 16034, 3084, 62, 5066, 15711, 33411, 366, 10430, 1, 796, 705, 23, 19318, 2023, 3648, 6 ]
Which season has less than 26 points, more than 18 games, and exactly 13 losses?
SELECT season FROM table_name_78 WHERE points < 26 AND games > 18 AND losses = 13
[ 13828, 1622, 468, 1342, 621, 2608, 2173, 11, 517, 621, 1248, 1830, 11, 290, 3446, 1511, 9089, 30, 46506, 1622, 16034, 3084, 62, 3672, 62, 3695, 33411, 2173, 1279, 2608, 5357, 1830, 1875, 1248, 5357, 9089, 796, 1511 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1622, 468, 1342, 621, 2608, 2173, 11, 517, 621, 1248, 1830, 11, 290, 3446, 1511, 9089, 30, 46506, 1622, 16034, 3084, 62, 3672, 62, 3695, 33411, 2173, 1279, 2608, 5357, 1830, 1875, 1248, 5357, 9089, 796, 1511 ]
Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling.
SELECT T1.account_name, T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Meaghan" AND T2.customer_last_name = "Keeling"
[ 15307, 262, 1848, 1438, 290, 584, 1848, 3703, 329, 477, 5504, 416, 262, 6491, 351, 717, 1438, 2185, 45109, 290, 938, 1438, 3873, 10809, 13, 46506, 309, 16, 13, 23317, 62, 3672, 11, 309, 16, 13, 847, 62, 23317, 62, 36604, 16034, 3558...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1848, 1438, 290, 584, 1848, 3703, 329, 477, 5504, 416, 262, 6491, 351, 717, 1438, 2185, 45109, 290, 938, 1438, 3873, 10809, 13, 46506, 309, 16, 13, 23317, 62, 3672, 11, 309, 16, 13, 847, 62, 23317, 62, 36604, 16034, 3558...
Who is the rider with a 399cc Kawasaki?
SELECT rider FROM table_name_94 WHERE team = "399cc kawasaki"
[ 8241, 318, 262, 17876, 351, 257, 43927, 535, 23043, 33846, 30, 46506, 17876, 16034, 3084, 62, 3672, 62, 5824, 33411, 1074, 796, 366, 28771, 535, 479, 707, 33846, 1 ]
[ 1, 1, 1, 1, 1, 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, 17876, 351, 257, 43927, 535, 23043, 33846, 30, 46506, 17876, 16034, 3084, 62, 3672, 62, 5824, 33411, 1074, 796, 366, 28771, 535, 479, 707, 33846, 1 ]
What is part 1 of the verb in class 7b
SELECT "Part 1" FROM table_21722 WHERE "Class" = '7b'
[ 2061, 318, 636, 352, 286, 262, 15942, 287, 1398, 767, 65, 46506, 366, 7841, 352, 1, 16034, 3084, 62, 24591, 1828, 33411, 366, 9487, 1, 796, 705, 22, 65, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 636, 352, 286, 262, 15942, 287, 1398, 767, 65, 46506, 366, 7841, 352, 1, 16034, 3084, 62, 24591, 1828, 33411, 366, 9487, 1, 796, 705, 22, 65, 6 ]
How many years had budgets of $39 million?
SELECT SUM("Year") FROM table_5951 WHERE "Budget" = '$39 million'
[ 2437, 867, 812, 550, 21011, 286, 720, 2670, 1510, 30, 46506, 35683, 7203, 17688, 4943, 16034, 3084, 62, 3270, 4349, 33411, 366, 33, 29427, 1, 796, 705, 3, 2670, 1510, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 812, 550, 21011, 286, 720, 2670, 1510, 30, 46506, 35683, 7203, 17688, 4943, 16034, 3084, 62, 3270, 4349, 33411, 366, 33, 29427, 1, 796, 705, 3, 2670, 1510, 6 ]
What was the result of the election in which the incumbent was first elected in 1984?
SELECT results FROM table_1341453_37 WHERE first_elected = 1984
[ 2061, 373, 262, 1255, 286, 262, 3071, 287, 543, 262, 23526, 373, 717, 7018, 287, 12844, 30, 46506, 2482, 16034, 3084, 62, 19880, 1415, 4310, 62, 2718, 33411, 717, 62, 28604, 796, 12844 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1255, 286, 262, 3071, 287, 543, 262, 23526, 373, 717, 7018, 287, 12844, 30, 46506, 2482, 16034, 3084, 62, 19880, 1415, 4310, 62, 2718, 33411, 717, 62, 28604, 796, 12844 ]
Scatter chart. what is the total amount of grant money given to each organization and what is its id?
SELECT SUM(grant_amount), organisation_id FROM Grants GROUP BY organisation_id
[ 3351, 1436, 8262, 13, 644, 318, 262, 2472, 2033, 286, 7264, 1637, 1813, 284, 1123, 4009, 290, 644, 318, 663, 4686, 30, 46506, 35683, 7, 2164, 415, 62, 17287, 828, 12684, 62, 312, 16034, 40535, 44441, 11050, 12684, 62, 312 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3351, 1436, 8262, 13, 644, 318, 262, 2472, 2033, 286, 7264, 1637, 1813, 284, 1123, 4009, 290, 644, 318, 663, 4686, 30, 46506, 35683, 7, 2164, 415, 62, 17287, 828, 12684, 62, 312, 16034, 40535, 44441, 11050, 12684, 62, 312 ]
, and order by the y axis in ascending.
SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry ORDER BY COUNT(*)
[ 11, 290, 1502, 416, 262, 331, 16488, 287, 41988, 13, 46506, 17420, 11, 327, 28270, 7, 28104, 16034, 24382, 44441, 11050, 17420, 38678, 11050, 327, 28270, 7, 28104 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 11, 290, 1502, 416, 262, 331, 16488, 287, 41988, 13, 46506, 17420, 11, 327, 28270, 7, 28104, 16034, 24382, 44441, 11050, 17420, 38678, 11050, 327, 28270, 7, 28104 ]
What is the number of each allergie type the girl named Lisa has? Show bar chart, I want to order X-axis in desc order.
SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type AS T1 JOIN Has_Allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" GROUP BY AllergyType ORDER BY AllergyType DESC
[ 2061, 318, 262, 1271, 286, 1123, 30975, 494, 2099, 262, 2576, 3706, 15378, 468, 30, 5438, 2318, 8262, 11, 314, 765, 284, 1502, 1395, 12, 22704, 287, 1715, 1502, 13, 46506, 1439, 26079, 6030, 11, 327, 28270, 7, 3237, 26079, 6030, 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...
[ 2061, 318, 262, 1271, 286, 1123, 30975, 494, 2099, 262, 2576, 3706, 15378, 468, 30, 5438, 2318, 8262, 11, 314, 765, 284, 1502, 1395, 12, 22704, 287, 1715, 1502, 13, 46506, 1439, 26079, 6030, 11, 327, 28270, 7, 3237, 26079, 6030, 8, ...
the least amount of points scored by phoenix during the season is ...
SELECT MIN("score") FROM table_203_689
[ 1169, 1551, 2033, 286, 2173, 7781, 416, 872, 8538, 1141, 262, 1622, 318, 2644, 46506, 20625, 7203, 26675, 4943, 16034, 3084, 62, 22416, 62, 40523 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1169, 1551, 2033, 286, 2173, 7781, 416, 872, 8538, 1141, 262, 1622, 318, 2644, 46506, 20625, 7203, 26675, 4943, 16034, 3084, 62, 22416, 62, 40523 ]
What round was a player from Indiana picked?
SELECT round FROM table_name_71 WHERE college = "indiana"
[ 2061, 2835, 373, 257, 2137, 422, 10278, 6497, 30, 46506, 2835, 16034, 3084, 62, 3672, 62, 4869, 33411, 4152, 796, 366, 521, 7484, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2835, 373, 257, 2137, 422, 10278, 6497, 30, 46506, 2835, 16034, 3084, 62, 3672, 62, 4869, 33411, 4152, 796, 366, 521, 7484, 1 ]
What is every title when U.S. viewers is 1.04 million.
SELECT "Title" FROM table_28974 WHERE "U.S. viewers (millions)" = '1.04'
[ 2061, 318, 790, 3670, 618, 471, 13, 50, 13, 10209, 318, 352, 13, 3023, 1510, 13, 46506, 366, 19160, 1, 16034, 3084, 62, 27693, 4524, 33411, 366, 52, 13, 50, 13, 10209, 357, 17805, 507, 16725, 796, 705, 16, 13, 3023, 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, 790, 3670, 618, 471, 13, 50, 13, 10209, 318, 352, 13, 3023, 1510, 13, 46506, 366, 19160, 1, 16034, 3084, 62, 27693, 4524, 33411, 366, 52, 13, 50, 13, 10209, 357, 17805, 507, 16725, 796, 705, 16, 13, 3023, 6 ]
How many clubs are remaining when the winners from the previous round totals 4?
SELECT "Clubs remaining" FROM table_22279 WHERE "Winners from previous round" = '4'
[ 2437, 867, 9784, 389, 5637, 618, 262, 14591, 422, 262, 2180, 2835, 26310, 604, 30, 46506, 366, 2601, 23161, 5637, 1, 16034, 3084, 62, 1828, 26050, 33411, 366, 16643, 2741, 422, 2180, 2835, 1, 796, 705, 19, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 9784, 389, 5637, 618, 262, 14591, 422, 262, 2180, 2835, 26310, 604, 30, 46506, 366, 2601, 23161, 5637, 1, 16034, 3084, 62, 1828, 26050, 33411, 366, 16643, 2741, 422, 2180, 2835, 1, 796, 705, 19, 6 ]
Which name has an authority of state?
SELECT "Name" FROM table_11937 WHERE "Authority" = 'state'
[ 13828, 1438, 468, 281, 4934, 286, 1181, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 16315, 2718, 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 ]
[ 13828, 1438, 468, 281, 4934, 286, 1181, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 16315, 2718, 33411, 366, 13838, 414, 1, 796, 705, 5219, 6 ]
What is the score of the game where the record was 22-55?
SELECT score FROM table_name_7 WHERE record = "22-55"
[ 2061, 318, 262, 4776, 286, 262, 983, 810, 262, 1700, 373, 2534, 12, 2816, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 22, 33411, 1700, 796, 366, 1828, 12, 2816, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 286, 262, 983, 810, 262, 1700, 373, 2534, 12, 2816, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 22, 33411, 1700, 796, 366, 1828, 12, 2816, 1 ]
For those employees who was hired before 2002-06-21, find hire_date and the sum of manager_id bin hire_date by weekday, and visualize them by a bar chart.
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21'
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 1064, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 38350, 606, 416, 257, 2318, 8262, 13, 46506, 36210, 2200, 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...
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 1064, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 38350, 606, 416, 257, 2318, 8262, 13, 46506, 36210, 2200, 62,...
what are the top five most common output events since 5 years ago?
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE DATETIME(outputevents.charttime) >= DATETIME(CURRENT_TIME(), '-5 year') GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 5)
[ 10919, 389, 262, 1353, 1936, 749, 2219, 5072, 2995, 1201, 642, 812, 2084, 30, 46506, 288, 62, 23814, 13, 18242, 16034, 288, 62, 23814, 33411, 288, 62, 23814, 13, 9186, 312, 3268, 357, 46506, 256, 16, 13, 9186, 312, 16034, 357, 46506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1353, 1936, 749, 2219, 5072, 2995, 1201, 642, 812, 2084, 30, 46506, 288, 62, 23814, 13, 18242, 16034, 288, 62, 23814, 33411, 288, 62, 23814, 13, 9186, 312, 3268, 357, 46506, 256, 16, 13, 9186, 312, 16034, 357, 46506, ...
Which language has Programming from India, general genre, a network of ptc punjabi and bell fibe tv service?
SELECT "Language" FROM table_33536 WHERE "Origin of Programming" = 'india' AND "Genre" = 'general' AND "Network" = 'ptc punjabi' AND "Service" = 'bell fibe tv'
[ 13828, 3303, 468, 30297, 422, 3794, 11, 2276, 12121, 11, 257, 3127, 286, 279, 23047, 4000, 73, 17914, 290, 8966, 12900, 68, 31557, 2139, 30, 46506, 366, 32065, 1, 16034, 3084, 62, 27326, 2623, 33411, 366, 39688, 286, 30297, 1, 796, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13828, 3303, 468, 30297, 422, 3794, 11, 2276, 12121, 11, 257, 3127, 286, 279, 23047, 4000, 73, 17914, 290, 8966, 12900, 68, 31557, 2139, 30, 46506, 366, 32065, 1, 16034, 3084, 62, 27326, 2623, 33411, 366, 39688, 286, 30297, 1, 796, 70...
How many values for number of clubs have Shandong as the runner-up?
SELECT COUNT(number_of_clubs) FROM table_17632217_1 WHERE runners_up = "Shandong"
[ 2437, 867, 3815, 329, 1271, 286, 9784, 423, 911, 392, 506, 355, 262, 17490, 12, 929, 30, 46506, 327, 28270, 7, 17618, 62, 1659, 62, 18664, 82, 8, 16034, 3084, 62, 1558, 5066, 1828, 1558, 62, 16, 33411, 19323, 62, 929, 796, 366, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3815, 329, 1271, 286, 9784, 423, 911, 392, 506, 355, 262, 17490, 12, 929, 30, 46506, 327, 28270, 7, 17618, 62, 1659, 62, 18664, 82, 8, 16034, 3084, 62, 1558, 5066, 1828, 1558, 62, 16, 33411, 19323, 62, 929, 796, 366, 24...
what is maximum age of patients whose admission location is phys referral/normal deli and days of hospital stay is 27?
SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.days_stay = "27"
[ 10919, 318, 5415, 2479, 286, 3871, 3025, 13938, 4067, 318, 2281, 31413, 14, 11265, 1619, 72, 290, 1528, 286, 4436, 2652, 318, 2681, 30, 46506, 25882, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 324, 3411, 62, 24886, 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, 1, 1, 1, 1, 1...
[ 10919, 318, 5415, 2479, 286, 3871, 3025, 13938, 4067, 318, 2281, 31413, 14, 11265, 1619, 72, 290, 1528, 286, 4436, 2652, 318, 2681, 30, 46506, 25882, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13, 324, 3411, 62, 24886, 796...
List the course name of courses sorted by credits.
SELECT cname FROM course ORDER BY credits
[ 8053, 262, 1781, 1438, 286, 10902, 23243, 416, 10824, 13, 46506, 269, 3672, 16034, 1781, 38678, 11050, 10824 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 262, 1781, 1438, 286, 10902, 23243, 416, 10824, 13, 46506, 269, 3672, 16034, 1781, 38678, 11050, 10824 ]
Who was home at Princes Park?
SELECT "Home team score" FROM table_77656 WHERE "Venue" = 'princes park'
[ 8241, 373, 1363, 379, 7489, 728, 3250, 30, 46506, 366, 16060, 1074, 4776, 1, 16034, 3084, 62, 3324, 37466, 33411, 366, 37522, 518, 1, 796, 705, 1050, 17386, 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 ]
[ 8241, 373, 1363, 379, 7489, 728, 3250, 30, 46506, 366, 16060, 1074, 4776, 1, 16034, 3084, 62, 3324, 37466, 33411, 366, 37522, 518, 1, 796, 705, 1050, 17386, 3952, 6 ]
Which Year(s) of manufacture has an Axle arrangement of 2 b n2?
SELECT "Year(s) of manufacture" FROM table_65189 WHERE "Axle arrangement" = '2′b n2'
[ 13828, 6280, 7, 82, 8, 286, 6161, 468, 281, 12176, 293, 13888, 286, 362, 275, 299, 17, 30, 46506, 366, 17688, 7, 82, 8, 286, 6161, 1, 16034, 3084, 62, 2996, 23362, 33411, 366, 31554, 293, 13888, 1, 796, 705, 17, 17478, 65, 299, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6280, 7, 82, 8, 286, 6161, 468, 281, 12176, 293, 13888, 286, 362, 275, 299, 17, 30, 46506, 366, 17688, 7, 82, 8, 286, 6161, 1, 16034, 3084, 62, 2996, 23362, 33411, 366, 31554, 293, 13888, 1, 796, 705, 17, 17478, 65, 299, ...
How many married patients had a lab test named rdw?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "RDW"
[ 2437, 867, 6405, 3871, 550, 257, 2248, 1332, 3706, 374, 67, 86, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 6405, 3871, 550, 257, 2248, 1332, 3706, 374, 67, 86, 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, 22...
Name the record for may 3
SELECT "Record" FROM table_57169 WHERE "Date" = 'may 3'
[ 5376, 262, 1700, 329, 743, 513, 46506, 366, 23739, 1, 16034, 3084, 62, 3553, 22172, 33411, 366, 10430, 1, 796, 705, 11261, 513, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 1700, 329, 743, 513, 46506, 366, 23739, 1, 16034, 3084, 62, 3553, 22172, 33411, 366, 10430, 1, 796, 705, 11261, 513, 6 ]
What is the greatest money list ranking that has a Top 25 higher than 2?
SELECT MAX(money_list_rank) FROM table_name_44 WHERE top_25 < 2
[ 2061, 318, 262, 6000, 1637, 1351, 12759, 326, 468, 257, 5849, 1679, 2440, 621, 362, 30, 46506, 25882, 7, 26316, 62, 4868, 62, 43027, 8, 16034, 3084, 62, 3672, 62, 2598, 33411, 1353, 62, 1495, 1279, 362 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 6000, 1637, 1351, 12759, 326, 468, 257, 5849, 1679, 2440, 621, 362, 30, 46506, 25882, 7, 26316, 62, 4868, 62, 43027, 8, 16034, 3084, 62, 3672, 62, 2598, 33411, 1353, 62, 1495, 1279, 362 ]
What is the average region that has an Area (km 2 ) of 451.79, and a Population under 496,257?
SELECT AVG("Region") FROM table_10688 WHERE "Area (km 2 )" = '451.79' AND "Population" < '496,257'
[ 2061, 318, 262, 2811, 3814, 326, 468, 281, 9498, 357, 13276, 362, 1267, 286, 49356, 13, 3720, 11, 290, 257, 20133, 739, 604, 4846, 11, 28676, 30, 46506, 35224, 7203, 47371, 4943, 16034, 3084, 62, 940, 34427, 33411, 366, 30547, 357, 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 ]
[ 2061, 318, 262, 2811, 3814, 326, 468, 281, 9498, 357, 13276, 362, 1267, 286, 49356, 13, 3720, 11, 290, 257, 20133, 739, 604, 4846, 11, 28676, 30, 46506, 35224, 7203, 47371, 4943, 16034, 3084, 62, 940, 34427, 33411, 366, 30547, 357, 13...
Who was the first elected incumbent in the 1946 election?
SELECT "Incumbent" FROM table_18525 WHERE "First elected" = '1946'
[ 8241, 373, 262, 717, 7018, 23526, 287, 262, 22717, 3071, 30, 46506, 366, 25517, 2178, 298, 1, 16034, 3084, 62, 21652, 1495, 33411, 366, 5962, 7018, 1, 796, 705, 1129, 3510, 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 ]
[ 8241, 373, 262, 717, 7018, 23526, 287, 262, 22717, 3071, 30, 46506, 366, 25517, 2178, 298, 1, 16034, 3084, 62, 21652, 1495, 33411, 366, 5962, 7018, 1, 796, 705, 1129, 3510, 6 ]
A bar chart about what are the main indstries and total market value for each industry?, sort by the Y-axis in desc.
SELECT Main_Industry, SUM(Market_Value) FROM company GROUP BY Main_Industry ORDER BY SUM(Market_Value) DESC
[ 32, 2318, 8262, 546, 644, 389, 262, 1388, 773, 301, 1678, 290, 2472, 1910, 1988, 329, 1123, 2831, 21747, 3297, 416, 262, 575, 12, 22704, 287, 1715, 13, 46506, 8774, 62, 35848, 563, 11, 35683, 7, 27470, 62, 11395, 8, 16034, 1664, 444...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 644, 389, 262, 1388, 773, 301, 1678, 290, 2472, 1910, 1988, 329, 1123, 2831, 21747, 3297, 416, 262, 575, 12, 22704, 287, 1715, 13, 46506, 8774, 62, 35848, 563, 11, 35683, 7, 27470, 62, 11395, 8, 16034, 1664, 444...
What was the result of the game that was attended by 16,000 people?
SELECT "Result" FROM table_6710 WHERE "Attendance" = '16,000'
[ 2061, 373, 262, 1255, 286, 262, 983, 326, 373, 9141, 416, 1467, 11, 830, 661, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 3134, 940, 33411, 366, 8086, 437, 590, 1, 796, 705, 1433, 11, 830, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 1255, 286, 262, 983, 326, 373, 9141, 416, 1467, 11, 830, 661, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 3134, 940, 33411, 366, 8086, 437, 590, 1, 796, 705, 1433, 11, 830, 6 ]
how many patients whose age is less than 58 and admission year is less than 2107?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "58" AND demographic.admityear < "2107"
[ 4919, 867, 3871, 3025, 2479, 318, 1342, 621, 7618, 290, 13938, 614, 318, 1342, 621, 362, 15982, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 496, 1279, 366, 3365, 1, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 3871, 3025, 2479, 318, 1342, 621, 7618, 290, 13938, 614, 318, 1342, 621, 362, 15982, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 496, 1279, 366, 3365, 1, 5...
Top 5000 users from Roorkee.
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%roorkee%' OR UPPER(Location) LIKE '%ROORKEE' ORDER BY Reputation DESC LIMIT 5000
[ 9126, 23336, 2985, 422, 371, 2675, 11035, 13, 46506, 371, 3913, 62, 41359, 13246, 3419, 28729, 357, 12532, 1137, 11050, 1432, 7094, 22196, 34, 8, 7054, 25113, 1600, 5121, 7054, 366, 7220, 62, 8726, 1600, 1432, 7094, 16034, 18987, 33411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9126, 23336, 2985, 422, 371, 2675, 11035, 13, 46506, 371, 3913, 62, 41359, 13246, 3419, 28729, 357, 12532, 1137, 11050, 1432, 7094, 22196, 34, 8, 7054, 25113, 1600, 5121, 7054, 366, 7220, 62, 8726, 1600, 1432, 7094, 16034, 18987, 33411, ...
which ranked higher in place , israel or the united kingdom ?
SELECT "country" FROM table_203_803 WHERE "country" IN ('israel', 'united kingdom') ORDER BY "place" LIMIT 1
[ 4758, 10307, 2440, 287, 1295, 837, 318, 2510, 393, 262, 16503, 13239, 5633, 46506, 366, 19315, 1, 16034, 3084, 62, 22416, 62, 43564, 33411, 366, 19315, 1, 3268, 19203, 271, 2510, 3256, 705, 41187, 13239, 11537, 38678, 11050, 366, 5372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 10307, 2440, 287, 1295, 837, 318, 2510, 393, 262, 16503, 13239, 5633, 46506, 366, 19315, 1, 16034, 3084, 62, 22416, 62, 43564, 33411, 366, 19315, 1, 3268, 19203, 271, 2510, 3256, 705, 41187, 13239, 11537, 38678, 11050, 366, 5372, ...
For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by time, display Y in desc order.
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(EMPLOYEE_ID) DESC
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 6538, 62, 312, 9874, 11078, 62, 4475, 416, 640, 11, 3359, 575, 287, 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...
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 3197, 257, 2318, 8262, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 6538, 62, 312, 9874, 11078, 62, 4475, 416, 640, 11, 3359, 575, 287, 17...
Hot Meta Post vs Comment Count.
SELECT TIME_TO_STR(CreationDate, '%W') AS "week", COUNT(*) AS "comment_count", CASE WHEN TIME_TO_STR(CreationDate, '%W') > 30 THEN 0 ELSE 1000 END AS "hot_meta_posts_enabled" FROM Comments WHERE CreationDate > '2019-04-01' GROUP BY TIME_TO_STR(CreationDate, '%W') ORDER BY TIME_TO_STR(CreationDate, '%W')
[ 21352, 30277, 2947, 3691, 18957, 2764, 13, 46506, 20460, 62, 10468, 62, 18601, 7, 12443, 341, 10430, 11, 705, 4, 54, 11537, 7054, 366, 10464, 1600, 327, 28270, 7, 28104, 7054, 366, 23893, 62, 9127, 1600, 42001, 42099, 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...
[ 21352, 30277, 2947, 3691, 18957, 2764, 13, 46506, 20460, 62, 10468, 62, 18601, 7, 12443, 341, 10430, 11, 705, 4, 54, 11537, 7054, 366, 10464, 1600, 327, 28270, 7, 28104, 7054, 366, 23893, 62, 9127, 1600, 42001, 42099, 20460, 62, 10468, ...
What are the locations with a panthers mascot?
SELECT location FROM table_13456202_1 WHERE mascot = "Panthers"
[ 2061, 389, 262, 7064, 351, 257, 15857, 7084, 37358, 30, 46506, 4067, 16034, 3084, 62, 1485, 29228, 19004, 62, 16, 33411, 37358, 796, 366, 47, 415, 7084, 1 ]
[ 1, 1, 1, 1, 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, 7064, 351, 257, 15857, 7084, 37358, 30, 46506, 4067, 16034, 3084, 62, 1485, 29228, 19004, 62, 16, 33411, 37358, 796, 366, 47, 415, 7084, 1 ]
What ORALSURG class is an easy option ?
SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department LIKE '%ORALSURG%' AND program_course.course_id = course.course_id AND program_course.workload < 3
[ 2061, 6375, 23333, 4261, 38, 1398, 318, 281, 2562, 3038, 5633, 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, 341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 6375, 23333, 4261, 38, 1398, 318, 281, 2562, 3038, 5633, 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, 341...
Draw a bar chart for what is the average rating star for each reviewer?, and I want to order from low to high by the X.
SELECT name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name ORDER BY name
[ 25302, 257, 2318, 8262, 329, 644, 318, 262, 2811, 7955, 3491, 329, 1123, 37823, 21747, 290, 314, 765, 284, 1502, 422, 1877, 284, 1029, 416, 262, 1395, 13, 46506, 1438, 11, 35224, 7, 51, 16, 13, 30783, 8, 16034, 12028, 7054, 309, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 25302, 257, 2318, 8262, 329, 644, 318, 262, 2811, 7955, 3491, 329, 1123, 37823, 21747, 290, 314, 765, 284, 1502, 422, 1877, 284, 1029, 416, 262, 1395, 13, 46506, 1438, 11, 35224, 7, 51, 16, 13, 30783, 8, 16034, 12028, 7054, 309, 16,...
has patient 027-68991 visited an emergency room until 2104?
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '027-68991' AND patient.hospitaladmitsource = 'emergency department' AND STRFTIME('%y', patient.unitadmittime) <= '2104'
[ 10134, 5827, 657, 1983, 12, 3104, 2079, 16, 8672, 281, 6334, 2119, 1566, 362, 13464, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 44698, 12, 3104, 2079, 16, 6, 5357, 5827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10134, 5827, 657, 1983, 12, 3104, 2079, 16, 8672, 281, 6334, 2119, 1566, 362, 13464, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 44698, 12, 3104, 2079, 16, 6, 5357, 5827, ...
What is the number of actors in the movie ' Grumpier Old Men ' ?
SELECT COUNT(DISTINCT (actor.name)) FROM actor, cast, movie WHERE cast.aid = actor.aid AND movie.mid = cast.msid AND movie.title = 'Grumpier Old Men'
[ 2061, 318, 262, 1271, 286, 10544, 287, 262, 3807, 705, 1902, 931, 959, 5706, 6065, 705, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 357, 11218, 13, 3672, 4008, 16034, 8674, 11, 3350, 11, 3807, 33411, 3350, 13, 1698, 796, 8674, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 10544, 287, 262, 3807, 705, 1902, 931, 959, 5706, 6065, 705, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 357, 11218, 13, 3672, 4008, 16034, 8674, 11, 3350, 11, 3807, 33411, 3350, 13, 1698, 796, 8674, ...
What was the score on 10 November 2006?
SELECT "Score" FROM table_66442 WHERE "Date" = '10 november 2006'
[ 2061, 373, 262, 4776, 319, 838, 3389, 4793, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 21, 2414, 3682, 33411, 366, 10430, 1, 796, 705, 940, 645, 303, 1916, 4793, 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, 4776, 319, 838, 3389, 4793, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 21, 2414, 3682, 33411, 366, 10430, 1, 796, 705, 940, 645, 303, 1916, 4793, 6 ]
What are the start date and end date of the booking that has booked the product named 'Book collection A'?
SELECT T3.booking_start_date, T3.booking_end_date FROM products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id = T2.product_id JOIN bookings AS T3 ON T2.booking_id = T3.booking_id WHERE T1.product_name = 'Book collection A'
[ 2061, 389, 262, 923, 3128, 290, 886, 3128, 286, 262, 25452, 326, 468, 21765, 262, 1720, 3706, 705, 10482, 4947, 317, 30960, 46506, 309, 18, 13, 2070, 278, 62, 9688, 62, 4475, 11, 309, 18, 13, 2070, 278, 62, 437, 62, 4475, 16034, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 923, 3128, 290, 886, 3128, 286, 262, 25452, 326, 468, 21765, 262, 1720, 3706, 705, 10482, 4947, 317, 30960, 46506, 309, 18, 13, 2070, 278, 62, 9688, 62, 4475, 11, 309, 18, 13, 2070, 278, 62, 437, 62, 4475, 16034, 3...
Whats the title of the episode with production code 109
SELECT "Title" FROM table_1377 WHERE "Production code" = '109'
[ 1199, 1381, 262, 3670, 286, 262, 4471, 351, 3227, 2438, 16003, 46506, 366, 19160, 1, 16034, 3084, 62, 1485, 3324, 33411, 366, 35027, 2438, 1, 796, 705, 14454, 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 ]
[ 1199, 1381, 262, 3670, 286, 262, 4471, 351, 3227, 2438, 16003, 46506, 366, 19160, 1, 16034, 3084, 62, 1485, 3324, 33411, 366, 35027, 2438, 1, 796, 705, 14454, 6 ]
What is the flight number and its distance for the one with the maximum price?
SELECT flno, distance FROM flight ORDER BY price DESC LIMIT 1
[ 2061, 318, 262, 5474, 1271, 290, 663, 5253, 329, 262, 530, 351, 262, 5415, 2756, 30, 46506, 781, 3919, 11, 5253, 16034, 5474, 38678, 11050, 2756, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 5474, 1271, 290, 663, 5253, 329, 262, 530, 351, 262, 5415, 2756, 30, 46506, 781, 3919, 11, 5253, 16034, 5474, 38678, 11050, 2756, 22196, 34, 27564, 2043, 352 ]
what is the maximum 1st prize( $ ) where score is 193 (-17)
SELECT MAX(1 AS st_prize__) AS $__ FROM table_11622255_1 WHERE score = "193 (-17)"
[ 10919, 318, 262, 5415, 352, 301, 11596, 7, 720, 1267, 810, 4776, 318, 29691, 13841, 1558, 8, 46506, 25882, 7, 16, 7054, 336, 62, 3448, 2736, 834, 8, 7054, 720, 834, 16034, 3084, 62, 18298, 1828, 13381, 62, 16, 33411, 4776, 796, 366,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 5415, 352, 301, 11596, 7, 720, 1267, 810, 4776, 318, 29691, 13841, 1558, 8, 46506, 25882, 7, 16, 7054, 336, 62, 3448, 2736, 834, 8, 7054, 720, 834, 16034, 3084, 62, 18298, 1828, 13381, 62, 16, 33411, 4776, 796, 366,...
How many numbers were recorded on the fields goals of the Left End player?
SELECT COUNT(field_goals) FROM table_25711913_2 WHERE position = "Left end"
[ 2437, 867, 3146, 547, 6264, 319, 262, 7032, 4661, 286, 262, 9578, 5268, 2137, 30, 46506, 327, 28270, 7, 3245, 62, 2188, 874, 8, 16034, 3084, 62, 1495, 4869, 1129, 1485, 62, 17, 33411, 2292, 796, 366, 18819, 886, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3146, 547, 6264, 319, 262, 7032, 4661, 286, 262, 9578, 5268, 2137, 30, 46506, 327, 28270, 7, 3245, 62, 2188, 874, 8, 16034, 3084, 62, 1495, 4869, 1129, 1485, 62, 17, 33411, 2292, 796, 366, 18819, 886, 1 ]
What are the total number of points with more than 225 goals and a Goals against of 190?
SELECT SUM("Points") FROM table_15632 WHERE "Goals for" > '225' AND "Goals against" = '190'
[ 2061, 389, 262, 2472, 1271, 286, 2173, 351, 517, 621, 18500, 4661, 290, 257, 28510, 1028, 286, 19884, 30, 46506, 35683, 7203, 40710, 4943, 16034, 3084, 62, 21599, 2624, 33411, 366, 5247, 874, 329, 1, 1875, 705, 18182, 6, 5357, 366, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 1271, 286, 2173, 351, 517, 621, 18500, 4661, 290, 257, 28510, 1028, 286, 19884, 30, 46506, 35683, 7203, 40710, 4943, 16034, 3084, 62, 21599, 2624, 33411, 366, 5247, 874, 329, 1, 1875, 705, 18182, 6, 5357, 366, 52...
what is the maximum sao2 of patient 025-35599?
SELECT MAX(vitalperiodic.sao2) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-35599')) AND NOT vitalperiodic.sao2 IS NULL
[ 10919, 318, 262, 5415, 473, 78, 17, 286, 5827, 657, 1495, 12, 28567, 2079, 30, 46506, 25882, 7, 85, 1287, 41007, 291, 13, 82, 5488, 17, 8, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, 20850, 31712, 312, 3268, 357, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 5415, 473, 78, 17, 286, 5827, 657, 1495, 12, 28567, 2079, 30, 46506, 25882, 7, 85, 1287, 41007, 291, 13, 82, 5488, 17, 8, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, 20850, 31712, 312, 3268, 357, 46...
Who was the commentator when the spokesperson was michael aspel?
SELECT "Commentator" FROM table_65774 WHERE "Spokespersons" = 'michael aspel'
[ 8241, 373, 262, 28823, 618, 262, 11821, 373, 285, 40302, 355, 30242, 30, 46506, 366, 21357, 1352, 1, 16034, 3084, 62, 2996, 47582, 33411, 366, 4561, 3369, 19276, 684, 1, 796, 705, 76, 40302, 355, 30242, 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 ]
[ 8241, 373, 262, 28823, 618, 262, 11821, 373, 285, 40302, 355, 30242, 30, 46506, 366, 21357, 1352, 1, 16034, 3084, 62, 2996, 47582, 33411, 366, 4561, 3369, 19276, 684, 1, 796, 705, 76, 40302, 355, 30242, 6 ]
i would like the 1 flight from DALLAS into HOUSTON on 3 1 and the last flight from HOUSTON back to DALLAS on 3 1
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((date_day.day_number = 1 AND date_day.month_number = 3 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time...
[ 72, 561, 588, 262, 352, 5474, 422, 360, 7036, 1921, 656, 29068, 41924, 319, 513, 352, 290, 262, 938, 5474, 422, 29068, 41924, 736, 284, 360, 7036, 1921, 319, 513, 352, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 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, 561, 588, 262, 352, 5474, 422, 360, 7036, 1921, 656, 29068, 41924, 319, 513, 352, 290, 262, 938, 5474, 422, 29068, 41924, 736, 284, 360, 7036, 1921, 319, 513, 352, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9...
How large was the crowd at Glenferrie Oval?
SELECT SUM("Crowd") FROM table_55531 WHERE "Venue" = 'glenferrie oval'
[ 2437, 1588, 373, 262, 4315, 379, 20716, 2232, 5034, 25165, 30, 46506, 35683, 7203, 34, 3986, 4943, 16034, 3084, 62, 31046, 3132, 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, 1 ]
[ 2437, 1588, 373, 262, 4315, 379, 20716, 2232, 5034, 25165, 30, 46506, 35683, 7203, 34, 3986, 4943, 16034, 3084, 62, 31046, 3132, 33411, 366, 37522, 518, 1, 796, 705, 4743, 268, 2232, 5034, 41186, 6 ]
Are there any Advanced Spoken Korean courses without prerequisites ?
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id WHERE (area.area LIKE '%Advanced Spoken Korean%' OR course.description LIKE '%Advanced Spoken Korean%' OR course.name LIKE '%Advanced Spoken Korean%') AND course.enforced_requirement = 'N / A'
[ 8491, 612, 597, 13435, 1338, 4233, 6983, 10902, 1231, 662, 34075, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 3268, 21479, 32357, 1268, 1989, 6177, 1781, 13, 17319, 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...
[ 8491, 612, 597, 13435, 1338, 4233, 6983, 10902, 1231, 662, 34075, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 3268, 21479, 32357, 1268, 1989, 6177, 1781, 13, 17319, 62...
Which qual also has a finish total of 9?
SELECT "Qual" FROM table_80010 WHERE "Finish" = '9'
[ 13828, 4140, 635, 468, 257, 5461, 2472, 286, 860, 30, 46506, 366, 46181, 1, 16034, 3084, 62, 7410, 940, 33411, 366, 48658, 1, 796, 705, 24, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 4140, 635, 468, 257, 5461, 2472, 286, 860, 30, 46506, 366, 46181, 1, 16034, 3084, 62, 7410, 940, 33411, 366, 48658, 1, 796, 705, 24, 6 ]
what were the number of games scheduled in november ?
SELECT COUNT(*) FROM table_203_691 WHERE "date" = 11
[ 10919, 547, 262, 1271, 286, 1830, 7530, 287, 645, 303, 1916, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 22416, 62, 49541, 33411, 366, 4475, 1, 796, 1367 ]
[ 1, 1, 1, 1, 1, 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, 1271, 286, 1830, 7530, 287, 645, 303, 1916, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 22416, 62, 49541, 33411, 366, 4475, 1, 796, 1367 ]
Return a bar chart about the distribution of Sex and the average of Height , and group by attribute Sex, and rank by the Y in ascending please.
SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY AVG(Height)
[ 13615, 257, 2318, 8262, 546, 262, 6082, 286, 14419, 290, 262, 2811, 286, 27280, 837, 290, 1448, 416, 11688, 14419, 11, 290, 4279, 416, 262, 575, 287, 41988, 3387, 13, 46506, 14419, 11, 35224, 7, 23106, 8, 16034, 661, 44441, 11050, 144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 546, 262, 6082, 286, 14419, 290, 262, 2811, 286, 27280, 837, 290, 1448, 416, 11688, 14419, 11, 290, 4279, 416, 262, 575, 287, 41988, 3387, 13, 46506, 14419, 11, 35224, 7, 23106, 8, 16034, 661, 44441, 11050, 144...
Name the Spike which has a Name of senna u i -jogunica category:articles with hcards?
SELECT spike FROM table_name_84 WHERE name = "senna ušić-jogunica category:articles with hcards"
[ 5376, 262, 26309, 543, 468, 257, 6530, 286, 264, 13713, 334, 1312, 532, 73, 39918, 3970, 6536, 25, 26845, 351, 289, 27761, 30, 46506, 20240, 16034, 3084, 62, 3672, 62, 5705, 33411, 1438, 796, 366, 82, 13713, 334, 32790, 72, 38325, 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 ]
[ 5376, 262, 26309, 543, 468, 257, 6530, 286, 264, 13713, 334, 1312, 532, 73, 39918, 3970, 6536, 25, 26845, 351, 289, 27761, 30, 46506, 20240, 16034, 3084, 62, 3672, 62, 5705, 33411, 1438, 796, 366, 82, 13713, 334, 32790, 72, 38325, 12,...
provide the number of patients whose age is less than 74 and drug name is voriconazole?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "74" AND prescriptions.drug = "Voriconazole"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 8915, 290, 2563, 1438, 318, 410, 273, 4749, 1031, 2305, 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...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 2479, 318, 1342, 621, 8915, 290, 2563, 1438, 318, 410, 273, 4749, 1031, 2305, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268...
What site has november 30, 2006 as the date?
SELECT "Site" FROM table_36273 WHERE "Date" = 'november 30, 2006'
[ 2061, 2524, 468, 645, 303, 1916, 1542, 11, 4793, 355, 262, 3128, 30, 46506, 366, 29123, 1, 16034, 3084, 62, 2623, 27367, 33411, 366, 10430, 1, 796, 705, 77, 3239, 1542, 11, 4793, 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 ]
[ 2061, 2524, 468, 645, 303, 1916, 1542, 11, 4793, 355, 262, 3128, 30, 46506, 366, 29123, 1, 16034, 3084, 62, 2623, 27367, 33411, 366, 10430, 1, 796, 705, 77, 3239, 1542, 11, 4793, 6 ]
What is the total number of Silver medals for the Nation with less than 1 Bronze?
SELECT COUNT("Silver") FROM table_43384 WHERE "Bronze" < '1'
[ 2061, 318, 262, 2472, 1271, 286, 7698, 28057, 329, 262, 8741, 351, 1342, 621, 352, 19461, 30, 46506, 327, 28270, 7203, 26766, 4943, 16034, 3084, 62, 42117, 5705, 33411, 366, 18760, 2736, 1, 1279, 705, 16, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2472, 1271, 286, 7698, 28057, 329, 262, 8741, 351, 1342, 621, 352, 19461, 30, 46506, 327, 28270, 7203, 26766, 4943, 16034, 3084, 62, 42117, 5705, 33411, 366, 18760, 2736, 1, 1279, 705, 16, 6 ]
Name the district for william j. driver
SELECT "District" FROM table_18722 WHERE "Incumbent" = 'William J. Driver'
[ 5376, 262, 4783, 329, 481, 1789, 474, 13, 4639, 46506, 366, 44857, 1, 16034, 3084, 62, 23451, 1828, 33411, 366, 25517, 2178, 298, 1, 796, 705, 17121, 449, 13, 12434, 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 ]
[ 5376, 262, 4783, 329, 481, 1789, 474, 13, 4639, 46506, 366, 44857, 1, 16034, 3084, 62, 23451, 1828, 33411, 366, 25517, 2178, 298, 1, 796, 705, 17121, 449, 13, 12434, 6 ]
For the ship that was a brig and located in the English Channel, what was the disposition of ship?
SELECT "Disposition of Ship" FROM table_78964 WHERE "Ship Type" = 'brig' AND "Location" = 'english channel'
[ 1890, 262, 4074, 326, 373, 257, 24393, 290, 5140, 287, 262, 3594, 11102, 11, 644, 373, 262, 24665, 286, 4074, 30, 46506, 366, 7279, 9150, 286, 16656, 1, 16034, 3084, 62, 40401, 2414, 33411, 366, 25586, 5994, 1, 796, 705, 1671, 328, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 4074, 326, 373, 257, 24393, 290, 5140, 287, 262, 3594, 11102, 11, 644, 373, 262, 24665, 286, 4074, 30, 46506, 366, 7279, 9150, 286, 16656, 1, 16034, 3084, 62, 40401, 2414, 33411, 366, 25586, 5994, 1, 796, 705, 1671, 328, ...
Name the song for safe result #8.
SELECT song_choice FROM table_23871828_1 WHERE result = "Safe" AND order__number = 8
[ 5376, 262, 3496, 329, 3338, 1255, 1303, 23, 13, 46506, 3496, 62, 25541, 16034, 3084, 62, 1954, 5774, 1507, 2078, 62, 16, 33411, 1255, 796, 366, 31511, 1, 5357, 1502, 834, 17618, 796, 807 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3496, 329, 3338, 1255, 1303, 23, 13, 46506, 3496, 62, 25541, 16034, 3084, 62, 1954, 5774, 1507, 2078, 62, 16, 33411, 1255, 796, 366, 31511, 1, 5357, 1502, 834, 17618, 796, 807 ]
I want to see trend of the number of date of notes by date of notes, and show x-axis from low to high order.
SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes
[ 40, 765, 284, 766, 5182, 286, 262, 1271, 286, 3128, 286, 4710, 416, 3128, 286, 4710, 11, 290, 905, 2124, 12, 22704, 422, 1877, 284, 1029, 1502, 13, 46506, 3128, 62, 1659, 62, 17815, 11, 327, 28270, 7, 4475, 62, 1659, 62, 17815, 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 ]
[ 40, 765, 284, 766, 5182, 286, 262, 1271, 286, 3128, 286, 4710, 416, 3128, 286, 4710, 11, 290, 905, 2124, 12, 22704, 422, 1877, 284, 1029, 1502, 13, 46506, 3128, 62, 1659, 62, 17815, 11, 327, 28270, 7, 4475, 62, 1659, 62, 17815, 8,...
Show the station name and number of trains in each station.
SELECT T2.name, COUNT(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id
[ 15307, 262, 4429, 1438, 290, 1271, 286, 13404, 287, 1123, 4429, 13, 46506, 309, 17, 13, 3672, 11, 327, 28270, 7, 28104, 16034, 4512, 62, 17529, 7054, 309, 16, 32357, 1268, 4429, 7054, 309, 17, 6177, 309, 16, 13, 17529, 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 ]
[ 15307, 262, 4429, 1438, 290, 1271, 286, 13404, 287, 1123, 4429, 13, 46506, 309, 17, 13, 3672, 11, 327, 28270, 7, 28104, 16034, 4512, 62, 17529, 7054, 309, 16, 32357, 1268, 4429, 7054, 309, 17, 6177, 309, 16, 13, 17529, 62, 312, 796,...
What percent of the parliamentary election did the pensioners party receive
SELECT "2013 Parliamentary election" FROM table_23686 WHERE "English party name" = 'Pensioners Party'
[ 2061, 1411, 286, 262, 17521, 3071, 750, 262, 13553, 364, 2151, 3328, 46506, 366, 6390, 38511, 3071, 1, 16034, 3084, 62, 1954, 33808, 33411, 366, 15823, 2151, 1438, 1, 796, 705, 47, 3004, 364, 3615, 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, 1411, 286, 262, 17521, 3071, 750, 262, 13553, 364, 2151, 3328, 46506, 366, 6390, 38511, 3071, 1, 16034, 3084, 62, 1954, 33808, 33411, 366, 15823, 2151, 1438, 1, 796, 705, 47, 3004, 364, 3615, 6 ]
when is the hire date for those employees whose first name does not containing the letter M?
SELECT hire_date FROM employees WHERE NOT first_name LIKE '%M%'
[ 12518, 318, 262, 11078, 3128, 329, 883, 4409, 3025, 717, 1438, 857, 407, 7268, 262, 3850, 337, 30, 46506, 11078, 62, 4475, 16034, 4409, 33411, 5626, 717, 62, 3672, 34178, 705, 4, 44, 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, 1, 1, 1 ]
[ 12518, 318, 262, 11078, 3128, 329, 883, 4409, 3025, 717, 1438, 857, 407, 7268, 262, 3850, 337, 30, 46506, 11078, 62, 4475, 16034, 4409, 33411, 5626, 717, 62, 3672, 34178, 705, 4, 44, 4, 6 ]
What was the percentage of Slovenes in 1951 in the village that had 10.1% in 1991?
SELECT "Percent of Slovenes 1951" FROM table_53321 WHERE "Percent of Slovenes 1991" = '10.1%'
[ 2061, 373, 262, 5873, 286, 30694, 274, 287, 27937, 287, 262, 7404, 326, 550, 838, 13, 16, 4, 287, 10249, 30, 46506, 366, 31905, 286, 30694, 274, 27937, 1, 16034, 3084, 62, 44994, 2481, 33411, 366, 31905, 286, 30694, 274, 10249, 1, 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 ]
[ 2061, 373, 262, 5873, 286, 30694, 274, 287, 27937, 287, 262, 7404, 326, 550, 838, 13, 16, 4, 287, 10249, 30, 46506, 366, 31905, 286, 30694, 274, 27937, 1, 16034, 3084, 62, 44994, 2481, 33411, 366, 31905, 286, 30694, 274, 10249, 1, 7...
What is the highest attendance for the game before week 13 on December 9, 1973?
SELECT MAX(attendance) FROM table_name_45 WHERE date = "december 9, 1973" AND week < 13
[ 2061, 318, 262, 4511, 14858, 329, 262, 983, 878, 1285, 1511, 319, 3426, 860, 11, 15674, 30, 46506, 25882, 7, 1078, 437, 590, 8, 16034, 3084, 62, 3672, 62, 2231, 33411, 3128, 796, 366, 2934, 3273, 860, 11, 15674, 1, 5357, 1285, 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, 4511, 14858, 329, 262, 983, 878, 1285, 1511, 319, 3426, 860, 11, 15674, 30, 46506, 25882, 7, 1078, 437, 590, 8, 16034, 3084, 62, 3672, 62, 2231, 33411, 3128, 796, 366, 2934, 3273, 860, 11, 15674, 1, 5357, 1285, 1279,...
what flights go from DENVER 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA...
[ 10919, 13956, 467, 422, 37692, 5959, 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, 15490, 62, 350...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 37692, 5959, 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, 15490, 62, 350...
count the number of patients whose primary disease is brain mass;intracranial hemorrhage?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE"
[ 9127, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 3632, 2347, 26, 600, 11510, 2596, 498, 42203, 496, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9127, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 3632, 2347, 26, 600, 11510, 2596, 498, 42203, 496, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366,...
How many people enrolled a the school with an IHSAA Class of a, and the trojans as their mascot?
SELECT MIN("Enrollment") FROM table_5568 WHERE "IHSAA Class" = 'a' AND "Mascot" = 'trojans'
[ 2437, 867, 661, 18724, 257, 262, 1524, 351, 281, 314, 7998, 3838, 5016, 286, 257, 11, 290, 262, 4161, 73, 504, 355, 511, 37358, 30, 46506, 20625, 7203, 4834, 48108, 4943, 16034, 3084, 62, 2816, 3104, 33411, 366, 40, 7998, 3838, 5016, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 661, 18724, 257, 262, 1524, 351, 281, 314, 7998, 3838, 5016, 286, 257, 11, 290, 262, 4161, 73, 504, 355, 511, 37358, 30, 46506, 20625, 7203, 4834, 48108, 4943, 16034, 3084, 62, 2816, 3104, 33411, 366, 40, 7998, 3838, 5016, ...
On what surface did Poland play as the against team?
SELECT "Surface" FROM table_69222 WHERE "Against" = 'poland'
[ 2202, 644, 4417, 750, 12873, 711, 355, 262, 1028, 1074, 30, 46506, 366, 14214, 2550, 1, 16034, 3084, 62, 3388, 23148, 33411, 366, 39276, 1, 796, 705, 16104, 392, 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, 4417, 750, 12873, 711, 355, 262, 1028, 1074, 30, 46506, 366, 14214, 2550, 1, 16034, 3084, 62, 3388, 23148, 33411, 366, 39276, 1, 796, 705, 16104, 392, 6 ]
what is the number of patients whose discharge location is dead/expired and admission year is less than 2144?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DEAD/EXPIRED" AND demographic.admityear < "2144"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 2636, 14, 1069, 6474, 290, 13938, 614, 318, 1342, 621, 362, 18444, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 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...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 2636, 14, 1069, 6474, 290, 13938, 614, 318, 1342, 621, 362, 18444, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13,...
On what date was the score for set 3 22 25?
SELECT "Date" FROM table_9148 WHERE "Set 3" = '22–25'
[ 2202, 644, 3128, 373, 262, 4776, 329, 900, 513, 2534, 1679, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 24, 18294, 33411, 366, 7248, 513, 1, 796, 705, 1828, 1906, 1495, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2202, 644, 3128, 373, 262, 4776, 329, 900, 513, 2534, 1679, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 24, 18294, 33411, 366, 7248, 513, 1, 796, 705, 1828, 1906, 1495, 6 ]
How often are there ads during American Top 40?
SELECT ad_freq FROM table_name_84 WHERE show_name = "american top 40"
[ 2437, 1690, 389, 612, 9011, 1141, 1605, 5849, 2319, 30, 46506, 512, 62, 19503, 80, 16034, 3084, 62, 3672, 62, 5705, 33411, 905, 62, 3672, 796, 366, 2382, 7490, 1353, 2319, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 1690, 389, 612, 9011, 1141, 1605, 5849, 2319, 30, 46506, 512, 62, 19503, 80, 16034, 3084, 62, 3672, 62, 5705, 33411, 905, 62, 3672, 796, 366, 2382, 7490, 1353, 2319, 1 ]
Visualize a bar chart about the distribution of ACC_Road and the sum of Team_ID , and group by attribute ACC_Road, and rank total number in ascending order.
SELECT ACC_Road, SUM(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY SUM(Team_ID)
[ 36259, 1096, 257, 2318, 8262, 546, 262, 6082, 286, 15859, 62, 29197, 290, 262, 2160, 286, 4816, 62, 2389, 837, 290, 1448, 416, 11688, 15859, 62, 29197, 11, 290, 4279, 2472, 1271, 287, 41988, 1502, 13, 46506, 15859, 62, 29197, 11, 3568...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 36259, 1096, 257, 2318, 8262, 546, 262, 6082, 286, 15859, 62, 29197, 290, 262, 2160, 286, 4816, 62, 2389, 837, 290, 1448, 416, 11688, 15859, 62, 29197, 11, 290, 4279, 2472, 1271, 287, 41988, 1502, 13, 46506, 15859, 62, 29197, 11, 3568...
How many patients had an ascitic fluid lab test and had an endoscopic sphincterotomy and papillotomy procedure done?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Endoscopic sphincterotomy and papillotomy" AND lab.fluid = "Ascites"
[ 2437, 867, 3871, 550, 281, 10570, 16233, 11711, 2248, 1332, 290, 550, 281, 886, 48228, 599, 71, 4612, 263, 38385, 290, 20461, 359, 38385, 8771, 1760, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 3871, 550, 281, 10570, 16233, 11711, 2248, 1332, 290, 550, 281, 886, 48228, 599, 71, 4612, 263, 38385, 290, 20461, 359, 38385, 8771, 1760, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034,...
What is the lowest value of a team with revenue less than 374 and a debt of 84%?
SELECT MIN("Value ($M)") FROM table_70506 WHERE "Revenue ($M)" < '374' AND "Debt as %of value" = '84'
[ 2061, 318, 262, 9016, 1988, 286, 257, 1074, 351, 6426, 1342, 621, 49020, 290, 257, 5057, 286, 9508, 4, 30, 46506, 20625, 7203, 11395, 7198, 44, 8, 4943, 16034, 3084, 62, 2154, 35638, 33411, 366, 3041, 4080, 7198, 44, 16725, 1279, 705,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 1988, 286, 257, 1074, 351, 6426, 1342, 621, 49020, 290, 257, 5057, 286, 9508, 4, 30, 46506, 20625, 7203, 11395, 7198, 44, 8, 4943, 16034, 3084, 62, 2154, 35638, 33411, 366, 3041, 4080, 7198, 44, 16725, 1279, 705,...
Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0?
SELECT institution FROM table_name_99 WHERE total < 13 AND government = 1 AND aided = 0
[ 13828, 29426, 468, 257, 7472, 4833, 621, 1511, 11, 257, 5070, 2033, 286, 352, 11, 290, 281, 317, 1384, 2033, 286, 657, 30, 46506, 9901, 16034, 3084, 62, 3672, 62, 2079, 33411, 2472, 1279, 1511, 5357, 1230, 796, 352, 5357, 28310, 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 ]
[ 13828, 29426, 468, 257, 7472, 4833, 621, 1511, 11, 257, 5070, 2033, 286, 352, 11, 290, 281, 317, 1384, 2033, 286, 657, 30, 46506, 9901, 16034, 3084, 62, 3672, 62, 2079, 33411, 2472, 1279, 1511, 5357, 1230, 796, 352, 5357, 28310, 796, ...
How many questions exist for a tag?.
SELECT COUNT(p.Id) FROM Posts AS p INNER JOIN PostTags AS pt ON pt.TagId = @TagId WHERE pt.PostId = p.Id AND p.PostTypeId = 1
[ 2437, 867, 2683, 2152, 329, 257, 7621, 30, 13, 46506, 327, 28270, 7, 79, 13, 7390, 8, 16034, 12043, 7054, 279, 3268, 21479, 32357, 1268, 2947, 36142, 7054, 42975, 6177, 42975, 13, 24835, 7390, 796, 2488, 24835, 7390, 33411, 42975, 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 ]
[ 2437, 867, 2683, 2152, 329, 257, 7621, 30, 13, 46506, 327, 28270, 7, 79, 13, 7390, 8, 16034, 12043, 7054, 279, 3268, 21479, 32357, 1268, 2947, 36142, 7054, 42975, 6177, 42975, 13, 24835, 7390, 796, 2488, 24835, 7390, 33411, 42975, 13, ...
What is the number of points of palam s cf, which has less than 21 wins and less than 40 goals?
SELECT COUNT(points) FROM table_name_60 WHERE wins < 21 AND club = "palamós cf" AND goals_for < 40
[ 2061, 318, 262, 1271, 286, 2173, 286, 6340, 321, 264, 30218, 11, 543, 468, 1342, 621, 2310, 7864, 290, 1342, 621, 2319, 4661, 30, 46506, 327, 28270, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 1899, 33411, 7864, 1279, 2310, 5357, 3430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 2173, 286, 6340, 321, 264, 30218, 11, 543, 468, 1342, 621, 2310, 7864, 290, 1342, 621, 2319, 4661, 30, 46506, 327, 28270, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 1899, 33411, 7864, 1279, 2310, 5357, 3430, ...
on the last icu visit, list the daily maximum heartrate of patient 002-11679.
SELECT MAX(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-11679') AND NOT patient.unitdischargetime IS NUL...
[ 261, 262, 938, 14158, 84, 3187, 11, 1351, 262, 4445, 5415, 2612, 4873, 286, 5827, 3571, 17, 12, 1157, 37601, 13, 46506, 25882, 7, 85, 1287, 41007, 291, 13, 11499, 4873, 8, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 261, 262, 938, 14158, 84, 3187, 11, 1351, 262, 4445, 5415, 2612, 4873, 286, 5827, 3571, 17, 12, 1157, 37601, 13, 46506, 25882, 7, 85, 1287, 41007, 291, 13, 11499, 4873, 8, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029, ...
Which High rebounds has a Game of 76?
SELECT high_rebounds FROM table_name_97 WHERE game = 76
[ 13828, 3334, 18841, 468, 257, 3776, 286, 8684, 30, 46506, 1029, 62, 34806, 3733, 16034, 3084, 62, 3672, 62, 5607, 33411, 983, 796, 8684 ]
[ 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, 3334, 18841, 468, 257, 3776, 286, 8684, 30, 46506, 1029, 62, 34806, 3733, 16034, 3084, 62, 3672, 62, 5607, 33411, 983, 796, 8684 ]
Which Nationality has a Position of left wing?
SELECT nationality FROM table_name_99 WHERE position = "left wing"
[ 13828, 2351, 414, 468, 257, 23158, 286, 1364, 8539, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 2079, 33411, 2292, 796, 366, 9464, 8539, 1 ]
[ 1, 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, 2351, 414, 468, 257, 23158, 286, 1364, 8539, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 2079, 33411, 2292, 796, 366, 9464, 8539, 1 ]
What's the rounds for jenson button with a bmw e41 engine?
SELECT rounds FROM table_name_2 WHERE engine_† = "bmw e41" AND driver = "jenson button"
[ 2061, 338, 262, 9196, 329, 474, 19069, 4936, 351, 257, 275, 76, 86, 304, 3901, 3113, 30, 46506, 9196, 16034, 3084, 62, 3672, 62, 17, 33411, 3113, 62, 33912, 796, 366, 20475, 86, 304, 3901, 1, 5357, 4639, 796, 366, 73, 19069, 4936, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9196, 329, 474, 19069, 4936, 351, 257, 275, 76, 86, 304, 3901, 3113, 30, 46506, 9196, 16034, 3084, 62, 3672, 62, 17, 33411, 3113, 62, 33912, 796, 366, 20475, 86, 304, 3901, 1, 5357, 4639, 796, 366, 73, 19069, 4936, ...
Which player has a Position of infielder, and a Hometown of atlanta, ga?
SELECT player FROM table_name_48 WHERE position = "infielder" AND hometown = "atlanta, ga"
[ 13828, 2137, 468, 257, 23158, 286, 43262, 263, 11, 290, 257, 367, 19191, 286, 379, 75, 4910, 11, 31986, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 2780, 33411, 2292, 796, 366, 259, 3245, 263, 1, 5357, 20994, 796, 366, 25864, 4910, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2137, 468, 257, 23158, 286, 43262, 263, 11, 290, 257, 367, 19191, 286, 379, 75, 4910, 11, 31986, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 2780, 33411, 2292, 796, 366, 259, 3245, 263, 1, 5357, 20994, 796, 366, 25864, 4910, ...
Find the number of rooms located on each block floor.
SELECT COUNT(*), T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor
[ 16742, 262, 1271, 286, 9519, 5140, 319, 1123, 2512, 4314, 13, 46506, 327, 28270, 46491, 828, 309, 16, 13, 9967, 28300, 16034, 9878, 11290, 7054, 309, 16, 32357, 1268, 2119, 7054, 309, 17, 6177, 309, 16, 13, 9967, 28300, 796, 309, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 1271, 286, 9519, 5140, 319, 1123, 2512, 4314, 13, 46506, 327, 28270, 46491, 828, 309, 16, 13, 9967, 28300, 16034, 9878, 11290, 7054, 309, 16, 32357, 1268, 2119, 7054, 309, 17, 6177, 309, 16, 13, 9967, 28300, 796, 309, 17, ...
What's the total of rank 8 when Silver medals are 0 and gold is more than 1?
SELECT COUNT(total) FROM table_name_2 WHERE silver = 0 AND rank = 8 AND gold > 1
[ 2061, 338, 262, 2472, 286, 4279, 807, 618, 7698, 28057, 389, 657, 290, 3869, 318, 517, 621, 352, 30, 46506, 327, 28270, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 17, 33411, 8465, 796, 657, 5357, 4279, 796, 807, 5357, 3869, 1875, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 338, 262, 2472, 286, 4279, 807, 618, 7698, 28057, 389, 657, 290, 3869, 318, 517, 621, 352, 30, 46506, 327, 28270, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 17, 33411, 8465, 796, 657, 5357, 4279, 796, 807, 5357, 3869, 1875, 352 ]
Count upvotes on top 10 most common tags.
SELECT TagName, COUNT(*) AS UpVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 WHERE TagName IN (SELECT t.TagName FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Post...
[ 12332, 510, 29307, 319, 1353, 838, 749, 2219, 15940, 13, 46506, 17467, 5376, 11, 327, 28270, 7, 28104, 7054, 3205, 53, 6421, 16034, 44789, 3268, 21479, 32357, 1268, 2947, 36142, 6177, 2947, 36142, 13, 24835, 7390, 796, 44789, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12332, 510, 29307, 319, 1353, 838, 749, 2219, 15940, 13, 46506, 17467, 5376, 11, 327, 28270, 7, 28104, 7054, 3205, 53, 6421, 16034, 44789, 3268, 21479, 32357, 1268, 2947, 36142, 6177, 2947, 36142, 13, 24835, 7390, 796, 44789, 13, 7390, ...
What is the round number when nationality was United States, and player is Jeffrey Foss?
SELECT COUNT(round) FROM table_name_20 WHERE nationality = "united states" AND player = "jeffrey foss"
[ 2061, 318, 262, 2835, 1271, 618, 29835, 373, 1578, 1829, 11, 290, 2137, 318, 19627, 40515, 30, 46506, 327, 28270, 7, 744, 8, 16034, 3084, 62, 3672, 62, 1238, 33411, 29835, 796, 366, 41187, 2585, 1, 5357, 2137, 796, 366, 73, 14822, 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 ]
[ 2061, 318, 262, 2835, 1271, 618, 29835, 373, 1578, 1829, 11, 290, 2137, 318, 19627, 40515, 30, 46506, 327, 28270, 7, 744, 8, 16034, 3084, 62, 3672, 62, 1238, 33411, 29835, 796, 366, 41187, 2585, 1, 5357, 2137, 796, 366, 73, 14822, 4...
What is the points against for the team that played 22 and lost 6?
SELECT points_against FROM table_name_81 WHERE played = "22" AND lost = "6"
[ 2061, 318, 262, 2173, 1028, 329, 262, 1074, 326, 2826, 2534, 290, 2626, 718, 30, 46506, 2173, 62, 32826, 16034, 3084, 62, 3672, 62, 6659, 33411, 2826, 796, 366, 1828, 1, 5357, 2626, 796, 366, 21, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1028, 329, 262, 1074, 326, 2826, 2534, 290, 2626, 718, 30, 46506, 2173, 62, 32826, 16034, 3084, 62, 3672, 62, 6659, 33411, 2826, 796, 366, 1828, 1, 5357, 2626, 796, 366, 21, 1 ]
Name the D 41 which has a D 46 of r 6
SELECT "D 41" FROM table_51876 WHERE "D 46" = 'r 6'
[ 5376, 262, 360, 6073, 543, 468, 257, 360, 6337, 286, 374, 718, 46506, 366, 35, 6073, 1, 16034, 3084, 62, 44085, 4304, 33411, 366, 35, 6337, 1, 796, 705, 81, 718, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 360, 6073, 543, 468, 257, 360, 6337, 286, 374, 718, 46506, 366, 35, 6073, 1, 16034, 3084, 62, 44085, 4304, 33411, 366, 35, 6337, 1, 796, 705, 81, 718, 6 ]
What player has E as the to par, and The United States as the country?
SELECT "Player" FROM table_76179 WHERE "To par" = 'e' AND "Country" = 'united states'
[ 2061, 2137, 468, 412, 355, 262, 284, 1582, 11, 290, 383, 1578, 1829, 355, 262, 1499, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 4304, 21738, 33411, 366, 2514, 1582, 1, 796, 705, 68, 6, 5357, 366, 33921, 1, 796, 705, 41187, 2585, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2137, 468, 412, 355, 262, 284, 1582, 11, 290, 383, 1578, 1829, 355, 262, 1499, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 4304, 21738, 33411, 366, 2514, 1582, 1, 796, 705, 68, 6, 5357, 366, 33921, 1, 796, 705, 41187, 2585, 6...
Who picked a player from Weber State?
SELECT cfl_team FROM table_16575609_1 WHERE college = "Weber State"
[ 8241, 6497, 257, 2137, 422, 28137, 1812, 30, 46506, 269, 2704, 62, 15097, 16034, 3084, 62, 20986, 2425, 31751, 62, 16, 33411, 4152, 796, 366, 1135, 527, 1812, 1 ]
[ 1, 1, 1, 1, 1, 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, 6497, 257, 2137, 422, 28137, 1812, 30, 46506, 269, 2704, 62, 15097, 16034, 3084, 62, 20986, 2425, 31751, 62, 16, 33411, 4152, 796, 366, 1135, 527, 1812, 1 ]
Which founding year corresponds with the highest enrollment?
SELECT MAX(founded) FROM table_261946_3
[ 13828, 16636, 614, 24866, 351, 262, 4511, 20753, 30, 46506, 25882, 7, 27060, 8, 16034, 3084, 62, 2075, 1129, 3510, 62, 18 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 16636, 614, 24866, 351, 262, 4511, 20753, 30, 46506, 25882, 7, 27060, 8, 16034, 3084, 62, 2075, 1129, 3510, 62, 18 ]
Show the number of different competition types with a bar graph, and I want to display from high to low by the Competition_type.
SELECT Competition_type, COUNT(Competition_type) FROM competition GROUP BY Competition_type ORDER BY Competition_type DESC
[ 15307, 262, 1271, 286, 1180, 5449, 3858, 351, 257, 2318, 4823, 11, 290, 314, 765, 284, 3359, 422, 1029, 284, 1877, 416, 262, 27348, 62, 4906, 13, 46506, 27348, 62, 4906, 11, 327, 28270, 7, 7293, 15620, 62, 4906, 8, 16034, 5449, 4444...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 1180, 5449, 3858, 351, 257, 2318, 4823, 11, 290, 314, 765, 284, 3359, 422, 1029, 284, 1877, 416, 262, 27348, 62, 4906, 13, 46506, 27348, 62, 4906, 11, 327, 28270, 7, 7293, 15620, 62, 4906, 8, 16034, 5449, 4444...
What is the average amount of earnings for years under 2004 and money list rankings of 6?
SELECT AVG(earnings__) AS $_ FROM table_name_88 WHERE money_list_rank = "6" AND year < 2004
[ 2061, 318, 262, 2811, 2033, 286, 12042, 329, 812, 739, 5472, 290, 1637, 1351, 16905, 286, 718, 30, 46506, 35224, 7, 451, 23400, 834, 8, 7054, 40111, 16034, 3084, 62, 3672, 62, 3459, 33411, 1637, 62, 4868, 62, 43027, 796, 366, 21, 1,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2811, 2033, 286, 12042, 329, 812, 739, 5472, 290, 1637, 1351, 16905, 286, 718, 30, 46506, 35224, 7, 451, 23400, 834, 8, 7054, 40111, 16034, 3084, 62, 3672, 62, 3459, 33411, 1637, 62, 4868, 62, 43027, 796, 366, 21, 1,...