instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
What tournament since 1973 has a result of 1st?
SELECT "Tournament" FROM table_58027 WHERE "Result" = '1st' AND "Year" > '1973'
[ 2061, 7756, 1201, 15674, 468, 257, 1255, 286, 352, 301, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 39322, 1983, 33411, 366, 23004, 1, 796, 705, 16, 301, 6, 5357, 366, 17688, 1, 1875, 705, 40220, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 7756, 1201, 15674, 468, 257, 1255, 286, 352, 301, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 39322, 1983, 33411, 366, 23004, 1, 796, 705, 16, 301, 6, 5357, 366, 17688, 1, 1875, 705, 40220, 6 ]
What is the Points that has 61 - 15 Point difference and a Drawn larger than 1?
SELECT AVG(points) FROM table_name_80 WHERE points_difference = "61 - 15" AND drawn > 1
[ 2061, 318, 262, 11045, 326, 468, 8454, 532, 1315, 6252, 3580, 290, 257, 50061, 4025, 621, 352, 30, 46506, 35224, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 1795, 33411, 2173, 62, 26069, 1945, 796, 366, 5333, 532, 1315, 1, 5357, 7428, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11045, 326, 468, 8454, 532, 1315, 6252, 3580, 290, 257, 50061, 4025, 621, 352, 30, 46506, 35224, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 1795, 33411, 2173, 62, 26069, 1945, 796, 366, 5333, 532, 1315, 1, 5357, 7428, 1...
what's the turing complete with name being atanasoff berry computer (us)
SELECT "Turing complete" FROM table_72468 WHERE "Name" = 'Atanasoff–Berry Computer (US)'
[ 10919, 338, 262, 256, 870, 1844, 351, 1438, 852, 379, 15991, 2364, 275, 6996, 3644, 357, 385, 8, 46506, 366, 51, 870, 1844, 1, 16034, 3084, 62, 22, 1731, 3104, 33411, 366, 5376, 1, 796, 705, 2953, 15991, 2364, 1906, 25215, 13851, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 256, 870, 1844, 351, 1438, 852, 379, 15991, 2364, 275, 6996, 3644, 357, 385, 8, 46506, 366, 51, 870, 1844, 1, 16034, 3084, 62, 22, 1731, 3104, 33411, 366, 5376, 1, 796, 705, 2953, 15991, 2364, 1906, 25215, 13851, 35...
Show me maximal stu gpa by dept code in a histogram, and display in desc by the bars.
SELECT DEPT_CODE, MAX(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE ORDER BY DEPT_CODE DESC
[ 15307, 502, 40708, 336, 84, 308, 8957, 416, 390, 457, 2438, 287, 257, 1554, 21857, 11, 290, 3359, 287, 1715, 416, 262, 9210, 13, 46506, 5550, 11571, 62, 34, 16820, 11, 25882, 7, 2257, 52, 62, 38, 4537, 8, 16034, 49348, 3525, 44441, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 502, 40708, 336, 84, 308, 8957, 416, 390, 457, 2438, 287, 257, 1554, 21857, 11, 290, 3359, 287, 1715, 416, 262, 9210, 13, 46506, 5550, 11571, 62, 34, 16820, 11, 25882, 7, 2257, 52, 62, 38, 4537, 8, 16034, 49348, 3525, 44441, ...
Count the total number of students.
SELECT COUNT(*) FROM student
[ 12332, 262, 2472, 1271, 286, 2444, 13, 46506, 327, 28270, 7, 28104, 16034, 3710 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12332, 262, 2472, 1271, 286, 2444, 13, 46506, 327, 28270, 7, 28104, 16034, 3710 ]
Find the names of customers who ordered both products Latte and Americano.
SELECT t1.customer_name 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 JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orde...
[ 16742, 262, 3891, 286, 4297, 508, 6149, 1111, 3186, 5476, 660, 290, 1605, 78, 13, 46506, 256, 16, 13, 23144, 263, 62, 3672, 16034, 4297, 7054, 256, 16, 32357, 1268, 6491, 62, 6361, 7054, 256, 17, 6177, 256, 16, 13, 23144, 263, 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...
[ 16742, 262, 3891, 286, 4297, 508, 6149, 1111, 3186, 5476, 660, 290, 1605, 78, 13, 46506, 256, 16, 13, 23144, 263, 62, 3672, 16034, 4297, 7054, 256, 16, 32357, 1268, 6491, 62, 6361, 7054, 256, 17, 6177, 256, 16, 13, 23144, 263, 62, ...
Name the number for autom vil club argentino for juan manuel fangio
SELECT no FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Juan Manuel Fangio"
[ 5376, 262, 1271, 329, 3557, 39796, 3430, 1822, 298, 2879, 329, 474, 7258, 582, 2731, 277, 648, 952, 46506, 645, 16034, 3084, 62, 28896, 3324, 32869, 62, 16, 33411, 920, 5250, 796, 366, 38062, 10205, 2991, 6289, 12335, 2879, 1, 5357, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 1271, 329, 3557, 39796, 3430, 1822, 298, 2879, 329, 474, 7258, 582, 2731, 277, 648, 952, 46506, 645, 16034, 3084, 62, 28896, 3324, 32869, 62, 16, 33411, 920, 5250, 796, 366, 38062, 10205, 2991, 6289, 12335, 2879, 1, 5357, 4...
how many patients are admitted under emergency room admit and diagnosed with icd9 code 78559?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND diagnoses.icd9_code = "78559"
[ 4919, 867, 3871, 389, 6848, 739, 6334, 2119, 9159, 290, 14641, 351, 14158, 67, 24, 2438, 8699, 38605, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 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...
[ 4919, 867, 3871, 389, 6848, 739, 6334, 2119, 9159, 290, 14641, 351, 14158, 67, 24, 2438, 8699, 38605, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 1...
What is Location, when Game is 42?
SELECT "Location" FROM table_9897 WHERE "Game" = '42'
[ 2061, 318, 13397, 11, 618, 3776, 318, 5433, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 4089, 5607, 33411, 366, 8777, 1, 796, 705, 3682, 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, 318, 13397, 11, 618, 3776, 318, 5433, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 4089, 5607, 33411, 366, 8777, 1, 796, 705, 3682, 6 ]
how many games did this team play in 1982 ?
SELECT COUNT(*) FROM table_204_814
[ 4919, 867, 1830, 750, 428, 1074, 711, 287, 14489, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 23, 1415 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 1830, 750, 428, 1074, 711, 287, 14489, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 23, 1415 ]
What is Italy's UNWTO region?
SELECT "UNWTO Region" FROM table_39735 WHERE "Country" = 'italy'
[ 2061, 318, 8031, 338, 4725, 54, 10468, 3814, 30, 46506, 366, 4944, 54, 10468, 17718, 1, 16034, 3084, 62, 33372, 2327, 33411, 366, 33921, 1, 796, 705, 1287, 88, 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, 8031, 338, 4725, 54, 10468, 3814, 30, 46506, 366, 4944, 54, 10468, 17718, 1, 16034, 3084, 62, 33372, 2327, 33411, 366, 33921, 1, 796, 705, 1287, 88, 6 ]
What was the date of the match against Jean-Julien Rojer, on a clay surface?
SELECT "Date" FROM table_68454 WHERE "Surface" = 'clay' AND "Opponent" = 'jean-julien rojer'
[ 2061, 373, 262, 3128, 286, 262, 2872, 1028, 11320, 12, 16980, 2013, 5564, 44009, 11, 319, 257, 21558, 4417, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 3104, 34229, 33411, 366, 14214, 2550, 1, 796, 705, 565, 323, 6, 5357, 366, 27524, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3128, 286, 262, 2872, 1028, 11320, 12, 16980, 2013, 5564, 44009, 11, 319, 257, 21558, 4417, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 3104, 34229, 33411, 366, 14214, 2550, 1, 796, 705, 565, 323, 6, 5357, 366, 27524, ...
How many games played for teams with 277 points?
SELECT "Played" FROM table_20099 WHERE "Points for" = '277'
[ 2437, 867, 1830, 2826, 329, 3466, 351, 38703, 2173, 30, 46506, 366, 11002, 276, 1, 16034, 3084, 62, 2167, 2079, 33411, 366, 40710, 329, 1, 796, 705, 27019, 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, 867, 1830, 2826, 329, 3466, 351, 38703, 2173, 30, 46506, 366, 11002, 276, 1, 16034, 3084, 62, 2167, 2079, 33411, 366, 40710, 329, 1, 796, 705, 27019, 6 ]
Show the names of clubs that have players with position 'Right Wing'.
SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = "Right Wing"
[ 15307, 262, 3891, 286, 9784, 326, 423, 1938, 351, 2292, 705, 11028, 13405, 4458, 46506, 309, 16, 13, 3672, 16034, 3430, 7054, 309, 16, 32357, 1268, 2137, 7054, 309, 17, 6177, 309, 16, 13, 42350, 62, 2389, 796, 309, 17, 13, 42350, 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 ]
[ 15307, 262, 3891, 286, 9784, 326, 423, 1938, 351, 2292, 705, 11028, 13405, 4458, 46506, 309, 16, 13, 3672, 16034, 3430, 7054, 309, 16, 32357, 1268, 2137, 7054, 309, 17, 6177, 309, 16, 13, 42350, 62, 2389, 796, 309, 17, 13, 42350, 62...
what is the number of patients whose diagnoses icd9 code is v6284 and drug type is base?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "V6284" AND prescriptions.drug_type = "BASE"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 40567, 14158, 67, 24, 2438, 318, 410, 21, 30336, 290, 2563, 2099, 318, 2779, 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...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 40567, 14158, 67, 24, 2438, 318, 410, 21, 30336, 290, 2563, 2099, 318, 2779, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268,...
If the letters is , what is the founding date?
SELECT founding_date FROM table_2538117_7 WHERE letters = "ΦΑΝ"
[ 1532, 262, 7475, 318, 837, 644, 318, 262, 16636, 3128, 30, 46506, 16636, 62, 4475, 16034, 3084, 62, 1495, 2548, 17657, 62, 22, 33411, 7475, 796, 366, 138, 99, 138, 239, 138, 251, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1532, 262, 7475, 318, 837, 644, 318, 262, 16636, 3128, 30, 46506, 16636, 62, 4475, 16034, 3084, 62, 1495, 2548, 17657, 62, 22, 33411, 7475, 796, 366, 138, 99, 138, 239, 138, 251, 1 ]
what were the top three most frequent diagnosis that patients received within 2 months after they were diagnosed with intra-abdominal abscess - intestinal?
SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'intra-abdominal abscess - intestinal') A...
[ 10919, 547, 262, 1353, 1115, 749, 10792, 13669, 326, 3871, 2722, 1626, 362, 1933, 706, 484, 547, 14641, 351, 23422, 12, 397, 3438, 1292, 2352, 919, 532, 32031, 30, 46506, 256, 18, 13, 47356, 5958, 3672, 16034, 357, 46506, 256, 17, 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, 547, 262, 1353, 1115, 749, 10792, 13669, 326, 3871, 2722, 1626, 362, 1933, 706, 484, 547, 14641, 351, 23422, 12, 397, 3438, 1292, 2352, 919, 532, 32031, 30, 46506, 256, 18, 13, 47356, 5958, 3672, 16034, 357, 46506, 256, 17, 13,...
What are the details and ways to get to tourist attractions related to royal family?
SELECT T1.royal_family_details, T2.how_to_get_there FROM royal_family AS T1 JOIN tourist_attractions AS T2 ON T1.royal_family_id = T2.tourist_attraction_id
[ 2061, 389, 262, 3307, 290, 2842, 284, 651, 284, 18473, 29156, 3519, 284, 15100, 1641, 30, 46506, 309, 16, 13, 3287, 282, 62, 17989, 62, 36604, 11, 309, 17, 13, 4919, 62, 1462, 62, 1136, 62, 8117, 16034, 15100, 62, 17989, 7054, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 3307, 290, 2842, 284, 651, 284, 18473, 29156, 3519, 284, 15100, 1641, 30, 46506, 309, 16, 13, 3287, 282, 62, 17989, 62, 36604, 11, 309, 17, 13, 4919, 62, 1462, 62, 1136, 62, 8117, 16034, 15100, 62, 17989, 7054, 309, ...
How many attempts for Bobby Layne?
SELECT MIN(attempts) FROM table_19418696_3 WHERE name = "Bobby Layne"
[ 2437, 867, 6370, 329, 17155, 18881, 710, 30, 46506, 20625, 7, 1078, 1791, 82, 8, 16034, 3084, 62, 22913, 1507, 38205, 62, 18, 33411, 1438, 796, 366, 33, 11369, 18881, 710, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 6370, 329, 17155, 18881, 710, 30, 46506, 20625, 7, 1078, 1791, 82, 8, 16034, 3084, 62, 22913, 1507, 38205, 62, 18, 33411, 1438, 796, 366, 33, 11369, 18881, 710, 1 ]
VoteTypeId 1 for a given post.
SELECT * FROM Votes AS vv1 WHERE vv1.PostId = '##postid##' AND vv1.VoteTypeId = 1
[ 37394, 6030, 7390, 352, 329, 257, 1813, 1281, 13, 46506, 1635, 16034, 39584, 7054, 410, 85, 16, 33411, 410, 85, 16, 13, 6307, 7390, 796, 705, 2235, 7353, 312, 2235, 6, 5357, 410, 85, 16, 13, 37394, 6030, 7390, 796, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 37394, 6030, 7390, 352, 329, 257, 1813, 1281, 13, 46506, 1635, 16034, 39584, 7054, 410, 85, 16, 33411, 410, 85, 16, 13, 6307, 7390, 796, 705, 2235, 7353, 312, 2235, 6, 5357, 410, 85, 16, 13, 37394, 6030, 7390, 796, 352 ]
what is the attendance on the date of october 16 and the game is more than 5?
SELECT SUM(attendance) FROM table_name_59 WHERE date = "october 16" AND game > 5
[ 10919, 318, 262, 14858, 319, 262, 3128, 286, 19318, 2023, 1467, 290, 262, 983, 318, 517, 621, 642, 30, 46506, 35683, 7, 1078, 437, 590, 8, 16034, 3084, 62, 3672, 62, 3270, 33411, 3128, 796, 366, 38441, 2023, 1467, 1, 5357, 983, 1875...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14858, 319, 262, 3128, 286, 19318, 2023, 1467, 290, 262, 983, 318, 517, 621, 642, 30, 46506, 35683, 7, 1078, 437, 590, 8, 16034, 3084, 62, 3672, 62, 3270, 33411, 3128, 796, 366, 38441, 2023, 1467, 1, 5357, 983, 1875...
What is the Song with an Issue Date(s) that is 19 june?
SELECT "Song" FROM table_42482 WHERE "Issue Date(s)" = '19 june'
[ 2061, 318, 262, 10940, 351, 281, 18232, 7536, 7, 82, 8, 326, 318, 678, 474, 1726, 30, 46506, 366, 44241, 1, 16034, 3084, 62, 40090, 6469, 33411, 366, 45147, 7536, 7, 82, 16725, 796, 705, 1129, 474, 1726, 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, 10940, 351, 281, 18232, 7536, 7, 82, 8, 326, 318, 678, 474, 1726, 30, 46506, 366, 44241, 1, 16034, 3084, 62, 40090, 6469, 33411, 366, 45147, 7536, 7, 82, 16725, 796, 705, 1129, 474, 1726, 6 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of first_name and employee_id , and sort bars from high to low order please.
SELECT FIRST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME DESC
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 717, 62, 3672, 290, 6538, 62, 312, 837, 290, 3297, 9210, 422, 1029, 284, 1877, 1502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 717, 62, 3672, 290, 6538, 62, 312, 837, 290, 3297, 9210, 422, 1029, 284, 1877, 1502, ...
Most commonly reported locations on user profiles.
SELECT Location, COUNT(*) AS UserCount, SUM(Reputation) AS TotalRep, CAST(SUM(Reputation) AS FLOAT(12, 3)) / COUNT(*) AS AvgRep FROM Users WHERE Location != '' GROUP BY Location HAVING COUNT(*) >= 100 ORDER BY UserCount DESC, TotalRep DESC, AvgRep DESC LIMIT 1000
[ 6943, 8811, 2098, 7064, 319, 2836, 16545, 13, 46506, 13397, 11, 327, 28270, 7, 28104, 7054, 11787, 12332, 11, 35683, 7, 6207, 7094, 8, 7054, 7472, 6207, 11, 327, 11262, 7, 50, 5883, 7, 6207, 7094, 8, 7054, 9977, 46, 1404, 7, 1065, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 6943, 8811, 2098, 7064, 319, 2836, 16545, 13, 46506, 13397, 11, 327, 28270, 7, 28104, 7054, 11787, 12332, 11, 35683, 7, 6207, 7094, 8, 7054, 7472, 6207, 11, 327, 11262, 7, 50, 5883, 7, 6207, 7094, 8, 7054, 9977, 46, 1404, 7, 1065, ...
Who was the men's single in 1940?
SELECT "Men's singles" FROM table_5345 WHERE "Year" = '1940'
[ 8241, 373, 262, 1450, 338, 2060, 287, 16236, 30, 46506, 366, 10418, 338, 25287, 1, 16034, 3084, 62, 4310, 2231, 33411, 366, 17688, 1, 796, 705, 1129, 1821, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 1450, 338, 2060, 287, 16236, 30, 46506, 366, 10418, 338, 25287, 1, 16034, 3084, 62, 4310, 2231, 33411, 366, 17688, 1, 796, 705, 1129, 1821, 6 ]
What's the total that the position is less than 1?
SELECT MIN(total) FROM table_name_31 WHERE position < 1
[ 2061, 338, 262, 2472, 326, 262, 2292, 318, 1342, 621, 352, 30, 46506, 20625, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 3132, 33411, 2292, 1279, 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 ]
[ 2061, 338, 262, 2472, 326, 262, 2292, 318, 1342, 621, 352, 30, 46506, 20625, 7, 23350, 8, 16034, 3084, 62, 3672, 62, 3132, 33411, 2292, 1279, 352 ]
how many times has Aaron Ogden (f), been a successor and has had a formal installation?
SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = "Aaron Ogden (F)"
[ 4919, 867, 1661, 468, 12139, 25686, 6559, 357, 69, 828, 587, 257, 17270, 290, 468, 550, 257, 8766, 9988, 30, 46506, 327, 28270, 7, 4475, 62, 1659, 62, 13138, 669, 62, 687, 282, 62, 17350, 341, 8, 16034, 3084, 62, 17, 23045, 1821, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1661, 468, 12139, 25686, 6559, 357, 69, 828, 587, 257, 17270, 290, 468, 550, 257, 8766, 9988, 30, 46506, 327, 28270, 7, 4475, 62, 1659, 62, 13138, 669, 62, 687, 282, 62, 17350, 341, 8, 16034, 3084, 62, 17, 23045, 1821, ...
For those records from the products and each product's manufacturer, visualize the relationship between price and manufacturer .
SELECT Price, Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 38350, 262, 2776, 1022, 2756, 290, 11554, 764, 46506, 7886, 11, 40218, 16034, 18675, 7054, 309, 16, 32357, 1268, 17858, 17496, 7054, 309, 17, 6177, 309, 16, 13, 44445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 38350, 262, 2776, 1022, 2756, 290, 11554, 764, 46506, 7886, 11, 40218, 16034, 18675, 7054, 309, 16, 32357, 1268, 17858, 17496, 7054, 309, 17, 6177, 309, 16, 13, 44445, ...
Who can vote on synonyms for a given tag?.
SELECT u.Id AS "user_link", CASE WHEN u.Reputation >= 2500 THEN 'yes' ELSE 'no' END AS "barrier", LastAccessDate FROM Users AS u WHERE 4 < (SELECT SUM(a.Score) FROM Posts AS a, Posts AS q, PostTags AS pt, Tags AS t WHERE u.Id = a.OwnerUserId AND a.PostTypeId = 2 AND q.PostTypeId = 1 AND a.ParentId = q.Id AND q.Id = pt....
[ 8241, 460, 3015, 319, 6171, 43612, 329, 257, 1813, 7621, 30, 13, 46506, 334, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 42001, 42099, 334, 13, 6207, 7094, 18189, 33507, 42243, 705, 8505, 6, 17852, 5188, 705, 3919, 6, 23578, 7054, 366,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 8241, 460, 3015, 319, 6171, 43612, 329, 257, 1813, 7621, 30, 13, 46506, 334, 13, 7390, 7054, 366, 7220, 62, 8726, 1600, 42001, 42099, 334, 13, 6207, 7094, 18189, 33507, 42243, 705, 8505, 6, 17852, 5188, 705, 3919, 6, 23578, 7054, 366,...
which year was the most pos .
SELECT "season" FROM table_204_179 WHERE "pos." = (SELECT MAX("pos.") FROM table_204_179)
[ 4758, 614, 373, 262, 749, 1426, 764, 46506, 366, 6230, 1, 16034, 3084, 62, 18638, 62, 21738, 33411, 366, 1930, 526, 796, 357, 46506, 25882, 7203, 1930, 19570, 16034, 3084, 62, 18638, 62, 21738, 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 ]
[ 4758, 614, 373, 262, 749, 1426, 764, 46506, 366, 6230, 1, 16034, 3084, 62, 18638, 62, 21738, 33411, 366, 1930, 526, 796, 357, 46506, 25882, 7203, 1930, 19570, 16034, 3084, 62, 18638, 62, 21738, 8 ]
What's the greek designation of the new york chapter with a charter date of april 23, 2005?
SELECT "Greek Designation" FROM table_60718 WHERE "U.S. State/District" = 'new york' AND "Charter Date" = 'april 23, 2005'
[ 2061, 338, 262, 308, 10316, 22566, 286, 262, 649, 331, 967, 6843, 351, 257, 17422, 3128, 286, 46593, 346, 2242, 11, 5075, 30, 46506, 366, 44059, 8495, 341, 1, 16034, 3084, 62, 31980, 1507, 33411, 366, 52, 13, 50, 13, 1812, 14, 44857...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 308, 10316, 22566, 286, 262, 649, 331, 967, 6843, 351, 257, 17422, 3128, 286, 46593, 346, 2242, 11, 5075, 30, 46506, 366, 44059, 8495, 341, 1, 16034, 3084, 62, 31980, 1507, 33411, 366, 52, 13, 50, 13, 1812, 14, 44857...
give me the number of patients whose admission type is elective and procedure icd9 code is 3613?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.icd9_code = "3613"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 13938, 2099, 318, 1742, 425, 290, 8771, 14158, 67, 24, 2438, 318, 4570, 1485, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26535, 502, 262, 1271, 286, 3871, 3025, 13938, 2099, 318, 1742, 425, 290, 8771, 14158, 67, 24, 2438, 318, 4570, 1485, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268...
A pie chart about how many customers use each payment method?
SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code
[ 32, 2508, 8262, 546, 703, 867, 4297, 779, 1123, 6074, 2446, 30, 46506, 6074, 62, 24396, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 36707, 44441, 11050, 6074, 62, 24396, 62, 8189 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 2508, 8262, 546, 703, 867, 4297, 779, 1123, 6074, 2446, 30, 46506, 6074, 62, 24396, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 36707, 44441, 11050, 6074, 62, 24396, 62, 8189 ]
what is marital status and gender of subject name miguel hodges?
SELECT demographic.marital_status, demographic.gender FROM demographic WHERE demographic.name = "Miguel Hodges"
[ 10919, 318, 29555, 3722, 290, 5279, 286, 2426, 1438, 37011, 2731, 289, 375, 3212, 30, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 16728, 13, 8388, 16034, 16728, 33411, 16728, 13, 3672, 796, 366, 44, 328, 2731, 22816, 3212, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29555, 3722, 290, 5279, 286, 2426, 1438, 37011, 2731, 289, 375, 3212, 30, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 16728, 13, 8388, 16034, 16728, 33411, 16728, 13, 3672, 796, 366, 44, 328, 2731, 22816, 3212, 1 ]
During the Hamburg Masters Tournament, during which Ji Nov k was absent(A) in 1998, how did he do in 1997?
SELECT "1997" FROM table_7416 WHERE "1998" = 'a' AND "Tournament" = 'hamburg masters'
[ 7191, 262, 32526, 15812, 9595, 11, 1141, 543, 29380, 5267, 479, 373, 13717, 7, 32, 8, 287, 7795, 11, 703, 750, 339, 466, 287, 8309, 30, 46506, 366, 21498, 1, 16034, 3084, 62, 4524, 1433, 33411, 366, 21113, 1, 796, 705, 64, 6, 5357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 7191, 262, 32526, 15812, 9595, 11, 1141, 543, 29380, 5267, 479, 373, 13717, 7, 32, 8, 287, 7795, 11, 703, 750, 339, 466, 287, 8309, 30, 46506, 366, 21498, 1, 16034, 3084, 62, 4524, 1433, 33411, 366, 21113, 1, 796, 705, 64, 6, 5357...
What upper level electives are offered for CS majors ?
SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id
[ 2061, 6727, 1241, 1742, 1083, 389, 4438, 329, 9429, 26353, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1430, 62, 17319, 33411, 1430, 62, 17319, 13, 22872, 34178, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6727, 1241, 1742, 1083, 389, 4438, 329, 9429, 26353, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1430, 62, 17319, 33411, 1430, 62, 17319, 13, 22872, 34178, ...
what ground transportation is there in OAKLAND
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'OAKLAND' AND ground_service.city_code = city.city_code
[ 10919, 2323, 9358, 318, 612, 287, 440, 10206, 28182, 46506, 360, 8808, 1268, 4177, 2323, 62, 15271, 13, 7645, 634, 62, 4906, 16034, 1748, 11, 2323, 62, 15271, 33411, 1748, 13, 19205, 62, 3672, 796, 705, 46, 10206, 28182, 6, 5357, 2323...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2323, 9358, 318, 612, 287, 440, 10206, 28182, 46506, 360, 8808, 1268, 4177, 2323, 62, 15271, 13, 7645, 634, 62, 4906, 16034, 1748, 11, 2323, 62, 15271, 33411, 1748, 13, 19205, 62, 3672, 796, 705, 46, 10206, 28182, 6, 5357, 2323...
Show the average of id from each nationality, and list in desc by the X please.
SELECT Nationality, AVG(ID) FROM swimmer GROUP BY Nationality ORDER BY Nationality DESC
[ 15307, 262, 2811, 286, 4686, 422, 1123, 29835, 11, 290, 1351, 287, 1715, 416, 262, 1395, 3387, 13, 46506, 2351, 414, 11, 35224, 7, 2389, 8, 16034, 9422, 647, 44441, 11050, 2351, 414, 38678, 11050, 2351, 414, 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 ]
[ 15307, 262, 2811, 286, 4686, 422, 1123, 29835, 11, 290, 1351, 287, 1715, 416, 262, 1395, 3387, 13, 46506, 2351, 414, 11, 35224, 7, 2389, 8, 16034, 9422, 647, 44441, 11050, 2351, 414, 38678, 11050, 2351, 414, 22196, 34 ]
How many games were played in the season?
SELECT MAX(game) FROM table_15873014_3
[ 2437, 867, 1830, 547, 2826, 287, 262, 1622, 30, 46506, 25882, 7, 6057, 8, 16034, 3084, 62, 21273, 4790, 28645, 62, 18 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1830, 547, 2826, 287, 262, 1622, 30, 46506, 25882, 7, 6057, 8, 16034, 3084, 62, 21273, 4790, 28645, 62, 18 ]
For Prof. Wen Zhou 's classes , do they always meet on Friday ?
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_offering.friday = ...
[ 1890, 4415, 13, 31164, 32222, 705, 82, 6097, 837, 466, 484, 1464, 1826, 319, 3217, 5633, 46506, 327, 28270, 7, 28104, 796, 657, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, 2364, 1586, 6177, 1781, 13, 17319, 62, 312, 796, 1781, 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, 4415, 13, 31164, 32222, 705, 82, 6097, 837, 466, 484, 1464, 1826, 319, 3217, 5633, 46506, 327, 28270, 7, 28104, 796, 657, 16034, 1781, 3268, 21479, 32357, 1268, 1781, 62, 2364, 1586, 6177, 1781, 13, 17319, 62, 312, 796, 1781, 62...
what's the result for first elected in 1948 , 1964
SELECT "Result" FROM table_18186 WHERE "First elected" = '1948 , 1964'
[ 10919, 338, 262, 1255, 329, 717, 7018, 287, 21794, 837, 17575, 46506, 366, 23004, 1, 16034, 3084, 62, 1507, 25096, 33411, 366, 5962, 7018, 1, 796, 705, 1129, 2780, 837, 17575, 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 ]
[ 10919, 338, 262, 1255, 329, 717, 7018, 287, 21794, 837, 17575, 46506, 366, 23004, 1, 16034, 3084, 62, 1507, 25096, 33411, 366, 5962, 7018, 1, 796, 705, 1129, 2780, 837, 17575, 6 ]
Which Superfund site has the CERCLIS ID fld980494959?
SELECT partially_deleted FROM table_name_78 WHERE cerclis_id = "fld980494959"
[ 13828, 3115, 10990, 2524, 468, 262, 327, 1137, 5097, 1797, 4522, 277, 335, 40022, 2920, 2920, 3270, 30, 46506, 12387, 62, 2934, 33342, 16034, 3084, 62, 3672, 62, 3695, 33411, 26074, 565, 271, 62, 312, 796, 366, 69, 335, 40022, 2920, 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 ]
[ 13828, 3115, 10990, 2524, 468, 262, 327, 1137, 5097, 1797, 4522, 277, 335, 40022, 2920, 2920, 3270, 30, 46506, 12387, 62, 2934, 33342, 16034, 3084, 62, 3672, 62, 3695, 33411, 26074, 565, 271, 62, 312, 796, 366, 69, 335, 40022, 2920, 2...
Please return me a bar chart show what are the average smallest rating of different movie title?, show from low to high by the stars).
SELECT T2.title, AVG(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY AVG(MIN(T1.stars))
[ 5492, 1441, 502, 257, 2318, 8262, 905, 644, 389, 262, 2811, 18197, 7955, 286, 1180, 3807, 3670, 21747, 905, 422, 1877, 284, 1029, 416, 262, 5788, 737, 46506, 309, 17, 13, 7839, 11, 35224, 7, 23678, 7, 51, 16, 13, 30783, 4008, 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...
[ 5492, 1441, 502, 257, 2318, 8262, 905, 644, 389, 262, 2811, 18197, 7955, 286, 1180, 3807, 3670, 21747, 905, 422, 1877, 284, 1029, 416, 262, 5788, 737, 46506, 309, 17, 13, 7839, 11, 35224, 7, 23678, 7, 51, 16, 13, 30783, 4008, 16034,...
Which landfall was in category 1 for Saffir-Simpson in 1999?
SELECT "Landfall" FROM table_75733 WHERE "Saffir-Simpson Category" = '1' AND "Year" = '1999'
[ 13828, 43682, 373, 287, 6536, 352, 329, 311, 2001, 343, 12, 8890, 8430, 287, 7358, 30, 46506, 366, 22342, 7207, 1, 16034, 3084, 62, 39251, 2091, 33411, 366, 50, 2001, 343, 12, 8890, 8430, 21743, 1, 796, 705, 16, 6, 5357, 366, 17688,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 43682, 373, 287, 6536, 352, 329, 311, 2001, 343, 12, 8890, 8430, 287, 7358, 30, 46506, 366, 22342, 7207, 1, 16034, 3084, 62, 39251, 2091, 33411, 366, 50, 2001, 343, 12, 8890, 8430, 21743, 1, 796, 705, 16, 6, 5357, 366, 17688,...
How old is each gender, on average Plot them as bar chart, and rank from high to low by the gender.
SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender DESC
[ 2437, 1468, 318, 1123, 5279, 11, 319, 2811, 28114, 606, 355, 2318, 8262, 11, 290, 4279, 422, 1029, 284, 1877, 416, 262, 5279, 13, 46506, 5279, 11, 35224, 7, 496, 8, 16034, 7755, 44441, 11050, 5279, 38678, 11050, 5279, 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 ]
[ 2437, 1468, 318, 1123, 5279, 11, 319, 2811, 28114, 606, 355, 2318, 8262, 11, 290, 4279, 422, 1029, 284, 1877, 416, 262, 5279, 13, 46506, 5279, 11, 35224, 7, 496, 8, 16034, 7755, 44441, 11050, 5279, 38678, 11050, 5279, 22196, 34 ]
Show me a bar chart for what are the department names and how many employees work in each of them?, could you list in asc by the bars?
SELECT DEPARTMENT_NAME, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID GROUP BY DEPARTMENT_NAME ORDER BY DEPARTMENT_NAME
[ 15307, 502, 257, 2318, 8262, 329, 644, 389, 262, 5011, 3891, 290, 703, 867, 4409, 670, 287, 1123, 286, 606, 21747, 714, 345, 1351, 287, 10570, 416, 262, 9210, 30, 46506, 5550, 30709, 10979, 62, 20608, 11, 327, 28270, 7, 28104, 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...
[ 15307, 502, 257, 2318, 8262, 329, 644, 389, 262, 5011, 3891, 290, 703, 867, 4409, 670, 287, 1123, 286, 606, 21747, 714, 345, 1351, 287, 10570, 416, 262, 9210, 30, 46506, 5550, 30709, 10979, 62, 20608, 11, 327, 28270, 7, 28104, 16034, ...
What is every value for Russian when value for Bulgarian is , ?
SELECT russian FROM table_25008327_8 WHERE bulgarian = "пес, куче"
[ 2061, 318, 790, 1988, 329, 3394, 618, 1988, 329, 42119, 318, 837, 5633, 46506, 374, 31562, 16034, 3084, 62, 44688, 5999, 1983, 62, 23, 33411, 4807, 70, 3699, 796, 366, 140, 123, 16843, 21727, 11, 12466, 118, 35072, 141, 229, 16843, 1 ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1988, 329, 3394, 618, 1988, 329, 42119, 318, 837, 5633, 46506, 374, 31562, 16034, 3084, 62, 44688, 5999, 1983, 62, 23, 33411, 4807, 70, 3699, 796, 366, 140, 123, 16843, 21727, 11, 12466, 118, 35072, 141, 229, 16843, 1 ...
What's the score for December of 30?
SELECT "Score" FROM table_36128 WHERE "December" = '30'
[ 2061, 338, 262, 4776, 329, 3426, 286, 1542, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2623, 12762, 33411, 366, 20588, 1, 796, 705, 1270, 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, 338, 262, 4776, 329, 3426, 286, 1542, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2623, 12762, 33411, 366, 20588, 1, 796, 705, 1270, 6 ]
kenneth mcalpine drove from which entrant?
SELECT "Entrant" FROM table_53139 WHERE "Driver" = 'kenneth mcalpine'
[ 74, 1697, 2788, 285, 9948, 23908, 10357, 422, 543, 920, 5250, 30, 46506, 366, 14539, 5250, 1, 16034, 3084, 62, 4310, 20219, 33411, 366, 32103, 1, 796, 705, 74, 1697, 2788, 285, 9948, 23908, 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 ]
[ 74, 1697, 2788, 285, 9948, 23908, 10357, 422, 543, 920, 5250, 30, 46506, 366, 14539, 5250, 1, 16034, 3084, 62, 4310, 20219, 33411, 366, 32103, 1, 796, 705, 74, 1697, 2788, 285, 9948, 23908, 6 ]
Name the number of naming for anomic aphasia
SELECT COUNT("Naming") FROM table_73238 WHERE "Type of aphasia" = 'Anomic aphasia'
[ 5376, 262, 1271, 286, 19264, 329, 281, 10179, 257, 5902, 544, 46506, 327, 28270, 7203, 45, 3723, 4943, 16034, 3084, 62, 4790, 23721, 33411, 366, 6030, 286, 257, 5902, 544, 1, 796, 705, 2025, 10179, 257, 5902, 544, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 1271, 286, 19264, 329, 281, 10179, 257, 5902, 544, 46506, 327, 28270, 7203, 45, 3723, 4943, 16034, 3084, 62, 4790, 23721, 33411, 366, 6030, 286, 257, 5902, 544, 1, 796, 705, 2025, 10179, 257, 5902, 544, 6 ]
Who was the girl on week 4 after week 3's Mikaela James?
SELECT "Week 4" FROM table_61242 WHERE "Week 3" = 'mikaela james'
[ 8241, 373, 262, 2576, 319, 1285, 604, 706, 1285, 513, 338, 17722, 3010, 64, 3700, 30, 46506, 366, 20916, 604, 1, 16034, 3084, 62, 43610, 3682, 33411, 366, 20916, 513, 1, 796, 705, 76, 1134, 3010, 64, 474, 1047, 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 ]
[ 8241, 373, 262, 2576, 319, 1285, 604, 706, 1285, 513, 338, 17722, 3010, 64, 3700, 30, 46506, 366, 20916, 604, 1, 16034, 3084, 62, 43610, 3682, 33411, 366, 20916, 513, 1, 796, 705, 76, 1134, 3010, 64, 474, 1047, 6 ]
Which version B-58 aircraft model originated in the United States has 2 in service?
SELECT "Aircraft" FROM table_31636 WHERE "In service" = '2' AND "Origin" = 'united states' AND "Versions" = 'b-58'
[ 13828, 2196, 347, 12, 3365, 6215, 2746, 20973, 287, 262, 1578, 1829, 468, 362, 287, 2139, 30, 46506, 366, 32, 27002, 1, 16034, 3084, 62, 33400, 2623, 33411, 366, 818, 2139, 1, 796, 705, 17, 6, 5357, 366, 39688, 1, 796, 705, 41187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2196, 347, 12, 3365, 6215, 2746, 20973, 287, 262, 1578, 1829, 468, 362, 287, 2139, 30, 46506, 366, 32, 27002, 1, 16034, 3084, 62, 33400, 2623, 33411, 366, 818, 2139, 1, 796, 705, 17, 6, 5357, 366, 39688, 1, 796, 705, 41187, ...
how many patients whose religion is protestant quaker and year of birth is less than 2023?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "PROTESTANT QUAKER" AND demographic.dob_year < "2023"
[ 4919, 867, 3871, 3025, 5737, 318, 5402, 415, 627, 3110, 290, 614, 286, 4082, 318, 1342, 621, 1160, 1954, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 2411, 17035, 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 ]
[ 4919, 867, 3871, 3025, 5737, 318, 5402, 415, 627, 3110, 290, 614, 286, 4082, 318, 1342, 621, 1160, 1954, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 2411, 17035, 796, ...
What's the crowd population of the home team located in Richmond?
SELECT SUM("Crowd") FROM table_55565 WHERE "Home team" = 'richmond'
[ 2061, 338, 262, 4315, 3265, 286, 262, 1363, 1074, 5140, 287, 16940, 30, 46506, 35683, 7203, 34, 3986, 4943, 16034, 3084, 62, 31046, 2996, 33411, 366, 16060, 1074, 1, 796, 705, 7527, 6327, 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, 338, 262, 4315, 3265, 286, 262, 1363, 1074, 5140, 287, 16940, 30, 46506, 35683, 7203, 34, 3986, 4943, 16034, 3084, 62, 31046, 2996, 33411, 366, 16060, 1074, 1, 796, 705, 7527, 6327, 6 ]
How many people voted for Obama in the county where McCain got 72.75% of the votes?
SELECT MIN(obama_number) FROM table_20799587_1 WHERE mccain_percentage = "72.75%"
[ 2437, 867, 661, 7052, 329, 2486, 287, 262, 7968, 810, 14264, 1392, 7724, 13, 2425, 4, 286, 262, 5690, 30, 46506, 20625, 7, 672, 1689, 62, 17618, 8, 16034, 3084, 62, 22745, 2079, 44617, 62, 16, 33411, 285, 535, 391, 62, 25067, 496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7052, 329, 2486, 287, 262, 7968, 810, 14264, 1392, 7724, 13, 2425, 4, 286, 262, 5690, 30, 46506, 20625, 7, 672, 1689, 62, 17618, 8, 16034, 3084, 62, 22745, 2079, 44617, 62, 16, 33411, 285, 535, 391, 62, 25067, 496, ...
Find the dates of orders which belong to the customer named 'Jeramie'.
SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
[ 16742, 262, 9667, 286, 6266, 543, 5594, 284, 262, 6491, 3706, 705, 36134, 321, 494, 4458, 46506, 309, 17, 13, 4475, 62, 2875, 62, 21820, 16034, 4297, 7054, 309, 16, 32357, 1268, 6266, 7054, 309, 17, 6177, 309, 16, 13, 23144, 263, 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...
[ 16742, 262, 9667, 286, 6266, 543, 5594, 284, 262, 6491, 3706, 705, 36134, 321, 494, 4458, 46506, 309, 17, 13, 4475, 62, 2875, 62, 21820, 16034, 4297, 7054, 309, 16, 32357, 1268, 6266, 7054, 309, 17, 6177, 309, 16, 13, 23144, 263, 62...
In Tonga, what is the conversion from patent application?
SELECT "Conversion from Patent Application" FROM table_25304 WHERE "Country" = 'Tonga'
[ 818, 26565, 64, 11, 644, 318, 262, 11315, 422, 12701, 3586, 30, 46506, 366, 3103, 9641, 422, 34830, 15678, 1, 16034, 3084, 62, 1495, 21288, 33411, 366, 33921, 1, 796, 705, 51, 44294, 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 ]
[ 818, 26565, 64, 11, 644, 318, 262, 11315, 422, 12701, 3586, 30, 46506, 366, 3103, 9641, 422, 34830, 15678, 1, 16034, 3084, 62, 1495, 21288, 33411, 366, 33921, 1, 796, 705, 51, 44294, 6 ]
What is th IATA for Norway with an ICAO of ENTO?
SELECT iata FROM table_name_99 WHERE country = "norway" AND icao = "ento"
[ 2061, 318, 294, 314, 13563, 329, 15238, 351, 281, 314, 8141, 46, 286, 12964, 10468, 30, 46506, 1312, 1045, 16034, 3084, 62, 3672, 62, 2079, 33411, 1499, 796, 366, 13099, 1014, 1, 5357, 220, 3970, 78, 796, 366, 50217, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 294, 314, 13563, 329, 15238, 351, 281, 314, 8141, 46, 286, 12964, 10468, 30, 46506, 1312, 1045, 16034, 3084, 62, 3672, 62, 2079, 33411, 1499, 796, 366, 13099, 1014, 1, 5357, 220, 3970, 78, 796, 366, 50217, 1 ]
For a record of 3-2, what team was home?
SELECT home FROM table_name_31 WHERE record = "3-2"
[ 1890, 257, 1700, 286, 513, 12, 17, 11, 644, 1074, 373, 1363, 30, 46506, 1363, 16034, 3084, 62, 3672, 62, 3132, 33411, 1700, 796, 366, 18, 12, 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 ]
[ 1890, 257, 1700, 286, 513, 12, 17, 11, 644, 1074, 373, 1363, 30, 46506, 1363, 16034, 3084, 62, 3672, 62, 3132, 33411, 1700, 796, 366, 18, 12, 17, 1 ]
Which Country that has 600?
SELECT country FROM table_name_43 WHERE money___$__ = 600
[ 13828, 12946, 326, 468, 10053, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3559, 33411, 1637, 17569, 3, 834, 796, 10053 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 12946, 326, 468, 10053, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3559, 33411, 1637, 17569, 3, 834, 796, 10053 ]
How many schools are there?
SELECT COUNT(*) FROM school
[ 2437, 867, 4266, 389, 612, 30, 46506, 327, 28270, 7, 28104, 16034, 1524 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 4266, 389, 612, 30, 46506, 327, 28270, 7, 28104, 16034, 1524 ]
In 1837, who was the 2nd member who's 2nd party was conservative.
SELECT "2nd Member" FROM table_80140 WHERE "2nd Party" = 'conservative' AND "Year" = '1837'
[ 818, 1248, 2718, 11, 508, 373, 262, 362, 358, 2888, 508, 338, 362, 358, 2151, 373, 5940, 13, 46506, 366, 17, 358, 10239, 1, 16034, 3084, 62, 41531, 1821, 33411, 366, 17, 358, 3615, 1, 796, 705, 43218, 6, 5357, 366, 17688, 1, 796, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 818, 1248, 2718, 11, 508, 373, 262, 362, 358, 2888, 508, 338, 362, 358, 2151, 373, 5940, 13, 46506, 366, 17, 358, 10239, 1, 16034, 3084, 62, 41531, 1821, 33411, 366, 17, 358, 3615, 1, 796, 705, 43218, 6, 5357, 366, 17688, 1, 796, ...
Show the position of players and the corresponding number of players Visualize by bar chart, could you order in descending by the names please?
SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY Position DESC
[ 15307, 262, 2292, 286, 1938, 290, 262, 11188, 1271, 286, 1938, 15612, 1096, 416, 2318, 8262, 11, 714, 345, 1502, 287, 31491, 416, 262, 3891, 3387, 30, 46506, 23158, 11, 327, 28270, 7, 28104, 16034, 2872, 62, 6230, 44441, 11050, 23158, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 262, 2292, 286, 1938, 290, 262, 11188, 1271, 286, 1938, 15612, 1096, 416, 2318, 8262, 11, 714, 345, 1502, 287, 31491, 416, 262, 3891, 3387, 30, 46506, 23158, 11, 327, 28270, 7, 28104, 16034, 2872, 62, 6230, 44441, 11050, 23158, ...
Who were the rowers who had a time of 7:39.70?
SELECT rowers FROM table_name_18 WHERE time = "7:39.70"
[ 8241, 547, 262, 5752, 364, 508, 550, 257, 640, 286, 767, 25, 2670, 13, 2154, 30, 46506, 5752, 364, 16034, 3084, 62, 3672, 62, 1507, 33411, 640, 796, 366, 22, 25, 2670, 13, 2154, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 547, 262, 5752, 364, 508, 550, 257, 640, 286, 767, 25, 2670, 13, 2154, 30, 46506, 5752, 364, 16034, 3084, 62, 3672, 62, 1507, 33411, 640, 796, 366, 22, 25, 2670, 13, 2154, 1 ]
how many patients were prescribed enoxaparin within the same hospital visit after the diagnosis of splenic trauma - grade ii laceration,?
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'splenic trauma - grade ii laceration') AS t1 JOIN (SELECT patient.uniquep...
[ 4919, 867, 3871, 547, 14798, 551, 1140, 499, 17714, 1626, 262, 976, 4436, 3187, 706, 262, 13669, 286, 4328, 35866, 14649, 532, 9559, 21065, 300, 11736, 341, 11, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 403, 1557, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 547, 14798, 551, 1140, 499, 17714, 1626, 262, 976, 4436, 3187, 706, 262, 13669, 286, 4328, 35866, 14649, 532, 9559, 21065, 300, 11736, 341, 11, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 403, 1557, ...
what is discharge location of subject id 16438?
SELECT demographic.discharge_location FROM demographic WHERE demographic.subject_id = "16438"
[ 10919, 318, 17655, 4067, 286, 2426, 4686, 25307, 2548, 30, 46506, 16728, 13, 6381, 10136, 62, 24886, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 23237, 2548, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 17655, 4067, 286, 2426, 4686, 25307, 2548, 30, 46506, 16728, 13, 6381, 10136, 62, 24886, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 23237, 2548, 1 ]
until 4 years ago, did patient 027-53836 go to an er?
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '027-53836' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-4 year')
[ 28446, 604, 812, 2084, 11, 750, 5827, 657, 1983, 12, 49561, 2623, 467, 284, 281, 1931, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 44698, 12, 49561, 2623, 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, 1...
[ 28446, 604, 812, 2084, 11, 750, 5827, 657, 1983, 12, 49561, 2623, 467, 284, 281, 1931, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 44698, 12, 49561, 2623, 6, 5357, 5827, 1...
What is the sum of credit value of courses with more than one prerequisite for each title? Return a bar chart.
SELECT title, SUM(credits) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY title
[ 2061, 318, 262, 2160, 286, 3884, 1988, 286, 10902, 351, 517, 621, 530, 43119, 329, 1123, 3670, 30, 8229, 257, 2318, 8262, 13, 46506, 3670, 11, 35683, 7, 66, 20696, 8, 16034, 1781, 7054, 309, 16, 32357, 1268, 662, 42180, 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 ]
[ 2061, 318, 262, 2160, 286, 3884, 1988, 286, 10902, 351, 517, 621, 530, 43119, 329, 1123, 3670, 30, 8229, 257, 2318, 8262, 13, 46506, 3670, 11, 35683, 7, 66, 20696, 8, 16034, 1781, 7054, 309, 16, 32357, 1268, 662, 42180, 7054, 309, 1...
How many classes are professor whose last name is Graztevski has?
SELECT COUNT(*) FROM employee AS T1 JOIN class AS T2 ON T1.emp_num = T2.prof_num WHERE T1.emp_lname = 'Graztevski'
[ 2437, 867, 6097, 389, 6240, 3025, 938, 1438, 318, 402, 3247, 660, 14259, 4106, 468, 30, 46506, 327, 28270, 7, 28104, 16034, 6538, 7054, 309, 16, 32357, 1268, 1398, 7054, 309, 17, 6177, 309, 16, 13, 45787, 62, 22510, 796, 309, 17, 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 ]
[ 2437, 867, 6097, 389, 6240, 3025, 938, 1438, 318, 402, 3247, 660, 14259, 4106, 468, 30, 46506, 327, 28270, 7, 28104, 16034, 6538, 7054, 309, 16, 32357, 1268, 1398, 7054, 309, 17, 6177, 309, 16, 13, 45787, 62, 22510, 796, 309, 17, 13...
is the value of mcv of patient 1114 last measured on the current hospital visit greater than it was first measured on the current hospital visit.
SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1114 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'mcv') ORDER BY labevents.charttime DESC ...
[ 271, 262, 1988, 286, 285, 33967, 286, 5827, 13374, 19, 938, 8630, 319, 262, 1459, 4436, 3187, 3744, 621, 340, 373, 717, 8630, 319, 262, 1459, 4436, 3187, 13, 46506, 357, 46506, 2248, 31534, 13, 2100, 84, 44709, 16034, 2248, 31534, 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...
[ 271, 262, 1988, 286, 285, 33967, 286, 5827, 13374, 19, 938, 8630, 319, 262, 1459, 4436, 3187, 3744, 621, 340, 373, 717, 8630, 319, 262, 1459, 4436, 3187, 13, 46506, 357, 46506, 2248, 31534, 13, 2100, 84, 44709, 16034, 2248, 31534, 334...
count the number of unmarried patients who have lab test item id 50911.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.itemid = "50911"
[ 9127, 262, 1271, 286, 39183, 3871, 508, 423, 2248, 1332, 2378, 4686, 2026, 35549, 13, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 39183, 3871, 508, 423, 2248, 1332, 2378, 4686, 2026, 35549, 13, 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, ...
yes or no for the auckland with a yes for sydney, no for perth, yes for melbourne and yes for the gold coast?
SELECT "Auckland" FROM table_67833 WHERE "Sydney" = 'yes' AND "Perth" = 'no' AND "Melbourne" = 'yes' AND "Gold Coast" = 'yes'
[ 8505, 393, 645, 329, 262, 257, 28789, 351, 257, 3763, 329, 827, 67, 1681, 11, 645, 329, 583, 400, 11, 3763, 329, 7758, 12544, 290, 3763, 329, 262, 3869, 7051, 30, 46506, 366, 32, 28789, 1, 16034, 3084, 62, 30924, 2091, 33411, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 8505, 393, 645, 329, 262, 257, 28789, 351, 257, 3763, 329, 827, 67, 1681, 11, 645, 329, 583, 400, 11, 3763, 329, 7758, 12544, 290, 3763, 329, 262, 3869, 7051, 30, 46506, 366, 32, 28789, 1, 16034, 3084, 62, 30924, 2091, 33411, 366, ...
How many 2006 subscribers are named Vodafone?
SELECT COUNT(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Vodafone"
[ 2437, 867, 4793, 18327, 389, 3706, 569, 375, 1878, 505, 30, 46506, 327, 28270, 7, 7266, 40075, 364, 834, 13330, 17569, 400, 19983, 62, 8, 16034, 3084, 62, 1959, 31010, 33551, 62, 17, 33411, 10131, 796, 366, 53, 375, 1878, 505, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4793, 18327, 389, 3706, 569, 375, 1878, 505, 30, 46506, 327, 28270, 7, 7266, 40075, 364, 834, 13330, 17569, 400, 19983, 62, 8, 16034, 3084, 62, 1959, 31010, 33551, 62, 17, 33411, 10131, 796, 366, 53, 375, 1878, 505, 1 ]
When the away team was Carlton, who was the home team?
SELECT "Home team" FROM table_20758 WHERE "Away team" = 'Carlton'
[ 2215, 262, 1497, 1074, 373, 44348, 11, 508, 373, 262, 1363, 1074, 30, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 1238, 38569, 33411, 366, 32, 1014, 1074, 1, 796, 705, 26886, 1122, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 262, 1497, 1074, 373, 44348, 11, 508, 373, 262, 1363, 1074, 30, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 1238, 38569, 33411, 366, 32, 1014, 1074, 1, 796, 705, 26886, 1122, 6 ]
What airport has an IATA of ARN?
SELECT airport FROM table_name_76 WHERE iata = "arn"
[ 2061, 9003, 468, 281, 314, 13563, 286, 5923, 45, 30, 46506, 9003, 16034, 3084, 62, 3672, 62, 4304, 33411, 1312, 1045, 796, 366, 1501, 1 ]
[ 1, 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, 9003, 468, 281, 314, 13563, 286, 5923, 45, 30, 46506, 9003, 16034, 3084, 62, 3672, 62, 4304, 33411, 1312, 1045, 796, 366, 1501, 1 ]
what's the latest first elected year
SELECT MAX("First elected") FROM table_18183
[ 10919, 338, 262, 3452, 717, 7018, 614, 46506, 25882, 7203, 5962, 7018, 4943, 16034, 3084, 62, 1507, 24839 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 338, 262, 3452, 717, 7018, 614, 46506, 25882, 7203, 5962, 7018, 4943, 16034, 3084, 62, 1507, 24839 ]
The MacKinnon Stakes races took place on how many venues?
SELECT COUNT("Venue") FROM table_3147 WHERE "Race" = 'Mackinnon Stakes'
[ 464, 4100, 42, 45067, 520, 1124, 9558, 1718, 1295, 319, 703, 867, 22276, 30, 46506, 327, 28270, 7203, 37522, 518, 4943, 16034, 3084, 62, 18, 20198, 33411, 366, 35157, 1, 796, 705, 44, 441, 45067, 520, 1124, 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 ]
[ 464, 4100, 42, 45067, 520, 1124, 9558, 1718, 1295, 319, 703, 867, 22276, 30, 46506, 327, 28270, 7203, 37522, 518, 4943, 16034, 3084, 62, 18, 20198, 33411, 366, 35157, 1, 796, 705, 44, 441, 45067, 520, 1124, 6 ]
Isma l Bangoura with a rank larger than 5 after the year 2005 was moving to what football club?
SELECT "Moving to" FROM table_66763 WHERE "Year" > '2005' AND "Rank" > '5' AND "Name" = 'ismaël bangoura'
[ 3792, 2611, 300, 9801, 280, 430, 351, 257, 4279, 4025, 621, 642, 706, 262, 614, 5075, 373, 3867, 284, 644, 4346, 3430, 30, 46506, 366, 33622, 284, 1, 16034, 3084, 62, 2791, 49641, 33411, 366, 17688, 1, 1875, 705, 14315, 6, 5357, 366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3792, 2611, 300, 9801, 280, 430, 351, 257, 4279, 4025, 621, 642, 706, 262, 614, 5075, 373, 3867, 284, 644, 4346, 3430, 30, 46506, 366, 33622, 284, 1, 16034, 3084, 62, 2791, 49641, 33411, 366, 17688, 1, 1875, 705, 14315, 6, 5357, 366...
Visualize a bar chart for how many players are from each country?
SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name
[ 36259, 1096, 257, 2318, 8262, 329, 703, 867, 1938, 389, 422, 1123, 1499, 30, 46506, 12946, 62, 3672, 11, 327, 28270, 7, 28104, 16034, 1499, 7054, 309, 16, 32357, 1268, 2872, 62, 6230, 7054, 309, 17, 6177, 309, 16, 13, 33921, 62, 312...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 36259, 1096, 257, 2318, 8262, 329, 703, 867, 1938, 389, 422, 1123, 1499, 30, 46506, 12946, 62, 3672, 11, 327, 28270, 7, 28104, 16034, 1499, 7054, 309, 16, 32357, 1268, 2872, 62, 6230, 7054, 309, 17, 6177, 309, 16, 13, 33921, 62, 312...
When did Austin Austin TX get the third place?
SELECT year FROM table_2011349_2 WHERE third_place = "Austin Austin TX"
[ 2215, 750, 9533, 9533, 15326, 651, 262, 2368, 1295, 30, 46506, 614, 16034, 3084, 62, 1264, 1485, 2920, 62, 17, 33411, 2368, 62, 5372, 796, 366, 40245, 9533, 15326, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 750, 9533, 9533, 15326, 651, 262, 2368, 1295, 30, 46506, 614, 16034, 3084, 62, 1264, 1485, 2920, 62, 17, 33411, 2368, 62, 5372, 796, 366, 40245, 9533, 15326, 1 ]
What was the purpose of the Quay test blast?
SELECT "Purpose" FROM table_56180 WHERE "Name" = 'quay'
[ 2061, 373, 262, 4007, 286, 262, 2264, 323, 1332, 11975, 30, 46506, 366, 30026, 3455, 1, 16034, 3084, 62, 3980, 15259, 33411, 366, 5376, 1, 796, 705, 421, 323, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4007, 286, 262, 2264, 323, 1332, 11975, 30, 46506, 366, 30026, 3455, 1, 16034, 3084, 62, 3980, 15259, 33411, 366, 5376, 1, 796, 705, 421, 323, 6 ]
What is the average gold of the winter athlete with 1 bronze, less than 3 silver, and less than 4 total medals?
SELECT AVG("Gold") FROM table_75365 WHERE "Bronze" = '1' AND "Type" = 'winter' AND "Silver" < '3' AND "Total" < '4'
[ 2061, 318, 262, 2811, 3869, 286, 262, 7374, 16076, 351, 352, 22101, 11, 1342, 621, 513, 8465, 11, 290, 1342, 621, 604, 2472, 28057, 30, 46506, 35224, 7203, 13306, 4943, 16034, 3084, 62, 2425, 24760, 33411, 366, 18760, 2736, 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...
[ 2061, 318, 262, 2811, 3869, 286, 262, 7374, 16076, 351, 352, 22101, 11, 1342, 621, 513, 8465, 11, 290, 1342, 621, 604, 2472, 28057, 30, 46506, 35224, 7203, 13306, 4943, 16034, 3084, 62, 2425, 24760, 33411, 366, 18760, 2736, 1, 796, 70...
Find answers by a given user (with links).
SELECT q.Id AS "Q ID", a.Id AS "A ID", q.CreationDate AS "Q Date", a.CreationDate AS "A Date", q.Score AS "Q Score", a.Score AS "A Score", q.ClosedDate AS "Question Closed Date", q.Id AS "post_link" FROM Posts AS a JOIN Posts AS q ON a.ParentId = q.Id JOIN Users AS u ON q.OwnerUserId = u.Id WHERE a.OwnerUserId = '##Use...
[ 16742, 7429, 416, 257, 1813, 2836, 357, 4480, 6117, 737, 46506, 10662, 13, 7390, 7054, 366, 48, 4522, 1600, 257, 13, 7390, 7054, 366, 32, 4522, 1600, 10662, 13, 12443, 341, 10430, 7054, 366, 48, 7536, 1600, 257, 13, 12443, 341, 10430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7429, 416, 257, 1813, 2836, 357, 4480, 6117, 737, 46506, 10662, 13, 7390, 7054, 366, 48, 4522, 1600, 257, 13, 7390, 7054, 366, 32, 4522, 1600, 10662, 13, 12443, 341, 10430, 7054, 366, 48, 7536, 1600, 257, 13, 12443, 341, 10430,...
how many patients have been admitted into a hospital during the previous year?
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
[ 4919, 867, 3871, 423, 587, 6848, 656, 257, 4436, 1141, 262, 2180, 614, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 360, 1404, 2767, 12789, 7, 26029, 13, 49257, 324, 20124, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 867, 3871, 423, 587, 6848, 656, 257, 4436, 1141, 262, 2180, 614, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 360, 1404, 2767, 12789, 7, 26029, 13, 49257, 324, 20124, 52...
What was the largest crowd size at arden street oval?
SELECT MAX("Crowd") FROM table_78344 WHERE "Venue" = 'arden street oval'
[ 2061, 373, 262, 4387, 4315, 2546, 379, 610, 6559, 4675, 41186, 30, 46506, 25882, 7203, 34, 3986, 4943, 16034, 3084, 62, 3695, 33535, 33411, 366, 37522, 518, 1, 796, 705, 5872, 4675, 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 ]
[ 2061, 373, 262, 4387, 4315, 2546, 379, 610, 6559, 4675, 41186, 30, 46506, 25882, 7203, 34, 3986, 4943, 16034, 3084, 62, 3695, 33535, 33411, 366, 37522, 518, 1, 796, 705, 5872, 4675, 41186, 6 ]
what is the average age of patients whose discharge location is disch-tran to psyc hosp and with primary disease left femur fracture?
SELECT AVG(demographic.age) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.diagnosis = "LEFT FEMUR FRACTURE"
[ 10919, 318, 262, 2811, 2479, 286, 3871, 3025, 17655, 4067, 318, 595, 354, 12, 2213, 272, 284, 17331, 66, 10496, 290, 351, 4165, 4369, 1364, 2796, 333, 31846, 30, 46506, 35224, 7, 9536, 6826, 13, 496, 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, 2811, 2479, 286, 3871, 3025, 17655, 4067, 318, 595, 354, 12, 2213, 272, 284, 17331, 66, 10496, 290, 351, 4165, 4369, 1364, 2796, 333, 31846, 30, 46506, 35224, 7, 9536, 6826, 13, 496, 8, 16034, 16728, 33411, 16728, 13,...
until 1 year ago, what is the five most commonly taken test for patients aged 20s?
SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) AND DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY lab.labname) AS t1 WHER...
[ 28446, 352, 614, 2084, 11, 644, 318, 262, 1936, 749, 8811, 2077, 1332, 329, 3871, 9722, 1160, 82, 30, 46506, 256, 16, 13, 23912, 3672, 16034, 357, 46506, 2248, 13, 23912, 3672, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 28446, 352, 614, 2084, 11, 644, 318, 262, 1936, 749, 8811, 2077, 1332, 329, 3871, 9722, 1160, 82, 30, 46506, 256, 16, 13, 23912, 3672, 16034, 357, 46506, 2248, 13, 23912, 3672, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, ...
What are the name and primarily affiliated department name of each physician?, and I want to show in descending by the Name.
SELECT T3.Name, COUNT(T3.Name) FROM Physician AS T1 JOIN Affiliated_With AS T2 ON T1.EmployeeID = T2.Physician JOIN Department AS T3 ON T2.Department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1 GROUP BY T3.Name ORDER BY T3.Name DESC
[ 2061, 389, 262, 1438, 290, 7525, 18552, 5011, 1438, 286, 1123, 14325, 21747, 290, 314, 765, 284, 905, 287, 31491, 416, 262, 6530, 13, 46506, 309, 18, 13, 5376, 11, 327, 28270, 7, 51, 18, 13, 5376, 8, 16034, 8687, 6749, 7054, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 389, 262, 1438, 290, 7525, 18552, 5011, 1438, 286, 1123, 14325, 21747, 290, 314, 765, 284, 905, 287, 31491, 416, 262, 6530, 13, 46506, 309, 18, 13, 5376, 11, 327, 28270, 7, 51, 18, 13, 5376, 8, 16034, 8687, 6749, 7054, 309, ...
What is the sum of the ranks for the film, eddie murphy raw?
SELECT SUM(rank) FROM table_name_19 WHERE title = "eddie murphy raw"
[ 2061, 318, 262, 2160, 286, 262, 9803, 329, 262, 2646, 11, 1225, 11979, 4636, 6883, 8246, 30, 46506, 35683, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 1129, 33411, 3670, 796, 366, 6048, 494, 4636, 6883, 8246, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9803, 329, 262, 2646, 11, 1225, 11979, 4636, 6883, 8246, 30, 46506, 35683, 7, 43027, 8, 16034, 3084, 62, 3672, 62, 1129, 33411, 3670, 796, 366, 6048, 494, 4636, 6883, 8246, 1 ]
What is the Malayalam word for punarvasu in Kannada?
SELECT "Malayalam \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02" FROM table_19119 WHERE "Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1" = 'Punarvasu ಪುನರ್ವಸು'
[ 2061, 318, 262, 4434, 323, 44949, 1573, 329, 4000, 283, 11017, 84, 287, 509, 1236, 4763, 30, 46506, 366, 15029, 323, 44949, 3467, 84, 15, 67, 17, 68, 59, 84, 15, 67, 2624, 59, 84, 15, 67, 17, 69, 59, 84, 15, 67, 18, 68, 59, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4434, 323, 44949, 1573, 329, 4000, 283, 11017, 84, 287, 509, 1236, 4763, 30, 46506, 366, 15029, 323, 44949, 3467, 84, 15, 67, 17, 68, 59, 84, 15, 67, 2624, 59, 84, 15, 67, 17, 69, 59, 84, 15, 67, 18, 68, 59, ...
What's the average rating when the Romanji title was Mendol?
SELECT "Average Ratings" FROM table_14090 WHERE "Romaji Title" = 'mendol'
[ 2061, 338, 262, 2811, 7955, 618, 262, 7993, 7285, 3670, 373, 20442, 349, 30, 46506, 366, 26287, 36826, 1, 16034, 3084, 62, 1415, 42534, 33411, 366, 22834, 26436, 11851, 1, 796, 705, 76, 437, 349, 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, 338, 262, 2811, 7955, 618, 262, 7993, 7285, 3670, 373, 20442, 349, 30, 46506, 366, 26287, 36826, 1, 16034, 3084, 62, 1415, 42534, 33411, 366, 22834, 26436, 11851, 1, 796, 705, 76, 437, 349, 6 ]
How many patients had a lab test named free calcium?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "Free Calcium"
[ 2437, 867, 3871, 550, 257, 2248, 1332, 3706, 1479, 19700, 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, 2248, 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 ]
[ 2437, 867, 3871, 550, 257, 2248, 1332, 3706, 1479, 19700, 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, 2248, 13, ...
tell me about flights from CHARLOTTE to ATLANTA next tuesday
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND date_day.day_number = 22 AND date_day.month_number = 3 AND d...
[ 33331, 502, 546, 13956, 422, 28521, 43, 2394, 9328, 284, 5161, 25697, 5603, 1306, 256, 3322, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 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, 1...
[ 33331, 502, 546, 13956, 422, 28521, 43, 2394, 9328, 284, 5161, 25697, 5603, 1306, 256, 3322, 46506, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 1...
Which film has the most copies in the inventory? List both title and id.
SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY COUNT(*) DESC LIMIT 1
[ 13828, 2646, 468, 262, 749, 9088, 287, 262, 13184, 30, 7343, 1111, 3670, 290, 4686, 13, 46506, 309, 16, 13, 7839, 11, 309, 16, 13, 26240, 62, 312, 16034, 2646, 7054, 309, 16, 32357, 1268, 13184, 7054, 309, 17, 6177, 309, 16, 13, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 13828, 2646, 468, 262, 749, 9088, 287, 262, 13184, 30, 7343, 1111, 3670, 290, 4686, 13, 46506, 309, 16, 13, 7839, 11, 309, 16, 13, 26240, 62, 312, 16034, 2646, 7054, 309, 16, 32357, 1268, 13184, 7054, 309, 17, 6177, 309, 16, 13, 2...
when was the first time that patient 22648 during this month was given a hematocrit lab test?
SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hematocrit') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22648) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CUR...
[ 12518, 373, 262, 717, 640, 326, 5827, 31510, 2780, 1141, 428, 1227, 373, 1813, 257, 339, 6759, 420, 799, 2248, 1332, 30, 46506, 2248, 31534, 13, 40926, 2435, 16034, 2248, 31534, 33411, 2248, 31534, 13, 9186, 312, 3268, 357, 46506, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 373, 262, 717, 640, 326, 5827, 31510, 2780, 1141, 428, 1227, 373, 1813, 257, 339, 6759, 420, 799, 2248, 1332, 30, 46506, 2248, 31534, 13, 40926, 2435, 16034, 2248, 31534, 33411, 2248, 31534, 13, 9186, 312, 3268, 357, 46506, 288, ...
What is the lowest Built, when Floors is greater than 23, and when Rank is 3?
SELECT MIN(built) FROM table_name_38 WHERE floors > 23 AND rank = 3
[ 2061, 318, 262, 9016, 28477, 11, 618, 29075, 669, 318, 3744, 621, 2242, 11, 290, 618, 10916, 318, 513, 30, 46506, 20625, 7, 18780, 8, 16034, 3084, 62, 3672, 62, 2548, 33411, 18570, 1875, 2242, 5357, 4279, 796, 513 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28477, 11, 618, 29075, 669, 318, 3744, 621, 2242, 11, 290, 618, 10916, 318, 513, 30, 46506, 20625, 7, 18780, 8, 16034, 3084, 62, 3672, 62, 2548, 33411, 18570, 1875, 2242, 5357, 4279, 796, 513 ]
How many years was the issue price $19.95?
SELECT COUNT("Year of issue") FROM table_79966 WHERE "Issue price" = '$19.95'
[ 2437, 867, 812, 373, 262, 2071, 2756, 720, 1129, 13, 3865, 30, 46506, 327, 28270, 7203, 17688, 286, 2071, 4943, 16034, 3084, 62, 45455, 2791, 33411, 366, 45147, 2756, 1, 796, 705, 3, 1129, 13, 3865, 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 ]
[ 2437, 867, 812, 373, 262, 2071, 2756, 720, 1129, 13, 3865, 30, 46506, 327, 28270, 7203, 17688, 286, 2071, 4943, 16034, 3084, 62, 45455, 2791, 33411, 366, 45147, 2756, 1, 796, 705, 3, 1129, 13, 3865, 6 ]
How many height entries are there for players from bayside high school?
SELECT COUNT("Height") FROM table_25063 WHERE "High School" = 'Bayside'
[ 2437, 867, 6001, 12784, 389, 612, 329, 1938, 422, 275, 592, 485, 1029, 1524, 30, 46506, 327, 28270, 7203, 23106, 4943, 16034, 3084, 62, 9031, 5066, 33411, 366, 11922, 3961, 1, 796, 705, 33, 592, 485, 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 ]
[ 2437, 867, 6001, 12784, 389, 612, 329, 1938, 422, 275, 592, 485, 1029, 1524, 30, 46506, 327, 28270, 7203, 23106, 4943, 16034, 3084, 62, 9031, 5066, 33411, 366, 11922, 3961, 1, 796, 705, 33, 592, 485, 6 ]
What is the highest time for athlete torri edwards, and a rank larger than 6?
SELECT MAX("Time") FROM table_14220 WHERE "Athlete" = 'torri edwards' AND "Rank" > '6'
[ 2061, 318, 262, 4511, 640, 329, 16076, 7332, 380, 1225, 2017, 11, 290, 257, 4279, 4025, 621, 718, 30, 46506, 25882, 7203, 7575, 4943, 16034, 3084, 62, 1415, 17572, 33411, 366, 32, 400, 5807, 1, 796, 705, 13165, 380, 1225, 2017, 6, 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 ]
[ 2061, 318, 262, 4511, 640, 329, 16076, 7332, 380, 1225, 2017, 11, 290, 257, 4279, 4025, 621, 718, 30, 46506, 25882, 7203, 7575, 4943, 16034, 3084, 62, 1415, 17572, 33411, 366, 32, 400, 5807, 1, 796, 705, 13165, 380, 1225, 2017, 6, 5...
Show me manager_id by last name in a histogram, show LAST_NAME in descending order.
SELECT LAST_NAME, MANAGER_ID FROM employees ORDER BY LAST_NAME DESC
[ 15307, 502, 4706, 62, 312, 416, 938, 1438, 287, 257, 1554, 21857, 11, 905, 41894, 62, 20608, 287, 31491, 1502, 13, 46506, 41894, 62, 20608, 11, 17254, 4760, 1137, 62, 2389, 16034, 4409, 38678, 11050, 41894, 62, 20608, 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 ]
[ 15307, 502, 4706, 62, 312, 416, 938, 1438, 287, 257, 1554, 21857, 11, 905, 41894, 62, 20608, 287, 31491, 1502, 13, 46506, 41894, 62, 20608, 11, 17254, 4760, 1137, 62, 2389, 16034, 4409, 38678, 11050, 41894, 62, 20608, 22196, 34 ]