instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
A stacked bar about the number of faults for different fault description and fault status of all the faults recoreded in the logs.
SELECT fault_status, COUNT(fault_status) FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY fault_description, fault_status
[ 32, 24167, 2318, 546, 262, 1271, 286, 31025, 329, 1180, 8046, 6764, 290, 8046, 3722, 286, 477, 262, 31025, 664, 1850, 276, 287, 262, 17259, 13, 46506, 8046, 62, 13376, 11, 327, 28270, 7, 69, 1721, 62, 13376, 8, 16034, 40050, 62, 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, 1, 1, 1, 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, 24167, 2318, 546, 262, 1271, 286, 31025, 329, 1180, 8046, 6764, 290, 8046, 3722, 286, 477, 262, 31025, 664, 1850, 276, 287, 262, 17259, 13, 46506, 8046, 62, 13376, 11, 327, 28270, 7, 69, 1721, 62, 13376, 8, 16034, 40050, 62, 111...
height: 147 _ 190 cm
SELECT * FROM table_dev_57 WHERE height >= 147 AND height <= 190
[ 17015, 25, 22909, 4808, 19884, 12067, 46506, 1635, 16034, 3084, 62, 7959, 62, 3553, 33411, 6001, 18189, 22909, 5357, 6001, 19841, 19884 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 17015, 25, 22909, 4808, 19884, 12067, 46506, 1635, 16034, 3084, 62, 7959, 62, 3553, 33411, 6001, 18189, 22909, 5357, 6001, 19841, 19884 ]
how many cities are there in rizal ?
SELECT COUNT("city/municipality") FROM table_204_987
[ 4919, 867, 4736, 389, 612, 287, 374, 528, 282, 5633, 46506, 327, 28270, 7203, 19205, 14, 6199, 4311, 1483, 4943, 16034, 3084, 62, 18638, 62, 44183 ]
[ 1, 1, 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, 4736, 389, 612, 287, 374, 528, 282, 5633, 46506, 327, 28270, 7203, 19205, 14, 6199, 4311, 1483, 4943, 16034, 3084, 62, 18638, 62, 44183 ]
how many times have patient 32606 received insert endotracheal tube in 2105?
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'insert endotracheal tube') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 32606) AND STRFTIME('%y', ...
[ 4919, 867, 1661, 423, 5827, 3933, 33206, 2722, 7550, 46710, 81, 4891, 282, 12403, 287, 362, 13348, 30, 46506, 327, 28270, 7, 28104, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796, 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...
[ 4919, 867, 1661, 423, 5827, 3933, 33206, 2722, 7550, 46710, 81, 4891, 282, 12403, 287, 362, 13348, 30, 46506, 327, 28270, 7, 28104, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796, 357, 46506, 288,...
What venue features collingwood as the home side?
SELECT venue FROM table_name_4 WHERE home_team = "collingwood"
[ 2061, 14359, 3033, 2927, 278, 3822, 355, 262, 1363, 1735, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 19, 33411, 1363, 62, 15097, 796, 366, 26000, 278, 3822, 1 ]
[ 1, 1, 1, 1, 1, 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, 14359, 3033, 2927, 278, 3822, 355, 262, 1363, 1735, 30, 46506, 14359, 16034, 3084, 62, 3672, 62, 19, 33411, 1363, 62, 15097, 796, 366, 26000, 278, 3822, 1 ]
how many of the patients from hispanic or latino origin had closed liver biopsy?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND procedures.short_title = "Closed liver biopsy"
[ 4919, 867, 286, 262, 3871, 422, 465, 35843, 393, 3042, 2879, 8159, 550, 4838, 14383, 3182, 44522, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 286, 262, 3871, 422, 465, 35843, 393, 3042, 2879, 8159, 550, 4838, 14383, 3182, 44522, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, ...
What is listed as the Place of birth for the Elector of Soffredo?
SELECT place_of_birth FROM table_name_31 WHERE elector = "soffredo"
[ 2061, 318, 5610, 355, 262, 8474, 286, 4082, 329, 262, 5903, 273, 286, 1406, 487, 48454, 30, 46506, 1295, 62, 1659, 62, 24280, 16034, 3084, 62, 3672, 62, 3132, 33411, 43191, 796, 366, 568, 487, 48454, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 5610, 355, 262, 8474, 286, 4082, 329, 262, 5903, 273, 286, 1406, 487, 48454, 30, 46506, 1295, 62, 1659, 62, 24280, 16034, 3084, 62, 3672, 62, 3132, 33411, 43191, 796, 366, 568, 487, 48454, 1 ]
What are the goals of the assists of 5?
SELECT "Goals" FROM table_40517 WHERE "Assists" = '5'
[ 2061, 389, 262, 4661, 286, 262, 13648, 286, 642, 30, 46506, 366, 5247, 874, 1, 16034, 3084, 62, 26598, 1558, 33411, 366, 8021, 1023, 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 ]
[ 2061, 389, 262, 4661, 286, 262, 13648, 286, 642, 30, 46506, 366, 5247, 874, 1, 16034, 3084, 62, 26598, 1558, 33411, 366, 8021, 1023, 1, 796, 705, 20, 6 ]
how much does it cost to have a sodium, whole blood lab test.
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'labevents' AND cost.event_id IN (SELECT labevents.row_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'sodium, whole blood'))
[ 4919, 881, 857, 340, 1575, 284, 423, 257, 21072, 11, 2187, 2910, 2248, 1332, 13, 46506, 360, 8808, 1268, 4177, 1575, 13, 15805, 16034, 1575, 33411, 1575, 13, 15596, 62, 4906, 796, 705, 23912, 31534, 6, 5357, 1575, 13, 15596, 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, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4919, 881, 857, 340, 1575, 284, 423, 257, 21072, 11, 2187, 2910, 2248, 1332, 13, 46506, 360, 8808, 1268, 4177, 1575, 13, 15805, 16034, 1575, 33411, 1575, 13, 15596, 62, 4906, 796, 705, 23912, 31534, 6, 5357, 1575, 13, 15596, 62, 312, ...
In how many cities are there airports in the country of Greenland?
SELECT COUNT(DISTINCT city) FROM airports WHERE country = 'Greenland'
[ 818, 703, 867, 4736, 389, 612, 22600, 287, 262, 1499, 286, 30155, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 1748, 8, 16034, 22600, 33411, 1499, 796, 705, 13719, 1044, 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 ]
[ 818, 703, 867, 4736, 389, 612, 22600, 287, 262, 1499, 286, 30155, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 1748, 8, 16034, 22600, 33411, 1499, 796, 705, 13719, 1044, 6 ]
Who were the winners in 1998?
SELECT winners FROM table_name_11 WHERE year = 1998
[ 8241, 547, 262, 14591, 287, 7795, 30, 46506, 14591, 16034, 3084, 62, 3672, 62, 1157, 33411, 614, 796, 7795 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 547, 262, 14591, 287, 7795, 30, 46506, 14591, 16034, 3084, 62, 3672, 62, 1157, 33411, 614, 796, 7795 ]
What was the result of the week 9 game?
SELECT result FROM table_name_48 WHERE week = 9
[ 2061, 373, 262, 1255, 286, 262, 1285, 860, 983, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 2780, 33411, 1285, 796, 860 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 1255, 286, 262, 1285, 860, 983, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 2780, 33411, 1285, 796, 860 ]
When Heather Christensen was featured in Week 2, who was the cyber girl for Week 3?
SELECT week_3 FROM table_name_11 WHERE week_2 = "heather christensen"
[ 2215, 24253, 49195, 373, 8096, 287, 6119, 362, 11, 508, 373, 262, 10075, 2576, 329, 6119, 513, 30, 46506, 1285, 62, 18, 16034, 3084, 62, 3672, 62, 1157, 33411, 1285, 62, 17, 796, 366, 258, 1032, 33826, 18756, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24253, 49195, 373, 8096, 287, 6119, 362, 11, 508, 373, 262, 10075, 2576, 329, 6119, 513, 30, 46506, 1285, 62, 18, 16034, 3084, 62, 3672, 62, 1157, 33411, 1285, 62, 17, 796, 366, 258, 1032, 33826, 18756, 1 ]
If the rating/share is 3.8/10, what is the total number of rating?
SELECT COUNT(rating) FROM table_19805130_3 WHERE rating / SHARE(18 - 49) = 3.8 / 10
[ 1532, 262, 7955, 14, 20077, 318, 513, 13, 23, 14, 940, 11, 644, 318, 262, 2472, 1271, 286, 7955, 30, 46506, 327, 28270, 7, 8821, 8, 16034, 3084, 62, 23664, 4349, 1270, 62, 18, 33411, 7955, 1220, 6006, 12203, 7, 1507, 532, 5125, 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 ]
[ 1532, 262, 7955, 14, 20077, 318, 513, 13, 23, 14, 940, 11, 644, 318, 262, 2472, 1271, 286, 7955, 30, 46506, 327, 28270, 7, 8821, 8, 16034, 3084, 62, 23664, 4349, 1270, 62, 18, 33411, 7955, 1220, 6006, 12203, 7, 1507, 532, 5125, 8,...
Which Location has Notes of eisstadion, and a Date of 1930-01-11?
SELECT "Location" FROM table_8106 WHERE "Notes" = 'eisstadion' AND "Date" = '1930-01-11'
[ 13828, 13397, 468, 11822, 286, 304, 271, 24107, 295, 11, 290, 257, 7536, 286, 15533, 12, 486, 12, 1157, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 23, 15801, 33411, 366, 16130, 1, 796, 705, 68, 271, 24107, 295, 6, 5357, 366, 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 ]
[ 13828, 13397, 468, 11822, 286, 304, 271, 24107, 295, 11, 290, 257, 7536, 286, 15533, 12, 486, 12, 1157, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 23, 15801, 33411, 366, 16130, 1, 796, 705, 68, 271, 24107, 295, 6, 5357, 366, 10430, ...
what is the total amount of per iv flush: upper arm l 20 gauge that patient 017-30730 had received?
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-30730')) AND intakeoutput.celllabel = 'per i...
[ 10919, 318, 262, 2472, 2033, 286, 583, 21628, 24773, 25, 6727, 3211, 300, 1160, 18266, 326, 5827, 5534, 22, 12, 22996, 1270, 550, 2722, 30, 46506, 35683, 7, 600, 539, 22915, 13, 3846, 2100, 84, 268, 39223, 8, 16034, 10337, 22915, 3341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 2472, 2033, 286, 583, 21628, 24773, 25, 6727, 3211, 300, 1160, 18266, 326, 5827, 5534, 22, 12, 22996, 1270, 550, 2722, 30, 46506, 35683, 7, 600, 539, 22915, 13, 3846, 2100, 84, 268, 39223, 8, 16034, 10337, 22915, 3341...
What is the Draw for skra warszawa?
SELECT draw FROM table_name_5 WHERE team = "skra warszawa"
[ 2061, 318, 262, 15315, 329, 1341, 430, 9976, 89, 6909, 30, 46506, 3197, 16034, 3084, 62, 3672, 62, 20, 33411, 1074, 796, 366, 8135, 430, 9976, 89, 6909, 1 ]
[ 1, 1, 1, 1, 1, 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, 15315, 329, 1341, 430, 9976, 89, 6909, 30, 46506, 3197, 16034, 3084, 62, 3672, 62, 20, 33411, 1074, 796, 366, 8135, 430, 9976, 89, 6909, 1 ]
Which airport is associated with Macau?
SELECT "Airport" FROM table_32961 WHERE "City" = 'macau'
[ 13828, 9003, 318, 3917, 351, 4100, 559, 30, 46506, 366, 16170, 634, 1, 16034, 3084, 62, 37967, 5333, 33411, 366, 14941, 1, 796, 705, 20285, 559, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 9003, 318, 3917, 351, 4100, 559, 30, 46506, 366, 16170, 634, 1, 16034, 3084, 62, 37967, 5333, 33411, 366, 14941, 1, 796, 705, 20285, 559, 6 ]
what was the last game of the 2013 season ?
SELECT "opponent" FROM table_204_375 WHERE "season" = 2013 ORDER BY "date" DESC LIMIT 1
[ 10919, 373, 262, 938, 983, 286, 262, 2211, 1622, 5633, 46506, 366, 10365, 3471, 1, 16034, 3084, 62, 18638, 62, 22318, 33411, 366, 6230, 1, 796, 2211, 38678, 11050, 366, 4475, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 373, 262, 938, 983, 286, 262, 2211, 1622, 5633, 46506, 366, 10365, 3471, 1, 16034, 3084, 62, 18638, 62, 22318, 33411, 366, 6230, 1, 796, 2211, 38678, 11050, 366, 4475, 1, 22196, 34, 27564, 2043, 352 ]
which employer has the most employees ?
SELECT "employer" FROM table_203_737 ORDER BY "# of employees" DESC LIMIT 1
[ 4758, 9749, 468, 262, 749, 4409, 5633, 46506, 366, 7033, 263, 1, 16034, 3084, 62, 22416, 62, 22, 2718, 38678, 11050, 25113, 286, 4409, 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, 1, 1 ]
[ 4758, 9749, 468, 262, 749, 4409, 5633, 46506, 366, 7033, 263, 1, 16034, 3084, 62, 22416, 62, 22, 2718, 38678, 11050, 25113, 286, 4409, 1, 22196, 34, 27564, 2043, 352 ]
When was the archbishop that was born on February 10, 1858 ordained a bishop?
SELECT ordained_bishop FROM table_name_80 WHERE born = "february 10, 1858"
[ 2215, 373, 262, 3934, 27832, 326, 373, 4642, 319, 3945, 838, 11, 1248, 3365, 36777, 257, 24233, 30, 46506, 36777, 62, 27832, 16034, 3084, 62, 3672, 62, 1795, 33411, 4642, 796, 366, 69, 1765, 3728, 838, 11, 1248, 3365, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 373, 262, 3934, 27832, 326, 373, 4642, 319, 3945, 838, 11, 1248, 3365, 36777, 257, 24233, 30, 46506, 36777, 62, 27832, 16034, 3084, 62, 3672, 62, 1795, 33411, 4642, 796, 366, 69, 1765, 3728, 838, 11, 1248, 3365, 1 ]
What is the production code of the episode written by Cathryn Humphris?
SELECT production_code FROM table_24938621_3 WHERE written_by = "Cathryn Humphris"
[ 2061, 318, 262, 3227, 2438, 286, 262, 4471, 3194, 416, 6250, 29441, 32787, 2442, 30, 46506, 3227, 62, 8189, 16034, 3084, 62, 21626, 21734, 2481, 62, 18, 33411, 3194, 62, 1525, 796, 366, 39581, 29441, 32787, 2442, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3227, 2438, 286, 262, 4471, 3194, 416, 6250, 29441, 32787, 2442, 30, 46506, 3227, 62, 8189, 16034, 3084, 62, 21626, 21734, 2481, 62, 18, 33411, 3194, 62, 1525, 796, 366, 39581, 29441, 32787, 2442, 1 ]
What is the nationality of player Jani Hakanpaa?
SELECT "Nationality" FROM table_60523 WHERE "Player" = 'jani hakanpaa'
[ 2061, 318, 262, 29835, 286, 2137, 2365, 72, 24734, 272, 79, 7252, 30, 46506, 366, 16186, 414, 1, 16034, 3084, 62, 32417, 1954, 33411, 366, 14140, 1, 796, 705, 73, 3216, 387, 27541, 79, 7252, 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, 318, 262, 29835, 286, 2137, 2365, 72, 24734, 272, 79, 7252, 30, 46506, 366, 16186, 414, 1, 16034, 3084, 62, 32417, 1954, 33411, 366, 14140, 1, 796, 705, 73, 3216, 387, 27541, 79, 7252, 6 ]
what is the number of patients whose marital status is single and procedure short title is int insert lead in vent?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.short_title = "Int insert lead in vent"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 29555, 3722, 318, 2060, 290, 8771, 1790, 3670, 318, 493, 7550, 1085, 287, 7435, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 318, 262, 1271, 286, 3871, 3025, 29555, 3722, 318, 2060, 290, 8771, 1790, 3670, 318, 493, 7550, 1085, 287, 7435, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 12...
What is the Area KM 2 of Rothesay?
SELECT COUNT(area_km_2) FROM table_171236_2 WHERE official_name = "Rothesay"
[ 2061, 318, 262, 9498, 46646, 362, 286, 18481, 956, 323, 30, 46506, 327, 28270, 7, 20337, 62, 13276, 62, 17, 8, 16034, 3084, 62, 1558, 1065, 2623, 62, 17, 33411, 1743, 62, 3672, 796, 366, 24864, 956, 323, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9498, 46646, 362, 286, 18481, 956, 323, 30, 46506, 327, 28270, 7, 20337, 62, 13276, 62, 17, 8, 16034, 3084, 62, 1558, 1065, 2623, 62, 17, 33411, 1743, 62, 3672, 796, 366, 24864, 956, 323, 1 ]
How many times did episode 6 originally air?
SELECT COUNT(original_air_date) FROM table_21550897_1 WHERE _number = 6
[ 2437, 867, 1661, 750, 4471, 718, 6198, 1633, 30, 46506, 327, 28270, 7, 14986, 62, 958, 62, 4475, 8, 16034, 3084, 62, 23349, 1120, 4531, 22, 62, 16, 33411, 4808, 17618, 796, 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, 1 ]
[ 2437, 867, 1661, 750, 4471, 718, 6198, 1633, 30, 46506, 327, 28270, 7, 14986, 62, 958, 62, 4475, 8, 16034, 3084, 62, 23349, 1120, 4531, 22, 62, 16, 33411, 4808, 17618, 796, 718 ]
What is the end date for Maaroufi?
SELECT ends FROM table_name_59 WHERE name = "maaroufi"
[ 2061, 318, 262, 886, 3128, 329, 6669, 283, 280, 12463, 30, 46506, 5645, 16034, 3084, 62, 3672, 62, 3270, 33411, 1438, 796, 366, 2611, 283, 280, 12463, 1 ]
[ 1, 1, 1, 1, 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, 886, 3128, 329, 6669, 283, 280, 12463, 30, 46506, 5645, 16034, 3084, 62, 3672, 62, 3270, 33411, 1438, 796, 366, 2611, 283, 280, 12463, 1 ]
Find the number of customers that use email as the contact channel for each year. Visualize with a bar chart.
SELECT active_from_date, COUNT(active_from_date) FROM Customers AS t1 JOIN Customer_Contact_Channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'
[ 16742, 262, 1271, 286, 4297, 326, 779, 3053, 355, 262, 2800, 6518, 329, 1123, 614, 13, 15612, 1096, 351, 257, 2318, 8262, 13, 46506, 4075, 62, 6738, 62, 4475, 11, 327, 28270, 7, 5275, 62, 6738, 62, 4475, 8, 16034, 36707, 7054, 256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16742, 262, 1271, 286, 4297, 326, 779, 3053, 355, 262, 2800, 6518, 329, 1123, 614, 13, 15612, 1096, 351, 257, 2318, 8262, 13, 46506, 4075, 62, 6738, 62, 4475, 11, 327, 28270, 7, 5275, 62, 6738, 62, 4475, 8, 16034, 36707, 7054, 256, ...
What is the the codename when the code base is ubuntu 8.04 and the edition is fluxbox ce?
SELECT "Codename" FROM table_3744 WHERE "Code Base" = 'Ubuntu 8.04' AND "Edition" = 'Fluxbox CE'
[ 2061, 318, 262, 262, 14873, 12453, 618, 262, 2438, 2779, 318, 20967, 11157, 807, 13, 3023, 290, 262, 8313, 318, 28462, 3524, 2906, 30, 46506, 366, 43806, 12453, 1, 16034, 3084, 62, 2718, 2598, 33411, 366, 10669, 7308, 1, 796, 705, 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 ]
[ 2061, 318, 262, 262, 14873, 12453, 618, 262, 2438, 2779, 318, 20967, 11157, 807, 13, 3023, 290, 262, 8313, 318, 28462, 3524, 2906, 30, 46506, 366, 43806, 12453, 1, 16034, 3084, 62, 2718, 2598, 33411, 366, 10669, 7308, 1, 796, 705, 366...
Which member of the National Party is from the Hinkler electorate?
SELECT member FROM table_name_6 WHERE party = "national" AND electorate = "hinkler"
[ 13828, 2888, 286, 262, 2351, 3615, 318, 422, 262, 367, 676, 1754, 23879, 30, 46506, 2888, 16034, 3084, 62, 3672, 62, 21, 33411, 2151, 796, 366, 14648, 1, 5357, 23879, 796, 366, 71, 676, 1754, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2888, 286, 262, 2351, 3615, 318, 422, 262, 367, 676, 1754, 23879, 30, 46506, 2888, 16034, 3084, 62, 3672, 62, 21, 33411, 2151, 796, 366, 14648, 1, 5357, 23879, 796, 366, 71, 676, 1754, 1 ]
Which school did harold duvall attend?
SELECT college_junior_club_team FROM table_2679061_12 WHERE player = "Harold Duvall"
[ 13828, 1524, 750, 3971, 727, 7043, 85, 439, 5262, 30, 46506, 4152, 62, 29741, 1504, 62, 18664, 62, 15097, 16034, 3084, 62, 2075, 3720, 3312, 16, 62, 1065, 33411, 2137, 796, 366, 13587, 727, 10343, 85, 439, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1524, 750, 3971, 727, 7043, 85, 439, 5262, 30, 46506, 4152, 62, 29741, 1504, 62, 18664, 62, 15097, 16034, 3084, 62, 2075, 3720, 3312, 16, 62, 1065, 33411, 2137, 796, 366, 13587, 727, 10343, 85, 439, 1 ]
did levaquin, dextrose 50 % in water (d50w) iv syringe, or d50 during this hospital encounter be prescribed to patient 018-20179?
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaldischargetime IS NULL)) AND medication.drug...
[ 20839, 443, 6862, 21915, 11, 390, 742, 13698, 2026, 4064, 287, 1660, 357, 67, 1120, 86, 8, 21628, 827, 38229, 11, 393, 288, 1120, 1141, 428, 4436, 8791, 307, 14798, 284, 5827, 5534, 23, 12, 1264, 3720, 30, 46506, 327, 28270, 7, 2810...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 20839, 443, 6862, 21915, 11, 390, 742, 13698, 2026, 4064, 287, 1660, 357, 67, 1120, 86, 8, 21628, 827, 38229, 11, 393, 288, 1120, 1141, 428, 4436, 8791, 307, 14798, 284, 5827, 5534, 23, 12, 1264, 3720, 30, 46506, 327, 28270, 7, 2810...
What is the division record for Woodbridge?
SELECT division_record FROM table_name_78 WHERE school = "woodbridge"
[ 2061, 318, 262, 7297, 1700, 329, 5326, 9458, 30, 46506, 7297, 62, 22105, 16034, 3084, 62, 3672, 62, 3695, 33411, 1524, 796, 366, 3822, 9458, 1 ]
[ 1, 1, 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, 7297, 1700, 329, 5326, 9458, 30, 46506, 7297, 62, 22105, 16034, 3084, 62, 3672, 62, 3695, 33411, 1524, 796, 366, 3822, 9458, 1 ]
what airline is EA the abbreviation for
SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'EA'
[ 10919, 18091, 318, 19814, 262, 28873, 47625, 329, 46506, 360, 8808, 1268, 4177, 18091, 62, 8189, 16034, 18091, 33411, 18091, 62, 8189, 796, 705, 16412, 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 ]
[ 10919, 18091, 318, 19814, 262, 28873, 47625, 329, 46506, 360, 8808, 1268, 4177, 18091, 62, 8189, 16034, 18091, 33411, 18091, 62, 8189, 796, 705, 16412, 6 ]
What is the Date of the Tournament with a Winning score of 9 (65-71-68-67=271)?
SELECT date FROM table_name_55 WHERE winning_score = −9(65 - 71 - 68 - 67 = 271)
[ 2061, 318, 262, 7536, 286, 262, 9595, 351, 257, 40983, 4776, 286, 860, 357, 2996, 12, 4869, 12, 3104, 12, 3134, 28, 28977, 19427, 46506, 3128, 16034, 3084, 62, 3672, 62, 2816, 33411, 5442, 62, 26675, 796, 9746, 24, 7, 2996, 532, 916...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7536, 286, 262, 9595, 351, 257, 40983, 4776, 286, 860, 357, 2996, 12, 4869, 12, 3104, 12, 3134, 28, 28977, 19427, 46506, 3128, 16034, 3084, 62, 3672, 62, 2816, 33411, 5442, 62, 26675, 796, 9746, 24, 7, 2996, 532, 916...
How many civil liberties 2013 values are associated with a 2010 political rights value of 6, civil liberties 2012 values over 5, and political rights 2011 under 6?
SELECT COUNT("Civil Liberties 2013") FROM table_75637 WHERE "Political Rights 2010" = '6' AND "Civil Liberties 2012" > '5' AND "Political Rights 2011" < '6'
[ 2437, 867, 3026, 22008, 2211, 3815, 389, 3917, 351, 257, 3050, 1964, 2489, 1988, 286, 718, 11, 3026, 22008, 2321, 3815, 625, 642, 11, 290, 1964, 2489, 2813, 739, 718, 30, 46506, 327, 28270, 7203, 32610, 34226, 2211, 4943, 16034, 3084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3026, 22008, 2211, 3815, 389, 3917, 351, 257, 3050, 1964, 2489, 1988, 286, 718, 11, 3026, 22008, 2321, 3815, 625, 642, 11, 290, 1964, 2489, 2813, 739, 718, 30, 46506, 327, 28270, 7203, 32610, 34226, 2211, 4943, 16034, 3084, ...
Type of mi-10r, and a Record description of altitude with kg (lb) payload, and a Pilot of g.v. alfyorov is what date?
SELECT date FROM table_name_97 WHERE type = "mi-10r" AND record_description = "altitude with kg (lb) payload" AND pilot = "g.v. alfyorov"
[ 6030, 286, 21504, 12, 940, 81, 11, 290, 257, 13266, 6764, 286, 20334, 351, 14211, 357, 23160, 8, 21437, 11, 290, 257, 21697, 286, 308, 13, 85, 13, 435, 24928, 273, 709, 318, 644, 3128, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 6030, 286, 21504, 12, 940, 81, 11, 290, 257, 13266, 6764, 286, 20334, 351, 14211, 357, 23160, 8, 21437, 11, 290, 257, 21697, 286, 308, 13, 85, 13, 435, 24928, 273, 709, 318, 644, 3128, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 5...
What is the place of Australia?
SELECT "Place" FROM table_77211 WHERE "Country" = 'australia'
[ 2061, 318, 262, 1295, 286, 4505, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 3324, 21895, 33411, 366, 33921, 1, 796, 705, 64, 436, 1373, 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 ]
[ 2061, 318, 262, 1295, 286, 4505, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 3324, 21895, 33411, 366, 33921, 1, 796, 705, 64, 436, 1373, 544, 6 ]
What was the score of the game on June 1?
SELECT "Score" FROM table_71571 WHERE "Date" = 'june 1'
[ 2061, 373, 262, 4776, 286, 262, 983, 319, 2795, 352, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 22, 1314, 4869, 33411, 366, 10430, 1, 796, 705, 73, 1726, 352, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 286, 262, 983, 319, 2795, 352, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 22, 1314, 4869, 33411, 366, 10430, 1, 796, 705, 73, 1726, 352, 6 ]
what is the competition when the result is 2-1?
SELECT competition FROM table_name_58 WHERE result = "2-1"
[ 10919, 318, 262, 5449, 618, 262, 1255, 318, 362, 12, 16, 30, 46506, 5449, 16034, 3084, 62, 3672, 62, 3365, 33411, 1255, 796, 366, 17, 12, 16, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 5449, 618, 262, 1255, 318, 362, 12, 16, 30, 46506, 5449, 16034, 3084, 62, 3672, 62, 3365, 33411, 1255, 796, 366, 17, 12, 16, 1 ]
What place is John Cook in?
SELECT "Place" FROM table_61551 WHERE "Player" = 'john cook'
[ 2061, 1295, 318, 1757, 8261, 287, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 47007, 4349, 33411, 366, 14140, 1, 796, 705, 30686, 4255, 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 ]
[ 2061, 1295, 318, 1757, 8261, 287, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 47007, 4349, 33411, 366, 14140, 1, 796, 705, 30686, 4255, 6 ]
For those employees who do not work in departments with managers that have ids between 100 and 200, find email and department_id , and visualize them by a bar chart.
SELECT EMAIL, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
[ 1890, 883, 4409, 508, 466, 407, 670, 287, 13346, 351, 11663, 326, 423, 220, 2340, 1022, 1802, 290, 939, 11, 1064, 3053, 290, 5011, 62, 312, 837, 290, 38350, 606, 416, 257, 2318, 8262, 13, 46506, 412, 5673, 4146, 11, 5550, 30709, 109...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1064, 3053, 290, 5011, 62, 312, 837, 290, 38350, 606, 416, 257, 2318, 8262, 13, 46506, 412, 5673, 4146, 11, 5550, 30709, 109...
Give the number of patients that died and had a primary disease of colangitis.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "COLANGITIS"
[ 23318, 262, 1271, 286, 3871, 326, 3724, 290, 550, 257, 4165, 4369, 286, 951, 648, 11815, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 1069, 5111, 62, 32109, 796, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 23318, 262, 1271, 286, 3871, 326, 3724, 290, 550, 257, 4165, 4369, 286, 951, 648, 11815, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 1069, 5111, 62, 32109, 796, 366, ...
What is the draw with drop and pens 0 in 1995?
SELECT "Draw" FROM table_4927 WHERE "Drop" = '0' AND "Pens" = '0' AND "Span" = '1995'
[ 2061, 318, 262, 3197, 351, 4268, 290, 29707, 657, 287, 8735, 30, 46506, 366, 25302, 1, 16034, 3084, 62, 2920, 1983, 33411, 366, 26932, 1, 796, 705, 15, 6, 5357, 366, 47, 641, 1, 796, 705, 15, 6, 5357, 366, 4561, 272, 1, 796, 705...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3197, 351, 4268, 290, 29707, 657, 287, 8735, 30, 46506, 366, 25302, 1, 16034, 3084, 62, 2920, 1983, 33411, 366, 26932, 1, 796, 705, 15, 6, 5357, 366, 47, 641, 1, 796, 705, 15, 6, 5357, 366, 4561, 272, 1, 796, 705...
What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006?
SELECT SUM(losses) FROM table_name_50 WHERE result = "runner-up" AND wins = 1 AND year < 2006
[ 2061, 318, 262, 2472, 286, 22014, 274, 351, 257, 25414, 286, 17490, 12, 929, 11, 24423, 286, 352, 11, 290, 257, 6280, 4833, 621, 4793, 30, 46506, 35683, 7, 22462, 274, 8, 16034, 3084, 62, 3672, 62, 1120, 33411, 1255, 796, 366, 16737...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2472, 286, 22014, 274, 351, 257, 25414, 286, 17490, 12, 929, 11, 24423, 286, 352, 11, 290, 257, 6280, 4833, 621, 4793, 30, 46506, 35683, 7, 22462, 274, 8, 16034, 3084, 62, 3672, 62, 1120, 33411, 1255, 796, 366, 16737...
What number of Congress has 44 cosponsors?
SELECT "Congress" FROM table_56607 WHERE "# of cosponsors" = '44'
[ 2061, 1271, 286, 3162, 468, 5846, 269, 39500, 30, 46506, 366, 25916, 1, 16034, 3084, 62, 3980, 31980, 33411, 25113, 286, 269, 39500, 1, 796, 705, 2598, 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, 1271, 286, 3162, 468, 5846, 269, 39500, 30, 46506, 366, 25916, 1, 16034, 3084, 62, 3980, 31980, 33411, 25113, 286, 269, 39500, 1, 796, 705, 2598, 6 ]
Name the opponent for 1996 at the mt smart stadium venue
SELECT opponent FROM table_name_52 WHERE venue = "mt smart stadium" AND year = 1996
[ 5376, 262, 6125, 329, 8235, 379, 262, 45079, 4451, 10308, 14359, 46506, 6125, 16034, 3084, 62, 3672, 62, 4309, 33411, 14359, 796, 366, 16762, 4451, 10308, 1, 5357, 614, 796, 8235 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 6125, 329, 8235, 379, 262, 45079, 4451, 10308, 14359, 46506, 6125, 16034, 3084, 62, 3672, 62, 4309, 33411, 14359, 796, 366, 16762, 4451, 10308, 1, 5357, 614, 796, 8235 ]
What planet orbits in 3.23 days?
SELECT "Planet" FROM table_51871 WHERE "Orbital Period" = '3.23 days'
[ 2061, 5440, 37015, 287, 513, 13, 1954, 1528, 30, 46506, 366, 41801, 1, 16034, 3084, 62, 44085, 4869, 33411, 366, 5574, 65, 1287, 18581, 1, 796, 705, 18, 13, 1954, 1528, 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, 5440, 37015, 287, 513, 13, 1954, 1528, 30, 46506, 366, 41801, 1, 16034, 3084, 62, 44085, 4869, 33411, 366, 5574, 65, 1287, 18581, 1, 796, 705, 18, 13, 1954, 1528, 6 ]
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id.
SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2811, 286, 6538, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 13, 46506, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 38350, 257, 2318, 8262, 546, 262, 6082, 286, 1693, 62, 312, 290, 262, 2811, 286, 6538, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 13, 46506, 44...
Name the total number of ground for essendon
SELECT COUNT(ground) FROM table_16388439_1 WHERE home_team = "Essendon"
[ 5376, 262, 2472, 1271, 286, 2323, 329, 3209, 43153, 46506, 327, 28270, 7, 2833, 8, 16034, 3084, 62, 1433, 2548, 5705, 2670, 62, 16, 33411, 1363, 62, 15097, 796, 366, 29508, 43153, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 1271, 286, 2323, 329, 3209, 43153, 46506, 327, 28270, 7, 2833, 8, 16034, 3084, 62, 1433, 2548, 5705, 2670, 62, 16, 33411, 1363, 62, 15097, 796, 366, 29508, 43153, 1 ]
who completed run 1 in the least amount of time ?
SELECT "athlete" FROM table_203_358 ORDER BY "run 1" LIMIT 1
[ 8727, 5668, 1057, 352, 287, 262, 1551, 2033, 286, 640, 5633, 46506, 366, 776, 5807, 1, 16034, 3084, 62, 22416, 62, 31128, 38678, 11050, 366, 5143, 352, 1, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8727, 5668, 1057, 352, 287, 262, 1551, 2033, 286, 640, 5633, 46506, 366, 776, 5807, 1, 16034, 3084, 62, 22416, 62, 31128, 38678, 11050, 366, 5143, 352, 1, 27564, 2043, 352 ]
Which Away team has a Home team of south melbourne?
SELECT "Away team" FROM table_52320 WHERE "Home team" = 'south melbourne'
[ 13828, 21986, 1074, 468, 257, 5995, 1074, 286, 5366, 7758, 12544, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 49803, 1238, 33411, 366, 16060, 1074, 1, 796, 705, 35782, 7758, 12544, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 21986, 1074, 468, 257, 5995, 1074, 286, 5366, 7758, 12544, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 49803, 1238, 33411, 366, 16060, 1074, 1, 796, 705, 35782, 7758, 12544, 6 ]
Comments by a specific user, sorted by score.
SELECT p.Id AS "Post Link", p.Score AS "P.Score", p.Body AS "P.Body", c.Text AS "C.Text", c.Score AS "C.Score", c.CreationDate FROM Posts AS p JOIN Comments AS c ON p.Id = c.PostId WHERE c.UserId = '##CommenterID:int##' AND c.Score >= '##MinimumCommentScore##' ORDER BY c.Score DESC
[ 23903, 416, 257, 2176, 2836, 11, 23243, 416, 4776, 13, 46506, 279, 13, 7390, 7054, 366, 6307, 7502, 1600, 279, 13, 26595, 7054, 366, 47, 13, 26595, 1600, 279, 13, 25842, 7054, 366, 47, 13, 25842, 1600, 269, 13, 8206, 7054, 366, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 23903, 416, 257, 2176, 2836, 11, 23243, 416, 4776, 13, 46506, 279, 13, 7390, 7054, 366, 6307, 7502, 1600, 279, 13, 26595, 7054, 366, 47, 13, 26595, 1600, 279, 13, 25842, 7054, 366, 47, 13, 25842, 1600, 269, 13, 8206, 7054, 366, 34, ...
how long was daubin in office ?
SELECT "to" - "from" FROM table_203_372 WHERE "name" = 'daubin'
[ 4919, 890, 373, 12379, 549, 259, 287, 2607, 5633, 46506, 366, 1462, 1, 532, 366, 6738, 1, 16034, 3084, 62, 22416, 62, 36720, 33411, 366, 3672, 1, 796, 705, 6814, 549, 259, 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 ]
[ 4919, 890, 373, 12379, 549, 259, 287, 2607, 5633, 46506, 366, 1462, 1, 532, 366, 6738, 1, 16034, 3084, 62, 22416, 62, 36720, 33411, 366, 3672, 1, 796, 705, 6814, 549, 259, 6 ]
What is Score, when Outcome is Loser, and when Edition is 2011?
SELECT "Score" FROM table_62015 WHERE "Outcome" = 'loser' AND "Edition" = '2011'
[ 2061, 318, 15178, 11, 618, 3806, 2958, 318, 5401, 263, 11, 290, 618, 5061, 318, 2813, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 21, 4626, 33411, 366, 7975, 2958, 1, 796, 705, 75, 13416, 6, 5357, 366, 7407, 653, 1, 796, 705, 9804,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15178, 11, 618, 3806, 2958, 318, 5401, 263, 11, 290, 618, 5061, 318, 2813, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 21, 4626, 33411, 366, 7975, 2958, 1, 796, 705, 75, 13416, 6, 5357, 366, 7407, 653, 1, 796, 705, 9804,...
How many courses are located in carmel, indiana?
SELECT COUNT("Course") FROM table_29580 WHERE "Location" = 'Carmel, Indiana'
[ 2437, 867, 10902, 389, 5140, 287, 1097, 17694, 11, 773, 7484, 30, 46506, 327, 28270, 7203, 49046, 4943, 16034, 3084, 62, 25710, 1795, 33411, 366, 14749, 1, 796, 705, 34, 1670, 417, 11, 10278, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 10902, 389, 5140, 287, 1097, 17694, 11, 773, 7484, 30, 46506, 327, 28270, 7203, 49046, 4943, 16034, 3084, 62, 25710, 1795, 33411, 366, 14749, 1, 796, 705, 34, 1670, 417, 11, 10278, 6 ]
What are the highest championships where the club is Springfield Cardinals?
SELECT MAX(championships) FROM table_name_54 WHERE club = "springfield cardinals"
[ 2061, 389, 262, 4511, 27459, 810, 262, 3430, 318, 27874, 18071, 30, 46506, 25882, 7, 354, 4350, 5748, 8, 16034, 3084, 62, 3672, 62, 4051, 33411, 3430, 796, 366, 16469, 3245, 2657, 6897, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4511, 27459, 810, 262, 3430, 318, 27874, 18071, 30, 46506, 25882, 7, 354, 4350, 5748, 8, 16034, 3084, 62, 3672, 62, 4051, 33411, 3430, 796, 366, 16469, 3245, 2657, 6897, 1 ]
How many of the patients admitted before the year 2180 had a liver transplant ?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LIVER TRANSPLANT" AND demographic.admityear < "2180"
[ 2437, 867, 286, 262, 3871, 6848, 878, 262, 614, 362, 15259, 550, 257, 14383, 23319, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 43, 38757, 4821...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 286, 262, 3871, 6848, 878, 262, 614, 362, 15259, 550, 257, 14383, 23319, 5633, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 47356, 5958, 796, 366, 43, 38757, 4821...
Who belong to the institution 'University of Oxford'? Show the first names and last names.
SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Oxford"
[ 8241, 5594, 284, 262, 9901, 705, 21009, 286, 13643, 30960, 5438, 262, 717, 3891, 290, 938, 3891, 13, 46506, 360, 8808, 1268, 4177, 256, 16, 13, 69, 3672, 11, 256, 16, 13, 75, 3672, 16034, 7035, 7054, 256, 16, 32357, 1268, 7035, 1056...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5594, 284, 262, 9901, 705, 21009, 286, 13643, 30960, 5438, 262, 717, 3891, 290, 938, 3891, 13, 46506, 360, 8808, 1268, 4177, 256, 16, 13, 69, 3672, 11, 256, 16, 13, 75, 3672, 16034, 7035, 7054, 256, 16, 32357, 1268, 7035, 1056...
What is the total revenue of each manufacturer, and show by the total number of revenue in asc.
SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY SUM(Revenue)
[ 2061, 318, 262, 2472, 6426, 286, 1123, 11554, 11, 290, 905, 416, 262, 2472, 1271, 286, 6426, 287, 10570, 13, 46506, 6530, 11, 35683, 7, 3041, 4080, 8, 16034, 17858, 17496, 44441, 11050, 6530, 38678, 11050, 35683, 7, 3041, 4080, 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 ]
[ 2061, 318, 262, 2472, 6426, 286, 1123, 11554, 11, 290, 905, 416, 262, 2472, 1271, 286, 6426, 287, 10570, 13, 46506, 6530, 11, 35683, 7, 3041, 4080, 8, 16034, 17858, 17496, 44441, 11050, 6530, 38678, 11050, 35683, 7, 3041, 4080, 8 ]
How many people attended the game that had the Clippers as visiting team?
SELECT attendance FROM table_name_47 WHERE visitor = "clippers"
[ 2437, 867, 661, 9141, 262, 983, 326, 550, 262, 28564, 355, 10013, 1074, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 2857, 33411, 21493, 796, 366, 565, 16415, 1 ]
[ 1, 1, 1, 1, 1, 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, 9141, 262, 983, 326, 550, 262, 28564, 355, 10013, 1074, 30, 46506, 14858, 16034, 3084, 62, 3672, 62, 2857, 33411, 21493, 796, 366, 565, 16415, 1 ]
what's the ungegn for the khmer?
SELECT ungegn FROM table_name_23 WHERE khmer = "១០០"
[ 10919, 338, 262, 555, 469, 4593, 329, 262, 44081, 647, 30, 46506, 555, 469, 4593, 16034, 3084, 62, 3672, 62, 1954, 33411, 44081, 647, 796, 366, 157, 253, 94, 157, 253, 254, 157, 253, 254, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 555, 469, 4593, 329, 262, 44081, 647, 30, 46506, 555, 469, 4593, 16034, 3084, 62, 3672, 62, 1954, 33411, 44081, 647, 796, 366, 157, 253, 94, 157, 253, 254, 157, 253, 254, 1 ]
Who led the points classification when Roman Kreuziger led the young rider classification?
SELECT points_classification FROM table_14395920_2 WHERE young_rider_classification = "Roman Kreuziger"
[ 8241, 2957, 262, 2173, 17923, 618, 7993, 25732, 10277, 8254, 2957, 262, 1862, 17876, 17923, 30, 46506, 2173, 62, 4871, 2649, 16034, 3084, 62, 1415, 2670, 3270, 1238, 62, 17, 33411, 1862, 62, 49449, 62, 4871, 2649, 796, 366, 32454, 25732...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2957, 262, 2173, 17923, 618, 7993, 25732, 10277, 8254, 2957, 262, 1862, 17876, 17923, 30, 46506, 2173, 62, 4871, 2649, 16034, 3084, 62, 1415, 2670, 3270, 1238, 62, 17, 33411, 1862, 62, 49449, 62, 4871, 2649, 796, 366, 32454, 25732...
Who was the individual in the event of 1998 Pokljuka?
SELECT individual FROM table_name_33 WHERE event = "1998 pokljuka"
[ 8241, 373, 262, 1981, 287, 262, 1785, 286, 7795, 8175, 75, 73, 14852, 30, 46506, 1981, 16034, 3084, 62, 3672, 62, 2091, 33411, 1785, 796, 366, 21113, 279, 482, 75, 73, 14852, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1981, 287, 262, 1785, 286, 7795, 8175, 75, 73, 14852, 30, 46506, 1981, 16034, 3084, 62, 3672, 62, 2091, 33411, 1785, 796, 366, 21113, 279, 482, 75, 73, 14852, 1 ]
What is the Site when the date is 11/11/1950?
SELECT "Site" FROM table_77125 WHERE "Date" = '11/11/1950'
[ 2061, 318, 262, 14413, 618, 262, 3128, 318, 1367, 14, 1157, 14, 42751, 30, 46506, 366, 29123, 1, 16034, 3084, 62, 3324, 11623, 33411, 366, 10430, 1, 796, 705, 1157, 14, 1157, 14, 42751, 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, 14413, 618, 262, 3128, 318, 1367, 14, 1157, 14, 42751, 30, 46506, 366, 29123, 1, 16034, 3084, 62, 3324, 11623, 33411, 366, 10430, 1, 796, 705, 1157, 14, 1157, 14, 42751, 6 ]
creatinine clearance < 30 ml / min
SELECT * FROM table_train_93 WHERE creatinine_clearance_cl < 30
[ 20123, 259, 500, 19745, 1279, 1542, 25962, 1220, 949, 46506, 1635, 16034, 3084, 62, 27432, 62, 6052, 33411, 1827, 259, 500, 62, 20063, 590, 62, 565, 1279, 1542 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 20123, 259, 500, 19745, 1279, 1542, 25962, 1220, 949, 46506, 1635, 16034, 3084, 62, 27432, 62, 6052, 33411, 1827, 259, 500, 62, 20063, 590, 62, 565, 1279, 1542 ]
Show the facility codes of apartments with more than 4 bedrooms, and count them by a pie chart
SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code
[ 15307, 262, 6841, 12416, 286, 19592, 351, 517, 621, 604, 38529, 11, 290, 954, 606, 416, 257, 2508, 8262, 46506, 6841, 62, 8189, 11, 327, 28270, 7, 38942, 879, 62, 8189, 8, 16034, 5949, 1823, 62, 47522, 2410, 7054, 309, 16, 32357, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15307, 262, 6841, 12416, 286, 19592, 351, 517, 621, 604, 38529, 11, 290, 954, 606, 416, 257, 2508, 8262, 46506, 6841, 62, 8189, 11, 327, 28270, 7, 38942, 879, 62, 8189, 8, 16034, 5949, 1823, 62, 47522, 2410, 7054, 309, 16, 32357, 12...
Name the total number of percentage growth 2000-2008 of uganda?
SELECT COUNT("% growth (2000\u20132008)") FROM table_72125 WHERE "Nation" = 'Uganda'
[ 5376, 262, 2472, 1271, 286, 5873, 3349, 4751, 12, 11528, 286, 334, 70, 5282, 30, 46506, 327, 28270, 7203, 4, 3349, 357, 11024, 59, 84, 6390, 11528, 8, 4943, 16034, 3084, 62, 4761, 11623, 33411, 366, 46108, 1, 796, 705, 52, 70, 5282,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 1271, 286, 5873, 3349, 4751, 12, 11528, 286, 334, 70, 5282, 30, 46506, 327, 28270, 7203, 4, 3349, 357, 11024, 59, 84, 6390, 11528, 8, 4943, 16034, 3084, 62, 4761, 11623, 33411, 366, 46108, 1, 796, 705, 52, 70, 5282,...
After Match 43, what was the Attendance of the Match with a Score of 2-4?
SELECT MAX("Attendance") FROM table_76093 WHERE "Match No." > '43' AND "Score" = '2-4'
[ 3260, 13225, 5946, 11, 644, 373, 262, 46502, 590, 286, 262, 13225, 351, 257, 15178, 286, 362, 12, 19, 30, 46506, 25882, 7203, 8086, 437, 590, 4943, 16034, 3084, 62, 40761, 6052, 33411, 366, 23850, 1400, 526, 1875, 705, 3559, 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 ]
[ 3260, 13225, 5946, 11, 644, 373, 262, 46502, 590, 286, 262, 13225, 351, 257, 15178, 286, 362, 12, 19, 30, 46506, 25882, 7203, 8086, 437, 590, 4943, 16034, 3084, 62, 40761, 6052, 33411, 366, 23850, 1400, 526, 1875, 705, 3559, 6, 5357, ...
how did patient 015-56556 enter the hospital last?
SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '015-56556' ORDER BY patient.hospitaladmittime DESC LIMIT 1
[ 4919, 750, 5827, 5534, 20, 12, 3980, 37864, 3802, 262, 4436, 938, 30, 46506, 5827, 13, 49257, 324, 24883, 1668, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 25150, 12, 3980, 37864, 6, 38678, 11050, 5827, 13, 49257, 324...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 750, 5827, 5534, 20, 12, 3980, 37864, 3802, 262, 4436, 938, 30, 46506, 5827, 13, 49257, 324, 24883, 1668, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 25150, 12, 3980, 37864, 6, 38678, 11050, 5827, 13, 49257, 324...
body mass index ( bmi ) range between 20 _ 40 kg / m2
SELECT * FROM table_train_98 WHERE body_mass_index_bmi >= 20 AND body_mass_index_bmi <= 40
[ 2618, 2347, 6376, 357, 275, 11632, 1267, 2837, 1022, 1160, 4808, 2319, 14211, 1220, 285, 17, 46506, 1635, 16034, 3084, 62, 27432, 62, 4089, 33411, 1767, 62, 22208, 62, 9630, 62, 65, 11632, 18189, 1160, 5357, 1767, 62, 22208, 62, 9630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2618, 2347, 6376, 357, 275, 11632, 1267, 2837, 1022, 1160, 4808, 2319, 14211, 1220, 285, 17, 46506, 1635, 16034, 3084, 62, 27432, 62, 4089, 33411, 1767, 62, 22208, 62, 9630, 62, 65, 11632, 18189, 1160, 5357, 1767, 62, 22208, 62, 9630, ...
What was the Surface on during 10 November 2006?
SELECT surface FROM table_name_41 WHERE date = "10 november 2006"
[ 2061, 373, 262, 20321, 319, 1141, 838, 3389, 4793, 30, 46506, 4417, 16034, 3084, 62, 3672, 62, 3901, 33411, 3128, 796, 366, 940, 645, 303, 1916, 4793, 1 ]
[ 1, 1, 1, 1, 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, 20321, 319, 1141, 838, 3389, 4793, 30, 46506, 4417, 16034, 3084, 62, 3672, 62, 3901, 33411, 3128, 796, 366, 940, 645, 303, 1916, 4793, 1 ]
Which car won the same award in 2000 that the ferrari f133 5.5l v12 456 / 550 won in 2001?
SELECT 2000 FROM table_name_13 WHERE 2001 = "ferrari f133 5.5l v12 456 / 550"
[ 13828, 1097, 1839, 262, 976, 5764, 287, 4751, 326, 262, 277, 8056, 2743, 277, 16945, 642, 13, 20, 75, 410, 1065, 604, 3980, 1220, 25240, 1839, 287, 5878, 30, 46506, 4751, 16034, 3084, 62, 3672, 62, 1485, 33411, 5878, 796, 366, 2232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1097, 1839, 262, 976, 5764, 287, 4751, 326, 262, 277, 8056, 2743, 277, 16945, 642, 13, 20, 75, 410, 1065, 604, 3980, 1220, 25240, 1839, 287, 5878, 30, 46506, 4751, 16034, 3084, 62, 3672, 62, 1485, 33411, 5878, 796, 366, 2232, ...
What is the name of the green house?
SELECT "House Name" FROM table_16801 WHERE "Colours" = 'Green'
[ 2061, 318, 262, 1438, 286, 262, 4077, 2156, 30, 46506, 366, 18102, 6530, 1, 16034, 3084, 62, 14656, 486, 33411, 366, 5216, 4662, 1, 796, 705, 13719, 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, 318, 262, 1438, 286, 262, 4077, 2156, 30, 46506, 366, 18102, 6530, 1, 16034, 3084, 62, 14656, 486, 33411, 366, 5216, 4662, 1, 796, 705, 13719, 6 ]
What was the game result on November 29, 1959?
SELECT result FROM table_name_14 WHERE date = "november 29, 1959"
[ 2061, 373, 262, 983, 1255, 319, 3389, 2808, 11, 23859, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 1415, 33411, 3128, 796, 366, 77, 3239, 2808, 11, 23859, 1 ]
[ 1, 1, 1, 1, 1, 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, 983, 1255, 319, 3389, 2808, 11, 23859, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 1415, 33411, 3128, 796, 366, 77, 3239, 2808, 11, 23859, 1 ]
What is the place when the performance is 60.73m?
SELECT "Place" FROM table_54893 WHERE "Performance" = '60.73m'
[ 2061, 318, 262, 1295, 618, 262, 2854, 318, 3126, 13, 4790, 76, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 49934, 6052, 33411, 366, 32273, 1, 796, 705, 1899, 13, 4790, 76, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1295, 618, 262, 2854, 318, 3126, 13, 4790, 76, 30, 46506, 366, 27271, 1, 16034, 3084, 62, 49934, 6052, 33411, 366, 32273, 1, 796, 705, 1899, 13, 4790, 76, 6 ]
How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965?
SELECT MAX(pts) FROM table_name_85 WHERE engine = "ferrari v12" AND chassis = "ferrari 1512" AND year > 1965
[ 2437, 867, 2173, 329, 262, 277, 8056, 2743, 410, 1065, 3113, 290, 277, 8056, 2743, 1315, 1065, 24587, 11, 706, 17672, 30, 46506, 25882, 7, 457, 82, 8, 16034, 3084, 62, 3672, 62, 5332, 33411, 3113, 796, 366, 2232, 81, 2743, 410, 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 ]
[ 2437, 867, 2173, 329, 262, 277, 8056, 2743, 410, 1065, 3113, 290, 277, 8056, 2743, 1315, 1065, 24587, 11, 706, 17672, 30, 46506, 25882, 7, 457, 82, 8, 16034, 3084, 62, 3672, 62, 5332, 33411, 3113, 796, 366, 2232, 81, 2743, 410, 1065...
When were the callback auditions for the audition city in the episode aired on February 9, 2011?
SELECT callback_audition_date FROM table_27455867_1 WHERE episode_air_date = "February 9, 2011"
[ 2215, 547, 262, 23838, 2709, 1756, 329, 262, 31678, 1748, 287, 262, 4471, 18530, 319, 3945, 860, 11, 2813, 30, 46506, 23838, 62, 3885, 653, 62, 4475, 16034, 3084, 62, 1983, 2231, 3365, 3134, 62, 16, 33411, 4471, 62, 958, 62, 4475, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 547, 262, 23838, 2709, 1756, 329, 262, 31678, 1748, 287, 262, 4471, 18530, 319, 3945, 860, 11, 2813, 30, 46506, 23838, 62, 3885, 653, 62, 4475, 16034, 3084, 62, 1983, 2231, 3365, 3134, 62, 16, 33411, 4471, 62, 958, 62, 4475, 7...
Who was the Democrat when the Republican was Mike Huckabee, and the sample size was less than 495?
SELECT democrat FROM table_name_33 WHERE sample_size < 495 AND republican = "mike huckabee"
[ 8241, 373, 262, 9755, 618, 262, 3415, 373, 4995, 38253, 11, 290, 262, 6291, 2546, 373, 1342, 621, 604, 3865, 30, 46506, 43268, 16034, 3084, 62, 3672, 62, 2091, 33411, 6291, 62, 7857, 1279, 604, 3865, 5357, 41477, 796, 366, 76, 522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9755, 618, 262, 3415, 373, 4995, 38253, 11, 290, 262, 6291, 2546, 373, 1342, 621, 604, 3865, 30, 46506, 43268, 16034, 3084, 62, 3672, 62, 2091, 33411, 6291, 62, 7857, 1279, 604, 3865, 5357, 41477, 796, 366, 76, 522, ...
What channel has a description of the public broadcaster?
SELECT channel FROM table_name_82 WHERE description = "public broadcaster"
[ 2061, 6518, 468, 257, 6764, 286, 262, 1171, 26661, 30, 46506, 6518, 16034, 3084, 62, 3672, 62, 6469, 33411, 6764, 796, 366, 11377, 26661, 1 ]
[ 1, 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, 6518, 468, 257, 6764, 286, 262, 1171, 26661, 30, 46506, 6518, 16034, 3084, 62, 3672, 62, 6469, 33411, 6764, 796, 366, 11377, 26661, 1 ]
Which team had fans took of 288?
SELECT "Team" FROM table_67431 WHERE "Fans Took" = '288'
[ 13828, 1074, 550, 3296, 1718, 286, 35419, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 45385, 3132, 33411, 366, 36570, 309, 566, 1, 796, 705, 25270, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 1074, 550, 3296, 1718, 286, 35419, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 45385, 3132, 33411, 366, 36570, 309, 566, 1, 796, 705, 25270, 6 ]
When 31901 is the population what is the county?
SELECT "County" FROM table_25795 WHERE "Population" = '31901'
[ 2215, 40385, 486, 318, 262, 3265, 644, 318, 262, 7968, 30, 46506, 366, 12332, 88, 1, 16034, 3084, 62, 1495, 41544, 33411, 366, 45251, 1, 796, 705, 35175, 486, 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 ]
[ 2215, 40385, 486, 318, 262, 3265, 644, 318, 262, 7968, 30, 46506, 366, 12332, 88, 1, 16034, 3084, 62, 1495, 41544, 33411, 366, 45251, 1, 796, 705, 35175, 486, 6 ]
for the rank of 8 and lane less than 3 what is the name?
SELECT "Name" FROM table_69152 WHERE "Lane" < '3' AND "Rank" = '8'
[ 1640, 262, 4279, 286, 807, 290, 11193, 1342, 621, 513, 644, 318, 262, 1438, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 3388, 17827, 33411, 366, 43, 1531, 1, 1279, 705, 18, 6, 5357, 366, 27520, 1, 796, 705, 23, 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 ]
[ 1640, 262, 4279, 286, 807, 290, 11193, 1342, 621, 513, 644, 318, 262, 1438, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 3388, 17827, 33411, 366, 43, 1531, 1, 1279, 705, 18, 6, 5357, 366, 27520, 1, 796, 705, 23, 6 ]
What is the comp when the ryds is 2?
SELECT comp FROM table_name_83 WHERE ryds = "2"
[ 2061, 318, 262, 552, 618, 262, 374, 5173, 82, 318, 362, 30, 46506, 552, 16034, 3084, 62, 3672, 62, 5999, 33411, 374, 5173, 82, 796, 366, 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 ]
[ 2061, 318, 262, 552, 618, 262, 374, 5173, 82, 318, 362, 30, 46506, 552, 16034, 3084, 62, 3672, 62, 5999, 33411, 374, 5173, 82, 796, 366, 17, 1 ]
What was the Rider of the LCR Honda 600CC Team with a Time of 59 22.80?
SELECT rider FROM table_name_96 WHERE team = "lcr honda 600cc" AND time = "59’ 22.80"
[ 2061, 373, 262, 16414, 286, 262, 406, 9419, 20059, 10053, 4093, 4816, 351, 257, 3862, 286, 7863, 2534, 13, 1795, 30, 46506, 17876, 16034, 3084, 62, 3672, 62, 4846, 33411, 1074, 796, 366, 75, 6098, 289, 13533, 10053, 535, 1, 5357, 640,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16414, 286, 262, 406, 9419, 20059, 10053, 4093, 4816, 351, 257, 3862, 286, 7863, 2534, 13, 1795, 30, 46506, 17876, 16034, 3084, 62, 3672, 62, 4846, 33411, 1074, 796, 366, 75, 6098, 289, 13533, 10053, 535, 1, 5357, 640,...
List document type codes and the number of documents in each code with a bar chart, and I want to sort in asc by the y axis.
SELECT Document_Type_Code, COUNT(*) FROM Documents GROUP BY Document_Type_Code ORDER BY COUNT(*)
[ 8053, 3188, 2099, 12416, 290, 262, 1271, 286, 4963, 287, 1123, 2438, 351, 257, 2318, 8262, 11, 290, 314, 765, 284, 3297, 287, 10570, 416, 262, 331, 16488, 13, 46506, 16854, 62, 6030, 62, 10669, 11, 327, 28270, 7, 28104, 16034, 33267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 3188, 2099, 12416, 290, 262, 1271, 286, 4963, 287, 1123, 2438, 351, 257, 2318, 8262, 11, 290, 314, 765, 284, 3297, 287, 10570, 416, 262, 331, 16488, 13, 46506, 16854, 62, 6030, 62, 10669, 11, 327, 28270, 7, 28104, 16034, 33267, ...
What are the name and level of catalog structure with level number between 5 and 1. Show bar chart.
SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10
[ 2061, 389, 262, 1438, 290, 1241, 286, 18388, 4645, 351, 1241, 1271, 1022, 642, 290, 352, 13, 5438, 2318, 8262, 13, 46506, 18388, 62, 5715, 62, 3672, 11, 18388, 62, 5715, 62, 17618, 16034, 44515, 62, 1273, 5620, 33411, 18388, 62, 5715,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1241, 286, 18388, 4645, 351, 1241, 1271, 1022, 642, 290, 352, 13, 5438, 2318, 8262, 13, 46506, 18388, 62, 5715, 62, 3672, 11, 18388, 62, 5715, 62, 17618, 16034, 44515, 62, 1273, 5620, 33411, 18388, 62, 5715,...
Which college has a pick # 84 in round 3?
SELECT "College" FROM table_47830 WHERE "Round" = '3' AND "Pick #" = '84'
[ 13828, 4152, 468, 257, 2298, 1303, 9508, 287, 2835, 513, 30, 46506, 366, 38951, 1, 16034, 3084, 62, 29059, 1270, 33411, 366, 22685, 1, 796, 705, 18, 6, 5357, 366, 31686, 1303, 1, 796, 705, 5705, 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 ]
[ 13828, 4152, 468, 257, 2298, 1303, 9508, 287, 2835, 513, 30, 46506, 366, 38951, 1, 16034, 3084, 62, 29059, 1270, 33411, 366, 22685, 1, 796, 705, 18, 6, 5357, 366, 31686, 1303, 1, 796, 705, 5705, 6 ]
How many patients discharge location is snf and were diagnosed with the primary disease upper gi bleed?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "UPPER GI BLEED"
[ 2437, 867, 3871, 17655, 4067, 318, 3013, 69, 290, 547, 14641, 351, 262, 4165, 4369, 6727, 308, 72, 30182, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 6381, 10136, 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 ]
[ 2437, 867, 3871, 17655, 4067, 318, 3013, 69, 290, 547, 14641, 351, 262, 4165, 4369, 6727, 308, 72, 30182, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 6381, 10136, 62, ...
How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?
SELECT COUNT("Byes") FROM table_65612 WHERE "Wins" < '11' AND "Wimmera FL" = 'minyip murtoa' AND "Losses" < '6'
[ 2437, 867, 2750, 274, 423, 24423, 4833, 621, 1367, 11, 290, 257, 370, 10957, 64, 9977, 286, 949, 39666, 4636, 1462, 64, 11, 290, 22014, 274, 4833, 621, 718, 30, 46506, 327, 28270, 7203, 3886, 274, 4943, 16034, 3084, 62, 37466, 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...
[ 2437, 867, 2750, 274, 423, 24423, 4833, 621, 1367, 11, 290, 257, 370, 10957, 64, 9977, 286, 949, 39666, 4636, 1462, 64, 11, 290, 22014, 274, 4833, 621, 718, 30, 46506, 327, 28270, 7203, 3886, 274, 4943, 16034, 3084, 62, 37466, 1065, ...
what's district with candidates being curt weldon (r) 61.3% bill spingler (d) 38.7%
SELECT district FROM table_1341586_39 WHERE candidates = "Curt Weldon (R) 61.3% Bill Spingler (D) 38.7%"
[ 10919, 338, 4783, 351, 5871, 852, 1090, 83, 356, 25900, 357, 81, 8, 8454, 13, 18, 4, 2855, 599, 278, 1754, 357, 67, 8, 4353, 13, 22, 4, 46506, 4783, 16034, 3084, 62, 19880, 1314, 4521, 62, 2670, 33411, 5871, 796, 366, 34, 3325, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4783, 351, 5871, 852, 1090, 83, 356, 25900, 357, 81, 8, 8454, 13, 18, 4, 2855, 599, 278, 1754, 357, 67, 8, 4353, 13, 22, 4, 46506, 4783, 16034, 3084, 62, 19880, 1314, 4521, 62, 2670, 33411, 5871, 796, 366, 34, 3325, ...
whats the unabbreviated version of gstr mcsl hyprt w hmrg.
SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'gstr mcsl hyprt w hmrg' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'gstr mcsl hyprt w hmrg'
[ 1929, 1381, 262, 40986, 4679, 8903, 515, 2196, 286, 308, 2536, 285, 6359, 75, 2537, 1050, 83, 266, 289, 76, 41345, 13, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 6511, 62, 7839, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1929, 1381, 262, 40986, 4679, 8903, 515, 2196, 286, 308, 2536, 285, 6359, 75, 2537, 1050, 83, 266, 289, 76, 41345, 13, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 6511, 62, 7839, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, ...
Who is the player with a t8 place?
SELECT player FROM table_name_67 WHERE place = "t8"
[ 8241, 318, 262, 2137, 351, 257, 256, 23, 1295, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 3134, 33411, 1295, 796, 366, 83, 23, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 318, 262, 2137, 351, 257, 256, 23, 1295, 30, 46506, 2137, 16034, 3084, 62, 3672, 62, 3134, 33411, 1295, 796, 366, 83, 23, 1 ]
I want to know the proportion of the total number for each payment method code.
SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code
[ 40, 765, 284, 760, 262, 9823, 286, 262, 2472, 1271, 329, 1123, 6074, 2446, 2438, 13, 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, 1, 1, 1, 1 ]
[ 40, 765, 284, 760, 262, 9823, 286, 262, 2472, 1271, 329, 1123, 6074, 2446, 2438, 13, 46506, 6074, 62, 24396, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 36707, 44441, 11050, 6074, 62, 24396, 62, 8189 ]
what is the only year that is n/a ?
SELECT "year" FROM table_204_426 WHERE "playoffs" IS NULL
[ 10919, 318, 262, 691, 614, 326, 318, 299, 14, 64, 5633, 46506, 366, 1941, 1, 16034, 3084, 62, 18638, 62, 42780, 33411, 366, 1759, 8210, 1, 3180, 15697 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 691, 614, 326, 318, 299, 14, 64, 5633, 46506, 366, 1941, 1, 16034, 3084, 62, 18638, 62, 42780, 33411, 366, 1759, 8210, 1, 3180, 15697 ]
Name the index weighting % for 17 januaary 2013 for rno
SELECT index_weighting___percentage__at_17_january_2013 FROM table_168274_1 WHERE ticker_symbol = "RNO"
[ 5376, 262, 6376, 3463, 278, 4064, 329, 1596, 42897, 6413, 560, 2211, 329, 374, 3919, 46506, 6376, 62, 6551, 278, 17569, 25067, 496, 834, 265, 62, 1558, 62, 13881, 2838, 62, 6390, 16034, 3084, 62, 14656, 28857, 62, 16, 33411, 4378, 263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6376, 3463, 278, 4064, 329, 1596, 42897, 6413, 560, 2211, 329, 374, 3919, 46506, 6376, 62, 6551, 278, 17569, 25067, 496, 834, 265, 62, 1558, 62, 13881, 2838, 62, 6390, 16034, 3084, 62, 14656, 28857, 62, 16, 33411, 4378, 263...
In 1996, what was the value for Inglewood when Goondiwindi had more than 4,374, and there is a region total higher than 9,114?
SELECT AVG("Inglewood") FROM table_68824 WHERE "Region total" > '9,114' AND "Year" = '1996' AND "Goondiwindi" > '4,374'
[ 818, 8235, 11, 644, 373, 262, 1988, 329, 17589, 293, 3822, 618, 1514, 623, 72, 7972, 72, 550, 517, 621, 604, 11, 31020, 11, 290, 612, 318, 257, 3814, 2472, 2440, 621, 860, 11, 16562, 30, 46506, 35224, 7203, 27682, 293, 3822, 4943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 818, 8235, 11, 644, 373, 262, 1988, 329, 17589, 293, 3822, 618, 1514, 623, 72, 7972, 72, 550, 517, 621, 604, 11, 31020, 11, 290, 612, 318, 257, 3814, 2472, 2440, 621, 860, 11, 16562, 30, 46506, 35224, 7203, 27682, 293, 3822, 4943, ...
what is the monthly average amount of ammonia of patient 007-8693 since 92 months ago?
SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-8693')) AND lab.labname = 'ammonia' AND DATETIME(lab.labresulttime) >= DATETIM...
[ 10919, 318, 262, 9651, 2811, 2033, 286, 44957, 286, 5827, 3571, 22, 12, 23, 48528, 1201, 10190, 1933, 2084, 30, 46506, 35224, 7, 23912, 13, 23912, 20274, 8, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 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...
[ 10919, 318, 262, 9651, 2811, 2033, 286, 44957, 286, 5827, 3571, 22, 12, 23, 48528, 1201, 10190, 1933, 2084, 30, 46506, 35224, 7, 23912, 13, 23912, 20274, 8, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827,...
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of first_name and commission_pct in a bar chart, and I want to rank by the bar in desc.
SELECT FIRST_NAME, COMMISSION_PCT 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, 905, 502, 546, 262, 6082, 286, 717, 62, 3672, 290, 5810, 62, 79, 310, 287, 257, 2318, 8262, 11, 290, 314, 765, 284, 4279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 905, 502, 546, 262, 6082, 286, 717, 62, 3672, 290, 5810, 62, 79, 310, 287, 257, 2318, 8262, 11, 290, 314, 765, 284, 4279, ...
Name the 2nd leg for team 1 of hamburg
SELECT 2 AS nd_leg FROM table_name_90 WHERE team_1 = "hamburg"
[ 5376, 262, 362, 358, 1232, 329, 1074, 352, 286, 41478, 3686, 46506, 362, 7054, 299, 67, 62, 1455, 16034, 3084, 62, 3672, 62, 3829, 33411, 1074, 62, 16, 796, 366, 2763, 7423, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 362, 358, 1232, 329, 1074, 352, 286, 41478, 3686, 46506, 362, 7054, 299, 67, 62, 1455, 16034, 3084, 62, 3672, 62, 3829, 33411, 1074, 62, 16, 796, 366, 2763, 7423, 1 ]