instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
How many tv series had an adult rating of 1.2? | SELECT COUNT("TV season") FROM table_2001 WHERE "Rating (adults 18\u201349)" = '1.2' | [
2437,
867,
31557,
2168,
550,
281,
4044,
7955,
286,
352,
13,
17,
30,
46506,
327,
28270,
7203,
6849,
1622,
4943,
16034,
3084,
62,
14585,
33411,
366,
29321,
357,
324,
8376,
1248,
59,
84,
1264,
27371,
16725,
796,
705,
16,
13,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
31557,
2168,
550,
281,
4044,
7955,
286,
352,
13,
17,
30,
46506,
327,
28270,
7203,
6849,
1622,
4943,
16034,
3084,
62,
14585,
33411,
366,
29321,
357,
324,
8376,
1248,
59,
84,
1264,
27371,
16725,
796,
705,
16,
13,
17,
6
] |
How many gold medals does each school who has a total of 1 medal have? | SELECT gold_medals FROM table_1305623_12 WHERE total_medals = 1 | [
2437,
867,
3869,
28057,
857,
1123,
1524,
508,
468,
257,
2472,
286,
352,
18279,
423,
30,
46506,
3869,
62,
1150,
874,
16034,
3084,
62,
12952,
3980,
1954,
62,
1065,
33411,
2472,
62,
1150,
874,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3869,
28057,
857,
1123,
1524,
508,
468,
257,
2472,
286,
352,
18279,
423,
30,
46506,
3869,
62,
1150,
874,
16034,
3084,
62,
12952,
3980,
1954,
62,
1065,
33411,
2472,
62,
1150,
874,
796,
352
] |
What is the booking start dates of the apartments with type code 'Duplex'? Bin the year into weekday interval with a bar chart. | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" | [
2061,
318,
262,
25452,
923,
9667,
286,
262,
19592,
351,
2099,
2438,
705,
35,
929,
2588,
30960,
20828,
262,
614,
656,
28269,
16654,
351,
257,
2318,
8262,
13,
46506,
25452,
62,
9688,
62,
4475,
11,
327,
28270,
7,
2070,
278,
62,
9688,
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,
318,
262,
25452,
923,
9667,
286,
262,
19592,
351,
2099,
2438,
705,
35,
929,
2588,
30960,
20828,
262,
614,
656,
28269,
16654,
351,
257,
2318,
8262,
13,
46506,
25452,
62,
9688,
62,
4475,
11,
327,
28270,
7,
2070,
278,
62,
9688,
6... |
What is the built data on the scrapped information that is cannot handle non-empty timestamp argument! 1947? | SELECT built FROM table_12113888_1 WHERE scrapped_sold = "Cannot handle non-empty timestamp argument! 1947" | [
2061,
318,
262,
3170,
1366,
319,
262,
35034,
1321,
326,
318,
2314,
5412,
1729,
12,
28920,
41033,
4578,
0,
21709,
30,
46506,
3170,
16034,
3084,
62,
1065,
1157,
2548,
3459,
62,
16,
33411,
35034,
62,
24120,
796,
366,
34,
34574,
5412,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3170,
1366,
319,
262,
35034,
1321,
326,
318,
2314,
5412,
1729,
12,
28920,
41033,
4578,
0,
21709,
30,
46506,
3170,
16034,
3084,
62,
1065,
1157,
2548,
3459,
62,
16,
33411,
35034,
62,
24120,
796,
366,
34,
34574,
5412,
172... |
what was the number of hospitalized patients? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL | [
10919,
373,
262,
1271,
286,
31736,
3871,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
1271,
286,
31736,
3871,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697
] |
provide the admission time and marital status of subject id 6983. | SELECT demographic.marital_status, demographic.admittime FROM demographic WHERE demographic.subject_id = "6983" | [
15234,
485,
262,
13938,
640,
290,
29555,
3722,
286,
2426,
4686,
39861,
18,
13,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
3388,
5999,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
640,
290,
29555,
3722,
286,
2426,
4686,
39861,
18,
13,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
3388,
5999,
1
] |
During the Spring and Summer term how many 500 -level classes are being offered ? | SELECT COUNT(DISTINCT course.course_id, semester.semester) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 500 AND 500 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = course_offering.se... | [
7191,
262,
8225,
290,
10216,
3381,
703,
867,
5323,
532,
5715,
6097,
389,
852,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
11,
24878,
13,
325,
6880,
353,
8,
16034,
1781,
11,
1781,
62,
2364,
1586,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7191,
262,
8225,
290,
10216,
3381,
703,
867,
5323,
532,
5715,
6097,
389,
852,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
11,
24878,
13,
325,
6880,
353,
8,
16034,
1781,
11,
1781,
62,
2364,
1586,... |
what partner made the scores 6 4, 6 1? | SELECT "Partner" FROM table_36820 WHERE "Score in the final" = '6–4, 6–1' | [
10919,
5212,
925,
262,
8198,
718,
604,
11,
718,
352,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
27412,
1238,
33411,
366,
26595,
287,
262,
2457,
1,
796,
705,
21,
1906,
19,
11,
718,
1906,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
5212,
925,
262,
8198,
718,
604,
11,
718,
352,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
27412,
1238,
33411,
366,
26595,
287,
262,
2457,
1,
796,
705,
21,
1906,
19,
11,
718,
1906,
16,
6
] |
show me a list of ground transportation at BOSTON airport | SELECT DISTINCT ground_service.transport_type FROM airport, airport_service, city, ground_service WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'BOSTON' AND ground_service.airport_code = airport.airport_code | [
12860,
502,
257,
1351,
286,
2323,
9358,
379,
347,
10892,
1340,
9003,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
2323,
62,
15271,
33411,
9003,
13,
958,
634,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
257,
1351,
286,
2323,
9358,
379,
347,
10892,
1340,
9003,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
2323,
62,
15271,
33411,
9003,
13,
958,
634,
... |
what were the three most frequently ordered microbiology tests for patients who had previously received percu abdominal drainage within the same hospital visit, in 2103? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_pro... | [
10919,
547,
262,
1115,
749,
6777,
6149,
24559,
1435,
5254,
329,
3871,
508,
550,
4271,
2722,
583,
27399,
32692,
37664,
1626,
262,
976,
4436,
3187,
11,
287,
362,
15197,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6777,
6149,
24559,
1435,
5254,
329,
3871,
508,
550,
4271,
2722,
583,
27399,
32692,
37664,
1626,
262,
976,
4436,
3187,
11,
287,
362,
15197,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
465... |
What is the Time with a Score that is 46-82? | SELECT "Time" FROM table_6964 WHERE "Score" = '46-82' | [
2061,
318,
262,
3862,
351,
257,
15178,
326,
318,
6337,
12,
6469,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
3388,
2414,
33411,
366,
26595,
1,
796,
705,
3510,
12,
6469,
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,
262,
3862,
351,
257,
15178,
326,
318,
6337,
12,
6469,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
3388,
2414,
33411,
366,
26595,
1,
796,
705,
3510,
12,
6469,
6
] |
How many 5 points field goals is minimum | SELECT MIN("Field goals (5 points)") FROM table_19269 | [
2437,
867,
642,
2173,
2214,
4661,
318,
5288,
46506,
20625,
7203,
15878,
4661,
357,
20,
2173,
8,
4943,
16034,
3084,
62,
1129,
26276
] | [
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,
642,
2173,
2214,
4661,
318,
5288,
46506,
20625,
7203,
15878,
4661,
357,
20,
2173,
8,
4943,
16034,
3084,
62,
1129,
26276
] |
provide the number of patients whose primary disease is st elevated myocardial infarction\cardiac cath and lab test fluid is urine. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" AND lab.fluid = "Urine" | [
15234,
485,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
336,
15321,
616,
44412,
498,
1167,
283,
596,
59,
9517,
9607,
32171,
290,
2248,
1332,
11711,
318,
18922,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
336,
15321,
616,
44412,
498,
1167,
283,
596,
59,
9517,
9607,
32171,
290,
2248,
1332,
11711,
318,
18922,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312... |
What is maximum age of hispanic, latino, or puerto rican patients whose duration of hospital stay was 14 days? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.days_stay = "14" | [
2061,
318,
5415,
2479,
286,
465,
35843,
11,
3042,
2879,
11,
393,
47574,
13806,
374,
7490,
3871,
3025,
9478,
286,
4436,
2652,
373,
1478,
1528,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
5415,
2479,
286,
465,
35843,
11,
3042,
2879,
11,
393,
47574,
13806,
374,
7490,
3871,
3025,
9478,
286,
4436,
2652,
373,
1478,
1528,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796... |
What is the actual name of ELI 530 ? | SELECT DISTINCT name FROM course WHERE department = 'ELI' AND number = 530 | [
2061,
318,
262,
4036,
1438,
286,
17852,
40,
40585,
5633,
46506,
360,
8808,
1268,
4177,
1438,
16034,
1781,
33411,
5011,
796,
705,
3698,
40,
6,
5357,
1271,
796,
40585
] | [
1,
1,
1,
1,
1,
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,
4036,
1438,
286,
17852,
40,
40585,
5633,
46506,
360,
8808,
1268,
4177,
1438,
16034,
1781,
33411,
5011,
796,
705,
3698,
40,
6,
5357,
1271,
796,
40585
] |
What was the score of the game with a loss of Maholm (2 4)? | SELECT "Score" FROM table_75118 WHERE "Loss" = 'maholm (2–4)' | [
2061,
373,
262,
4776,
286,
262,
983,
351,
257,
2994,
286,
8882,
349,
76,
357,
17,
604,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
2425,
16817,
33411,
366,
43,
793,
1,
796,
705,
76,
993,
349,
76,
357,
17,
1906,
19,
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,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
286,
262,
983,
351,
257,
2994,
286,
8882,
349,
76,
357,
17,
604,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
2425,
16817,
33411,
366,
43,
793,
1,
796,
705,
76,
993,
349,
76,
357,
17,
1906,
19,
33047
] |
Which sport was in the 1992 Barcelona games? | SELECT sport FROM table_name_92 WHERE games = "1992 barcelona" | [
13828,
6332,
373,
287,
262,
9768,
15142,
1830,
30,
46506,
6332,
16034,
3084,
62,
3672,
62,
5892,
33411,
1830,
796,
366,
23847,
2318,
14308,
1
] | [
1,
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,
6332,
373,
287,
262,
9768,
15142,
1830,
30,
46506,
6332,
16034,
3084,
62,
3672,
62,
5892,
33411,
1830,
796,
366,
23847,
2318,
14308,
1
] |
List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin. | SELECT "Directed and produced by" FROM table_27078 WHERE "Celebrities" = 'Bill Turnbull and Louise Minchin' | [
8053,
13445,
290,
11408,
618,
262,
21305,
2950,
547,
3941,
26445,
290,
31774,
1855,
24658,
13,
46506,
366,
13470,
276,
290,
4635,
416,
1,
16034,
3084,
62,
1983,
2998,
23,
33411,
366,
42741,
65,
19491,
1,
796,
705,
17798,
26445,
290,
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
] | [
8053,
13445,
290,
11408,
618,
262,
21305,
2950,
547,
3941,
26445,
290,
31774,
1855,
24658,
13,
46506,
366,
13470,
276,
290,
4635,
416,
1,
16034,
3084,
62,
1983,
2998,
23,
33411,
366,
42741,
65,
19491,
1,
796,
705,
17798,
26445,
290,
3... |
who was the mayor before jordan ? | SELECT "name" FROM table_204_148 WHERE "term began" < (SELECT "term began" FROM table_204_148 WHERE "name" = 'john t. jordan') ORDER BY "term began" DESC LIMIT 1 | [
8727,
373,
262,
9591,
878,
474,
7350,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
18294,
33411,
366,
4354,
2540,
1,
1279,
357,
46506,
366,
4354,
2540,
1,
16034,
3084,
62,
18638,
62,
18294,
33411,
366,
3672,
1,
796,
705,
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
] | [
8727,
373,
262,
9591,
878,
474,
7350,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
18294,
33411,
366,
4354,
2540,
1,
1279,
357,
46506,
366,
4354,
2540,
1,
16034,
3084,
62,
18638,
62,
18294,
33411,
366,
3672,
1,
796,
705,
3... |
How many wines with a price higher than 100 of each year? Show a bar chart that converts year into weekday interval, and I want to show by the Y in ascending. | SELECT Year, COUNT(Year) FROM wine WHERE Price > 100 ORDER BY COUNT(Year) | [
2437,
867,
30680,
351,
257,
2756,
2440,
621,
1802,
286,
1123,
614,
30,
5438,
257,
2318,
8262,
326,
26161,
614,
656,
28269,
16654,
11,
290,
314,
765,
284,
905,
416,
262,
575,
287,
41988,
13,
46506,
6280,
11,
327,
28270,
7,
17688,
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
] | [
2437,
867,
30680,
351,
257,
2756,
2440,
621,
1802,
286,
1123,
614,
30,
5438,
257,
2318,
8262,
326,
26161,
614,
656,
28269,
16654,
11,
290,
314,
765,
284,
905,
416,
262,
575,
287,
41988,
13,
46506,
6280,
11,
327,
28270,
7,
17688,
8,
... |
how many hours has it been since the first time patient 15794 stayed on their current hospital visit in the ward 57? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15794 AND admissions.dischtime IS NULL)) AND transfers... | [
4919,
867,
2250,
468,
340,
587,
1201,
262,
717,
640,
5827,
1315,
50242,
9658,
319,
511,
1459,
4436,
3187,
287,
262,
15305,
7632,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2250,
468,
340,
587,
1201,
262,
717,
640,
5827,
1315,
50242,
9658,
319,
511,
1459,
4436,
3187,
287,
262,
15305,
7632,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19... |
What is the symbol of the element with an empirical t of 190 and a calculated value of 135? | SELECT "symbol" FROM table_40353 WHERE "empirical \u2020" = '190' AND "Calculated" = '135' | [
2061,
318,
262,
6194,
286,
262,
5002,
351,
281,
21594,
256,
286,
19884,
290,
257,
10488,
1988,
286,
17501,
30,
46506,
366,
1837,
23650,
1,
16034,
3084,
62,
1821,
33319,
33411,
366,
368,
4063,
605,
3467,
84,
42334,
1,
796,
705,
19782,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6194,
286,
262,
5002,
351,
281,
21594,
256,
286,
19884,
290,
257,
10488,
1988,
286,
17501,
30,
46506,
366,
1837,
23650,
1,
16034,
3084,
62,
1821,
33319,
33411,
366,
368,
4063,
605,
3467,
84,
42334,
1,
796,
705,
19782,
... |
What is the rank of the player who got 58179 in yardage? | SELECT "Rank" FROM table_22549 WHERE "Yardage" = '58179' | [
2061,
318,
262,
4279,
286,
262,
2137,
508,
1392,
7618,
21738,
287,
12699,
496,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
18182,
2920,
33411,
366,
56,
446,
496,
1,
796,
705,
3365,
21738,
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,
4279,
286,
262,
2137,
508,
1392,
7618,
21738,
287,
12699,
496,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
18182,
2920,
33411,
366,
56,
446,
496,
1,
796,
705,
3365,
21738,
6
] |
What is the mate for Last Appearance of bully, bully, bully (3x13) for the animal named hollow/holly later than season 1? | SELECT mate FROM table_name_48 WHERE tv_seasons > 1 AND last_appearance = "bully, bully, bully (3x13)" AND animal_name = "hollow/holly" | [
2061,
318,
262,
16133,
329,
4586,
43436,
286,
27410,
11,
27410,
11,
27410,
357,
18,
87,
1485,
8,
329,
262,
5044,
3706,
20596,
14,
71,
5098,
1568,
621,
1622,
352,
30,
46506,
16133,
16034,
3084,
62,
3672,
62,
2780,
33411,
31557,
62,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
16133,
329,
4586,
43436,
286,
27410,
11,
27410,
11,
27410,
357,
18,
87,
1485,
8,
329,
262,
5044,
3706,
20596,
14,
71,
5098,
1568,
621,
1622,
352,
30,
46506,
16133,
16034,
3084,
62,
3672,
62,
2780,
33411,
31557,
62,
3... |
tell me the number of times a fasciotomy procedure was done during the previous year? | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'fasciotomy' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | [
33331,
502,
262,
1271,
286,
1661,
257,
277,
292,
979,
38385,
8771,
373,
1760,
1141,
262,
2180,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
69,
292,
979,
38385,
6,
5357,
360,
1404,
2767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
257,
277,
292,
979,
38385,
8771,
373,
1760,
1141,
262,
2180,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
69,
292,
979,
38385,
6,
5357,
360,
1404,
2767,
... |
what is the next train number that followed 56661 ? | SELECT "train no:" FROM table_204_824 WHERE "no." = (SELECT "no." FROM table_204_824 WHERE "train no:" = '56661') + 1 | [
10919,
318,
262,
1306,
4512,
1271,
326,
3940,
642,
2791,
5333,
5633,
46506,
366,
27432,
645,
11097,
16034,
3084,
62,
18638,
62,
23,
1731,
33411,
366,
3919,
526,
796,
357,
46506,
366,
3919,
526,
16034,
3084,
62,
18638,
62,
23,
1731,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1306,
4512,
1271,
326,
3940,
642,
2791,
5333,
5633,
46506,
366,
27432,
645,
11097,
16034,
3084,
62,
18638,
62,
23,
1731,
33411,
366,
3919,
526,
796,
357,
46506,
366,
3919,
526,
16034,
3084,
62,
18638,
62,
23,
1731,
33... |
Which Result has a Date of 7 june 2000? | SELECT "Result" FROM table_6219 WHERE "Date" = '7 june 2000' | [
13828,
25414,
468,
257,
7536,
286,
767,
474,
1726,
4751,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
5237,
1129,
33411,
366,
10430,
1,
796,
705,
22,
474,
1726,
4751,
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
] | [
13828,
25414,
468,
257,
7536,
286,
767,
474,
1726,
4751,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
5237,
1129,
33411,
366,
10430,
1,
796,
705,
22,
474,
1726,
4751,
6
] |
how many days has it been since patient 92846 first adrenal hypofunction nec diagnosis in their current hospital encounter? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnoses_icd.charttime)) FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'adrenal hypofunction nec') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM adm... | [
4919,
867,
1528,
468,
340,
587,
1201,
5827,
860,
2078,
3510,
717,
26999,
282,
5328,
1659,
4575,
27576,
13669,
287,
511,
1459,
4436,
8791,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
468,
340,
587,
1201,
5827,
860,
2078,
3510,
717,
26999,
282,
5328,
1659,
4575,
27576,
13669,
287,
511,
1459,
4436,
8791,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
... |
Show maximal lat from each city, I want to show x-axis from high to low order. | SELECT city, MAX(lat) FROM station GROUP BY city ORDER BY city DESC | [
15307,
40708,
3042,
422,
1123,
1748,
11,
314,
765,
284,
905,
2124,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
1748,
11,
25882,
7,
15460,
8,
16034,
4429,
44441,
11050,
1748,
38678,
11050,
1748,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
40708,
3042,
422,
1123,
1748,
11,
314,
765,
284,
905,
2124,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
1748,
11,
25882,
7,
15460,
8,
16034,
4429,
44441,
11050,
1748,
38678,
11050,
1748,
22196,
34
] |
Thomas J. Lane is the incumbent of how many parties? | SELECT COUNT(party) FROM table_1342013_20 WHERE incumbent = "Thomas J. Lane" | [
22405,
449,
13,
15016,
318,
262,
23526,
286,
703,
867,
4671,
30,
46506,
327,
28270,
7,
10608,
8,
16034,
3084,
62,
19880,
6390,
62,
1238,
33411,
23526,
796,
366,
22405,
449,
13,
15016,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22405,
449,
13,
15016,
318,
262,
23526,
286,
703,
867,
4671,
30,
46506,
327,
28270,
7,
10608,
8,
16034,
3084,
62,
19880,
6390,
62,
1238,
33411,
23526,
796,
366,
22405,
449,
13,
15016,
1
] |
What is the maximum number of rebounds for players having exactly 35 steals? | SELECT MAX(rebounds) FROM table_24913533_4 WHERE steals = 35 | [
2061,
318,
262,
5415,
1271,
286,
18841,
329,
1938,
1719,
3446,
3439,
28052,
30,
46506,
25882,
7,
34806,
3733,
8,
16034,
3084,
62,
21626,
17059,
2091,
62,
19,
33411,
28052,
796,
3439
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
1271,
286,
18841,
329,
1938,
1719,
3446,
3439,
28052,
30,
46506,
25882,
7,
34806,
3733,
8,
16034,
3084,
62,
21626,
17059,
2091,
62,
19,
33411,
28052,
796,
3439
] |
Name the year for anton kriel chris cotillard | SELECT "Year" FROM table_15027 WHERE "Men's doubles" = 'anton kriel chris cotillard' | [
5376,
262,
614,
329,
281,
1122,
479,
11719,
442,
2442,
269,
313,
32681,
46506,
366,
17688,
1,
16034,
3084,
62,
8628,
1983,
33411,
366,
10418,
338,
21938,
1,
796,
705,
23026,
479,
11719,
442,
2442,
269,
313,
32681,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
614,
329,
281,
1122,
479,
11719,
442,
2442,
269,
313,
32681,
46506,
366,
17688,
1,
16034,
3084,
62,
8628,
1983,
33411,
366,
10418,
338,
21938,
1,
796,
705,
23026,
479,
11719,
442,
2442,
269,
313,
32681,
6
] |
What is Since, when Transfer Fee is ' 12m'? | SELECT "Since" FROM table_47656 WHERE "Transfer fee" = '£ 12m' | [
2061,
318,
4619,
11,
618,
20558,
28522,
318,
705,
1105,
76,
30960,
46506,
366,
6385,
1,
16034,
3084,
62,
2857,
37466,
33411,
366,
43260,
6838,
1,
796,
705,
14988,
1105,
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
] | [
2061,
318,
4619,
11,
618,
20558,
28522,
318,
705,
1105,
76,
30960,
46506,
366,
6385,
1,
16034,
3084,
62,
2857,
37466,
33411,
366,
43260,
6838,
1,
796,
705,
14988,
1105,
76,
6
] |
What is the course title of the prerequisite of course Mobile Computing? | SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing') | [
2061,
318,
262,
1781,
3670,
286,
262,
43119,
286,
1781,
12173,
38589,
30,
46506,
3670,
16034,
1781,
33411,
1781,
62,
312,
3268,
357,
46506,
309,
16,
13,
3866,
42180,
62,
312,
16034,
662,
42180,
7054,
309,
16,
32357,
1268,
1781,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1781,
3670,
286,
262,
43119,
286,
1781,
12173,
38589,
30,
46506,
3670,
16034,
1781,
33411,
1781,
62,
312,
3268,
357,
46506,
309,
16,
13,
3866,
42180,
62,
312,
16034,
662,
42180,
7054,
309,
16,
32357,
1268,
1781,
7054,
... |
Are exams always a part of the upper-level classes ? | SELECT COUNT(*) = 0 FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_exams = 'N' AND program_course.category LIKE '%ULCS%' | [
8491,
26420,
1464,
257,
636,
286,
262,
6727,
12,
5715,
6097,
5633,
46506,
327,
28270,
7,
28104,
796,
657,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
62,
312,
796,
1781,
13,
17319,
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... | [
8491,
26420,
1464,
257,
636,
286,
262,
6727,
12,
5715,
6097,
5633,
46506,
327,
28270,
7,
28104,
796,
657,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
62,
312,
796,
1781,
13,
17319,
62,
312... |
For what nation is the gold medals 0, and the bronze medals less than 1? | SELECT "Nation" FROM table_13457 WHERE "Gold" = '0' AND "Bronze" < '1' | [
1890,
644,
3277,
318,
262,
3869,
28057,
657,
11,
290,
262,
22101,
28057,
1342,
621,
352,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
1485,
33032,
33411,
366,
13306,
1,
796,
705,
15,
6,
5357,
366,
18760,
2736,
1,
1279,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
644,
3277,
318,
262,
3869,
28057,
657,
11,
290,
262,
22101,
28057,
1342,
621,
352,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
1485,
33032,
33411,
366,
13306,
1,
796,
705,
15,
6,
5357,
366,
18760,
2736,
1,
1279,
705,
16,
6
] |
When the gdp (ppp, in billions of current international dollars) is 7.93, what is the maximum ppp gdp per emissions (in international dollars per ton)? | SELECT MAX("PPP GDP per Emissions (in international dollars per ton)") FROM table_73729 WHERE "GDP (PPP, in billions of current international dollars)" = '7.93' | [
2215,
262,
308,
26059,
357,
381,
79,
11,
287,
13188,
286,
1459,
3230,
5054,
8,
318,
767,
13,
6052,
11,
644,
318,
262,
5415,
279,
381,
308,
26059,
583,
8971,
357,
259,
3230,
5054,
583,
5680,
19427,
46506,
25882,
7203,
10246,
47,
1239... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2215,
262,
308,
26059,
357,
381,
79,
11,
287,
13188,
286,
1459,
3230,
5054,
8,
318,
767,
13,
6052,
11,
644,
318,
262,
5415,
279,
381,
308,
26059,
583,
8971,
357,
259,
3230,
5054,
583,
5680,
19427,
46506,
25882,
7203,
10246,
47,
1239... |
were more records set in 1978 or 1979 ? | SELECT "date" FROM table_203_532 WHERE "date" IN (1978, 1979) GROUP BY "date" ORDER BY COUNT(*) DESC LIMIT 1 | [
22474,
517,
4406,
900,
287,
15524,
393,
13521,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
22416,
62,
20,
2624,
33411,
366,
4475,
1,
3268,
357,
37950,
11,
13521,
8,
44441,
11050,
366,
4475,
1,
38678,
11050,
327,
28270,
7,
28104,
22196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22474,
517,
4406,
900,
287,
15524,
393,
13521,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
22416,
62,
20,
2624,
33411,
366,
4475,
1,
3268,
357,
37950,
11,
13521,
8,
44441,
11050,
366,
4475,
1,
38678,
11050,
327,
28270,
7,
28104,
22196... |
What is the power output (kw) of model hxd3d? | SELECT power_output__kw_ FROM table_name_6 WHERE model = "hxd3d" | [
2061,
318,
262,
1176,
5072,
357,
46265,
8,
286,
2746,
289,
24954,
18,
67,
30,
46506,
1176,
62,
22915,
834,
46265,
62,
16034,
3084,
62,
3672,
62,
21,
33411,
2746,
796,
366,
71,
24954,
18,
67,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1176,
5072,
357,
46265,
8,
286,
2746,
289,
24954,
18,
67,
30,
46506,
1176,
62,
22915,
834,
46265,
62,
16034,
3084,
62,
3672,
62,
21,
33411,
2746,
796,
366,
71,
24954,
18,
67,
1
] |
which team is previous to cska moscow on team 1 | SELECT "team 1" FROM table_204_510 WHERE id = (SELECT id FROM table_204_510 WHERE "team 1" = 'cska moscow') - 1 | [
4758,
1074,
318,
2180,
284,
50115,
4914,
10867,
8232,
319,
1074,
352,
46506,
366,
15097,
352,
1,
16034,
3084,
62,
18638,
62,
33690,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
33690,
33411,
366,
15097,
352,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
1074,
318,
2180,
284,
50115,
4914,
10867,
8232,
319,
1074,
352,
46506,
366,
15097,
352,
1,
16034,
3084,
62,
18638,
62,
33690,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
33690,
33411,
366,
15097,
352,
1,
796,
... |
What is the status of the building with more than 28 floor and a year of 2013? | SELECT status FROM table_name_57 WHERE floors > 28 AND year = 2013 | [
2061,
318,
262,
3722,
286,
262,
2615,
351,
517,
621,
2579,
4314,
290,
257,
614,
286,
2211,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
3553,
33411,
18570,
1875,
2579,
5357,
614,
796,
2211
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3722,
286,
262,
2615,
351,
517,
621,
2579,
4314,
290,
257,
614,
286,
2211,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
3553,
33411,
18570,
1875,
2579,
5357,
614,
796,
2211
] |
was the song healing or the song boys and girls with trax ? | SELECT "song" FROM table_204_243 WHERE "song" IN ('"healing"', '"boys & girls"') AND "artist" = 'with trax' | [
9776,
262,
3496,
11516,
393,
262,
3496,
6510,
290,
4813,
351,
1291,
87,
5633,
46506,
366,
34050,
1,
16034,
3084,
62,
18638,
62,
26660,
33411,
366,
34050,
1,
3268,
19203,
1,
258,
4272,
1,
3256,
705,
1,
13202,
1222,
4813,
1,
11537,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9776,
262,
3496,
11516,
393,
262,
3496,
6510,
290,
4813,
351,
1291,
87,
5633,
46506,
366,
34050,
1,
16034,
3084,
62,
18638,
62,
26660,
33411,
366,
34050,
1,
3268,
19203,
1,
258,
4272,
1,
3256,
705,
1,
13202,
1222,
4813,
1,
11537,
53... |
how much is the amyloidosis nec diagnostic cost? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'amyloidosis nec')) | [
4919,
881,
318,
262,
716,
2645,
1868,
5958,
27576,
23584,
1575,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
47356,
4629,
62,
291,
67,
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,
318,
262,
716,
2645,
1868,
5958,
27576,
23584,
1575,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
47356,
4629,
62,
291,
67,
6,
5357,
1575,
13,
15596,
62,
312,
... |
Which Segment A has a Segment C of poster restoration? | SELECT "Segment A" FROM table_36810 WHERE "Segment C" = 'poster restoration' | [
13828,
1001,
5154,
317,
468,
257,
1001,
5154,
327,
286,
11968,
19414,
30,
46506,
366,
41030,
434,
317,
1,
16034,
3084,
62,
27412,
940,
33411,
366,
41030,
434,
327,
1,
796,
705,
79,
6197,
19414,
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
] | [
13828,
1001,
5154,
317,
468,
257,
1001,
5154,
327,
286,
11968,
19414,
30,
46506,
366,
41030,
434,
317,
1,
16034,
3084,
62,
27412,
940,
33411,
366,
41030,
434,
327,
1,
796,
705,
79,
6197,
19414,
6
] |
count how many drugs are prescribed to patient 030-44598 in 12/this year. | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-44598')) AND DATETIME(medication.drugstarttime, 'start of year') = DATETIM... | [
9127,
703,
867,
5010,
389,
14798,
284,
5827,
657,
1270,
12,
43489,
4089,
287,
1105,
14,
5661,
614,
13,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
3171... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
703,
867,
5010,
389,
14798,
284,
5827,
657,
1270,
12,
43489,
4089,
287,
1105,
14,
5661,
614,
13,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
3171... |
What's the most common extraction method? | SELECT MAX(extract) FROM resultsdata15 | [
2061,
338,
262,
749,
2219,
22236,
2446,
30,
46506,
25882,
7,
2302,
974,
8,
16034,
2482,
7890,
1314
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
749,
2219,
22236,
2446,
30,
46506,
25882,
7,
2302,
974,
8,
16034,
2482,
7890,
1314
] |
What was the location of the game with a score of 2:3? | SELECT location FROM table_name_90 WHERE score = "2:3" | [
2061,
373,
262,
4067,
286,
262,
983,
351,
257,
4776,
286,
362,
25,
18,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3829,
33411,
4776,
796,
366,
17,
25,
18,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4067,
286,
262,
983,
351,
257,
4776,
286,
362,
25,
18,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3829,
33411,
4776,
796,
366,
17,
25,
18,
1
] |
Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne? | SELECT "Sub-Parish (Sogn)" FROM table_59789 WHERE "Year Built" < '1883' AND "Parish (Prestegjeld)" = 'jostedal parish' AND "Location of the Church" = 'gaupne' | [
13828,
3834,
12,
10044,
680,
357,
50,
2360,
8,
373,
3170,
878,
1248,
5999,
287,
262,
35240,
357,
47,
2118,
1533,
18015,
335,
8,
286,
474,
455,
276,
282,
28830,
290,
318,
5140,
287,
262,
4564,
286,
35094,
79,
710,
30,
46506,
366,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
3834,
12,
10044,
680,
357,
50,
2360,
8,
373,
3170,
878,
1248,
5999,
287,
262,
35240,
357,
47,
2118,
1533,
18015,
335,
8,
286,
474,
455,
276,
282,
28830,
290,
318,
5140,
287,
262,
4564,
286,
35094,
79,
710,
30,
46506,
366,
7... |
find the number of patients whose lab test name is bilirubin, indirect and year of death is or before the year 2179. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2179.0" AND lab.label = "Bilirubin, Indirect" | [
19796,
262,
1271,
286,
3871,
3025,
2248,
1332,
1438,
318,
47027,
343,
549,
259,
11,
12913,
290,
614,
286,
1918,
318,
393,
878,
262,
614,
362,
21738,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
1271,
286,
3871,
3025,
2248,
1332,
1438,
318,
47027,
343,
549,
259,
11,
12913,
290,
614,
286,
1918,
318,
393,
878,
262,
614,
362,
21738,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034... |
what is the numbe of provincial captial where the population is 1162900? | SELECT COUNT("Provincial capital") FROM table_1691 WHERE "Population (2013)" = '1162900' | [
10919,
318,
262,
997,
1350,
286,
15818,
3144,
498,
810,
262,
3265,
318,
18693,
1959,
405,
30,
46506,
327,
28270,
7203,
15946,
13744,
3139,
4943,
16034,
3084,
62,
1433,
6420,
33411,
366,
45251,
357,
6390,
16725,
796,
705,
18298,
1959,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
997,
1350,
286,
15818,
3144,
498,
810,
262,
3265,
318,
18693,
1959,
405,
30,
46506,
327,
28270,
7203,
15946,
13744,
3139,
4943,
16034,
3084,
62,
1433,
6420,
33411,
366,
45251,
357,
6390,
16725,
796,
705,
18298,
1959,
40... |
when is the first time that patient 1205 has the maximum arterial bp [diastolic] value? | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1205)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | [
12518,
318,
262,
717,
640,
326,
5827,
1105,
2713,
468,
262,
5415,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
1988,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
318,
262,
717,
640,
326,
5827,
1105,
2713,
468,
262,
5415,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
1988,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,... |
Which Record has the Res of win with the Event of extreme fighting 1? | SELECT "Record" FROM table_78114 WHERE "Res." = 'win' AND "Event" = 'extreme fighting 1' | [
13828,
13266,
468,
262,
1874,
286,
1592,
351,
262,
8558,
286,
3257,
4330,
352,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3695,
16562,
33411,
366,
4965,
526,
796,
705,
5404,
6,
5357,
366,
9237,
1,
796,
705,
29896,
4330,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
13266,
468,
262,
1874,
286,
1592,
351,
262,
8558,
286,
3257,
4330,
352,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3695,
16562,
33411,
366,
4965,
526,
796,
705,
5404,
6,
5357,
366,
9237,
1,
796,
705,
29896,
4330,
352,
6
] |
What is the to par of player notah begay iii from the United States? | SELECT "To par" FROM table_61557 WHERE "Country" = 'united states' AND "Player" = 'notah begay iii' | [
2061,
318,
262,
284,
1582,
286,
2137,
407,
993,
4123,
323,
46955,
422,
262,
1578,
1829,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
47007,
3553,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
14140,
1,
796,
705,
1662... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
1582,
286,
2137,
407,
993,
4123,
323,
46955,
422,
262,
1578,
1829,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
47007,
3553,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
14140,
1,
796,
705,
1662... |
What's the zodiac sign for the month with Thai name ? | SELECT "Zodiac sign" FROM table_2240 WHERE "Thai name" = 'มกราคม' | [
2061,
338,
262,
1976,
40096,
1051,
329,
262,
1227,
351,
18933,
1438,
5633,
46506,
366,
57,
40096,
1051,
1,
16034,
3084,
62,
17,
16102,
33411,
366,
817,
1872,
1438,
1,
796,
705,
19567,
94,
19567,
223,
19567,
96,
19567,
110,
19567,
226,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1976,
40096,
1051,
329,
262,
1227,
351,
18933,
1438,
5633,
46506,
366,
57,
40096,
1051,
1,
16034,
3084,
62,
17,
16102,
33411,
366,
817,
1872,
1438,
1,
796,
705,
19567,
94,
19567,
223,
19567,
96,
19567,
110,
19567,
226,... |
Yearly script deletion candidates in category-theory. | SELECT Id AS "post_link", OwnerUserId AS "user_link", CreationDate, Tags FROM Posts WHERE AnswerCount = 0 AND CommentCount < 2 AND Score = 0 AND ClosedDate IS NULL AND DATEDIFF(DAY, CreationDate, GETDATE()) > 350 AND DATEDIFF(DAY, CreationDate, GETDATE()) < 375 AND (Tags LIKE '%<category-theory>%' OR Tags LIKE '%<simpl... | [
56,
11458,
4226,
39948,
5871,
287,
6536,
12,
1169,
652,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
23853,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
11,
44789,
16034,
12043,
33411,
23998,
12332,
796,
657,
5357,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
56,
11458,
4226,
39948,
5871,
287,
6536,
12,
1169,
652,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
23853,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
11,
44789,
16034,
12043,
33411,
23998,
12332,
796,
657,
5357,
1... |
what was the total number of outputs patient 56490 had on 09/10/last year? | SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 56490)) AND DATETIME(outputevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start o... | [
10919,
373,
262,
2472,
1271,
286,
23862,
5827,
642,
2414,
3829,
550,
319,
7769,
14,
940,
14,
12957,
614,
30,
46506,
35683,
7,
448,
79,
1133,
85,
658,
13,
8367,
8,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
23862,
5827,
642,
2414,
3829,
550,
319,
7769,
14,
940,
14,
12957,
614,
30,
46506,
35683,
7,
448,
79,
1133,
85,
658,
13,
8367,
8,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
... |
which drug is prescribed to patient with patient id 3343? | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.subject_id = "3343" | [
4758,
2563,
318,
14798,
284,
5827,
351,
5827,
4686,
513,
32118,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
32796,
62,
312,
796,
366,
2091,
3559,
1
] | [
1,
1,
1,
1,
1,
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,
2563,
318,
14798,
284,
5827,
351,
5827,
4686,
513,
32118,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
32796,
62,
312,
796,
366,
2091,
3559,
1
] |
Show a bar chart about how many employees does each role have?, I want to order by the the total number in descending. | SELECT role_description, COUNT(*) FROM Roles AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code ORDER BY COUNT(*) DESC | [
15307,
257,
2318,
8262,
546,
703,
867,
4409,
857,
1123,
2597,
423,
21747,
314,
765,
284,
1502,
416,
262,
262,
2472,
1271,
287,
31491,
13,
46506,
2597,
62,
11213,
11,
327,
28270,
7,
28104,
16034,
371,
4316,
7054,
309,
16,
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... | [
15307,
257,
2318,
8262,
546,
703,
867,
4409,
857,
1123,
2597,
423,
21747,
314,
765,
284,
1502,
416,
262,
262,
2472,
1271,
287,
31491,
13,
46506,
2597,
62,
11213,
11,
327,
28270,
7,
28104,
16034,
371,
4316,
7054,
309,
16,
32357,
1268,
... |
Who used the Honda Engine for all the races? | SELECT "Team" FROM table_4551 WHERE "Engine" = 'honda' AND "Races" = 'all' | [
8241,
973,
262,
20059,
7117,
329,
477,
262,
9558,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2231,
4349,
33411,
366,
13798,
1,
796,
705,
71,
13533,
6,
5357,
366,
49,
2114,
1,
796,
705,
439,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
973,
262,
20059,
7117,
329,
477,
262,
9558,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2231,
4349,
33411,
366,
13798,
1,
796,
705,
71,
13533,
6,
5357,
366,
49,
2114,
1,
796,
705,
439,
6
] |
when was the first time patient 10624 had urine out foley output on 09/05/last year? | SELECT outputevents.charttime FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10624)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'urin... | [
12518,
373,
262,
717,
640,
5827,
15696,
1731,
550,
18922,
503,
11511,
1636,
5072,
319,
7769,
14,
2713,
14,
12957,
614,
30,
46506,
38701,
1133,
85,
658,
13,
40926,
2435,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
717,
640,
5827,
15696,
1731,
550,
18922,
503,
11511,
1636,
5072,
319,
7769,
14,
2713,
14,
12957,
614,
30,
46506,
38701,
1133,
85,
658,
13,
40926,
2435,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291... |
How many championships did the team or teams established in 1976 win? | SELECT SUM(championships) FROM table_name_92 WHERE established = 1976 | [
2437,
867,
27459,
750,
262,
1074,
393,
3466,
4920,
287,
15408,
1592,
30,
46506,
35683,
7,
354,
4350,
5748,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
4920,
796,
15408
] | [
1,
1,
1,
1,
1,
1,
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,
27459,
750,
262,
1074,
393,
3466,
4920,
287,
15408,
1592,
30,
46506,
35683,
7,
354,
4350,
5748,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
4920,
796,
15408
] |
What construction has a Listed 09/08/1983, and a Deleted of , and a Name of mid-south wood products? | SELECT "Construction completed" FROM table_56840 WHERE "Listed" = '09/08/1983' AND "Deleted" = '–' AND "Name" = 'mid-south wood products' | [
2061,
5103,
468,
257,
406,
6347,
7769,
14,
2919,
14,
29279,
11,
290,
257,
1024,
33342,
286,
837,
290,
257,
6530,
286,
3095,
12,
35782,
4898,
3186,
30,
46506,
366,
36687,
5668,
1,
16034,
3084,
62,
49211,
1821,
33411,
366,
43,
6347,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5103,
468,
257,
406,
6347,
7769,
14,
2919,
14,
29279,
11,
290,
257,
1024,
33342,
286,
837,
290,
257,
6530,
286,
3095,
12,
35782,
4898,
3186,
30,
46506,
366,
36687,
5668,
1,
16034,
3084,
62,
49211,
1821,
33411,
366,
43,
6347,
1... |
What is Fred Couples to par? | SELECT to_par FROM table_name_24 WHERE player = "fred couples" | [
2061,
318,
8559,
15062,
2374,
284,
1582,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
1731,
33411,
2137,
796,
366,
39193,
11886,
1
] | [
1,
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,
8559,
15062,
2374,
284,
1582,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
1731,
33411,
2137,
796,
366,
39193,
11886,
1
] |
who was the voice actor when the species is hedgehog? | SELECT "Voice actor" FROM table_28825 WHERE "Species" = 'Hedgehog' | [
8727,
373,
262,
3809,
8674,
618,
262,
4693,
318,
19859,
31897,
30,
46506,
366,
35708,
8674,
1,
16034,
3084,
62,
25270,
1495,
33411,
366,
5248,
3171,
1,
796,
705,
39,
14907,
31897,
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
] | [
8727,
373,
262,
3809,
8674,
618,
262,
4693,
318,
19859,
31897,
30,
46506,
366,
35708,
8674,
1,
16034,
3084,
62,
25270,
1495,
33411,
366,
5248,
3171,
1,
796,
705,
39,
14907,
31897,
6
] |
What is the last season that the Scottish Rocks played? | SELECT "Last season" FROM table_55107 WHERE "Team" = 'scottish rocks' | [
2061,
318,
262,
938,
1622,
326,
262,
11905,
34243,
2826,
30,
46506,
366,
5956,
1622,
1,
16034,
3084,
62,
2816,
15982,
33411,
366,
15592,
1,
796,
705,
1416,
1252,
680,
12586,
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,
262,
938,
1622,
326,
262,
11905,
34243,
2826,
30,
46506,
366,
5956,
1622,
1,
16034,
3084,
62,
2816,
15982,
33411,
366,
15592,
1,
796,
705,
1416,
1252,
680,
12586,
6
] |
For those employees who did not have any job in the past, give me the comparison about the sum of employee_id over the hire_date bin hire_date by weekday, order in asc by the y-axis. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
11,
1502,
287,
10570,
416,
262,
331,
12,
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... | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
11,
1502,
287,
10570,
416,
262,
331,
12,
2... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about manager_id over the first_name , could you display by the names from high to low? | SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1577,
502,
262,
7208,
546,
4706,
62,
312,
625,
262,
717,
62,
3672,
837,
714,
345,
3359,
416,
262,
3891,
422,
1029,
284,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
4706,
62,
312,
625,
262,
717,
62,
3672,
837,
714,
345,
3359,
416,
262,
3891,
422,
1029,
284,
18... |
Which name has a lane smaller than 7, and a time greater than 54.32 with germany as the nationality and a rank less than 5? | SELECT name FROM table_name_8 WHERE lane < 7 AND time > 54.32 AND nationality = "germany" AND rank < 5 | [
13828,
1438,
468,
257,
11193,
4833,
621,
767,
11,
290,
257,
640,
3744,
621,
7175,
13,
2624,
351,
308,
2224,
88,
355,
262,
29835,
290,
257,
4279,
1342,
621,
642,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
23,
33411,
11193,
1279,
767... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1438,
468,
257,
11193,
4833,
621,
767,
11,
290,
257,
640,
3744,
621,
7175,
13,
2624,
351,
308,
2224,
88,
355,
262,
29835,
290,
257,
4279,
1342,
621,
642,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
23,
33411,
11193,
1279,
767... |
Name the Bore x stroke of 1929-32 | SELECT bore_x_stroke FROM table_name_83 WHERE year = "1929-32" | [
5376,
262,
45409,
2124,
14000,
286,
31883,
12,
2624,
46506,
18631,
62,
87,
62,
30757,
16034,
3084,
62,
3672,
62,
5999,
33411,
614,
796,
366,
1129,
1959,
12,
2624,
1
] | [
1,
1,
1,
1,
1,
1,
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,
45409,
2124,
14000,
286,
31883,
12,
2624,
46506,
18631,
62,
87,
62,
30757,
16034,
3084,
62,
3672,
62,
5999,
33411,
614,
796,
366,
1129,
1959,
12,
2624,
1
] |
provide the number of patients whose year of death is less than or equal to 2165 and procedure icd9 code is 3523? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2165.0" AND procedures.icd9_code = "3523" | [
15234,
485,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
20986,
290,
8771,
14158,
67,
24,
2438,
318,
3439,
1954,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
20986,
290,
8771,
14158,
67,
24,
2438,
318,
3439,
1954,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034... |
Name the 1997 for atp masters series 1992 | SELECT 1997 FROM table_name_65 WHERE 1992 = "atp masters series" | [
5376,
262,
8309,
329,
379,
79,
18159,
2168,
9768,
46506,
8309,
16034,
3084,
62,
3672,
62,
2996,
33411,
9768,
796,
366,
265,
79,
18159,
2168,
1
] | [
1,
1,
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,
8309,
329,
379,
79,
18159,
2168,
9768,
46506,
8309,
16034,
3084,
62,
3672,
62,
2996,
33411,
9768,
796,
366,
265,
79,
18159,
2168,
1
] |
how long did it take ryosuke irie to finish ? | SELECT "time" FROM table_204_835 WHERE "name" = 'ryosuke irie' | [
4919,
890,
750,
340,
1011,
374,
88,
45914,
4173,
494,
284,
5461,
5633,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
23,
2327,
33411,
366,
3672,
1,
796,
705,
563,
45914,
4173,
494,
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
] | [
4919,
890,
750,
340,
1011,
374,
88,
45914,
4173,
494,
284,
5461,
5633,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
23,
2327,
33411,
366,
3672,
1,
796,
705,
563,
45914,
4173,
494,
6
] |
how many times did patient 17638 receive insert endotracheal tube in the first hospital encounter. | 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 = 17638 AND NOT admissions.d... | [
4919,
867,
1661,
750,
5827,
26937,
2548,
3328,
7550,
46710,
81,
4891,
282,
12403,
287,
262,
717,
4436,
8791,
13,
46506,
327,
28270,
7,
28104,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
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,
1... | [
4919,
867,
1661,
750,
5827,
26937,
2548,
3328,
7550,
46710,
81,
4891,
282,
12403,
287,
262,
717,
4436,
8791,
13,
46506,
327,
28270,
7,
28104,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
... |
What is the highest number of silver medals for a team with total less than 1? | SELECT MAX(silver) FROM table_name_32 WHERE total < 1 | [
2061,
318,
262,
4511,
1271,
286,
8465,
28057,
329,
257,
1074,
351,
2472,
1342,
621,
352,
30,
46506,
25882,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
2624,
33411,
2472,
1279,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
1271,
286,
8465,
28057,
329,
257,
1074,
351,
2472,
1342,
621,
352,
30,
46506,
25882,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
2624,
33411,
2472,
1279,
352
] |
Draw a bar chart of open date versus the number of open date | SELECT Open_Date, COUNT(Open_Date) FROM church | [
25302,
257,
2318,
8262,
286,
1280,
3128,
9051,
262,
1271,
286,
1280,
3128,
46506,
4946,
62,
10430,
11,
327,
28270,
7,
11505,
62,
10430,
8,
16034,
4928
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
286,
1280,
3128,
9051,
262,
1271,
286,
1280,
3128,
46506,
4946,
62,
10430,
11,
327,
28270,
7,
11505,
62,
10430,
8,
16034,
4928
] |
WHich province has an IATA of WNZ? | SELECT "Province" FROM table_33710 WHERE "IATA" = 'wnz' | [
12418,
488,
8473,
468,
281,
314,
13563,
286,
370,
37371,
30,
46506,
366,
15946,
924,
1,
16034,
3084,
62,
31496,
940,
33411,
366,
40,
13563,
1,
796,
705,
675,
89,
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
] | [
12418,
488,
8473,
468,
281,
314,
13563,
286,
370,
37371,
30,
46506,
366,
15946,
924,
1,
16034,
3084,
62,
31496,
940,
33411,
366,
40,
13563,
1,
796,
705,
675,
89,
6
] |
Which main cast seasons were portrayed by Joe Jonas? | SELECT "Main cast seasons" FROM table_15797 WHERE "Portrayed by" = 'joe jonas' | [
13828,
1388,
3350,
7028,
547,
19152,
416,
5689,
40458,
30,
46506,
366,
13383,
3350,
7028,
1,
16034,
3084,
62,
1314,
44673,
33411,
366,
13924,
2433,
276,
416,
1,
796,
705,
73,
2577,
474,
261,
292,
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
] | [
13828,
1388,
3350,
7028,
547,
19152,
416,
5689,
40458,
30,
46506,
366,
13383,
3350,
7028,
1,
16034,
3084,
62,
1314,
44673,
33411,
366,
13924,
2433,
276,
416,
1,
796,
705,
73,
2577,
474,
261,
292,
6
] |
How many seasons in Meistriliiga when the club was kuressaare also had a first season in top division of more than 2000? | SELECT COUNT(number_of_seasons_in_meistriliiga) FROM table_name_17 WHERE club = "kuressaare" AND first_season_in_top_division > 2000 | [
2437,
867,
7028,
287,
2185,
396,
81,
2403,
13827,
618,
262,
3430,
373,
479,
84,
601,
64,
533,
635,
550,
257,
717,
1622,
287,
1353,
7297,
286,
517,
621,
4751,
30,
46506,
327,
28270,
7,
17618,
62,
1659,
62,
325,
2812,
62,
259,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
7028,
287,
2185,
396,
81,
2403,
13827,
618,
262,
3430,
373,
479,
84,
601,
64,
533,
635,
550,
257,
717,
1622,
287,
1353,
7297,
286,
517,
621,
4751,
30,
46506,
327,
28270,
7,
17618,
62,
1659,
62,
325,
2812,
62,
259,
62,
... |
Are there integrated secondary schools in Basel-Stadt? | SELECT "Integrated Secondary Schools?" FROM table_22255 WHERE "Canton" = 'Basel-Stadt' | [
8491,
612,
11521,
9233,
4266,
287,
6455,
417,
12,
1273,
324,
83,
30,
46506,
366,
34500,
4111,
29521,
20357,
1701,
16034,
3084,
62,
1828,
13381,
33411,
366,
34,
23026,
1,
796,
705,
15522,
417,
12,
1273,
324,
83,
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
] | [
8491,
612,
11521,
9233,
4266,
287,
6455,
417,
12,
1273,
324,
83,
30,
46506,
366,
34500,
4111,
29521,
20357,
1701,
16034,
3084,
62,
1828,
13381,
33411,
366,
34,
23026,
1,
796,
705,
15522,
417,
12,
1273,
324,
83,
6
] |
how was patient 035-166 admitted to hospital the last time in a year before? | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '035-166' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
4919,
373,
5827,
657,
2327,
12,
23055,
6848,
284,
4436,
262,
938,
640,
287,
257,
614,
878,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44215,
12,
23055,
6,
5357,
360,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
5827,
657,
2327,
12,
23055,
6848,
284,
4436,
262,
938,
640,
287,
257,
614,
878,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44215,
12,
23055,
6,
5357,
360,
14... |
What Status has a Date performed of august 13, and a Position of safe? | SELECT "Status" FROM table_12297 WHERE "Date performed" = 'august 13' AND "Position" = 'safe' | [
2061,
12678,
468,
257,
7536,
6157,
286,
16339,
436,
1511,
11,
290,
257,
23158,
286,
3338,
30,
46506,
366,
19580,
1,
16034,
3084,
62,
1065,
26561,
33411,
366,
10430,
6157,
1,
796,
705,
7493,
436,
1511,
6,
5357,
366,
26545,
1,
796,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
12678,
468,
257,
7536,
6157,
286,
16339,
436,
1511,
11,
290,
257,
23158,
286,
3338,
30,
46506,
366,
19580,
1,
16034,
3084,
62,
1065,
26561,
33411,
366,
10430,
6157,
1,
796,
705,
7493,
436,
1511,
6,
5357,
366,
26545,
1,
796,
70... |
For the item with a Prince XML value of 'font', what is the WebKit value? | SELECT "WebKit" FROM table_49301 WHERE "Prince XML" = 'font' | [
1890,
262,
2378,
351,
257,
9005,
23735,
1988,
286,
705,
10331,
3256,
644,
318,
262,
5313,
20827,
1988,
30,
46506,
366,
13908,
20827,
1,
16034,
3084,
62,
2920,
18938,
33411,
366,
35784,
23735,
1,
796,
705,
10331,
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
] | [
1890,
262,
2378,
351,
257,
9005,
23735,
1988,
286,
705,
10331,
3256,
644,
318,
262,
5313,
20827,
1988,
30,
46506,
366,
13908,
20827,
1,
16034,
3084,
62,
2920,
18938,
33411,
366,
35784,
23735,
1,
796,
705,
10331,
6
] |
patient 31473 was since 2104 in the emergency room? | SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 31473 AND admissions.admission_location = 'emergency room admit' AND STRFTIME('%y', admissions.admittime) >= '2104' | [
26029,
34085,
4790,
373,
1201,
362,
13464,
287,
262,
6334,
2119,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
34085,
4790,
5357,
25349,
13,
324,
3411,
62,
24886,
796,
705,
24677,
4949,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26029,
34085,
4790,
373,
1201,
362,
13464,
287,
262,
6334,
2119,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
34085,
4790,
5357,
25349,
13,
324,
3411,
62,
24886,
796,
705,
24677,
4949,... |
Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate. | SELECT T2.name FROM certificate AS T1 JOIN aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY COUNT(*) >= 5 | [
15307,
262,
1438,
290,
5253,
286,
262,
6215,
82,
351,
517,
621,
23336,
5253,
290,
543,
379,
1551,
642,
661,
423,
663,
10703,
13,
46506,
309,
17,
13,
3672,
16034,
10703,
7054,
309,
16,
32357,
1268,
6215,
7054,
309,
17,
6177,
309,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
1438,
290,
5253,
286,
262,
6215,
82,
351,
517,
621,
23336,
5253,
290,
543,
379,
1551,
642,
661,
423,
663,
10703,
13,
46506,
309,
17,
13,
3672,
16034,
10703,
7054,
309,
16,
32357,
1268,
6215,
7054,
309,
17,
6177,
309,
17,... |
Home of kings had what score? | SELECT "Score" FROM table_74909 WHERE "Home" = 'kings' | [
16060,
286,
21557,
550,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
22,
2920,
2931,
33411,
366,
16060,
1,
796,
705,
74,
654,
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
] | [
16060,
286,
21557,
550,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
22,
2920,
2931,
33411,
366,
16060,
1,
796,
705,
74,
654,
6
] |
A bar chart about what are the different software platforms for devices, and how many devices have each?, and could you display by the x-axis in desc? | SELECT Software_Platform, COUNT(*) FROM device GROUP BY Software_Platform ORDER BY Software_Platform DESC | [
32,
2318,
8262,
546,
644,
389,
262,
1180,
3788,
9554,
329,
4410,
11,
290,
703,
867,
4410,
423,
1123,
21747,
290,
714,
345,
3359,
416,
262,
2124,
12,
22704,
287,
1715,
30,
46506,
10442,
62,
37148,
11,
327,
28270,
7,
28104,
16034,
333... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
546,
644,
389,
262,
1180,
3788,
9554,
329,
4410,
11,
290,
703,
867,
4410,
423,
1123,
21747,
290,
714,
345,
3359,
416,
262,
2124,
12,
22704,
287,
1715,
30,
46506,
10442,
62,
37148,
11,
327,
28270,
7,
28104,
16034,
333... |
On what date was the Blue Jays record 60-56? | SELECT "Date" FROM table_71741 WHERE "Record" = '60-56' | [
2202,
644,
3128,
373,
262,
4518,
23288,
1700,
3126,
12,
3980,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
22,
1558,
3901,
33411,
366,
23739,
1,
796,
705,
1899,
12,
3980,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
373,
262,
4518,
23288,
1700,
3126,
12,
3980,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
22,
1558,
3901,
33411,
366,
23739,
1,
796,
705,
1899,
12,
3980,
6
] |
What is the High points with a Game that is 56? | SELECT "High points" FROM table_43001 WHERE "Game" = '56' | [
2061,
318,
262,
3334,
2173,
351,
257,
3776,
326,
318,
7265,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
3559,
8298,
33411,
366,
8777,
1,
796,
705,
3980,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3334,
2173,
351,
257,
3776,
326,
318,
7265,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
3559,
8298,
33411,
366,
8777,
1,
796,
705,
3980,
6
] |
Which date has a Week larger than 5, and an Attendance of 54,803? | SELECT "Date" FROM table_9069 WHERE "Week" > '5' AND "Attendance" = '54,803' | [
13828,
3128,
468,
257,
6119,
4025,
621,
642,
11,
290,
281,
46502,
590,
286,
7175,
11,
43564,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
24,
3312,
24,
33411,
366,
20916,
1,
1875,
705,
20,
6,
5357,
366,
8086,
437,
590,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3128,
468,
257,
6119,
4025,
621,
642,
11,
290,
281,
46502,
590,
286,
7175,
11,
43564,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
24,
3312,
24,
33411,
366,
20916,
1,
1875,
705,
20,
6,
5357,
366,
8086,
437,
590,
1,
796,
705,
... |
does patient 23930 have a male or female gender? | SELECT patients.gender FROM patients WHERE patients.subject_id = 23930 | [
22437,
5827,
32817,
1270,
423,
257,
4257,
393,
4048,
5279,
30,
46506,
3871,
13,
8388,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
32817,
1270
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22437,
5827,
32817,
1270,
423,
257,
4257,
393,
4048,
5279,
30,
46506,
3871,
13,
8388,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
32817,
1270
] |
What is the hardness for the alloy that is liquid at 243 degrees C? | SELECT "Hardness" FROM table_43081 WHERE "Liquid at (\u00b0C)" = '243' | [
2061,
318,
262,
49604,
329,
262,
36186,
326,
318,
8122,
379,
35989,
7370,
327,
30,
46506,
366,
17309,
1108,
1,
16034,
3084,
62,
31794,
6659,
33411,
366,
41966,
379,
357,
59,
84,
405,
65,
15,
34,
16725,
796,
705,
26660,
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
] | [
2061,
318,
262,
49604,
329,
262,
36186,
326,
318,
8122,
379,
35989,
7370,
327,
30,
46506,
366,
17309,
1108,
1,
16034,
3084,
62,
31794,
6659,
33411,
366,
41966,
379,
357,
59,
84,
405,
65,
15,
34,
16725,
796,
705,
26660,
6
] |
What award was Hannah Gal the recipient of? | SELECT award FROM table_name_23 WHERE recipient = "hannah gal" | [
2061,
5764,
373,
26013,
5027,
262,
17800,
286,
30,
46506,
5764,
16034,
3084,
62,
3672,
62,
1954,
33411,
17800,
796,
366,
71,
25761,
9426,
1
] | [
1,
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,
5764,
373,
26013,
5027,
262,
17800,
286,
30,
46506,
5764,
16034,
3084,
62,
3672,
62,
1954,
33411,
17800,
796,
366,
71,
25761,
9426,
1
] |
when did patient 26156 come for the last time to the hospital? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 26156 ORDER BY admissions.admittime DESC LIMIT 1 | [
12518,
750,
5827,
2608,
21599,
1282,
329,
262,
938,
640,
284,
262,
4436,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2608,
21599,
38678,
11050,
25349,
13,
324,
20124,
524,
22196,
34,
27564... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
5827,
2608,
21599,
1282,
329,
262,
938,
640,
284,
262,
4436,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2608,
21599,
38678,
11050,
25349,
13,
324,
20124,
524,
22196,
34,
27564... |
What is Event, when Round is '1', when Location is 'New Town, North Dakota , United States' and when Time is '4:12'? | SELECT "Event" FROM table_43633 WHERE "Round" = '1' AND "Location" = 'new town, north dakota , united states' AND "Time" = '4:12' | [
2061,
318,
8558,
11,
618,
10485,
318,
705,
16,
3256,
618,
13397,
318,
705,
3791,
8329,
11,
2258,
13336,
837,
1578,
1829,
6,
290,
618,
3862,
318,
705,
19,
25,
1065,
30960,
46506,
366,
9237,
1,
16034,
3084,
62,
43690,
2091,
33411,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
8558,
11,
618,
10485,
318,
705,
16,
3256,
618,
13397,
318,
705,
3791,
8329,
11,
2258,
13336,
837,
1578,
1829,
6,
290,
618,
3862,
318,
705,
19,
25,
1065,
30960,
46506,
366,
9237,
1,
16034,
3084,
62,
43690,
2091,
33411,
366... |
List the name and residence for players whose occupation is not 'Researcher'. | SELECT Player_name, residence FROM player WHERE Occupation <> "Researcher" | [
8053,
262,
1438,
290,
11566,
329,
1938,
3025,
13755,
318,
407,
705,
4965,
50194,
4458,
46506,
7853,
62,
3672,
11,
11566,
16034,
2137,
33411,
15227,
341,
1279,
29,
366,
4965,
50194,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1438,
290,
11566,
329,
1938,
3025,
13755,
318,
407,
705,
4965,
50194,
4458,
46506,
7853,
62,
3672,
11,
11566,
16034,
2137,
33411,
15227,
341,
1279,
29,
366,
4965,
50194,
1
] |
What is the sum of Games for Allofs, Klaus, with Goals less than 177? | SELECT SUM("Games") FROM table_42591 WHERE "Name" = 'allofs, klaus' AND "Goals" < '177' | [
2061,
318,
262,
2160,
286,
5776,
329,
1439,
1659,
82,
11,
49739,
11,
351,
28510,
1342,
621,
26607,
30,
46506,
35683,
7203,
24474,
4943,
16034,
3084,
62,
32114,
6420,
33411,
366,
5376,
1,
796,
705,
439,
1659,
82,
11,
479,
38024,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
5776,
329,
1439,
1659,
82,
11,
49739,
11,
351,
28510,
1342,
621,
26607,
30,
46506,
35683,
7203,
24474,
4943,
16034,
3084,
62,
32114,
6420,
33411,
366,
5376,
1,
796,
705,
439,
1659,
82,
11,
479,
38024,
6,
5... |
How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81? | SELECT COUNT("Lecturers") FROM table_33073 WHERE "Assistant professors" > '8' AND "Professors" > '14' AND "Associate professors" < '35' AND "Total" > '81' | [
2437,
743,
11042,
17496,
389,
612,
287,
262,
1339,
618,
612,
389,
517,
621,
807,
8796,
20339,
11,
7380,
621,
3439,
11602,
20339,
11,
517,
621,
1478,
20339,
290,
2472,
286,
517,
621,
9773,
30,
46506,
327,
28270,
7203,
43,
478,
17496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
743,
11042,
17496,
389,
612,
287,
262,
1339,
618,
612,
389,
517,
621,
807,
8796,
20339,
11,
7380,
621,
3439,
11602,
20339,
11,
517,
621,
1478,
20339,
290,
2472,
286,
517,
621,
9773,
30,
46506,
327,
28270,
7203,
43,
478,
17496,
... |
If the best winning average is 7.3-71, what are the total points? | SELECT MIN(total_points) FROM table_27533947_1 WHERE best_winning_average = "7.3-71" | [
1532,
262,
1266,
5442,
2811,
318,
767,
13,
18,
12,
4869,
11,
644,
389,
262,
2472,
2173,
30,
46506,
20625,
7,
23350,
62,
13033,
8,
16034,
3084,
62,
23195,
29626,
2857,
62,
16,
33411,
1266,
62,
14463,
62,
23913,
796,
366,
22,
13,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
262,
1266,
5442,
2811,
318,
767,
13,
18,
12,
4869,
11,
644,
389,
262,
2472,
2173,
30,
46506,
20625,
7,
23350,
62,
13033,
8,
16034,
3084,
62,
23195,
29626,
2857,
62,
16,
33411,
1266,
62,
14463,
62,
23913,
796,
366,
22,
13,
18... |
Next Winter , who is teaching PreMajor classes ? | SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instr... | [
10019,
10633,
837,
508,
318,
7743,
3771,
24206,
6097,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
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... | [
10019,
10633,
837,
508,
318,
7743,
3771,
24206,
6097,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319... |
What is Player, when Country is 'United States', when Money ( $ ) is greater than 387, and when Score is '75-74-74-70=293'? | SELECT player FROM table_name_56 WHERE country = "united states" AND money___$__ > 387 AND score = 75 - 74 - 74 - 70 = 293 | [
2061,
318,
7853,
11,
618,
12946,
318,
705,
17013,
1829,
3256,
618,
12911,
357,
720,
1267,
318,
3744,
621,
49689,
11,
290,
618,
15178,
318,
705,
2425,
12,
4524,
12,
4524,
12,
2154,
28,
31675,
30960,
46506,
2137,
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,
1,
1,
1,
1,
1... | [
2061,
318,
7853,
11,
618,
12946,
318,
705,
17013,
1829,
3256,
618,
12911,
357,
720,
1267,
318,
3744,
621,
49689,
11,
290,
618,
15178,
318,
705,
2425,
12,
4524,
12,
4524,
12,
2154,
28,
31675,
30960,
46506,
2137,
16034,
3084,
62,
3672,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.