instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
What was the points againt when played is played?
SELECT points_against FROM table_12828723_5 WHERE "played" = "played"
[ 2061, 373, 262, 2173, 757, 83, 618, 2826, 318, 2826, 30, 46506, 2173, 62, 32826, 16034, 3084, 62, 12762, 27800, 1954, 62, 20, 33411, 366, 21542, 1, 796, 366, 21542, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 2173, 757, 83, 618, 2826, 318, 2826, 30, 46506, 2173, 62, 32826, 16034, 3084, 62, 12762, 27800, 1954, 62, 20, 33411, 366, 21542, 1, 796, 366, 21542, 1 ]
What is Tennis, when School Year is 2004-05?
SELECT "Tennis" FROM table_49024 WHERE "School Year" = '2004-05'
[ 2061, 318, 37213, 11, 618, 3961, 6280, 318, 5472, 12, 2713, 30, 46506, 366, 51, 10679, 1, 16034, 3084, 62, 31503, 1731, 33411, 366, 26130, 6280, 1, 796, 705, 15724, 12, 2713, 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, 318, 37213, 11, 618, 3961, 6280, 318, 5472, 12, 2713, 30, 46506, 366, 51, 10679, 1, 16034, 3084, 62, 31503, 1731, 33411, 366, 26130, 6280, 1, 796, 705, 15724, 12, 2713, 6 ]
show me patient 28020's length of stay of the last hospital stay.
SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 28020 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1
[ 12860, 502, 5827, 21355, 1238, 338, 4129, 286, 2652, 286, 262, 938, 4436, 2652, 13, 46506, 19269, 9792, 12789, 10786, 4, 73, 3256, 25349, 13, 6381, 354, 2435, 8, 532, 19269, 9792, 12789, 10786, 4, 73, 3256, 25349, 13, 324, 20124, 524,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5827, 21355, 1238, 338, 4129, 286, 2652, 286, 262, 938, 4436, 2652, 13, 46506, 19269, 9792, 12789, 10786, 4, 73, 3256, 25349, 13, 6381, 354, 2435, 8, 532, 19269, 9792, 12789, 10786, 4, 73, 3256, 25349, 13, 324, 20124, 524,...
What is the average opened year of line e, which had their last extension before 2003?
SELECT AVG(opened) FROM table_name_40 WHERE line_name = "line e" AND last_extension < 2003
[ 2061, 318, 262, 2811, 4721, 614, 286, 1627, 304, 11, 543, 550, 511, 938, 7552, 878, 5816, 30, 46506, 35224, 7, 26350, 8, 16034, 3084, 62, 3672, 62, 1821, 33411, 1627, 62, 3672, 796, 366, 1370, 304, 1, 5357, 938, 62, 2302, 3004, 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 ]
[ 2061, 318, 262, 2811, 4721, 614, 286, 1627, 304, 11, 543, 550, 511, 938, 7552, 878, 5816, 30, 46506, 35224, 7, 26350, 8, 16034, 3084, 62, 3672, 62, 1821, 33411, 1627, 62, 3672, 796, 366, 1370, 304, 1, 5357, 938, 62, 2302, 3004, 12...
How many different results of the population count in 2001 are there for the census division whose population in 1996 is 880859?
SELECT COUNT(pop__2001_) FROM table_2134521_1 WHERE pop__1996_ = 880859
[ 2437, 867, 1180, 2482, 286, 262, 3265, 954, 287, 5878, 389, 612, 329, 262, 21649, 7297, 3025, 3265, 287, 8235, 318, 807, 28362, 3270, 30, 46506, 327, 28270, 7, 12924, 834, 14585, 62, 8, 16034, 3084, 62, 26427, 2231, 2481, 62, 16, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1180, 2482, 286, 262, 3265, 954, 287, 5878, 389, 612, 329, 262, 21649, 7297, 3025, 3265, 287, 8235, 318, 807, 28362, 3270, 30, 46506, 327, 28270, 7, 12924, 834, 14585, 62, 8, 16034, 3084, 62, 26427, 2231, 2481, 62, 16, 33...
What results has a week smaller than 2?
SELECT "Result" FROM table_34873 WHERE "Week" < '2'
[ 2061, 2482, 468, 257, 1285, 4833, 621, 362, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 28978, 4790, 33411, 366, 20916, 1, 1279, 705, 17, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2482, 468, 257, 1285, 4833, 621, 362, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 28978, 4790, 33411, 366, 20916, 1, 1279, 705, 17, 6 ]
Who has the lowest earnings that has a rank smaller than 2?
SELECT MIN("Earnings( $ )") FROM table_51675 WHERE "Rank" < '2'
[ 8241, 468, 262, 9016, 12042, 326, 468, 257, 4279, 4833, 621, 362, 30, 46506, 20625, 7203, 49725, 654, 7, 720, 1267, 4943, 16034, 3084, 62, 47493, 2425, 33411, 366, 27520, 1, 1279, 705, 17, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 468, 262, 9016, 12042, 326, 468, 257, 4279, 4833, 621, 362, 30, 46506, 20625, 7203, 49725, 654, 7, 720, 1267, 4943, 16034, 3084, 62, 47493, 2425, 33411, 366, 27520, 1, 1279, 705, 17, 6 ]
what's the change of potassium of patient 007-16517 last measured on the current hospital visit compared to the second to last value measured on the current hospital visit?
SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-16517' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'potas...
[ 10919, 338, 262, 1487, 286, 33156, 286, 5827, 3571, 22, 12, 20986, 1558, 938, 8630, 319, 262, 1459, 4436, 3187, 3688, 284, 262, 1218, 284, 938, 1988, 8630, 319, 262, 1459, 4436, 3187, 30, 46506, 357, 46506, 2248, 13, 23912, 20274, 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...
[ 10919, 338, 262, 1487, 286, 33156, 286, 5827, 3571, 22, 12, 20986, 1558, 938, 8630, 319, 262, 1459, 4436, 3187, 3688, 284, 262, 1218, 284, 938, 1988, 8630, 319, 262, 1459, 4436, 3187, 30, 46506, 357, 46506, 2248, 13, 23912, 20274, 160...
What is the area of the city with a density of 8,546.1?
SELECT area_km² FROM table_name_92 WHERE density__hab_km²_ = "8,546.1"
[ 2061, 318, 262, 1989, 286, 262, 1748, 351, 257, 12109, 286, 807, 11, 49489, 13, 16, 30, 46506, 1989, 62, 13276, 31185, 16034, 3084, 62, 3672, 62, 5892, 33411, 12109, 834, 5976, 62, 13276, 31185, 62, 796, 366, 23, 11, 49489, 13, 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 ]
[ 2061, 318, 262, 1989, 286, 262, 1748, 351, 257, 12109, 286, 807, 11, 49489, 13, 16, 30, 46506, 1989, 62, 13276, 31185, 16034, 3084, 62, 3672, 62, 5892, 33411, 12109, 834, 5976, 62, 13276, 31185, 62, 796, 366, 23, 11, 49489, 13, 16, ...
what is the total number of shows sophie colguhoun appeared in ?
SELECT COUNT(*) FROM table_204_903
[ 10919, 318, 262, 2472, 1271, 286, 2523, 9810, 494, 951, 5162, 47714, 4120, 287, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 24, 3070 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 2472, 1271, 286, 2523, 9810, 494, 951, 5162, 47714, 4120, 287, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 24, 3070 ]
What was the Venue on November 14, 2007?
SELECT "Venue" FROM table_9051 WHERE "Date" = 'november 14, 2007'
[ 2061, 373, 262, 9932, 518, 319, 3389, 1478, 11, 4343, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 44928, 16, 33411, 366, 10430, 1, 796, 705, 77, 3239, 1478, 11, 4343, 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, 373, 262, 9932, 518, 319, 3389, 1478, 11, 4343, 30, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 44928, 16, 33411, 366, 10430, 1, 796, 705, 77, 3239, 1478, 11, 4343, 6 ]
For each phone, show its names and total number of stocks Visualize by bar chart, and rank by the bars in desc please.
SELECT Name, SUM(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name ORDER BY Name DESC
[ 1890, 1123, 3072, 11, 905, 663, 3891, 290, 2472, 1271, 286, 14420, 15612, 1096, 416, 2318, 8262, 11, 290, 4279, 416, 262, 9210, 287, 1715, 3387, 13, 46506, 6530, 11, 35683, 7, 51, 16, 13, 33111, 62, 1659, 62, 13578, 8, 16034, 3072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1123, 3072, 11, 905, 663, 3891, 290, 2472, 1271, 286, 14420, 15612, 1096, 416, 2318, 8262, 11, 290, 4279, 416, 262, 9210, 287, 1715, 3387, 13, 46506, 6530, 11, 35683, 7, 51, 16, 13, 33111, 62, 1659, 62, 13578, 8, 16034, 3072, ...
When luz mcclinton is the name what is the season?
SELECT "Season" FROM table_1985 WHERE "Name" = 'Luz McClinton'
[ 2215, 300, 10277, 285, 535, 75, 2371, 318, 262, 1438, 644, 318, 262, 1622, 30, 46506, 366, 18960, 1, 16034, 3084, 62, 29110, 33411, 366, 5376, 1, 796, 705, 43, 10277, 1982, 16549, 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, 300, 10277, 285, 535, 75, 2371, 318, 262, 1438, 644, 318, 262, 1622, 30, 46506, 366, 18960, 1, 16034, 3084, 62, 29110, 33411, 366, 5376, 1, 796, 705, 43, 10277, 1982, 16549, 6 ]
Which team 1 had a team 2 of Hafia FC?
SELECT "Team 1" FROM table_14796 WHERE "Team 2" = 'hafia fc'
[ 13828, 1074, 352, 550, 257, 1074, 362, 286, 367, 22214, 10029, 30, 46506, 366, 15592, 352, 1, 16034, 3084, 62, 1415, 41060, 33411, 366, 15592, 362, 1, 796, 705, 71, 22214, 277, 66, 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 ]
[ 13828, 1074, 352, 550, 257, 1074, 362, 286, 367, 22214, 10029, 30, 46506, 366, 15592, 352, 1, 16034, 3084, 62, 1415, 41060, 33411, 366, 15592, 362, 1, 796, 705, 71, 22214, 277, 66, 6 ]
Find the name and partition id for users who tweeted less than twice Show bar chart, rank by the y-axis in descending.
SELECT name, partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid ORDER BY partitionid DESC
[ 16742, 262, 1438, 290, 18398, 4686, 329, 2985, 508, 10830, 1342, 621, 5403, 5438, 2318, 8262, 11, 4279, 416, 262, 331, 12, 22704, 287, 31491, 13, 46506, 1438, 11, 18398, 312, 16034, 2836, 62, 5577, 2915, 7054, 309, 16, 32357, 1268, 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 ]
[ 16742, 262, 1438, 290, 18398, 4686, 329, 2985, 508, 10830, 1342, 621, 5403, 5438, 2318, 8262, 11, 4279, 416, 262, 331, 12, 22704, 287, 31491, 13, 46506, 1438, 11, 18398, 312, 16034, 2836, 62, 5577, 2915, 7054, 309, 16, 32357, 1268, 12...
Who was the Rookie of the Year for the Season in 2000?
SELECT "Rookie of the Year" FROM table_15558 WHERE "Season" = '2000'
[ 8241, 373, 262, 36595, 286, 262, 6280, 329, 262, 7369, 287, 4751, 30, 46506, 366, 49, 18055, 286, 262, 6280, 1, 16034, 3084, 62, 1314, 40486, 33411, 366, 18960, 1, 796, 705, 11024, 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 ]
[ 8241, 373, 262, 36595, 286, 262, 6280, 329, 262, 7369, 287, 4751, 30, 46506, 366, 49, 18055, 286, 262, 6280, 1, 16034, 3084, 62, 1314, 40486, 33411, 366, 18960, 1, 796, 705, 11024, 6 ]
Show distinct first and last names for all customers with an account.
SELECT DISTINCT T1.customer_first_name, T1.customer_last_name FROM customers AS T1 JOIN accounts AS T2 ON T1.customer_id = T2.customer_id
[ 15307, 7310, 717, 290, 938, 3891, 329, 477, 4297, 351, 281, 1848, 13, 46506, 360, 8808, 1268, 4177, 309, 16, 13, 23144, 263, 62, 11085, 62, 3672, 11, 309, 16, 13, 23144, 263, 62, 12957, 62, 3672, 16034, 4297, 7054, 309, 16, 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...
[ 15307, 7310, 717, 290, 938, 3891, 329, 477, 4297, 351, 281, 1848, 13, 46506, 360, 8808, 1268, 4177, 309, 16, 13, 23144, 263, 62, 11085, 62, 3672, 11, 309, 16, 13, 23144, 263, 62, 12957, 62, 3672, 16034, 4297, 7054, 309, 16, 32357, ...
give me a restaurant on buchanan in san francisco that serves good arabic food ?
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'san francisco' AND location.street_name = 'buchanan' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
[ 26535, 502, 257, 7072, 319, 275, 794, 27870, 287, 5336, 46754, 4861, 326, 9179, 922, 610, 397, 291, 2057, 5633, 46506, 4067, 13, 4803, 62, 17618, 11, 7072, 13, 3672, 16034, 4067, 11, 7072, 33411, 4067, 13, 19205, 62, 3672, 796, 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, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 502, 257, 7072, 319, 275, 794, 27870, 287, 5336, 46754, 4861, 326, 9179, 922, 610, 397, 291, 2057, 5633, 46506, 4067, 13, 4803, 62, 17618, 11, 7072, 13, 3672, 16034, 4067, 11, 7072, 33411, 4067, 13, 19205, 62, 3672, 796, 705, ...
Qhat was the position of sail 6606?
SELECT "Position" FROM table_22430 WHERE "Sail Number" = '6606'
[ 48, 5183, 373, 262, 2292, 286, 14936, 718, 33206, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 24137, 1270, 33411, 366, 50, 603, 7913, 1, 796, 705, 21, 33206, 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 ]
[ 48, 5183, 373, 262, 2292, 286, 14936, 718, 33206, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 24137, 1270, 33411, 366, 50, 603, 7913, 1, 796, 705, 21, 33206, 6 ]
give me the number of patients whose religion is jewish and lab test name is monocytes?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "JEWISH" AND lab.label = "Monocytes"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 5737, 318, 12711, 680, 290, 2248, 1332, 1438, 318, 937, 30309, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 5737, 318, 12711, 680, 290, 2248, 1332, 1438, 318, 937, 30309, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 1...
what is the sample size when the date(s) administered is march 24, 2010?
SELECT sample_size FROM table_name_4 WHERE date_s__administered = "march 24, 2010"
[ 10919, 318, 262, 6291, 2546, 618, 262, 3128, 7, 82, 8, 17169, 318, 9960, 1987, 11, 3050, 30, 46506, 6291, 62, 7857, 16034, 3084, 62, 3672, 62, 19, 33411, 3128, 62, 82, 834, 39081, 1068, 796, 366, 76, 998, 1987, 11, 3050, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6291, 2546, 618, 262, 3128, 7, 82, 8, 17169, 318, 9960, 1987, 11, 3050, 30, 46506, 6291, 62, 7857, 16034, 3084, 62, 3672, 62, 19, 33411, 3128, 62, 82, 834, 39081, 1068, 796, 366, 76, 998, 1987, 11, 3050, 1 ]
For those records from the products and each product's manufacturer, show me about the correlation between manufacturer and revenue , and group by attribute headquarter in a scatter chart.
SELECT Manufacturer, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 905, 502, 546, 262, 16096, 1022, 11554, 290, 6426, 837, 290, 1448, 416, 11688, 1182, 24385, 287, 257, 41058, 8262, 13, 46506, 40218, 11, 20197, 16034, 18675, 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...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 905, 502, 546, 262, 16096, 1022, 11554, 290, 6426, 837, 290, 1448, 416, 11688, 1182, 24385, 287, 257, 41058, 8262, 13, 46506, 40218, 11, 20197, 16034, 18675, 7054, 309, ...
What was the earliest year with a note of 18.04 m wl?
SELECT MIN("Year") FROM table_64748 WHERE "Notes" = '18.04 m wl'
[ 2061, 373, 262, 14555, 614, 351, 257, 3465, 286, 1248, 13, 3023, 285, 266, 75, 30, 46506, 20625, 7203, 17688, 4943, 16034, 3084, 62, 33981, 2780, 33411, 366, 16130, 1, 796, 705, 1507, 13, 3023, 285, 266, 75, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 14555, 614, 351, 257, 3465, 286, 1248, 13, 3023, 285, 266, 75, 30, 46506, 20625, 7203, 17688, 4943, 16034, 3084, 62, 33981, 2780, 33411, 366, 16130, 1, 796, 705, 1507, 13, 3023, 285, 266, 75, 6 ]
Which Opponent is on 17 november 2002?
SELECT opponent FROM table_name_64 WHERE date = "17 november 2002"
[ 13828, 9385, 3471, 318, 319, 1596, 645, 303, 1916, 6244, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 2414, 33411, 3128, 796, 366, 1558, 645, 303, 1916, 6244, 1 ]
[ 1, 1, 1, 1, 1, 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, 9385, 3471, 318, 319, 1596, 645, 303, 1916, 6244, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 2414, 33411, 3128, 796, 366, 1558, 645, 303, 1916, 6244, 1 ]
What is Socket, when Part Number(s) is au80610003495aa?
SELECT "Socket" FROM table_9828 WHERE "Part number(s)" = 'au80610003495aa'
[ 2061, 318, 47068, 11, 618, 2142, 7913, 7, 82, 8, 318, 35851, 1795, 5333, 830, 2682, 3865, 7252, 30, 46506, 366, 39105, 1, 16034, 3084, 62, 4089, 2078, 33411, 366, 7841, 1271, 7, 82, 16725, 796, 705, 559, 1795, 5333, 830, 2682, 3865,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 47068, 11, 618, 2142, 7913, 7, 82, 8, 318, 35851, 1795, 5333, 830, 2682, 3865, 7252, 30, 46506, 366, 39105, 1, 16034, 3084, 62, 4089, 2078, 33411, 366, 7841, 1271, 7, 82, 16725, 796, 705, 559, 1795, 5333, 830, 2682, 3865,...
What is the record of the game that resulted in a loss with more than 56,648 people in attendance?
SELECT record FROM table_name_99 WHERE result = "loss" AND attendance > 56 OFFSET 648
[ 2061, 318, 262, 1700, 286, 262, 983, 326, 8724, 287, 257, 2994, 351, 517, 621, 7265, 11, 34287, 661, 287, 14858, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 2079, 33411, 1255, 796, 366, 22462, 1, 5357, 14858, 1875, 7265, 3963, 10652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1700, 286, 262, 983, 326, 8724, 287, 257, 2994, 351, 517, 621, 7265, 11, 34287, 661, 287, 14858, 30, 46506, 1700, 16034, 3084, 62, 3672, 62, 2079, 33411, 1255, 796, 366, 22462, 1, 5357, 14858, 1875, 7265, 3963, 10652, ...
What team lost on May 1?
SELECT "Loss" FROM table_69874 WHERE "Date" = 'may 1'
[ 2061, 1074, 2626, 319, 1737, 352, 30, 46506, 366, 43, 793, 1, 16034, 3084, 62, 39357, 4524, 33411, 366, 10430, 1, 796, 705, 11261, 352, 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, 1074, 2626, 319, 1737, 352, 30, 46506, 366, 43, 793, 1, 16034, 3084, 62, 39357, 4524, 33411, 366, 10430, 1, 796, 705, 11261, 352, 6 ]
What is the bullet weight when the max pressure is 12,000 cup?
SELECT "Bullet weight" FROM table_21492 WHERE "Max pressure" = '12,000 CUP'
[ 2061, 318, 262, 10492, 3463, 618, 262, 3509, 3833, 318, 1105, 11, 830, 6508, 30, 46506, 366, 33481, 1616, 3463, 1, 16034, 3084, 62, 22291, 5892, 33411, 366, 11518, 3833, 1, 796, 705, 1065, 11, 830, 327, 8577, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 10492, 3463, 618, 262, 3509, 3833, 318, 1105, 11, 830, 6508, 30, 46506, 366, 33481, 1616, 3463, 1, 16034, 3084, 62, 22291, 5892, 33411, 366, 11518, 3833, 1, 796, 705, 1065, 11, 830, 327, 8577, 6 ]
What is Athlete, when Nation is 'Nigeria'?
SELECT athlete FROM table_name_12 WHERE nation = "nigeria"
[ 2061, 318, 13548, 5807, 11, 618, 8741, 318, 705, 45, 328, 5142, 30960, 46506, 16076, 16034, 3084, 62, 3672, 62, 1065, 33411, 3277, 796, 366, 77, 328, 5142, 1 ]
[ 1, 1, 1, 1, 1, 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, 13548, 5807, 11, 618, 8741, 318, 705, 45, 328, 5142, 30960, 46506, 16076, 16034, 3084, 62, 3672, 62, 1065, 33411, 3277, 796, 366, 77, 328, 5142, 1 ]
How many are directed by episodes with the production code 3T5009?
SELECT COUNT(directed_by) FROM table_26561509_1 WHERE production_code = "3T5009"
[ 2437, 867, 389, 7924, 416, 8640, 351, 262, 3227, 2438, 513, 51, 4059, 24, 30, 46506, 327, 28270, 7, 34762, 62, 1525, 8, 16034, 3084, 62, 2075, 3980, 8628, 24, 62, 16, 33411, 3227, 62, 8189, 796, 366, 18, 51, 4059, 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 ]
[ 2437, 867, 389, 7924, 416, 8640, 351, 262, 3227, 2438, 513, 51, 4059, 24, 30, 46506, 327, 28270, 7, 34762, 62, 1525, 8, 16034, 3084, 62, 2075, 3980, 8628, 24, 62, 16, 33411, 3227, 62, 8189, 796, 366, 18, 51, 4059, 24, 1 ]
Does TURKISH 102 have a lab when Prof. Alison Hirschel teaches it ?
SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE course.department = 'TURK...
[ 13921, 309, 4261, 42, 18422, 15143, 423, 257, 2248, 618, 4415, 13, 33629, 29379, 1416, 2978, 17324, 340, 5633, 46506, 327, 28270, 7, 28104, 796, 657, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, 2364, 1586, 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...
[ 13921, 309, 4261, 42, 18422, 15143, 423, 257, 2248, 618, 4415, 13, 33629, 29379, 1416, 2978, 17324, 340, 5633, 46506, 327, 28270, 7, 28104, 796, 657, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, 2364, 1586, 6177, 1781, 13, 17319, 62...
How many posts with 'python' tag have no accepted answer.
SELECT COUNT(*) FROM Posts WHERE Tags LIKE '%python%' AND AcceptedAnswerId IS NULL
[ 2437, 867, 6851, 351, 705, 29412, 6, 7621, 423, 645, 6292, 3280, 13, 46506, 327, 28270, 7, 28104, 16034, 12043, 33411, 44789, 34178, 705, 4, 29412, 4, 6, 5357, 21699, 276, 33706, 7390, 3180, 15697 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6851, 351, 705, 29412, 6, 7621, 423, 645, 6292, 3280, 13, 46506, 327, 28270, 7, 28104, 16034, 12043, 33411, 44789, 34178, 705, 4, 29412, 4, 6, 5357, 21699, 276, 33706, 7390, 3180, 15697 ]
What Games covered had a round of divisional finals?
SELECT "Games covered" FROM table_6027 WHERE "Round" = 'divisional finals'
[ 2061, 5776, 5017, 550, 257, 2835, 286, 7297, 282, 18576, 30, 46506, 366, 24474, 5017, 1, 16034, 3084, 62, 1899, 1983, 33411, 366, 22685, 1, 796, 705, 21426, 282, 18576, 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, 5776, 5017, 550, 257, 2835, 286, 7297, 282, 18576, 30, 46506, 366, 24474, 5017, 1, 16034, 3084, 62, 1899, 1983, 33411, 366, 22685, 1, 796, 705, 21426, 282, 18576, 6 ]
which country took the least amount of time ?
SELECT "nation" FROM table_203_160 ORDER BY "time" LIMIT 1
[ 4758, 1499, 1718, 262, 1551, 2033, 286, 640, 5633, 46506, 366, 25729, 1, 16034, 3084, 62, 22416, 62, 14198, 38678, 11050, 366, 2435, 1, 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 ]
[ 4758, 1499, 1718, 262, 1551, 2033, 286, 640, 5633, 46506, 366, 25729, 1, 16034, 3084, 62, 22416, 62, 14198, 38678, 11050, 366, 2435, 1, 27564, 2043, 352 ]
What is High Rebounds, when Location Attendance is 'Time Warner Cable Arena 10,848'?
SELECT "High rebounds" FROM table_48670 WHERE "Location Attendance" = 'time warner cable arena 10,848'
[ 2061, 318, 3334, 15652, 3733, 11, 618, 13397, 46502, 590, 318, 705, 7575, 14469, 20249, 10937, 838, 11, 23, 2780, 30960, 46506, 366, 11922, 18841, 1, 16034, 3084, 62, 34251, 2154, 33411, 366, 14749, 46502, 590, 1, 796, 705, 2435, 1175, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3334, 15652, 3733, 11, 618, 13397, 46502, 590, 318, 705, 7575, 14469, 20249, 10937, 838, 11, 23, 2780, 30960, 46506, 366, 11922, 18841, 1, 16034, 3084, 62, 34251, 2154, 33411, 366, 14749, 46502, 590, 1, 796, 705, 2435, 1175, ...
Which chassis had an entrant of John Mecom?
SELECT chassis FROM table_name_37 WHERE entrant = "john mecom"
[ 13828, 24587, 550, 281, 920, 5250, 286, 1757, 337, 721, 296, 30, 46506, 24587, 16034, 3084, 62, 3672, 62, 2718, 33411, 920, 5250, 796, 366, 30686, 502, 785, 1 ]
[ 1, 1, 1, 1, 1, 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, 24587, 550, 281, 920, 5250, 286, 1757, 337, 721, 296, 30, 46506, 24587, 16034, 3084, 62, 3672, 62, 2718, 33411, 920, 5250, 796, 366, 30686, 502, 785, 1 ]
Return a histogram on how many hosts does each nationality have? List the nationality and the count, display by the Y in ascending.
SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY COUNT(*)
[ 13615, 257, 1554, 21857, 319, 703, 867, 11453, 857, 1123, 29835, 423, 30, 7343, 262, 29835, 290, 262, 954, 11, 3359, 416, 262, 575, 287, 41988, 13, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 44441, 11050, 2351, 414, 3867...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13615, 257, 1554, 21857, 319, 703, 867, 11453, 857, 1123, 29835, 423, 30, 7343, 262, 29835, 290, 262, 954, 11, 3359, 416, 262, 575, 287, 41988, 13, 46506, 2351, 414, 11, 327, 28270, 7, 28104, 16034, 2583, 44441, 11050, 2351, 414, 3867...
What is the sum of the pick numbers where the player was picked in round 5 and overall pick number was greater than 159?
SELECT SUM("Pick #") FROM table_6164 WHERE "Round" = '5' AND "Overall" > '159'
[ 2061, 318, 262, 2160, 286, 262, 2298, 3146, 810, 262, 2137, 373, 6497, 287, 2835, 642, 290, 4045, 2298, 1271, 373, 3744, 621, 26422, 30, 46506, 35683, 7203, 31686, 1303, 4943, 16034, 3084, 62, 21, 23237, 33411, 366, 22685, 1, 796, 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 ]
[ 2061, 318, 262, 2160, 286, 262, 2298, 3146, 810, 262, 2137, 373, 6497, 287, 2835, 642, 290, 4045, 2298, 1271, 373, 3744, 621, 26422, 30, 46506, 35683, 7203, 31686, 1303, 4943, 16034, 3084, 62, 21, 23237, 33411, 366, 22685, 1, 796, 705...
patient 2498 had any d10w on 08/27/last year?
SELECT COUNT(*) > 0 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 = 2498)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'd10w' AND...
[ 26029, 1987, 4089, 550, 597, 288, 940, 86, 319, 8487, 14, 1983, 14, 12957, 614, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, 1133, 85, 658, 62, 33967, 13, 291, 436, 323, 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...
[ 26029, 1987, 4089, 550, 597, 288, 940, 86, 319, 8487, 14, 1983, 14, 12957, 614, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 287, 79, 1133, 85, 658, 62, 33967, 33411, 287, 79, 1133, 85, 658, 62, 33967, 13, 291, 436, 323, 62,...
what was patient 25312 first height until 07/2105?
SELECT 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 = 25312)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit ht'...
[ 10919, 373, 5827, 1679, 27970, 717, 6001, 1566, 8753, 14, 17, 13348, 30, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 323, 62, 312, 3268, 357, 46506, 14158, 436, 592, 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...
[ 10919, 373, 5827, 1679, 27970, 717, 6001, 1566, 8753, 14, 17, 13348, 30, 46506, 8262, 31534, 13, 2100, 84, 44709, 16034, 8262, 31534, 33411, 8262, 31534, 13, 291, 436, 323, 62, 312, 3268, 357, 46506, 14158, 436, 592, 13, 291, 436, 323...
Specify the birthdate and insurance of patient id 2560
SELECT demographic.dob, demographic.insurance FROM demographic WHERE demographic.subject_id = "2560"
[ 22882, 1958, 262, 4082, 4475, 290, 5096, 286, 5827, 4686, 1679, 1899, 46506, 16728, 13, 67, 672, 11, 16728, 13, 1040, 3874, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 1495, 1899, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 22882, 1958, 262, 4082, 4475, 290, 5096, 286, 5827, 4686, 1679, 1899, 46506, 16728, 13, 67, 672, 11, 16728, 13, 1040, 3874, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 1495, 1899, 1 ]
Who won gold in the games where Pan Cheng-Tsung won silver?
SELECT "Gold" FROM table_35837 WHERE "Silver" = 'pan cheng-tsung'
[ 8241, 1839, 3869, 287, 262, 1830, 810, 5961, 27692, 12, 51, 9854, 1839, 8465, 30, 46506, 366, 13306, 1, 16034, 3084, 62, 31128, 2718, 33411, 366, 26766, 1, 796, 705, 6839, 1125, 782, 12, 912, 2150, 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, 1839, 3869, 287, 262, 1830, 810, 5961, 27692, 12, 51, 9854, 1839, 8465, 30, 46506, 366, 13306, 1, 16034, 3084, 62, 31128, 2718, 33411, 366, 26766, 1, 796, 705, 6839, 1125, 782, 12, 912, 2150, 6 ]
What was the highest grid for Patrick Carpentier?
SELECT MAX("Grid") FROM table_8638 WHERE "Driver" = 'patrick carpentier'
[ 2061, 373, 262, 4511, 10706, 329, 9925, 1879, 16923, 959, 30, 46506, 25882, 7203, 41339, 4943, 16034, 3084, 62, 4521, 2548, 33411, 366, 32103, 1, 796, 705, 29615, 1097, 16923, 959, 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, 4511, 10706, 329, 9925, 1879, 16923, 959, 30, 46506, 25882, 7203, 41339, 4943, 16034, 3084, 62, 4521, 2548, 33411, 366, 32103, 1, 796, 705, 29615, 1097, 16923, 959, 6 ]
What is the Hanja for the sakju province?
SELECT "Hanja" FROM table_42224 WHERE "Province" = 'sakju'
[ 2061, 318, 262, 9530, 6592, 329, 262, 264, 461, 14396, 8473, 30, 46506, 366, 29919, 6592, 1, 16034, 3084, 62, 44361, 1731, 33411, 366, 15946, 924, 1, 796, 705, 82, 461, 14396, 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, 318, 262, 9530, 6592, 329, 262, 264, 461, 14396, 8473, 30, 46506, 366, 29919, 6592, 1, 16034, 3084, 62, 44361, 1731, 33411, 366, 15946, 924, 1, 796, 705, 82, 461, 14396, 6 ]
Result of 86-87 (2-4) is what game?
SELECT game FROM table_name_28 WHERE result = "86-87 (2-4)"
[ 23004, 286, 9849, 12, 5774, 357, 17, 12, 19, 8, 318, 644, 983, 30, 46506, 983, 16034, 3084, 62, 3672, 62, 2078, 33411, 1255, 796, 366, 4521, 12, 5774, 357, 17, 12, 19, 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 ]
[ 23004, 286, 9849, 12, 5774, 357, 17, 12, 19, 8, 318, 644, 983, 30, 46506, 983, 16034, 3084, 62, 3672, 62, 2078, 33411, 1255, 796, 366, 4521, 12, 5774, 357, 17, 12, 19, 16725 ]
What was the attendance of the Indiana game?
SELECT location_attendance FROM table_17080868_7 WHERE team = "Indiana"
[ 2061, 373, 262, 14858, 286, 262, 10278, 983, 30, 46506, 4067, 62, 1078, 437, 590, 16034, 3084, 62, 17279, 28362, 3104, 62, 22, 33411, 1074, 796, 366, 49153, 1 ]
[ 1, 1, 1, 1, 1, 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, 14858, 286, 262, 10278, 983, 30, 46506, 4067, 62, 1078, 437, 590, 16034, 3084, 62, 17279, 28362, 3104, 62, 22, 33411, 1074, 796, 366, 49153, 1 ]
Name the lost for matches of 1 928
SELECT lost FROM table_name_66 WHERE matches = "1 928"
[ 5376, 262, 2626, 329, 7466, 286, 352, 860, 2078, 46506, 2626, 16034, 3084, 62, 3672, 62, 2791, 33411, 7466, 796, 366, 16, 860, 2078, 1 ]
[ 1, 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, 2626, 329, 7466, 286, 352, 860, 2078, 46506, 2626, 16034, 3084, 62, 3672, 62, 2791, 33411, 7466, 796, 366, 16, 860, 2078, 1 ]
What are the names, and revenues for manufacturers, sorted by revenue descending in a bar graph?
SELECT Name, Revenue FROM Manufacturers ORDER BY Revenue DESC
[ 2061, 389, 262, 3891, 11, 290, 13089, 329, 11372, 11, 23243, 416, 6426, 31491, 287, 257, 2318, 4823, 30, 46506, 6530, 11, 20197, 16034, 17858, 17496, 38678, 11050, 20197, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 3891, 11, 290, 13089, 329, 11372, 11, 23243, 416, 6426, 31491, 287, 257, 2318, 4823, 30, 46506, 6530, 11, 20197, 16034, 17858, 17496, 38678, 11050, 20197, 22196, 34 ]
have any microbiological tests been done for patient 59002 on the first hospital visit?
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 59002 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)
[ 14150, 597, 24559, 2770, 5254, 587, 1760, 329, 5827, 7863, 21601, 319, 262, 717, 4436, 3187, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 253...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 14150, 597, 24559, 2770, 5254, 587, 1760, 329, 5827, 7863, 21601, 319, 262, 717, 4436, 3187, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 253...
who is ranked at the top ?
SELECT "name" FROM table_204_665 WHERE id = 1
[ 8727, 318, 10307, 379, 262, 1353, 5633, 46506, 366, 3672, 1, 16034, 3084, 62, 18638, 62, 36879, 33411, 4686, 796, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8727, 318, 10307, 379, 262, 1353, 5633, 46506, 366, 3672, 1, 16034, 3084, 62, 18638, 62, 36879, 33411, 4686, 796, 352 ]
Give me the number of patients who stayed in the hospital for more than 23 days with a drug code of acyc400.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "23" AND prescriptions.formulary_drug_cd = "ACYC400"
[ 23318, 502, 262, 1271, 286, 3871, 508, 9658, 287, 262, 4436, 329, 517, 621, 2242, 1528, 351, 257, 2563, 2438, 286, 936, 88, 66, 7029, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 23318, 502, 262, 1271, 286, 3871, 508, 9658, 287, 262, 4436, 329, 517, 621, 2242, 1528, 351, 257, 2563, 2438, 286, 936, 88, 66, 7029, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, ...
What opposing team has 20 against?
SELECT "Opposing Team" FROM table_45686 WHERE "Against" = '20'
[ 2061, 12330, 1074, 468, 1160, 1028, 30, 46506, 366, 27524, 2752, 4816, 1, 16034, 3084, 62, 2231, 33808, 33411, 366, 39276, 1, 796, 705, 1238, 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, 12330, 1074, 468, 1160, 1028, 30, 46506, 366, 27524, 2752, 4816, 1, 16034, 3084, 62, 2231, 33808, 33411, 366, 39276, 1, 796, 705, 1238, 6 ]
Bar chart of the total number from each location, and could you list from low to high by the Y?
SELECT Location, COUNT(*) FROM performance GROUP BY Location ORDER BY COUNT(*)
[ 10374, 8262, 286, 262, 2472, 1271, 422, 1123, 4067, 11, 290, 714, 345, 1351, 422, 1877, 284, 1029, 416, 262, 575, 30, 46506, 13397, 11, 327, 28270, 7, 28104, 16034, 2854, 44441, 11050, 13397, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10374, 8262, 286, 262, 2472, 1271, 422, 1123, 4067, 11, 290, 714, 345, 1351, 422, 1877, 284, 1029, 416, 262, 575, 30, 46506, 13397, 11, 327, 28270, 7, 28104, 16034, 2854, 44441, 11050, 13397, 38678, 11050, 327, 28270, 7, 28104 ]
How many different types are allocated to the institution in Bridgewater, Massachusetts?
SELECT COUNT(type) FROM table_261927_2 WHERE location = "Bridgewater, Massachusetts"
[ 2437, 867, 1180, 3858, 389, 19171, 284, 262, 9901, 287, 48218, 11, 10140, 30, 46506, 327, 28270, 7, 4906, 8, 16034, 3084, 62, 2075, 1129, 1983, 62, 17, 33411, 4067, 796, 366, 33, 6058, 40843, 11, 10140, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1180, 3858, 389, 19171, 284, 262, 9901, 287, 48218, 11, 10140, 30, 46506, 327, 28270, 7, 4906, 8, 16034, 3084, 62, 2075, 1129, 1983, 62, 17, 33411, 4067, 796, 366, 33, 6058, 40843, 11, 10140, 1 ]
What aired at 10:00 when Flashpoint aired at 9:30?
SELECT "10:00" FROM table_43208 WHERE "9:30" = 'flashpoint'
[ 2061, 18530, 379, 838, 25, 405, 618, 9973, 4122, 18530, 379, 860, 25, 1270, 30, 46506, 366, 940, 25, 405, 1, 16034, 3084, 62, 3559, 21315, 33411, 366, 24, 25, 1270, 1, 796, 705, 34167, 4122, 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, 18530, 379, 838, 25, 405, 618, 9973, 4122, 18530, 379, 860, 25, 1270, 30, 46506, 366, 940, 25, 405, 1, 16034, 3084, 62, 3559, 21315, 33411, 366, 24, 25, 1270, 1, 796, 705, 34167, 4122, 6 ]
What is the highest number lost with more than 29 points and an against less than 19?
SELECT MAX("Lost") FROM table_40837 WHERE "Points" > '29' AND "Against" < '19'
[ 2061, 318, 262, 4511, 1271, 2626, 351, 517, 621, 2808, 2173, 290, 281, 1028, 1342, 621, 678, 30, 46506, 25882, 7203, 31042, 4943, 16034, 3084, 62, 26200, 2718, 33411, 366, 40710, 1, 1875, 705, 1959, 6, 5357, 366, 39276, 1, 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 ]
[ 2061, 318, 262, 4511, 1271, 2626, 351, 517, 621, 2808, 2173, 290, 281, 1028, 1342, 621, 678, 30, 46506, 25882, 7203, 31042, 4943, 16034, 3084, 62, 26200, 2718, 33411, 366, 40710, 1, 1875, 705, 1959, 6, 5357, 366, 39276, 1, 1279, 705, ...
Who was the outgoing manager for Aberdeen?
SELECT "Outgoing manager" FROM table_20538 WHERE "Team" = 'Aberdeen'
[ 8241, 373, 262, 28181, 4706, 329, 44985, 30, 46506, 366, 7975, 5146, 4706, 1, 16034, 3084, 62, 21261, 2548, 33411, 366, 15592, 1, 796, 705, 32, 527, 39060, 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 ]
[ 8241, 373, 262, 28181, 4706, 329, 44985, 30, 46506, 366, 7975, 5146, 4706, 1, 16034, 3084, 62, 21261, 2548, 33411, 366, 15592, 1, 796, 705, 32, 527, 39060, 6 ]
How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?
SELECT MIN("#") FROM table_23474 WHERE "Producer" = 'Charles Salmon' AND "Television Premiere" = 'January 27, 2007'
[ 2437, 867, 3146, 423, 7516, 43956, 355, 262, 9920, 290, 3269, 2681, 11, 4343, 373, 262, 5581, 19245, 30, 46506, 20625, 7203, 2, 4943, 16034, 3084, 62, 1954, 38652, 33411, 366, 11547, 2189, 1, 796, 705, 28711, 43956, 6, 5357, 366, 6767...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 423, 7516, 43956, 355, 262, 9920, 290, 3269, 2681, 11, 4343, 373, 262, 5581, 19245, 30, 46506, 20625, 7203, 2, 4943, 16034, 3084, 62, 1954, 38652, 33411, 366, 11547, 2189, 1, 796, 705, 28711, 43956, 6, 5357, 366, 6767...
What is listed for the Elevator, that also has the Cardinalatial title of Deacon of S. Maria in Portico?
SELECT "Elevator" FROM table_14247 WHERE "Cardinalatial title" = 'deacon of s. maria in portico'
[ 2061, 318, 5610, 329, 262, 37881, 1352, 11, 326, 635, 468, 262, 25564, 34961, 3670, 286, 1024, 7807, 286, 311, 13, 14200, 287, 4347, 3713, 30, 46506, 366, 36, 2768, 1352, 1, 16034, 3084, 62, 1415, 23753, 33411, 366, 16962, 1292, 34961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 5610, 329, 262, 37881, 1352, 11, 326, 635, 468, 262, 25564, 34961, 3670, 286, 1024, 7807, 286, 311, 13, 14200, 287, 4347, 3713, 30, 46506, 366, 36, 2768, 1352, 1, 16034, 3084, 62, 1415, 23753, 33411, 366, 16962, 1292, 34961...
What was the club for Great Britain?
SELECT club FROM table_name_58 WHERE nation = "great britain"
[ 2061, 373, 262, 3430, 329, 3878, 5491, 30, 46506, 3430, 16034, 3084, 62, 3672, 62, 3365, 33411, 3277, 796, 366, 18223, 275, 799, 391, 1 ]
[ 1, 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, 3430, 329, 3878, 5491, 30, 46506, 3430, 16034, 3084, 62, 3672, 62, 3365, 33411, 3277, 796, 366, 18223, 275, 799, 391, 1 ]
Top users with gold Angular badges.
SELECT UserId AS "user_link", COUNT(*) AS c FROM Badges WHERE Name IN ('angular') AND Class = 1 GROUP BY UserId ORDER BY COUNT(*) DESC LIMIT 100
[ 9126, 2985, 351, 3869, 28147, 37583, 13, 46506, 11787, 7390, 7054, 366, 7220, 62, 8726, 1600, 327, 28270, 7, 28104, 7054, 269, 16034, 7772, 3212, 33411, 6530, 3268, 19203, 21413, 11537, 5357, 5016, 796, 352, 44441, 11050, 11787, 7390, 386...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2985, 351, 3869, 28147, 37583, 13, 46506, 11787, 7390, 7054, 366, 7220, 62, 8726, 1600, 327, 28270, 7, 28104, 7054, 269, 16034, 7772, 3212, 33411, 6530, 3268, 19203, 21413, 11537, 5357, 5016, 796, 352, 44441, 11050, 11787, 7390, 386...
Name the winner for date of nov 5, 1987
SELECT "Winner" FROM table_20457 WHERE "Match Date" = 'Nov 5, 1987'
[ 5376, 262, 8464, 329, 3128, 286, 645, 85, 642, 11, 12923, 46506, 366, 48056, 1, 16034, 3084, 62, 1238, 33032, 33411, 366, 23850, 7536, 1, 796, 705, 20795, 642, 11, 12923, 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, 8464, 329, 3128, 286, 645, 85, 642, 11, 12923, 46506, 366, 48056, 1, 16034, 3084, 62, 1238, 33032, 33411, 366, 23850, 7536, 1, 796, 705, 20795, 642, 11, 12923, 6 ]
How many types of products have Rodrick Heaney bought in total?
SELECT COUNT(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney"
[ 2437, 867, 3858, 286, 3186, 423, 6882, 5557, 679, 22297, 5839, 287, 2472, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 18, 13, 11167, 62, 312, 8, 16034, 4297, 7054, 256, 16, 32357, 1268, 6491, 62, 6361, 7054, 256, 17, 6177, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2437, 867, 3858, 286, 3186, 423, 6882, 5557, 679, 22297, 5839, 287, 2472, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 18, 13, 11167, 62, 312, 8, 16034, 4297, 7054, 256, 16, 32357, 1268, 6491, 62, 6361, 7054, 256, 17, 6177, ...
What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974?
SELECT "Career W\u2013L" FROM table_51819 WHERE "1968" = 'a' AND "1974" = '4r'
[ 2061, 318, 262, 3451, 370, 12, 43, 286, 262, 7756, 326, 318, 5610, 355, 317, 287, 15963, 290, 604, 49, 287, 16489, 30, 46506, 366, 17784, 263, 370, 59, 84, 6390, 43, 1, 16034, 3084, 62, 44085, 1129, 33411, 366, 42246, 1, 796, 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 ]
[ 2061, 318, 262, 3451, 370, 12, 43, 286, 262, 7756, 326, 318, 5610, 355, 317, 287, 15963, 290, 604, 49, 287, 16489, 30, 46506, 366, 17784, 263, 370, 59, 84, 6390, 43, 1, 16034, 3084, 62, 44085, 1129, 33411, 366, 42246, 1, 796, 705,...
what is the number of clinic referral/premature admission patients who have myco500t drug code?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND prescriptions.formulary_drug_cd = "MYCO500T"
[ 10919, 318, 262, 1271, 286, 15760, 31413, 14, 31605, 1300, 13938, 3871, 508, 423, 616, 1073, 4059, 83, 2563, 2438, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1271, 286, 15760, 31413, 14, 31605, 1300, 13938, 3871, 508, 423, 616, 1073, 4059, 83, 2563, 2438, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 3...
With a Total of more than 149, what is Davis Love III's To par?
SELECT AVG(to_par) FROM table_name_88 WHERE player = "davis love iii" AND total > 149
[ 3152, 257, 7472, 286, 517, 621, 24041, 11, 644, 318, 7802, 5896, 6711, 338, 1675, 1582, 30, 46506, 35224, 7, 1462, 62, 1845, 8, 16034, 3084, 62, 3672, 62, 3459, 33411, 2137, 796, 366, 67, 23401, 1842, 46955, 1, 5357, 2472, 1875, 240...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 257, 7472, 286, 517, 621, 24041, 11, 644, 318, 7802, 5896, 6711, 338, 1675, 1582, 30, 46506, 35224, 7, 1462, 62, 1845, 8, 16034, 3084, 62, 3672, 62, 3459, 33411, 2137, 796, 366, 67, 23401, 1842, 46955, 1, 5357, 2472, 1875, 240...
What is the original team that was Hired by Trump (5-19-2005)?
SELECT original_team FROM table_name_84 WHERE result = "hired by trump (5-19-2005)"
[ 2061, 318, 262, 2656, 1074, 326, 373, 367, 1202, 416, 1301, 357, 20, 12, 1129, 12, 14315, 19427, 46506, 2656, 62, 15097, 16034, 3084, 62, 3672, 62, 5705, 33411, 1255, 796, 366, 71, 1202, 416, 19997, 357, 20, 12, 1129, 12, 14315, 167...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2656, 1074, 326, 373, 367, 1202, 416, 1301, 357, 20, 12, 1129, 12, 14315, 19427, 46506, 2656, 62, 15097, 16034, 3084, 62, 3672, 62, 5705, 33411, 1255, 796, 366, 71, 1202, 416, 19997, 357, 20, 12, 1129, 12, 14315, 167...
when was the last time patient 65401 was prescribed medication through the ed route in 10/2105?
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65401) AND prescriptions.route = 'ed' AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-10' ORDER BY prescriptions.startdate DESC LIMIT 1
[ 12518, 373, 262, 938, 640, 5827, 718, 4051, 486, 373, 14798, 14103, 832, 262, 1225, 6339, 287, 838, 14, 17, 13348, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 1810...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 373, 262, 938, 640, 5827, 718, 4051, 486, 373, 14798, 14103, 832, 262, 1225, 6339, 287, 838, 14, 17, 13348, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 1810...
PATH 585 and 520 have what prerequisites ?
SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE (COURSE_1.number = 585 OR COURSE_1.number = 520) AND COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.depar...
[ 34219, 642, 5332, 290, 36141, 423, 644, 662, 34075, 5633, 46506, 360, 8808, 1268, 4177, 37384, 5188, 62, 15, 13, 10378, 1823, 11, 37384, 5188, 62, 15, 13, 3672, 11, 37384, 5188, 62, 15, 13, 17618, 16034, 1781, 7054, 37384, 5188, 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...
[ 34219, 642, 5332, 290, 36141, 423, 644, 662, 34075, 5633, 46506, 360, 8808, 1268, 4177, 37384, 5188, 62, 15, 13, 10378, 1823, 11, 37384, 5188, 62, 15, 13, 3672, 11, 37384, 5188, 62, 15, 13, 17618, 16034, 1781, 7054, 37384, 5188, 62, ...
What is the highest total for evm votes
SELECT MAX("Total EVM Votes") FROM table_26523
[ 2061, 318, 262, 4511, 2472, 329, 819, 76, 5690, 46506, 25882, 7203, 14957, 8696, 44, 39584, 4943, 16034, 3084, 62, 22980, 1954 ]
[ 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, 2472, 329, 819, 76, 5690, 46506, 25882, 7203, 14957, 8696, 44, 39584, 4943, 16034, 3084, 62, 22980, 1954 ]
What is the average rating for right-footed players and left-footed players?
SELECT preferred_foot, AVG(overall_rating) FROM Player_Attributes GROUP BY preferred_foot
[ 2061, 318, 262, 2811, 7955, 329, 826, 12, 43127, 1938, 290, 1364, 12, 43127, 1938, 30, 46506, 9871, 62, 5898, 11, 35224, 7, 2502, 439, 62, 8821, 8, 16034, 7853, 62, 29021, 44441, 11050, 9871, 62, 5898 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7955, 329, 826, 12, 43127, 1938, 290, 1364, 12, 43127, 1938, 30, 46506, 9871, 62, 5898, 11, 35224, 7, 2502, 439, 62, 8821, 8, 16034, 7853, 62, 29021, 44441, 11050, 9871, 62, 5898 ]
With the Ground of Humber College North at 12:00, what was the Away?
SELECT "Away" FROM table_75788 WHERE "Ground" = 'humber college north' AND "Time" = '12:00'
[ 3152, 262, 13706, 286, 367, 4494, 5535, 2258, 379, 1105, 25, 405, 11, 644, 373, 262, 21986, 30, 46506, 366, 32, 1014, 1, 16034, 3084, 62, 39251, 3459, 33411, 366, 35539, 1, 796, 705, 71, 4494, 4152, 5093, 6, 5357, 366, 7575, 1, 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 ]
[ 3152, 262, 13706, 286, 367, 4494, 5535, 2258, 379, 1105, 25, 405, 11, 644, 373, 262, 21986, 30, 46506, 366, 32, 1014, 1, 16034, 3084, 62, 39251, 3459, 33411, 366, 35539, 1, 796, 705, 71, 4494, 4152, 5093, 6, 5357, 366, 7575, 1, 79...
Find the names of the users whose number of followers is greater than that of the user named 'Tyler Swift'.
SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')
[ 16742, 262, 3891, 286, 262, 2985, 3025, 1271, 286, 10569, 318, 3744, 621, 326, 286, 262, 2836, 3706, 705, 46807, 15608, 4458, 46506, 309, 16, 13, 3672, 16034, 2836, 62, 5577, 2915, 7054, 309, 16, 32357, 1268, 5679, 7054, 309, 17, 6177...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 3891, 286, 262, 2985, 3025, 1271, 286, 10569, 318, 3744, 621, 326, 286, 262, 2836, 3706, 705, 46807, 15608, 4458, 46506, 309, 16, 13, 3672, 16034, 2836, 62, 5577, 2915, 7054, 309, 16, 32357, 1268, 5679, 7054, 309, 17, 6177...
if you added all the total 's up , what would the number be ?
SELECT SUM("total") FROM table_204_952
[ 361, 345, 2087, 477, 262, 2472, 705, 82, 510, 837, 644, 561, 262, 1271, 307, 5633, 46506, 35683, 7203, 23350, 4943, 16034, 3084, 62, 18638, 62, 49234 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 361, 345, 2087, 477, 262, 2472, 705, 82, 510, 837, 644, 561, 262, 1271, 307, 5633, 46506, 35683, 7203, 23350, 4943, 16034, 3084, 62, 18638, 62, 49234 ]
when was the last time patient 013-3028 was discharged in 2104 from the hospital?
SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '013-3028' AND STRFTIME('%y', patient.hospitaldischargetime) = '2104' ORDER BY patient.hospitaldischargetime DESC LIMIT 1
[ 12518, 373, 262, 938, 640, 5827, 5534, 18, 12, 1270, 2078, 373, 26476, 287, 362, 13464, 422, 262, 4436, 30, 46506, 5827, 13, 49257, 6381, 354, 7641, 524, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 30273, 12, 1270, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 373, 262, 938, 640, 5827, 5534, 18, 12, 1270, 2078, 373, 26476, 287, 362, 13464, 422, 262, 4436, 30, 46506, 5827, 13, 49257, 6381, 354, 7641, 524, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 30273, 12, 1270, ...
what is the difference between patient 009-10951's bun last measured on the last hospital visit compared to the value first measured on the last hospital visit?
SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-10951' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi...
[ 10919, 318, 262, 3580, 1022, 5827, 3571, 24, 12, 940, 50119, 338, 28773, 938, 8630, 319, 262, 938, 4436, 3187, 3688, 284, 262, 1988, 717, 8630, 319, 262, 938, 4436, 3187, 30, 46506, 357, 46506, 2248, 13, 23912, 20274, 16034, 2248, 334...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3580, 1022, 5827, 3571, 24, 12, 940, 50119, 338, 28773, 938, 8630, 319, 262, 938, 4436, 3187, 3688, 284, 262, 1988, 717, 8630, 319, 262, 938, 4436, 3187, 30, 46506, 357, 46506, 2248, 13, 23912, 20274, 16034, 2248, 334...
Which score has a Record of 44-49?
SELECT score FROM table_name_96 WHERE record = "44-49"
[ 13828, 4776, 468, 257, 13266, 286, 5846, 12, 2920, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 4846, 33411, 1700, 796, 366, 2598, 12, 2920, 1 ]
[ 1, 1, 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, 4776, 468, 257, 13266, 286, 5846, 12, 2920, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 4846, 33411, 1700, 796, 366, 2598, 12, 2920, 1 ]
Average sum of scores for all answers of a question.
SELECT AVG(q.Score * 1.0), AVG(a.Score * 1.0) FROM Posts AS q INNER JOIN (SELECT DISTINCT a.ParentId, SUM(a.Score) AS "score" FROM Posts AS a WHERE a.PostTypeId = 2 GROUP BY a.ParentId) AS a ON q.Id = a.ParentId WHERE q.PostTypeId = 1 AND q.ClosedDate IS NULL AND q.Score <= 0 AND q.ViewCount >= 2000
[ 26287, 2160, 286, 8198, 329, 477, 7429, 286, 257, 1808, 13, 46506, 35224, 7, 80, 13, 26595, 1635, 352, 13, 15, 828, 35224, 7, 64, 13, 26595, 1635, 352, 13, 15, 8, 16034, 12043, 7054, 10662, 3268, 21479, 32357, 1268, 357, 46506, 360,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2160, 286, 8198, 329, 477, 7429, 286, 257, 1808, 13, 46506, 35224, 7, 80, 13, 26595, 1635, 352, 13, 15, 828, 35224, 7, 64, 13, 26595, 1635, 352, 13, 15, 8, 16034, 12043, 7054, 10662, 3268, 21479, 32357, 1268, 357, 46506, 360,...
How many picks did Mike Zaher have?
SELECT SUM("Pick #") FROM table_5199 WHERE "Player" = 'mike zaher'
[ 2437, 867, 11103, 750, 4995, 44210, 372, 423, 30, 46506, 35683, 7203, 31686, 1303, 4943, 16034, 3084, 62, 20, 19104, 33411, 366, 14140, 1, 796, 705, 76, 522, 1976, 64, 372, 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 ]
[ 2437, 867, 11103, 750, 4995, 44210, 372, 423, 30, 46506, 35683, 7203, 31686, 1303, 4943, 16034, 3084, 62, 20, 19104, 33411, 366, 14140, 1, 796, 705, 76, 522, 1976, 64, 372, 6 ]
Which Event has the Opponent, Jason Yee?
SELECT "Event" FROM table_10881 WHERE "Opponent" = 'jason yee'
[ 13828, 8558, 468, 262, 9385, 3471, 11, 8982, 575, 1453, 30, 46506, 366, 9237, 1, 16034, 3084, 62, 940, 3459, 16, 33411, 366, 27524, 3471, 1, 796, 705, 73, 888, 331, 1453, 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 ]
[ 13828, 8558, 468, 262, 9385, 3471, 11, 8982, 575, 1453, 30, 46506, 366, 9237, 1, 16034, 3084, 62, 940, 3459, 16, 33411, 366, 27524, 3471, 1, 796, 705, 73, 888, 331, 1453, 6 ]
Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.
SELECT type FROM institution WHERE founded > 1990 AND enrollment >= 1000
[ 15307, 262, 9901, 2099, 351, 281, 9901, 9393, 706, 6303, 290, 281, 9901, 351, 379, 1551, 8576, 20753, 13, 46506, 2099, 16034, 9901, 33411, 9393, 1875, 6303, 5357, 20753, 18189, 8576 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 9901, 2099, 351, 281, 9901, 9393, 706, 6303, 290, 281, 9901, 351, 379, 1551, 8576, 20753, 13, 46506, 2099, 16034, 9901, 33411, 9393, 1875, 6303, 5357, 20753, 18189, 8576 ]
Show the name of aircrafts with top three lowest distances.
SELECT name FROM Aircraft ORDER BY distance LIMIT 3
[ 15307, 262, 1438, 286, 6215, 82, 351, 1353, 1115, 9016, 18868, 13, 46506, 1438, 16034, 30767, 38678, 11050, 5253, 27564, 2043, 513 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 262, 1438, 286, 6215, 82, 351, 1353, 1115, 9016, 18868, 13, 46506, 1438, 16034, 30767, 38678, 11050, 5253, 27564, 2043, 513 ]
Last 30 days active users by rep score group.
SELECT CAST(usr.Reputation / 500 AS INT) * 500 AS RepScore, COUNT(*) AS Users FROM Users AS usr WHERE DATEDIFF(day, usr.LastAccessDate, GETDATE()) <= 30 GROUP BY CAST(usr.Reputation / 500 AS INT) * 500 ORDER BY RepScore
[ 5956, 1542, 1528, 4075, 2985, 416, 1128, 4776, 1448, 13, 46506, 327, 11262, 7, 14629, 13, 6207, 7094, 1220, 5323, 7054, 17828, 8, 1635, 5323, 7054, 1432, 26595, 11, 327, 28270, 7, 28104, 7054, 18987, 16034, 18987, 7054, 514, 81, 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...
[ 5956, 1542, 1528, 4075, 2985, 416, 1128, 4776, 1448, 13, 46506, 327, 11262, 7, 14629, 13, 6207, 7094, 1220, 5323, 7054, 17828, 8, 1635, 5323, 7054, 1432, 26595, 11, 327, 28270, 7, 28104, 7054, 18987, 16034, 18987, 7054, 514, 81, 33411, ...
what is the number of the premiere for the 34 peak
SELECT premiere FROM table_29633639_1 WHERE peak = 34
[ 10919, 318, 262, 1271, 286, 262, 19245, 329, 262, 4974, 9103, 46506, 19245, 16034, 3084, 62, 27137, 29211, 2670, 62, 16, 33411, 9103, 796, 4974 ]
[ 1, 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, 262, 19245, 329, 262, 4974, 9103, 46506, 19245, 16034, 3084, 62, 27137, 29211, 2670, 62, 16, 33411, 9103, 796, 4974 ]
How low was the San Juan income?
SELECT "Income poverty f" FROM table_18871 WHERE "District" = 'San Juan'
[ 2437, 1877, 373, 262, 2986, 16852, 3739, 30, 46506, 366, 818, 2958, 8098, 277, 1, 16034, 3084, 62, 20356, 4869, 33411, 366, 44857, 1, 796, 705, 15017, 16852, 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 ]
[ 2437, 1877, 373, 262, 2986, 16852, 3739, 30, 46506, 366, 818, 2958, 8098, 277, 1, 16034, 3084, 62, 20356, 4869, 33411, 366, 44857, 1, 796, 705, 15017, 16852, 6 ]
give me the number of patients whose discharge location is left against medical advi and procedure short title is coronar arteriogr-1 cath?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND procedures.short_title = "Coronar arteriogr-1 cath"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 1364, 1028, 3315, 1354, 72, 290, 8771, 1790, 3670, 318, 26920, 283, 30675, 72, 519, 81, 12, 16, 32171, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 1364, 1028, 3315, 1354, 72, 290, 8771, 1790, 3670, 318, 26920, 283, 30675, 72, 519, 81, 12, 16, 32171, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 3...
What is the lowest amount of floors in the building completed before 1970 ranked more than 14?
SELECT MIN("Floors") FROM table_56385 WHERE "Completed" < '1970' AND "Rank" > '14'
[ 2061, 318, 262, 9016, 2033, 286, 18570, 287, 262, 2615, 5668, 878, 8069, 10307, 517, 621, 1478, 30, 46506, 20625, 7203, 33574, 669, 4943, 16034, 3084, 62, 3980, 27203, 33411, 366, 43768, 1, 1279, 705, 30986, 6, 5357, 366, 27520, 1, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 2033, 286, 18570, 287, 262, 2615, 5668, 878, 8069, 10307, 517, 621, 1478, 30, 46506, 20625, 7203, 33574, 669, 4943, 16034, 3084, 62, 3980, 27203, 33411, 366, 43768, 1, 1279, 705, 30986, 6, 5357, 366, 27520, 1, 18...
Who attended Columbia law school and was appointed in 2004?
SELECT "Name" FROM table_42777 WHERE "Law School Attended" = 'columbia law school' AND "Appointed" = '2004'
[ 8241, 9141, 9309, 1099, 1524, 290, 373, 9899, 287, 5472, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 42363, 3324, 33411, 366, 16966, 3961, 3460, 1631, 1, 796, 705, 4033, 2178, 544, 1099, 1524, 6, 5357, 366, 4677, 20909, 1, 796, 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 ]
[ 8241, 9141, 9309, 1099, 1524, 290, 373, 9899, 287, 5472, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 42363, 3324, 33411, 366, 16966, 3961, 3460, 1631, 1, 796, 705, 4033, 2178, 544, 1099, 1524, 6, 5357, 366, 4677, 20909, 1, 796, 705, 1...
WHAT IS THE SKIP WITH A THIRD OF DEANNA DOIG?
SELECT "Skip" FROM table_44571 WHERE "Third" = 'deanna doig'
[ 32971, 3180, 3336, 14277, 4061, 13315, 317, 2320, 46833, 3963, 5550, 1565, 4535, 8410, 3528, 30, 46506, 366, 50232, 1, 16034, 3084, 62, 43489, 4869, 33411, 366, 22747, 1, 796, 705, 2934, 7697, 466, 328, 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 ]
[ 32971, 3180, 3336, 14277, 4061, 13315, 317, 2320, 46833, 3963, 5550, 1565, 4535, 8410, 3528, 30, 46506, 366, 50232, 1, 16034, 3084, 62, 43489, 4869, 33411, 366, 22747, 1, 796, 705, 2934, 7697, 466, 328, 6 ]
Comments that Mention Software Engineering Stack Exchange.
SELECT Id AS "comment_link", CreationDate FROM Comments WHERE (DATEDIFF(dd, CreationDate, 2016 - 10 - 21) < 0) AND (Text LIKE '%software%engineering%' OR Text LIKE '%programmers%') ORDER BY CreationDate DESC
[ 23903, 326, 337, 1463, 10442, 14044, 23881, 12516, 13, 46506, 5121, 7054, 366, 23893, 62, 8726, 1600, 21582, 10430, 16034, 19502, 33411, 357, 35, 11617, 29267, 7, 1860, 11, 21582, 10430, 11, 1584, 532, 838, 532, 2310, 8, 1279, 657, 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...
[ 23903, 326, 337, 1463, 10442, 14044, 23881, 12516, 13, 46506, 5121, 7054, 366, 23893, 62, 8726, 1600, 21582, 10430, 16034, 19502, 33411, 357, 35, 11617, 29267, 7, 1860, 11, 21582, 10430, 11, 1584, 532, 838, 532, 2310, 8, 1279, 657, 8, ...
Show the total number from each type, and I want to sort in descending by the y-axis.
SELECT Type, COUNT(*) FROM artwork GROUP BY Type ORDER BY COUNT(*) DESC
[ 15307, 262, 2472, 1271, 422, 1123, 2099, 11, 290, 314, 765, 284, 3297, 287, 31491, 416, 262, 331, 12, 22704, 13, 46506, 5994, 11, 327, 28270, 7, 28104, 16034, 16257, 44441, 11050, 5994, 38678, 11050, 327, 28270, 7, 28104, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 262, 2472, 1271, 422, 1123, 2099, 11, 290, 314, 765, 284, 3297, 287, 31491, 416, 262, 331, 12, 22704, 13, 46506, 5994, 11, 327, 28270, 7, 28104, 16034, 16257, 44441, 11050, 5994, 38678, 11050, 327, 28270, 7, 28104, 22196, 34 ]
What was the highest attendance of the matches that took place at Windy Hill?
SELECT MAX(crowd) FROM table_name_38 WHERE venue = "windy hill"
[ 2061, 373, 262, 4511, 14858, 286, 262, 7466, 326, 1718, 1295, 379, 3086, 88, 3327, 30, 46506, 25882, 7, 66, 3986, 8, 16034, 3084, 62, 3672, 62, 2548, 33411, 14359, 796, 366, 7972, 88, 12788, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4511, 14858, 286, 262, 7466, 326, 1718, 1295, 379, 3086, 88, 3327, 30, 46506, 25882, 7, 66, 3986, 8, 16034, 3084, 62, 3672, 62, 2548, 33411, 14359, 796, 366, 7972, 88, 12788, 1 ]
what is the total amount of output of patient 017-30318 has had on 09/01/this year?
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-30318')) AND intakeoutput.cellpath LIKE '%ou...
[ 10919, 318, 262, 2472, 2033, 286, 5072, 286, 5827, 5534, 22, 12, 22572, 1507, 468, 550, 319, 7769, 14, 486, 14, 5661, 614, 30, 46506, 35683, 7, 600, 539, 22915, 13, 3846, 2100, 84, 268, 39223, 8, 16034, 10337, 22915, 33411, 10337, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 2472, 2033, 286, 5072, 286, 5827, 5534, 22, 12, 22572, 1507, 468, 550, 319, 7769, 14, 486, 14, 5661, 614, 30, 46506, 35683, 7, 600, 539, 22915, 13, 3846, 2100, 84, 268, 39223, 8, 16034, 10337, 22915, 33411, 10337, 2...
How many laps does the one ranked 16 have?
SELECT laps FROM table_name_1 WHERE rank = "16"
[ 2437, 867, 24590, 857, 262, 530, 10307, 1467, 423, 30, 46506, 24590, 16034, 3084, 62, 3672, 62, 16, 33411, 4279, 796, 366, 1433, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 24590, 857, 262, 530, 10307, 1467, 423, 30, 46506, 24590, 16034, 3084, 62, 3672, 62, 16, 33411, 4279, 796, 366, 1433, 1 ]
Which clubs had draws of 9?
SELECT club FROM table_18018248_2 WHERE draws = 9
[ 13828, 9784, 550, 14293, 286, 860, 30, 46506, 3430, 16034, 3084, 62, 1507, 29159, 23045, 62, 17, 33411, 14293, 796, 860 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 9784, 550, 14293, 286, 860, 30, 46506, 3430, 16034, 3084, 62, 1507, 29159, 23045, 62, 17, 33411, 14293, 796, 860 ]
What's the average of the amount of laps for the driver patrick tambay?
SELECT AVG(laps) FROM table_name_64 WHERE driver = "patrick tambay"
[ 2061, 338, 262, 2811, 286, 262, 2033, 286, 24590, 329, 262, 4639, 1458, 5557, 256, 4131, 323, 30, 46506, 35224, 7, 75, 1686, 8, 16034, 3084, 62, 3672, 62, 2414, 33411, 4639, 796, 366, 29615, 256, 4131, 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 ]
[ 2061, 338, 262, 2811, 286, 262, 2033, 286, 24590, 329, 262, 4639, 1458, 5557, 256, 4131, 323, 30, 46506, 35224, 7, 75, 1686, 8, 16034, 3084, 62, 3672, 62, 2414, 33411, 4639, 796, 366, 29615, 256, 4131, 323, 1 ]
Which artists have order # 1?
SELECT "Original artist" FROM table_74423 WHERE "Order #" = '1'
[ 13828, 7912, 423, 1502, 1303, 352, 30, 46506, 366, 20556, 6802, 1, 16034, 3084, 62, 22, 2598, 1954, 33411, 366, 18743, 1303, 1, 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, 1, 1, 1, 1, 1 ]
[ 13828, 7912, 423, 1502, 1303, 352, 30, 46506, 366, 20556, 6802, 1, 16034, 3084, 62, 22, 2598, 1954, 33411, 366, 18743, 1303, 1, 796, 705, 16, 6 ]
Last unreacted posts by user.
WITH Raw AS (SELECT MIN(Posts.OwnerUserId) AS OwnerUserId, Posts.Id AS PostId, MIN(Posts.CreationDate) AS CreationDate FROM Posts LEFT JOIN Votes ON Votes.PostId = Posts.Id AND Votes.VoteTypeId IN (1, 2, 3) WHERE Votes.Id IS NULL AND Posts.PostTypeId IN (1, 2) AND Posts.ClosedDate IS NULL GROUP BY Posts.Id), Raw2 AS (S...
[ 5956, 14880, 23800, 6851, 416, 2836, 13, 54, 10554, 16089, 7054, 357, 46506, 20625, 7, 21496, 13, 42419, 12982, 7390, 8, 7054, 23853, 12982, 7390, 11, 12043, 13, 7390, 7054, 2947, 7390, 11, 20625, 7, 21496, 13, 12443, 341, 10430, 8, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 5956, 14880, 23800, 6851, 416, 2836, 13, 54, 10554, 16089, 7054, 357, 46506, 20625, 7, 21496, 13, 42419, 12982, 7390, 8, 7054, 23853, 12982, 7390, 11, 12043, 13, 7390, 7054, 2947, 7390, 11, 20625, 7, 21496, 13, 12443, 341, 10430, 8, 7...
What is To par, when Total is less than 297, and when Finish is '1'?
SELECT "To par" FROM table_61267 WHERE "Total" < '297' AND "Finish" = '1'
[ 2061, 318, 1675, 1582, 11, 618, 7472, 318, 1342, 621, 41103, 11, 290, 618, 32585, 318, 705, 16, 30960, 46506, 366, 2514, 1582, 1, 16034, 3084, 62, 43610, 3134, 33411, 366, 14957, 1, 1279, 705, 26561, 6, 5357, 366, 48658, 1, 796, 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 ]
[ 2061, 318, 1675, 1582, 11, 618, 7472, 318, 1342, 621, 41103, 11, 290, 618, 32585, 318, 705, 16, 30960, 46506, 366, 2514, 1582, 1, 16034, 3084, 62, 43610, 3134, 33411, 366, 14957, 1, 1279, 705, 26561, 6, 5357, 366, 48658, 1, 796, 705...
What is the area of a nation has a population under 44,788,852, and a GDP greater than $83.351 billion?
SELECT COUNT("Area (km\u00b2)") FROM table_67869 WHERE "GDP (billion US$)" > '83.351' AND "Population" < '44,788,852'
[ 2061, 318, 262, 1989, 286, 257, 3277, 468, 257, 3265, 739, 5846, 11, 22, 3459, 11, 23, 4309, 11, 290, 257, 12396, 3744, 621, 720, 5999, 13, 35273, 2997, 30, 46506, 327, 28270, 7203, 30547, 357, 13276, 59, 84, 405, 65, 17, 8, 4943,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 318, 262, 1989, 286, 257, 3277, 468, 257, 3265, 739, 5846, 11, 22, 3459, 11, 23, 4309, 11, 290, 257, 12396, 3744, 621, 720, 5999, 13, 35273, 2997, 30, 46506, 327, 28270, 7203, 30547, 357, 13276, 59, 84, 405, 65, 17, 8, 4943,...