instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
Show the number of accounts for all accounts by the customer with first name 'Meaghan' opened in each day Bin the account open day by weekday in a bar chart, sort by the y-axis from high to low please.
SELECT date_account_opened, COUNT(date_account_opened) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan' ORDER BY COUNT(date_account_opened) DESC
[ 15307, 262, 1271, 286, 5504, 329, 477, 5504, 416, 262, 6491, 351, 717, 1438, 705, 5308, 45109, 6, 4721, 287, 1123, 1110, 20828, 262, 1848, 1280, 1110, 416, 28269, 287, 257, 2318, 8262, 11, 3297, 416, 262, 331, 12, 22704, 422, 1029, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15307, 262, 1271, 286, 5504, 329, 477, 5504, 416, 262, 6491, 351, 717, 1438, 705, 5308, 45109, 6, 4721, 287, 1123, 1110, 20828, 262, 1848, 1280, 1110, 416, 28269, 287, 257, 2318, 8262, 11, 3297, 416, 262, 331, 12, 22704, 422, 1029, ...
what were the three most commonly performed procedures for patients 30s since 2102?
SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 30 AND 39) AND STRFTIME('%y', treatment.treatmenttime) >= '2102' GROUP BY treatment....
[ 10919, 547, 262, 1115, 749, 8811, 6157, 9021, 329, 3871, 1542, 82, 1201, 362, 15377, 30, 46506, 256, 16, 13, 42487, 3672, 16034, 357, 46506, 3513, 13, 42487, 3672, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 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, 547, 262, 1115, 749, 8811, 6157, 9021, 329, 3871, 1542, 82, 1201, 362, 15377, 30, 46506, 256, 16, 13, 42487, 3672, 16034, 357, 46506, 3513, 13, 42487, 3672, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 3...
How man horse power did the ship covadonga have?
SELECT "Horse- power" FROM table_26182 WHERE "Warship" = 'Covadonga'
[ 2437, 582, 8223, 1176, 750, 262, 4074, 39849, 324, 44294, 423, 30, 46506, 366, 39, 7615, 12, 1176, 1, 16034, 3084, 62, 2075, 24294, 33411, 366, 41508, 1056, 1, 796, 705, 34, 709, 324, 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, 1, 1 ]
[ 2437, 582, 8223, 1176, 750, 262, 4074, 39849, 324, 44294, 423, 30, 46506, 366, 39, 7615, 12, 1176, 1, 16034, 3084, 62, 2075, 24294, 33411, 366, 41508, 1056, 1, 796, 705, 34, 709, 324, 44294, 6 ]
Create a bar chart showing how many allergytype across allergytype
SELECT AllergyType, COUNT(AllergyType) FROM Allergy_Type GROUP BY AllergyType
[ 16447, 257, 2318, 8262, 4478, 703, 867, 36197, 4906, 1973, 36197, 4906, 46506, 1439, 26079, 6030, 11, 327, 28270, 7, 3237, 26079, 6030, 8, 16034, 1439, 26079, 62, 6030, 44441, 11050, 1439, 26079, 6030 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16447, 257, 2318, 8262, 4478, 703, 867, 36197, 4906, 1973, 36197, 4906, 46506, 1439, 26079, 6030, 11, 327, 28270, 7, 3237, 26079, 6030, 8, 16034, 1439, 26079, 62, 6030, 44441, 11050, 1439, 26079, 6030 ]
What type is You from the state of Chen?
SELECT "Type" FROM table_44636 WHERE "State" = 'chen' AND "Name" = 'you'
[ 2061, 2099, 318, 921, 422, 262, 1181, 286, 12555, 30, 46506, 366, 6030, 1, 16034, 3084, 62, 27260, 2623, 33411, 366, 9012, 1, 796, 705, 6607, 6, 5357, 366, 5376, 1, 796, 705, 5832, 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 ]
[ 2061, 2099, 318, 921, 422, 262, 1181, 286, 12555, 30, 46506, 366, 6030, 1, 16034, 3084, 62, 27260, 2623, 33411, 366, 9012, 1, 796, 705, 6607, 6, 5357, 366, 5376, 1, 796, 705, 5832, 6 ]
What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill?
SELECT studio FROM film WHERE director = "Nicholas Meyer" INTERSECT SELECT studio FROM film WHERE director = "Walter Hill"
[ 2061, 389, 262, 3891, 286, 20747, 326, 423, 4635, 7328, 351, 1111, 20320, 23975, 290, 15819, 3327, 30, 46506, 8034, 16034, 2646, 33411, 3437, 796, 366, 46489, 12456, 23975, 1, 17828, 4877, 9782, 33493, 8034, 16034, 2646, 33411, 3437, 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 ]
[ 2061, 389, 262, 3891, 286, 20747, 326, 423, 4635, 7328, 351, 1111, 20320, 23975, 290, 15819, 3327, 30, 46506, 8034, 16034, 2646, 33411, 3437, 796, 366, 46489, 12456, 23975, 1, 17828, 4877, 9782, 33493, 8034, 16034, 2646, 33411, 3437, 796,...
What was the score against Loic Didavi?
SELECT result FROM table_23563375_11 WHERE opponent = "Loic Didavi"
[ 2061, 373, 262, 4776, 1028, 6706, 291, 7731, 15820, 30, 46506, 1255, 16034, 3084, 62, 1954, 3980, 2091, 2425, 62, 1157, 33411, 6125, 796, 366, 27654, 291, 7731, 15820, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 1028, 6706, 291, 7731, 15820, 30, 46506, 1255, 16034, 3084, 62, 1954, 3980, 2091, 2425, 62, 1157, 33411, 6125, 796, 366, 27654, 291, 7731, 15820, 1 ]
What rank was Peru with a total greater than 3?
SELECT MAX("Rank") FROM table_44306 WHERE "Country" = 'peru' AND "Total" > '3'
[ 2061, 4279, 373, 25768, 351, 257, 2472, 3744, 621, 513, 30, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 2598, 20548, 33411, 366, 33921, 1, 796, 705, 525, 84, 6, 5357, 366, 14957, 1, 1875, 705, 18, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 4279, 373, 25768, 351, 257, 2472, 3744, 621, 513, 30, 46506, 25882, 7203, 27520, 4943, 16034, 3084, 62, 2598, 20548, 33411, 366, 33921, 1, 796, 705, 525, 84, 6, 5357, 366, 14957, 1, 1875, 705, 18, 6 ]
What is the highest value of area when capital is San Juan?
SELECT MAX("Area (km\u00b2)") FROM table_31372 WHERE "Capital" = 'San Juan'
[ 2061, 318, 262, 4511, 1988, 286, 1989, 618, 3139, 318, 2986, 16852, 30, 46506, 25882, 7203, 30547, 357, 13276, 59, 84, 405, 65, 17, 8, 4943, 16034, 3084, 62, 25838, 4761, 33411, 366, 39315, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 1988, 286, 1989, 618, 3139, 318, 2986, 16852, 30, 46506, 25882, 7203, 30547, 357, 13276, 59, 84, 405, 65, 17, 8, 4943, 16034, 3084, 62, 25838, 4761, 33411, 366, 39315, 1, 796, 705, 15017, 16852, 6 ]
tell me the number of patients who had been prescribed morphine sulfate (pf) 2 mg/ml iv soln in a year before.
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'morphine sulfate (pf) 2 mg/ml iv soln' AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')...
[ 33331, 502, 262, 1271, 286, 3871, 508, 550, 587, 14798, 43948, 22443, 378, 357, 79, 69, 8, 362, 10527, 14, 4029, 21628, 1540, 77, 287, 257, 614, 878, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 33331, 502, 262, 1271, 286, 3871, 508, 550, 587, 14798, 43948, 22443, 378, 357, 79, 69, 8, 362, 10527, 14, 4029, 21628, 1540, 77, 287, 257, 614, 878, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8...
give me the number of patients whose primary disease is angioedema?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ANGIOEDEMA"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 3550, 952, 276, 19687, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 15567, 9399, 1961, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 26535, 502, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 3550, 952, 276, 19687, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 15567, 9399, 1961, 27...
Which wireless network did LCD displays with 4 GB of internal storage use?
SELECT wireless_network FROM table_name_6 WHERE screen_type = "lcd" AND internal_storage = "4 gb"
[ 13828, 12521, 3127, 750, 23598, 11298, 351, 604, 13124, 286, 5387, 6143, 779, 30, 46506, 12521, 62, 27349, 16034, 3084, 62, 3672, 62, 21, 33411, 3159, 62, 4906, 796, 366, 75, 10210, 1, 5357, 5387, 62, 35350, 796, 366, 19, 308, 65, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12521, 3127, 750, 23598, 11298, 351, 604, 13124, 286, 5387, 6143, 779, 30, 46506, 12521, 62, 27349, 16034, 3084, 62, 3672, 62, 21, 33411, 3159, 62, 4906, 796, 366, 75, 10210, 1, 5357, 5387, 62, 35350, 796, 366, 19, 308, 65, 1...
what was the difference in votes between mccain and romney ?
SELECT ABS((SELECT "votes" FROM table_204_951 WHERE "candidate" = 'john mccain') - (SELECT "votes" FROM table_204_951 WHERE "candidate" = 'mitt romney'))
[ 10919, 373, 262, 3580, 287, 5690, 1022, 285, 535, 391, 290, 9267, 1681, 5633, 46506, 29950, 19510, 46506, 366, 29307, 1, 16034, 3084, 62, 18638, 62, 50119, 33411, 366, 46188, 20540, 1, 796, 705, 30686, 285, 535, 391, 11537, 532, 357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 373, 262, 3580, 287, 5690, 1022, 285, 535, 391, 290, 9267, 1681, 5633, 46506, 29950, 19510, 46506, 366, 29307, 1, 16034, 3084, 62, 18638, 62, 50119, 33411, 366, 46188, 20540, 1, 796, 705, 30686, 285, 535, 391, 11537, 532, 357, ...
What is the home team of the game on May 22 with the Edmonton Oilers as the visiting team?
SELECT home FROM table_name_29 WHERE visitor = "edmonton oilers" AND date = "may 22"
[ 2061, 318, 262, 1363, 1074, 286, 262, 983, 319, 1737, 2534, 351, 262, 21165, 35004, 355, 262, 10013, 1074, 30, 46506, 1363, 16034, 3084, 62, 3672, 62, 1959, 33411, 21493, 796, 366, 276, 19729, 3056, 364, 1, 5357, 3128, 796, 366, 11261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1363, 1074, 286, 262, 983, 319, 1737, 2534, 351, 262, 21165, 35004, 355, 262, 10013, 1074, 30, 46506, 1363, 16034, 3084, 62, 3672, 62, 1959, 33411, 21493, 796, 366, 276, 19729, 3056, 364, 1, 5357, 3128, 796, 366, 11261...
Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200.
SELECT country FROM mountain WHERE height > 5600 INTERSECT SELECT country FROM mountain WHERE height < 5200
[ 15307, 262, 2678, 326, 423, 12269, 351, 6001, 517, 621, 7265, 405, 3923, 290, 12269, 351, 6001, 1342, 621, 642, 2167, 13, 46506, 1499, 16034, 8598, 33411, 6001, 1875, 7265, 405, 17828, 4877, 9782, 33493, 1499, 16034, 8598, 33411, 6001, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2678, 326, 423, 12269, 351, 6001, 517, 621, 7265, 405, 3923, 290, 12269, 351, 6001, 1342, 621, 642, 2167, 13, 46506, 1499, 16034, 8598, 33411, 6001, 1875, 7265, 405, 17828, 4877, 9782, 33493, 1499, 16034, 8598, 33411, 6001, ...
How many patients tested for other body fluid were born before the year 2043?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2043" AND lab.fluid = "Other Body Fluid"
[ 2437, 867, 3871, 6789, 329, 584, 1767, 11711, 547, 4642, 878, 262, 614, 1160, 3559, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6789, 329, 584, 1767, 11711, 547, 4642, 878, 262, 614, 1160, 3559, 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...
how many patients admitted before 2197 followed the procedure icd9 code 3323?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2197" AND procedures.icd9_code = "3323"
[ 4919, 867, 3871, 6848, 878, 362, 24991, 3940, 262, 8771, 14158, 67, 24, 2438, 4747, 1954, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 181...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6848, 878, 362, 24991, 3940, 262, 8771, 14158, 67, 24, 2438, 4747, 1954, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 181...
What is 18-49, when Weekly Winner is 'Youth Counselor Justin Meece'?
SELECT "18-49" FROM table_61839 WHERE "Weekly Winner" = 'youth counselor justin meece'
[ 2061, 318, 1248, 12, 2920, 11, 618, 18168, 25358, 318, 705, 56, 1536, 21023, 273, 10799, 337, 1453, 344, 30960, 46506, 366, 1507, 12, 2920, 1, 16034, 3084, 62, 47448, 2670, 33411, 366, 20916, 306, 25358, 1, 796, 705, 88, 1536, 31928, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1248, 12, 2920, 11, 618, 18168, 25358, 318, 705, 56, 1536, 21023, 273, 10799, 337, 1453, 344, 30960, 46506, 366, 1507, 12, 2920, 1, 16034, 3084, 62, 47448, 2670, 33411, 366, 20916, 306, 25358, 1, 796, 705, 88, 1536, 31928, ...
What is the highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?
SELECT MAX("2007") FROM table_40320 WHERE "1985" > '52' AND "1987" > '130' AND "1990" < '1990'
[ 2061, 318, 262, 4511, 4343, 1988, 351, 257, 12863, 1988, 3744, 621, 6740, 11, 257, 12923, 1988, 3744, 621, 11323, 11, 290, 257, 6303, 1342, 621, 6303, 30, 46506, 25882, 7203, 12726, 4943, 16034, 3084, 62, 1821, 19504, 33411, 366, 29110,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4343, 1988, 351, 257, 12863, 1988, 3744, 621, 6740, 11, 257, 12923, 1988, 3744, 621, 11323, 11, 290, 257, 6303, 1342, 621, 6303, 30, 46506, 25882, 7203, 12726, 4943, 16034, 3084, 62, 1821, 19504, 33411, 366, 29110,...
Name the least RD number that has PI GP more than 0 and pick # more than 51
SELECT MIN("Rd #") FROM table_55420 WHERE "Pl GP" > '0' AND "Pick #" > '51'
[ 5376, 262, 1551, 31475, 1271, 326, 468, 30434, 14714, 517, 621, 657, 290, 2298, 1303, 517, 621, 6885, 46506, 20625, 7203, 49, 67, 1303, 4943, 16034, 3084, 62, 2816, 27211, 33411, 366, 3646, 14714, 1, 1875, 705, 15, 6, 5357, 366, 31686...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1551, 31475, 1271, 326, 468, 30434, 14714, 517, 621, 657, 290, 2298, 1303, 517, 621, 6885, 46506, 20625, 7203, 49, 67, 1303, 4943, 16034, 3084, 62, 2816, 27211, 33411, 366, 3646, 14714, 1, 1875, 705, 15, 6, 5357, 366, 31686...
the last time the previous month, when was patient 19175 prescribed d5w and pantoprazole at the same time?
SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'd5w' AND admissions.subject_id = 19175 AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of...
[ 1169, 938, 640, 262, 2180, 1227, 11, 618, 373, 5827, 678, 17430, 14798, 288, 20, 86, 290, 15857, 404, 3247, 2305, 379, 262, 976, 640, 30, 46506, 256, 16, 13, 9688, 4475, 16034, 357, 46506, 25349, 13, 32796, 62, 312, 11, 34092, 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...
[ 1169, 938, 640, 262, 2180, 1227, 11, 618, 373, 5827, 678, 17430, 14798, 288, 20, 86, 290, 15857, 404, 3247, 2305, 379, 262, 976, 640, 30, 46506, 256, 16, 13, 9688, 4475, 16034, 357, 46506, 25349, 13, 32796, 62, 312, 11, 34092, 13, ...
How many television station listing have a radio station as lao national radio?
SELECT COUNT(television_station) FROM table_2879165_1 WHERE radio_station = "Lao National Radio"
[ 2437, 867, 5581, 4429, 13487, 423, 257, 5243, 4429, 355, 300, 5488, 2260, 5243, 30, 46506, 327, 28270, 7, 660, 5024, 62, 17529, 8, 16034, 3084, 62, 2078, 3720, 20986, 62, 16, 33411, 5243, 62, 17529, 796, 366, 43, 5488, 2351, 8829, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5581, 4429, 13487, 423, 257, 5243, 4429, 355, 300, 5488, 2260, 5243, 30, 46506, 327, 28270, 7, 660, 5024, 62, 17529, 8, 16034, 3084, 62, 2078, 3720, 20986, 62, 16, 33411, 5243, 62, 17529, 796, 366, 43, 5488, 2351, 8829, 1...
provide the number of patients whose language is russian and diagnosis short title is atrial fibrillation.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.language = "RUSS" AND diagnoses.short_title = "Atrial fibrillation"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 3303, 318, 374, 31562, 290, 13669, 1790, 3670, 318, 379, 4454, 277, 2889, 40903, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 3303, 318, 374, 31562, 290, 13669, 1790, 3670, 318, 379, 4454, 277, 2889, 40903, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1...
Name the average week for attendance of 75,111
SELECT AVG(week) FROM table_name_17 WHERE attendance = 75 OFFSET 111
[ 5376, 262, 2811, 1285, 329, 14858, 286, 5441, 11, 16243, 46506, 35224, 7, 10464, 8, 16034, 3084, 62, 3672, 62, 1558, 33411, 14858, 796, 5441, 3963, 10652, 2767, 13374 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 2811, 1285, 329, 14858, 286, 5441, 11, 16243, 46506, 35224, 7, 10464, 8, 16034, 3084, 62, 3672, 62, 1558, 33411, 14858, 796, 5441, 3963, 10652, 2767, 13374 ]
what is the total number of high rebounds for minnesota?
SELECT COUNT(high_rebounds) FROM table_22879262_7 WHERE team = "Minnesota"
[ 10919, 318, 262, 2472, 1271, 286, 1029, 18841, 329, 949, 8360, 30, 46506, 327, 28270, 7, 8929, 62, 34806, 3733, 8, 16034, 3084, 62, 23815, 3720, 29119, 62, 22, 33411, 1074, 796, 366, 45670, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1029, 18841, 329, 949, 8360, 30, 46506, 327, 28270, 7, 8929, 62, 34806, 3733, 8, 16034, 3084, 62, 23815, 3720, 29119, 62, 22, 33411, 1074, 796, 366, 45670, 1 ]
Calculate the number of patients with insertion of endotracheal tube who have an unspecified death status
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.long_title = "Insertion of endotracheal tube"
[ 9771, 3129, 378, 262, 1271, 286, 3871, 351, 36075, 286, 46710, 81, 4891, 282, 12403, 508, 423, 281, 29547, 1918, 3722, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9771, 3129, 378, 262, 1271, 286, 3871, 351, 36075, 286, 46710, 81, 4891, 282, 12403, 508, 423, 281, 29547, 1918, 3722, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9...
What is Name, when Spike is greater than 343, and when Date of Birth is 02.03.1973?
SELECT name FROM table_name_98 WHERE spike > 343 AND date_of_birth = "02.03.1973"
[ 2061, 318, 6530, 11, 618, 26309, 318, 3744, 621, 37290, 11, 290, 618, 7536, 286, 17647, 318, 7816, 13, 3070, 13, 40220, 30, 46506, 1438, 16034, 3084, 62, 3672, 62, 4089, 33411, 20240, 1875, 37290, 5357, 3128, 62, 1659, 62, 24280, 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 ]
[ 2061, 318, 6530, 11, 618, 26309, 318, 3744, 621, 37290, 11, 290, 618, 7536, 286, 17647, 318, 7816, 13, 3070, 13, 40220, 30, 46506, 1438, 16034, 3084, 62, 3672, 62, 4089, 33411, 20240, 1875, 37290, 5357, 3128, 62, 1659, 62, 24280, 796,...
what are the three most common laboratory tests that patients have during the same month after being diagnosed with s/p thoracoscopic procedure - lung reduction in 2105?
SELECT t3.labname FROM (SELECT t2.labname, 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 = 's/p thoracoscopic procedure - lung reduction' AND ST...
[ 10919, 389, 262, 1115, 749, 2219, 14010, 5254, 326, 3871, 423, 1141, 262, 976, 1227, 706, 852, 14641, 351, 264, 14, 79, 41899, 330, 48228, 8771, 532, 12317, 7741, 287, 362, 13348, 30, 46506, 256, 18, 13, 23912, 3672, 16034, 357, 46506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 389, 262, 1115, 749, 2219, 14010, 5254, 326, 3871, 423, 1141, 262, 976, 1227, 706, 852, 14641, 351, 264, 14, 79, 41899, 330, 48228, 8771, 532, 12317, 7741, 287, 362, 13348, 30, 46506, 256, 18, 13, 23912, 3672, 16034, 357, 46506...
which team has the most titles ?
SELECT "team" FROM table_204_129 ORDER BY "titles" DESC LIMIT 1
[ 4758, 1074, 468, 262, 749, 8714, 5633, 46506, 366, 15097, 1, 16034, 3084, 62, 18638, 62, 18741, 38678, 11050, 366, 83, 30540, 1, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4758, 1074, 468, 262, 749, 8714, 5633, 46506, 366, 15097, 1, 16034, 3084, 62, 18638, 62, 18741, 38678, 11050, 366, 83, 30540, 1, 22196, 34, 27564, 2043, 352 ]
What was Tony Oakey's Rd., Time when he fought against hastings rasani?
SELECT rd, _time FROM table_name_48 WHERE opponent = "hastings rasani"
[ 2061, 373, 8832, 440, 539, 88, 338, 20769, 1539, 3862, 618, 339, 8350, 1028, 19338, 654, 374, 292, 3216, 30, 46506, 374, 67, 11, 4808, 2435, 16034, 3084, 62, 3672, 62, 2780, 33411, 6125, 796, 366, 71, 459, 654, 374, 292, 3216, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8832, 440, 539, 88, 338, 20769, 1539, 3862, 618, 339, 8350, 1028, 19338, 654, 374, 292, 3216, 30, 46506, 374, 67, 11, 4808, 2435, 16034, 3084, 62, 3672, 62, 2780, 33411, 6125, 796, 366, 71, 459, 654, 374, 292, 3216, 1 ]
What was the away team that played against Fitzroy?
SELECT away_team FROM table_name_87 WHERE home_team = "fitzroy"
[ 2061, 373, 262, 1497, 1074, 326, 2826, 1028, 16703, 3287, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 5774, 33411, 1363, 62, 15097, 796, 366, 69, 4224, 3287, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 1497, 1074, 326, 2826, 1028, 16703, 3287, 30, 46506, 1497, 62, 15097, 16034, 3084, 62, 3672, 62, 5774, 33411, 1363, 62, 15097, 796, 366, 69, 4224, 3287, 1 ]
Show all artist name, age, and country ordered by the yeared they joined.
SELECT name, age, country FROM artist ORDER BY year_join
[ 15307, 477, 6802, 1438, 11, 2479, 11, 290, 1499, 6149, 416, 262, 331, 3380, 484, 5399, 13, 46506, 1438, 11, 2479, 11, 1499, 16034, 6802, 38678, 11050, 614, 62, 22179 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 477, 6802, 1438, 11, 2479, 11, 290, 1499, 6149, 416, 262, 331, 3380, 484, 5399, 13, 46506, 1438, 11, 2479, 11, 1499, 16034, 6802, 38678, 11050, 614, 62, 22179 ]
Which Notes have a Time larger than 23.34, and a Rank of 8?
SELECT "Notes" FROM table_65118 WHERE "Time ( sec )" > '23.34' AND "Rank" = '8'
[ 13828, 11822, 423, 257, 3862, 4025, 621, 2242, 13, 2682, 11, 290, 257, 10916, 286, 807, 30, 46506, 366, 16130, 1, 16034, 3084, 62, 2996, 16817, 33411, 366, 7575, 357, 792, 1267, 1, 1875, 705, 1954, 13, 2682, 6, 5357, 366, 27520, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11822, 423, 257, 3862, 4025, 621, 2242, 13, 2682, 11, 290, 257, 10916, 286, 807, 30, 46506, 366, 16130, 1, 16034, 3084, 62, 2996, 16817, 33411, 366, 7575, 357, 792, 1267, 1, 1875, 705, 1954, 13, 2682, 6, 5357, 366, 27520, 1, ...
I need to take a class this semester that 's a prerequisite for most of the other classes .
SELECT COUNT(DISTINCT COURSE_PREREQUISITEalias0.course_id), COURSEalias0.department, COURSEalias0.name, COURSEalias0.number FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course AS COURSEalias1, course_offering AS COURSE_OFFERINGali...
[ 40, 761, 284, 1011, 257, 1398, 428, 24878, 326, 705, 82, 257, 43119, 329, 749, 286, 262, 584, 6097, 764, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 37384, 5188, 62, 4805, 9338, 10917, 1797, 12709, 26011, 15, 13, 17319, 62, 312, 828...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 40, 761, 284, 1011, 257, 1398, 428, 24878, 326, 705, 82, 257, 43119, 329, 749, 286, 262, 584, 6097, 764, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 37384, 5188, 62, 4805, 9338, 10917, 1797, 12709, 26011, 15, 13, 17319, 62, 312, 828...
Name the most population for seychelles and rank less than 13
SELECT MAX("Population") FROM table_37148 WHERE "Country/territory/entity" = 'seychelles' AND "Rank" < '13'
[ 5376, 262, 749, 3265, 329, 384, 88, 12398, 274, 290, 4279, 1342, 621, 1511, 46506, 25882, 7203, 45251, 4943, 16034, 3084, 62, 2718, 18294, 33411, 366, 33921, 14, 353, 799, 652, 14, 26858, 1, 796, 705, 4397, 12398, 274, 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 ]
[ 5376, 262, 749, 3265, 329, 384, 88, 12398, 274, 290, 4279, 1342, 621, 1511, 46506, 25882, 7203, 45251, 4943, 16034, 3084, 62, 2718, 18294, 33411, 366, 33921, 14, 353, 799, 652, 14, 26858, 1, 796, 705, 4397, 12398, 274, 6, 5357, 366, ...
What Player has a College that is alberta?
SELECT player FROM table_name_56 WHERE college = "alberta"
[ 2061, 7853, 468, 257, 5535, 326, 318, 435, 4835, 64, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 3980, 33411, 4152, 796, 366, 282, 4835, 64, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 7853, 468, 257, 5535, 326, 318, 435, 4835, 64, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 3980, 33411, 4152, 796, 366, 282, 4835, 64, 1 ]
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the sum of manager_id bin hire_date by weekday, and sort from high to low by the y-axis.
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(MANAGER_ID) DESC
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 3297, 422, 1029, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2160, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 11, 290, 3297, 422, 1029, ...
What is every date of Mark Taylor as winning driver?
SELECT "Date" FROM table_73881 WHERE "Winning driver" = 'Mark Taylor'
[ 2061, 318, 790, 3128, 286, 2940, 8121, 355, 5442, 4639, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 22, 2548, 6659, 33411, 366, 16643, 768, 4639, 1, 796, 705, 9704, 8121, 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, 318, 790, 3128, 286, 2940, 8121, 355, 5442, 4639, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 22, 2548, 6659, 33411, 366, 16643, 768, 4639, 1, 796, 705, 9704, 8121, 6 ]
What is Beohari's highest number of electorates?
SELECT MAX(number_of_electorates__2009_) FROM table_name_81 WHERE name = "beohari"
[ 2061, 318, 1355, 1219, 2743, 338, 4511, 1271, 286, 43191, 689, 30, 46506, 25882, 7, 17618, 62, 1659, 62, 9509, 273, 689, 834, 10531, 62, 8, 16034, 3084, 62, 3672, 62, 6659, 33411, 1438, 796, 366, 1350, 1219, 2743, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1355, 1219, 2743, 338, 4511, 1271, 286, 43191, 689, 30, 46506, 25882, 7, 17618, 62, 1659, 62, 9509, 273, 689, 834, 10531, 62, 8, 16034, 3084, 62, 3672, 62, 6659, 33411, 1438, 796, 366, 1350, 1219, 2743, 1 ]
what is date of birth and diagnoses long title of subject name jerry deberry?
SELECT demographic.dob, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Jerry Deberry"
[ 10919, 318, 3128, 286, 4082, 290, 40567, 890, 3670, 286, 2426, 1438, 474, 6996, 390, 8396, 30, 46506, 16728, 13, 67, 672, 11, 40567, 13, 6511, 62, 7839, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 3128, 286, 4082, 290, 40567, 890, 3670, 286, 2426, 1438, 474, 6996, 390, 8396, 30, 46506, 16728, 13, 67, 672, 11, 40567, 13, 6511, 62, 7839, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 31...
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the average of manufacturer , and group by attribute name, I want to show by the X in desc.
SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 262, 2811, 286, 11554, 837, 290, 1448, 416, 11688, 1438, 11, 314, 765, 284, 905, 416, 262, 1395, 287, 1715, 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...
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1438, 290, 262, 2811, 286, 11554, 837, 290, 1448, 416, 11688, 1438, 11, 314, 765, 284, 905, 416, 262, 1395, 287, 1715, 13...
What country does robert allenby represent?
SELECT country FROM table_18862490_2 WHERE player = "Robert Allenby"
[ 2061, 1499, 857, 686, 4835, 477, 268, 1525, 2380, 30, 46506, 1499, 16034, 3084, 62, 1507, 4521, 1731, 3829, 62, 17, 33411, 2137, 796, 366, 19156, 9659, 1525, 1 ]
[ 1, 1, 1, 1, 1, 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, 1499, 857, 686, 4835, 477, 268, 1525, 2380, 30, 46506, 1499, 16034, 3084, 62, 1507, 4521, 1731, 3829, 62, 17, 33411, 2137, 796, 366, 19156, 9659, 1525, 1 ]
who is the tallest delegate ?
SELECT "contestant" FROM table_204_20 ORDER BY "height" DESC LIMIT 1
[ 8727, 318, 262, 38760, 23191, 5633, 46506, 366, 3642, 395, 415, 1, 16034, 3084, 62, 18638, 62, 1238, 38678, 11050, 366, 17015, 1, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8727, 318, 262, 38760, 23191, 5633, 46506, 366, 3642, 395, 415, 1, 16034, 3084, 62, 18638, 62, 1238, 38678, 11050, 366, 17015, 1, 22196, 34, 27564, 2043, 352 ]
when had patient 027-156601 last had the maximum heartrate until 07/22/2104?
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-156601')) AND NOT vitalperiodic.heartrate IS NU...
[ 12518, 550, 5827, 657, 1983, 12, 1314, 2791, 486, 938, 550, 262, 5415, 2612, 4873, 1566, 8753, 14, 1828, 14, 17, 13464, 30, 46506, 9204, 41007, 291, 13, 672, 3168, 341, 2435, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12518, 550, 5827, 657, 1983, 12, 1314, 2791, 486, 938, 550, 262, 5415, 2612, 4873, 1566, 8753, 14, 1828, 14, 17, 13464, 30, 46506, 9204, 41007, 291, 13, 672, 3168, 341, 2435, 16034, 9204, 41007, 291, 33411, 9204, 41007, 291, 13, 26029...
Who took test #4?
SELECT test_taker FROM table_10749367_3 WHERE _number = 4
[ 8241, 1718, 1332, 1303, 19, 30, 46506, 1332, 62, 30157, 16034, 3084, 62, 15982, 2920, 27824, 62, 18, 33411, 4808, 17618, 796, 604 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 1718, 1332, 1303, 19, 30, 46506, 1332, 62, 30157, 16034, 3084, 62, 15982, 2920, 27824, 62, 18, 33411, 4808, 17618, 796, 604 ]
Who are the opponents in Massachusetts5 district?
SELECT opponent FROM table_1341522_24 WHERE district = "Massachusetts5"
[ 8241, 389, 262, 7691, 287, 10140, 20, 4783, 30, 46506, 6125, 16034, 3084, 62, 19880, 1314, 1828, 62, 1731, 33411, 4783, 796, 366, 20273, 9770, 20, 1 ]
[ 1, 1, 1, 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, 389, 262, 7691, 287, 10140, 20, 4783, 30, 46506, 6125, 16034, 3084, 62, 19880, 1314, 1828, 62, 1731, 33411, 4783, 796, 366, 20273, 9770, 20, 1 ]
count the number of times that patient 006-195541 had a discharge of output amt-urinary catheter until 869 days ago.
SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-195541')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.c...
[ 9127, 262, 1271, 286, 1661, 326, 5827, 3571, 21, 12, 1129, 2816, 3901, 550, 257, 17655, 286, 5072, 716, 83, 12, 333, 3219, 3797, 43332, 1566, 807, 3388, 1528, 2084, 13, 46506, 327, 28270, 7, 28104, 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...
[ 9127, 262, 1271, 286, 1661, 326, 5827, 3571, 21, 12, 1129, 2816, 3901, 550, 257, 17655, 286, 5072, 716, 83, 12, 333, 3219, 3797, 43332, 1566, 807, 3388, 1528, 2084, 13, 46506, 327, 28270, 7, 28104, 16034, 10337, 22915, 33411, 10337, 2...
What is Race 2, when Driver is John Faulkner?
SELECT race_2 FROM table_name_2 WHERE driver = "john faulkner"
[ 2061, 318, 12588, 362, 11, 618, 12434, 318, 1757, 44760, 74, 1008, 30, 46506, 3234, 62, 17, 16034, 3084, 62, 3672, 62, 17, 33411, 4639, 796, 366, 30686, 277, 2518, 74, 1008, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12588, 362, 11, 618, 12434, 318, 1757, 44760, 74, 1008, 30, 46506, 3234, 62, 17, 16034, 3084, 62, 3672, 62, 17, 33411, 4639, 796, 366, 30686, 277, 2518, 74, 1008, 1 ]
What source showed Brian Moran at 19%?
SELECT "Source" FROM table_2474 WHERE "Brian Moran" = '19%'
[ 2061, 2723, 3751, 8403, 42705, 379, 678, 4, 30, 46506, 366, 7416, 1, 16034, 3084, 62, 1731, 4524, 33411, 366, 24761, 42705, 1, 796, 705, 1129, 4, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 2723, 3751, 8403, 42705, 379, 678, 4, 30, 46506, 366, 7416, 1, 16034, 3084, 62, 1731, 4524, 33411, 366, 24761, 42705, 1, 796, 705, 1129, 4, 6 ]
what is the total number of fide players in the united states ?
SELECT "#fide" FROM table_203_663 WHERE "country" = 'united states'
[ 10919, 318, 262, 2472, 1271, 286, 43340, 1938, 287, 262, 16503, 2585, 5633, 46506, 25113, 69, 485, 1, 16034, 3084, 62, 22416, 62, 45791, 33411, 366, 19315, 1, 796, 705, 41187, 2585, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 2472, 1271, 286, 43340, 1938, 287, 262, 16503, 2585, 5633, 46506, 25113, 69, 485, 1, 16034, 3084, 62, 22416, 62, 45791, 33411, 366, 19315, 1, 796, 705, 41187, 2585, 6 ]
How many against for the Moyston-Willaura team with 4 losses and fewer than 2 byes?
SELECT MAX(against) FROM table_name_15 WHERE losses = 4 AND mininera_dfl = "moyston-willaura" AND byes < 2
[ 2437, 867, 1028, 329, 262, 28523, 3743, 12, 8743, 33830, 1074, 351, 604, 9089, 290, 7380, 621, 362, 416, 274, 30, 46506, 25882, 7, 32826, 8, 16034, 3084, 62, 3672, 62, 1314, 33411, 9089, 796, 604, 5357, 949, 7274, 64, 62, 67, 2704, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1028, 329, 262, 28523, 3743, 12, 8743, 33830, 1074, 351, 604, 9089, 290, 7380, 621, 362, 416, 274, 30, 46506, 25882, 7, 32826, 8, 16034, 3084, 62, 3672, 62, 1314, 33411, 9089, 796, 604, 5357, 949, 7274, 64, 62, 67, 2704, ...
Which county includes Himco Dump?
SELECT "County" FROM table_5707 WHERE "Name" = 'himco dump'
[ 13828, 7968, 3407, 10978, 1073, 360, 931, 30, 46506, 366, 12332, 88, 1, 16034, 3084, 62, 20, 24038, 33411, 366, 5376, 1, 796, 705, 38400, 1073, 10285, 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 ]
[ 13828, 7968, 3407, 10978, 1073, 360, 931, 30, 46506, 366, 12332, 88, 1, 16034, 3084, 62, 20, 24038, 33411, 366, 5376, 1, 796, 705, 38400, 1073, 10285, 6 ]
Find All_Home and the sum of School_ID , and group by attribute All_Home, and visualize them by a bar chart, display X-axis from high to low order.
SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC
[ 16742, 1439, 62, 16060, 290, 262, 2160, 286, 3961, 62, 2389, 837, 290, 1448, 416, 11688, 1439, 62, 16060, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 3359, 1395, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 1439, 62, 16060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1439, 62, 16060, 290, 262, 2160, 286, 3961, 62, 2389, 837, 290, 1448, 416, 11688, 1439, 62, 16060, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 3359, 1395, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 1439, 62, 16060, ...
What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research?
SELECT "Site" FROM table_58347 WHERE "Orbit" = 'leo' AND "Decay ( UTC )" = 'still in orbit' AND "Function" = 'magnetosphere research'
[ 2061, 2524, 468, 281, 13066, 286, 19632, 11, 257, 22119, 357, 17429, 8, 286, 991, 287, 13066, 11, 290, 257, 19972, 22829, 2267, 30, 46506, 366, 29123, 1, 16034, 3084, 62, 3365, 30995, 33411, 366, 5574, 2545, 1, 796, 705, 293, 78, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 2524, 468, 281, 13066, 286, 19632, 11, 257, 22119, 357, 17429, 8, 286, 991, 287, 13066, 11, 290, 257, 19972, 22829, 2267, 30, 46506, 366, 29123, 1, 16034, 3084, 62, 3365, 30995, 33411, 366, 5574, 2545, 1, 796, 705, 293, 78, 6,...
What position did the person from Clemson school fill?
SELECT position FROM table_name_48 WHERE school = "clemson"
[ 2061, 2292, 750, 262, 1048, 422, 27801, 1524, 6070, 30, 46506, 2292, 16034, 3084, 62, 3672, 62, 2780, 33411, 1524, 796, 366, 2375, 24996, 1 ]
[ 1, 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, 2292, 750, 262, 1048, 422, 27801, 1524, 6070, 30, 46506, 2292, 16034, 3084, 62, 3672, 62, 2780, 33411, 1524, 796, 366, 2375, 24996, 1 ]
What team is based at junction oval?
SELECT "Home team" FROM table_52085 WHERE "Venue" = 'junction oval'
[ 2061, 1074, 318, 1912, 379, 35037, 41186, 30, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 31211, 5332, 33411, 366, 37522, 518, 1, 796, 705, 73, 4575, 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 ]
[ 2061, 1074, 318, 1912, 379, 35037, 41186, 30, 46506, 366, 16060, 1074, 1, 16034, 3084, 62, 31211, 5332, 33411, 366, 37522, 518, 1, 796, 705, 73, 4575, 41186, 6 ]
This Spring are there any CLLING classes considered upper-level ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'CLLING' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spri...
[ 1212, 8225, 389, 612, 597, 327, 3069, 2751, 6097, 3177, 6727, 12, 5715, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 1430, 62, 17319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1212, 8225, 389, 612, 597, 327, 3069, 2751, 6097, 3177, 6727, 12, 5715, 5633, 46506, 360, 8808, 1268, 4177, 1781, 13, 10378, 1823, 11, 1781, 13, 3672, 11, 1781, 13, 17618, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 1430, 62, 17319, ...
when was the first microbiology test of patient 031-23724,?
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23724')) ORDER BY microlab.culturetakentime LIMIT 1
[ 12518, 373, 262, 717, 24559, 1435, 1332, 286, 5827, 657, 3132, 12, 24693, 1731, 11, 30, 46506, 4580, 23912, 13, 25584, 83, 461, 298, 524, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 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...
[ 12518, 373, 262, 717, 24559, 1435, 1332, 286, 5827, 657, 3132, 12, 24693, 1731, 11, 30, 46506, 4580, 23912, 13, 25584, 83, 461, 298, 524, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, ...
What are the titles for episodes prior to episode 4?
SELECT title FROM table_name_29 WHERE no_in_series < 4
[ 2061, 389, 262, 8714, 329, 8640, 3161, 284, 4471, 604, 30, 46506, 3670, 16034, 3084, 62, 3672, 62, 1959, 33411, 645, 62, 259, 62, 25076, 1279, 604 ]
[ 1, 1, 1, 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, 8714, 329, 8640, 3161, 284, 4471, 604, 30, 46506, 3670, 16034, 3084, 62, 3672, 62, 1959, 33411, 645, 62, 259, 62, 25076, 1279, 604 ]
What away has 1-4 as the home?
SELECT away FROM table_name_82 WHERE home = "1-4"
[ 2061, 1497, 468, 352, 12, 19, 355, 262, 1363, 30, 46506, 1497, 16034, 3084, 62, 3672, 62, 6469, 33411, 1363, 796, 366, 16, 12, 19, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1497, 468, 352, 12, 19, 355, 262, 1363, 30, 46506, 1497, 16034, 3084, 62, 3672, 62, 6469, 33411, 1363, 796, 366, 16, 12, 19, 1 ]
what was the name of the drug that was prescribed to patient 005-73237 during the same day after having had a enteral feeds - nutritional supplement procedure in a month before?
SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-73237') AND treatment.treatme...
[ 10919, 373, 262, 1438, 286, 262, 2563, 326, 373, 14798, 284, 5827, 3571, 20, 12, 4790, 24693, 1141, 262, 976, 1110, 706, 1719, 550, 257, 920, 1691, 21318, 532, 24000, 10327, 8771, 287, 257, 1227, 878, 30, 46506, 256, 17, 13, 30349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 373, 262, 1438, 286, 262, 2563, 326, 373, 14798, 284, 5827, 3571, 20, 12, 4790, 24693, 1141, 262, 976, 1110, 706, 1719, 550, 257, 920, 1691, 21318, 532, 24000, 10327, 8771, 287, 257, 1227, 878, 30, 46506, 256, 17, 13, 30349, ...
who is the team 2 when the team 1 is sestese(e16)?
SELECT team_2 FROM table_name_29 WHERE team_1 = "sestese(e16)"
[ 8727, 318, 262, 1074, 362, 618, 262, 1074, 352, 318, 264, 395, 2771, 7, 68, 1433, 19427, 46506, 1074, 62, 17, 16034, 3084, 62, 3672, 62, 1959, 33411, 1074, 62, 16, 796, 366, 82, 395, 2771, 7, 68, 1433, 16725 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8727, 318, 262, 1074, 362, 618, 262, 1074, 352, 318, 264, 395, 2771, 7, 68, 1433, 19427, 46506, 1074, 62, 17, 16034, 3084, 62, 3672, 62, 1959, 33411, 1074, 62, 16, 796, 366, 82, 395, 2771, 7, 68, 1433, 16725 ]
Which Against has a Position larger than 11?
SELECT COUNT("Against") FROM table_7447 WHERE "Position" > '11'
[ 13828, 12914, 468, 257, 23158, 4025, 621, 1367, 30, 46506, 327, 28270, 7203, 39276, 4943, 16034, 3084, 62, 22, 34825, 33411, 366, 26545, 1, 1875, 705, 1157, 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 ]
[ 13828, 12914, 468, 257, 23158, 4025, 621, 1367, 30, 46506, 327, 28270, 7203, 39276, 4943, 16034, 3084, 62, 22, 34825, 33411, 366, 26545, 1, 1875, 705, 1157, 6 ]
What's the n Africa in 2012 with an N/A as the CPLP?
SELECT n_africa_rank FROM table_name_54 WHERE year = 2012 AND cplp_rank = "n/a"
[ 2061, 338, 262, 299, 5478, 287, 2321, 351, 281, 399, 14, 32, 355, 262, 327, 6489, 47, 30, 46506, 299, 62, 1878, 30997, 62, 43027, 16034, 3084, 62, 3672, 62, 4051, 33411, 614, 796, 2321, 5357, 269, 489, 79, 62, 43027, 796, 366, 77,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 299, 5478, 287, 2321, 351, 281, 399, 14, 32, 355, 262, 327, 6489, 47, 30, 46506, 299, 62, 1878, 30997, 62, 43027, 16034, 3084, 62, 3672, 62, 4051, 33411, 614, 796, 2321, 5357, 269, 489, 79, 62, 43027, 796, 366, 77,...
how much of a difference has patient 1561 made in its white blood cells levels last measured on the current hospital visit compared to the second to last value 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 = 1561 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'white blood cells') ORDER BY labevents.c...
[ 4919, 881, 286, 257, 3580, 468, 5827, 1315, 5333, 925, 287, 663, 2330, 2910, 4778, 2974, 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, 31534...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 881, 286, 257, 3580, 468, 5827, 1315, 5333, 925, 287, 663, 2330, 2910, 4778, 2974, 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, 31534...
Which 1st Party has a 1st Member of william wither bramston beach?
SELECT "1st Party" FROM table_14766 WHERE "1st Member" = 'william wither bramston beach'
[ 13828, 352, 301, 3615, 468, 257, 352, 301, 10239, 286, 481, 1789, 266, 1555, 275, 859, 3743, 10481, 30, 46506, 366, 16, 301, 3615, 1, 16034, 3084, 62, 20198, 2791, 33411, 366, 16, 301, 10239, 1, 796, 705, 10594, 1789, 266, 1555, 275...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 352, 301, 3615, 468, 257, 352, 301, 10239, 286, 481, 1789, 266, 1555, 275, 859, 3743, 10481, 30, 46506, 366, 16, 301, 3615, 1, 16034, 3084, 62, 20198, 2791, 33411, 366, 16, 301, 10239, 1, 796, 705, 10594, 1789, 266, 1555, 275...
what are all the adversary where the beginning is 1899
SELECT "Rival" FROM table_30526 WHERE "First Meeting" = '1899'
[ 10919, 389, 477, 262, 34114, 810, 262, 3726, 318, 47465, 46506, 366, 49, 2473, 1, 16034, 3084, 62, 22515, 2075, 33411, 366, 5962, 22244, 1, 796, 705, 1507, 2079, 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 ]
[ 10919, 389, 477, 262, 34114, 810, 262, 3726, 318, 47465, 46506, 366, 49, 2473, 1, 16034, 3084, 62, 22515, 2075, 33411, 366, 5962, 22244, 1, 796, 705, 1507, 2079, 6 ]
What city was founded in 1857?
SELECT city FROM table_name_99 WHERE founded = 1857
[ 2061, 1748, 373, 9393, 287, 1248, 3553, 30, 46506, 1748, 16034, 3084, 62, 3672, 62, 2079, 33411, 9393, 796, 1248, 3553 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1748, 373, 9393, 287, 1248, 3553, 30, 46506, 1748, 16034, 3084, 62, 3672, 62, 2079, 33411, 9393, 796, 1248, 3553 ]
Who won a medal at the 2008 Beijing Olympics?
SELECT "Name" FROM table_38770 WHERE "Games" = '2008 beijing'
[ 8241, 1839, 257, 18279, 379, 262, 3648, 11618, 14935, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 32220, 2154, 33411, 366, 24474, 1, 796, 705, 11528, 307, 11030, 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, 1839, 257, 18279, 379, 262, 3648, 11618, 14935, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 32220, 2154, 33411, 366, 24474, 1, 796, 705, 11528, 307, 11030, 6 ]
What was the Home team score for the team that played South Melbourne?
SELECT home_team AS score FROM table_name_36 WHERE away_team = "south melbourne"
[ 2061, 373, 262, 5995, 1074, 4776, 329, 262, 1074, 326, 2826, 2520, 14819, 30, 46506, 1363, 62, 15097, 7054, 4776, 16034, 3084, 62, 3672, 62, 2623, 33411, 1497, 62, 15097, 796, 366, 35782, 7758, 12544, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5995, 1074, 4776, 329, 262, 1074, 326, 2826, 2520, 14819, 30, 46506, 1363, 62, 15097, 7054, 4776, 16034, 3084, 62, 3672, 62, 2623, 33411, 1497, 62, 15097, 796, 366, 35782, 7758, 12544, 1 ]
What is the average point total for arrows racing team before 1983?
SELECT AVG(points) FROM table_name_73 WHERE team = "arrows racing team" AND year < 1983
[ 2061, 318, 262, 2811, 966, 2472, 329, 20507, 11717, 1074, 878, 13540, 30, 46506, 35224, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 1074, 796, 366, 6018, 82, 11717, 1074, 1, 5357, 614, 1279, 13540 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 966, 2472, 329, 20507, 11717, 1074, 878, 13540, 30, 46506, 35224, 7, 13033, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 1074, 796, 366, 6018, 82, 11717, 1074, 1, 5357, 614, 1279, 13540 ]
What is the home ground in region NZL?
SELECT "Home ground" FROM table_9987 WHERE "Region" = 'nzl'
[ 2061, 318, 262, 1363, 2323, 287, 3814, 26905, 43, 30, 46506, 366, 16060, 2323, 1, 16034, 3084, 62, 2079, 5774, 33411, 366, 47371, 1, 796, 705, 27305, 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 ]
[ 2061, 318, 262, 1363, 2323, 287, 3814, 26905, 43, 30, 46506, 366, 16060, 2323, 1, 16034, 3084, 62, 2079, 5774, 33411, 366, 47371, 1, 796, 705, 27305, 75, 6 ]
What was the home team's score at Windy Hill?
SELECT "Home team score" FROM table_55172 WHERE "Venue" = 'windy hill'
[ 2061, 373, 262, 1363, 1074, 338, 4776, 379, 3086, 88, 3327, 30, 46506, 366, 16060, 1074, 4776, 1, 16034, 3084, 62, 2816, 23628, 33411, 366, 37522, 518, 1, 796, 705, 7972, 88, 12788, 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, 1363, 1074, 338, 4776, 379, 3086, 88, 3327, 30, 46506, 366, 16060, 1074, 4776, 1, 16034, 3084, 62, 2816, 23628, 33411, 366, 37522, 518, 1, 796, 705, 7972, 88, 12788, 6 ]
What driver went 59 laps on grid 11?
SELECT driver FROM table_name_57 WHERE laps = 59 AND grid = 11
[ 2061, 4639, 1816, 7863, 24590, 319, 10706, 1367, 30, 46506, 4639, 16034, 3084, 62, 3672, 62, 3553, 33411, 24590, 796, 7863, 5357, 10706, 796, 1367 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 4639, 1816, 7863, 24590, 319, 10706, 1367, 30, 46506, 4639, 16034, 3084, 62, 3672, 62, 3553, 33411, 24590, 796, 7863, 5357, 10706, 796, 1367 ]
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_25019 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, 7203, 10430, 286, 41491, 8766, 9988, 4943, 16034, 3084, 62, 1495, 30484, 33411, 366, 33244, 273, 1, 796, 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 ]
[ 4919, 867, 1661, 468, 12139, 25686, 6559, 357, 69, 828, 587, 257, 17270, 290, 468, 550, 257, 8766, 9988, 30, 46506, 327, 28270, 7203, 10430, 286, 41491, 8766, 9988, 4943, 16034, 3084, 62, 1495, 30484, 33411, 366, 33244, 273, 1, 796, 7...
Name the attendance with result of t 14-14
SELECT "Attendance" FROM table_34507 WHERE "Result" = 't 14-14'
[ 5376, 262, 14858, 351, 1255, 286, 256, 1478, 12, 1415, 46506, 366, 8086, 437, 590, 1, 16034, 3084, 62, 2682, 35378, 33411, 366, 23004, 1, 796, 705, 83, 1478, 12, 1415, 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, 14858, 351, 1255, 286, 256, 1478, 12, 1415, 46506, 366, 8086, 437, 590, 1, 16034, 3084, 62, 2682, 35378, 33411, 366, 23004, 1, 796, 705, 83, 1478, 12, 1415, 6 ]
Which episode number drew in 3.84 million viewers in the U.S.?
SELECT MAX("Series #") FROM table_72603 WHERE "U.S. viewers (million)" = '3.84'
[ 13828, 4471, 1271, 9859, 287, 513, 13, 5705, 1510, 10209, 287, 262, 471, 13, 50, 40791, 46506, 25882, 7203, 27996, 1303, 4943, 16034, 3084, 62, 4761, 35642, 33411, 366, 52, 13, 50, 13, 10209, 357, 14100, 16725, 796, 705, 18, 13, 5705,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4471, 1271, 9859, 287, 513, 13, 5705, 1510, 10209, 287, 262, 471, 13, 50, 40791, 46506, 25882, 7203, 27996, 1303, 4943, 16034, 3084, 62, 4761, 35642, 33411, 366, 52, 13, 50, 13, 10209, 357, 14100, 16725, 796, 705, 18, 13, 5705,...
What is detail of the student who registered the most number of courses?
SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
[ 2061, 318, 3703, 286, 262, 3710, 508, 6823, 262, 749, 1271, 286, 10902, 30, 46506, 309, 16, 13, 50139, 62, 36604, 16034, 2444, 7054, 309, 16, 32357, 1268, 3710, 62, 17319, 62, 2301, 396, 9143, 7054, 309, 17, 6177, 309, 16, 13, 50139...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3703, 286, 262, 3710, 508, 6823, 262, 749, 1271, 286, 10902, 30, 46506, 309, 16, 13, 50139, 62, 36604, 16034, 2444, 7054, 309, 16, 32357, 1268, 3710, 62, 17319, 62, 2301, 396, 9143, 7054, 309, 17, 6177, 309, 16, 13, 50139...
How many years did the team place 2nd in Antwerp, Belgium?
SELECT COUNT("Year") FROM table_69625 WHERE "Venue" = 'antwerp, belgium' AND "Result" = '2nd'
[ 2437, 867, 812, 750, 262, 1074, 1295, 362, 358, 287, 3738, 15448, 79, 11, 15664, 30, 46506, 327, 28270, 7203, 17688, 4943, 16034, 3084, 62, 3388, 26704, 33411, 366, 37522, 518, 1, 796, 705, 415, 15448, 79, 11, 894, 70, 1505, 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 ]
[ 2437, 867, 812, 750, 262, 1074, 1295, 362, 358, 287, 3738, 15448, 79, 11, 15664, 30, 46506, 327, 28270, 7203, 17688, 4943, 16034, 3084, 62, 3388, 26704, 33411, 366, 37522, 518, 1, 796, 705, 415, 15448, 79, 11, 894, 70, 1505, 6, 5357...
What is the lowest number for all children when the child labour percentage is greater than 15.5 and the number of children in hazardous work is 170,500 while the number of economically active children is more than 351,700?
SELECT MIN("All Children ('000s)") FROM table_32081 WHERE "Child Labour (%)" > '15.5' AND "Children In Hazardous Work ('000s)" = '170,500' AND "Economically Active Children ('000s)" > '351,700'
[ 2061, 318, 262, 9016, 1271, 329, 477, 1751, 618, 262, 1200, 10515, 5873, 318, 3744, 621, 1315, 13, 20, 290, 262, 1271, 286, 1751, 287, 26082, 670, 318, 16677, 11, 4059, 981, 262, 1271, 286, 20324, 4075, 1751, 318, 517, 621, 44417, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2061, 318, 262, 9016, 1271, 329, 477, 1751, 618, 262, 1200, 10515, 5873, 318, 3744, 621, 1315, 13, 20, 290, 262, 1271, 286, 1751, 287, 26082, 670, 318, 16677, 11, 4059, 981, 262, 1271, 286, 20324, 4075, 1751, 318, 517, 621, 44417, 1...
Show the average of price supplied by supplier id 3 for different product type code in a bar chart, I want to show X in desc order.
SELECT product_type_code, AVG(product_price) FROM Product_Suppliers AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 GROUP BY product_type_code ORDER BY product_type_code DESC
[ 15307, 262, 2811, 286, 2756, 14275, 416, 22693, 4686, 513, 329, 1180, 1720, 2099, 2438, 287, 257, 2318, 8262, 11, 314, 765, 284, 905, 1395, 287, 1715, 1502, 13, 46506, 1720, 62, 4906, 62, 8189, 11, 35224, 7, 11167, 62, 20888, 8, 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...
[ 15307, 262, 2811, 286, 2756, 14275, 416, 22693, 4686, 513, 329, 1180, 1720, 2099, 2438, 287, 257, 2318, 8262, 11, 314, 765, 284, 905, 1395, 287, 1715, 1502, 13, 46506, 1720, 62, 4906, 62, 8189, 11, 35224, 7, 11167, 62, 20888, 8, 160...
What begin has victoria as the state/territory and a ICA0 of ymml?
SELECT "Begin" FROM table_36858 WHERE "State/Territory" = 'victoria' AND "ICAO" = 'ymml'
[ 2061, 2221, 468, 2210, 7661, 355, 262, 1181, 14, 353, 799, 652, 290, 257, 314, 8141, 15, 286, 331, 3020, 75, 30, 46506, 366, 44140, 1, 16034, 3084, 62, 27412, 3365, 33411, 366, 9012, 14, 15156, 799, 652, 1, 796, 705, 32433, 7661, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2221, 468, 2210, 7661, 355, 262, 1181, 14, 353, 799, 652, 290, 257, 314, 8141, 15, 286, 331, 3020, 75, 30, 46506, 366, 44140, 1, 16034, 3084, 62, 27412, 3365, 33411, 366, 9012, 14, 15156, 799, 652, 1, 796, 705, 32433, 7661, ...
what is the number of patients whose religion is protestant quaker and lab test name is ferritin?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "PROTESTANT QUAKER" AND lab.label = "Ferritin"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 5737, 318, 5402, 415, 627, 3110, 290, 2248, 1332, 1438, 318, 11354, 799, 259, 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, 5737, 318, 5402, 415, 627, 3110, 290, 2248, 1332, 1438, 318, 11354, 799, 259, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268...
What is the College/Junior/Club Team (League) when the position is rw, and the player is Don Murdoch?
SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = "rw" AND player = "don murdoch"
[ 2061, 318, 262, 5535, 14, 22396, 1504, 14, 42350, 4816, 357, 24623, 8, 618, 262, 2292, 318, 374, 86, 11, 290, 262, 2137, 318, 2094, 30370, 30, 46506, 4152, 62, 29741, 1504, 62, 18664, 62, 15097, 834, 19316, 62, 16034, 3084, 62, 3672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5535, 14, 22396, 1504, 14, 42350, 4816, 357, 24623, 8, 618, 262, 2292, 318, 374, 86, 11, 290, 262, 2137, 318, 2094, 30370, 30, 46506, 4152, 62, 29741, 1504, 62, 18664, 62, 15097, 834, 19316, 62, 16034, 3084, 62, 3672...
Which city of license has the Kyli call sign?
SELECT city_of_license FROM table_name_98 WHERE call_sign = "kyli"
[ 13828, 1748, 286, 5964, 468, 262, 39859, 72, 869, 1051, 30, 46506, 1748, 62, 1659, 62, 43085, 16034, 3084, 62, 3672, 62, 4089, 33411, 869, 62, 12683, 796, 366, 2584, 4528, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 1748, 286, 5964, 468, 262, 39859, 72, 869, 1051, 30, 46506, 1748, 62, 1659, 62, 43085, 16034, 3084, 62, 3672, 62, 4089, 33411, 869, 62, 12683, 796, 366, 2584, 4528, 1 ]
What is the percentage for Brown when the lead margin is 26?
SELECT "Republican: Roy Brown" FROM table_47385 WHERE "Lead Margin" = '26'
[ 2061, 318, 262, 5873, 329, 4373, 618, 262, 1085, 10330, 318, 2608, 30, 46506, 366, 25777, 25, 9817, 4373, 1, 16034, 3084, 62, 2857, 27203, 33411, 366, 20451, 11899, 259, 1, 796, 705, 2075, 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 ]
[ 2061, 318, 262, 5873, 329, 4373, 618, 262, 1085, 10330, 318, 2608, 30, 46506, 366, 25777, 25, 9817, 4373, 1, 16034, 3084, 62, 2857, 27203, 33411, 366, 20451, 11899, 259, 1, 796, 705, 2075, 6 ]
How many students play each sport Show bar chart, and could you sort by the Y-axis in ascending please?
SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName ORDER BY COUNT(*)
[ 2437, 867, 2444, 711, 1123, 6332, 5438, 2318, 8262, 11, 290, 714, 345, 3297, 416, 262, 575, 12, 22704, 287, 41988, 3387, 30, 46506, 12771, 5376, 11, 327, 28270, 7, 28104, 16034, 7092, 12360, 44441, 11050, 12771, 5376, 38678, 11050, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2444, 711, 1123, 6332, 5438, 2318, 8262, 11, 290, 714, 345, 3297, 416, 262, 575, 12, 22704, 287, 41988, 3387, 30, 46506, 12771, 5376, 11, 327, 28270, 7, 28104, 16034, 7092, 12360, 44441, 11050, 12771, 5376, 38678, 11050, 327,...
What is the highest score for match 2 where the score for match 4 is 0 and the total score is 5?
SELECT MAX("Match2") FROM table_26904 WHERE "Match4" = '0' AND "Total" = '5'
[ 2061, 318, 262, 4511, 4776, 329, 2872, 362, 810, 262, 4776, 329, 2872, 604, 318, 657, 290, 262, 2472, 4776, 318, 642, 30, 46506, 25882, 7203, 23850, 17, 4943, 16034, 3084, 62, 26276, 3023, 33411, 366, 23850, 19, 1, 796, 705, 15, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 4776, 329, 2872, 362, 810, 262, 4776, 329, 2872, 604, 318, 657, 290, 262, 2472, 4776, 318, 642, 30, 46506, 25882, 7203, 23850, 17, 4943, 16034, 3084, 62, 26276, 3023, 33411, 366, 23850, 19, 1, 796, 705, 15, 6, ...
How many prizes were there at the transamerica?
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_11621747_1 WHERE tournament = "The Transamerica"
[ 2437, 867, 21740, 547, 612, 379, 262, 1007, 2382, 3970, 30, 46506, 327, 28270, 7, 16, 7054, 336, 62, 3448, 2736, 834, 8, 7054, 720, 834, 16034, 3084, 62, 1157, 5237, 1558, 2857, 62, 16, 33411, 7756, 796, 366, 464, 3602, 2382, 3970, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21740, 547, 612, 379, 262, 1007, 2382, 3970, 30, 46506, 327, 28270, 7, 16, 7054, 336, 62, 3448, 2736, 834, 8, 7054, 720, 834, 16034, 3084, 62, 1157, 5237, 1558, 2857, 62, 16, 33411, 7756, 796, 366, 464, 3602, 2382, 3970, ...
Who is the champion of the 1994 season?
SELECT champion FROM table_2527617_1 WHERE season = 1994
[ 8241, 318, 262, 8783, 286, 262, 9162, 1622, 30, 46506, 8783, 16034, 3084, 62, 1495, 27988, 1558, 62, 16, 33411, 1622, 796, 9162 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 318, 262, 8783, 286, 262, 9162, 1622, 30, 46506, 8783, 16034, 3084, 62, 1495, 27988, 1558, 62, 16, 33411, 1622, 796, 9162 ]
What rocket has a Block of block i and a COSPAR ID of 1995-060a?
SELECT rocket FROM table_name_41 WHERE block = "block i" AND cospar_id = "1995-060a"
[ 2061, 10701, 468, 257, 9726, 286, 2512, 1312, 290, 257, 327, 2640, 27082, 4522, 286, 8735, 12, 41322, 64, 30, 46506, 10701, 16034, 3084, 62, 3672, 62, 3901, 33411, 2512, 796, 366, 9967, 1312, 1, 5357, 8615, 1845, 62, 312, 796, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 10701, 468, 257, 9726, 286, 2512, 1312, 290, 257, 327, 2640, 27082, 4522, 286, 8735, 12, 41322, 64, 30, 46506, 10701, 16034, 3084, 62, 3672, 62, 3901, 33411, 2512, 796, 366, 9967, 1312, 1, 5357, 8615, 1845, 62, 312, 796, 366, ...
Name who knows the most about the guest host panels for episode 5
SELECT "Who knows the most about the guest host? panelists" FROM table_20414 WHERE "Episode Number" = '5'
[ 5376, 508, 4206, 262, 749, 546, 262, 8319, 2583, 13043, 329, 4471, 642, 46506, 366, 8241, 4206, 262, 749, 546, 262, 8319, 2583, 30, 6103, 1023, 1, 16034, 3084, 62, 18638, 1415, 33411, 366, 23758, 7913, 1, 796, 705, 20, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 508, 4206, 262, 749, 546, 262, 8319, 2583, 13043, 329, 4471, 642, 46506, 366, 8241, 4206, 262, 749, 546, 262, 8319, 2583, 30, 6103, 1023, 1, 16034, 3084, 62, 18638, 1415, 33411, 366, 23758, 7913, 1, 796, 705, 20, 6 ]
How old is the youngest person for each job Visualize by bar chart, and rank by the X from high to low please.
SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job DESC
[ 2437, 1468, 318, 262, 18887, 1048, 329, 1123, 1693, 15612, 1096, 416, 2318, 8262, 11, 290, 4279, 416, 262, 1395, 422, 1029, 284, 1877, 3387, 13, 46506, 1693, 11, 20625, 7, 496, 8, 16034, 7755, 44441, 11050, 1693, 38678, 11050, 1693, 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 ]
[ 2437, 1468, 318, 262, 18887, 1048, 329, 1123, 1693, 15612, 1096, 416, 2318, 8262, 11, 290, 4279, 416, 262, 1395, 422, 1029, 284, 1877, 3387, 13, 46506, 1693, 11, 20625, 7, 496, 8, 16034, 7755, 44441, 11050, 1693, 38678, 11050, 1693, 2...
what is the regulatory citation when the standard is 15 g/m ?
SELECT regulatory_citation FROM table_name_11 WHERE standard = "15 μg/m³"
[ 10919, 318, 262, 11344, 27860, 618, 262, 3210, 318, 1315, 308, 14, 76, 5633, 46506, 11344, 62, 66, 3780, 16034, 3084, 62, 3672, 62, 1157, 33411, 3210, 796, 366, 1314, 44415, 14, 76, 126, 111, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11344, 27860, 618, 262, 3210, 318, 1315, 308, 14, 76, 5633, 46506, 11344, 62, 66, 3780, 16034, 3084, 62, 3672, 62, 1157, 33411, 3210, 796, 366, 1314, 44415, 14, 76, 126, 111, 1 ]
Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester?
SELECT original_south_korean_performer FROM table_22460085_1 WHERE original_manchester_performer = "Adebayo Bolaji"
[ 8241, 373, 262, 1796, 666, 282, 5366, 479, 29456, 26960, 618, 1215, 1765, 323, 78, 10797, 26436, 6157, 287, 9502, 30, 46506, 2656, 62, 35782, 62, 74, 29456, 62, 525, 16354, 16034, 3084, 62, 24137, 8054, 5332, 62, 16, 33411, 2656, 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 ]
[ 8241, 373, 262, 1796, 666, 282, 5366, 479, 29456, 26960, 618, 1215, 1765, 323, 78, 10797, 26436, 6157, 287, 9502, 30, 46506, 2656, 62, 35782, 62, 74, 29456, 62, 525, 16354, 16034, 3084, 62, 24137, 8054, 5332, 62, 16, 33411, 2656, 62, ...
On what date did the home team score 5.8 (38)?
SELECT "Date" FROM table_53978 WHERE "Home team score" = '5.8 (38)'
[ 2202, 644, 3128, 750, 262, 1363, 1074, 4776, 642, 13, 23, 357, 2548, 19427, 46506, 366, 10430, 1, 16034, 3084, 62, 20, 2670, 3695, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 20, 13, 23, 357, 2548, 33047 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2202, 644, 3128, 750, 262, 1363, 1074, 4776, 642, 13, 23, 357, 2548, 19427, 46506, 366, 10430, 1, 16034, 3084, 62, 20, 2670, 3695, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 20, 13, 23, 357, 2548, 33047 ]
What was the highest number of rebounds on February 6?
SELECT high_rebounds FROM table_name_53 WHERE date = "february 6"
[ 2061, 373, 262, 4511, 1271, 286, 18841, 319, 3945, 718, 30, 46506, 1029, 62, 34806, 3733, 16034, 3084, 62, 3672, 62, 4310, 33411, 3128, 796, 366, 69, 1765, 3728, 718, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 18841, 319, 3945, 718, 30, 46506, 1029, 62, 34806, 3733, 16034, 3084, 62, 3672, 62, 4310, 33411, 3128, 796, 366, 69, 1765, 3728, 718, 1 ]
What was the margin of victory for the Mississippi Gulf Resort Classic?
SELECT margin_of_victory FROM table_name_77 WHERE tournament = "mississippi gulf resort classic"
[ 2061, 373, 262, 10330, 286, 5373, 329, 262, 13797, 12108, 28345, 13449, 30, 46506, 10330, 62, 1659, 62, 32433, 652, 16034, 3084, 62, 3672, 62, 3324, 33411, 7756, 796, 366, 3927, 747, 12715, 41593, 12600, 6833, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10330, 286, 5373, 329, 262, 13797, 12108, 28345, 13449, 30, 46506, 10330, 62, 1659, 62, 32433, 652, 16034, 3084, 62, 3672, 62, 3324, 33411, 7756, 796, 366, 3927, 747, 12715, 41593, 12600, 6833, 1 ]
what is primary disease and admission time of subject id 813?
SELECT demographic.diagnosis, demographic.admittime FROM demographic WHERE demographic.subject_id = "813"
[ 10919, 318, 4165, 4369, 290, 13938, 640, 286, 2426, 4686, 807, 1485, 30, 46506, 16728, 13, 47356, 5958, 11, 16728, 13, 324, 20124, 524, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 23, 1485, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4165, 4369, 290, 13938, 640, 286, 2426, 4686, 807, 1485, 30, 46506, 16728, 13, 47356, 5958, 11, 16728, 13, 324, 20124, 524, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 23, 1485, 1 ]
What shows for Set 5 when the Total was 77 - 65?
SELECT set_5 FROM table_name_85 WHERE total = "77 - 65"
[ 2061, 2523, 329, 5345, 642, 618, 262, 7472, 373, 8541, 532, 6135, 30, 46506, 900, 62, 20, 16034, 3084, 62, 3672, 62, 5332, 33411, 2472, 796, 366, 3324, 532, 6135, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 2523, 329, 5345, 642, 618, 262, 7472, 373, 8541, 532, 6135, 30, 46506, 900, 62, 20, 16034, 3084, 62, 3672, 62, 5332, 33411, 2472, 796, 366, 3324, 532, 6135, 1 ]