instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks? | SELECT AVG("January") FROM table_38285 WHERE "Opponent" = 'vancouver canucks' AND "Game" > '39' | [
2061,
318,
262,
2811,
42897,
2838,
1271,
618,
262,
983,
1271,
373,
2440,
621,
5014,
290,
262,
6125,
373,
262,
10930,
31252,
30,
46506,
35224,
7203,
21339,
4943,
16034,
3084,
62,
2548,
26279,
33411,
366,
27524,
3471,
1,
796,
705,
85,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
42897,
2838,
1271,
618,
262,
983,
1271,
373,
2440,
621,
5014,
290,
262,
6125,
373,
262,
10930,
31252,
30,
46506,
35224,
7203,
21339,
4943,
16034,
3084,
62,
2548,
26279,
33411,
366,
27524,
3471,
1,
796,
705,
85,
1... |
Who was the leader in Points when Al Jefferson (7) was the leader in Rebounds? | SELECT "Points" FROM table_70770 WHERE "Rebounds" = 'al jefferson (7)' | [
8241,
373,
262,
3554,
287,
11045,
618,
978,
15375,
357,
22,
8,
373,
262,
3554,
287,
15652,
3733,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
24038,
2154,
33411,
366,
28951,
3733,
1,
796,
705,
282,
11223,
487,
882,
357,
22,
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
] | [
8241,
373,
262,
3554,
287,
11045,
618,
978,
15375,
357,
22,
8,
373,
262,
3554,
287,
15652,
3733,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
24038,
2154,
33411,
366,
28951,
3733,
1,
796,
705,
282,
11223,
487,
882,
357,
22,
33047
] |
Name the national for rimutaka | SELECT national FROM table_20217811_1 WHERE electorate = "Rimutaka" | [
5376,
262,
2260,
329,
20254,
315,
8130,
46506,
2260,
16034,
3084,
62,
19004,
23188,
1157,
62,
16,
33411,
23879,
796,
366,
49,
320,
315,
8130,
1
] | [
1,
1,
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,
2260,
329,
20254,
315,
8130,
46506,
2260,
16034,
3084,
62,
19004,
23188,
1157,
62,
16,
33411,
23879,
796,
366,
49,
320,
315,
8130,
1
] |
What was the latest year for the film Gaon Ki Ganga? | SELECT MAX("Year") FROM table_11731 WHERE "Film name" = 'gaon ki ganga' | [
2061,
373,
262,
3452,
614,
329,
262,
2646,
12822,
261,
21927,
402,
16484,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
17657,
3132,
33411,
366,
39750,
1438,
1,
796,
705,
4908,
261,
47748,
7706,
64,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3452,
614,
329,
262,
2646,
12822,
261,
21927,
402,
16484,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
17657,
3132,
33411,
366,
39750,
1438,
1,
796,
705,
4908,
261,
47748,
7706,
64,
6
] |
what are the different statement ids on accounts, and the number of accounts for each? | SELECT Statement_ID, COUNT(*) FROM Accounts GROUP BY Statement_ID | [
10919,
389,
262,
1180,
2643,
220,
2340,
319,
5504,
11,
290,
262,
1271,
286,
5504,
329,
1123,
30,
46506,
21983,
62,
2389,
11,
327,
28270,
7,
28104,
16034,
35584,
44441,
11050,
21983,
62,
2389
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
389,
262,
1180,
2643,
220,
2340,
319,
5504,
11,
290,
262,
1271,
286,
5504,
329,
1123,
30,
46506,
21983,
62,
2389,
11,
327,
28270,
7,
28104,
16034,
35584,
44441,
11050,
21983,
62,
2389
] |
What is the foundation for the institution whose name in English is tanjung puteri technical secondary school? | SELECT foundation FROM table_name_5 WHERE name_in_english = "tanjung puteri technical secondary school" | [
2061,
318,
262,
8489,
329,
262,
9901,
3025,
1438,
287,
3594,
318,
25706,
73,
2150,
1234,
33442,
6276,
9233,
1524,
30,
46506,
8489,
16034,
3084,
62,
3672,
62,
20,
33411,
1438,
62,
259,
62,
39126,
796,
366,
38006,
73,
2150,
1234,
33442,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8489,
329,
262,
9901,
3025,
1438,
287,
3594,
318,
25706,
73,
2150,
1234,
33442,
6276,
9233,
1524,
30,
46506,
8489,
16034,
3084,
62,
3672,
62,
20,
33411,
1438,
62,
259,
62,
39126,
796,
366,
38006,
73,
2150,
1234,
33442,... |
count the number of patients who have undergone a vent rate lab test. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'vent rate') | [
9127,
262,
1271,
286,
3871,
508,
423,
29900,
257,
7435,
2494,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
2248... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
508,
423,
29900,
257,
7435,
2494,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
2248... |
Show different teams in eliminations and the number of eliminations from each team by a pie chart. | SELECT Team, COUNT(*) FROM Elimination GROUP BY Team | [
15307,
1180,
3466,
287,
5687,
7352,
290,
262,
1271,
286,
5687,
7352,
422,
1123,
1074,
416,
257,
2508,
8262,
13,
46506,
4816,
11,
327,
28270,
7,
28104,
16034,
27405,
1883,
44441,
11050,
4816
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
3466,
287,
5687,
7352,
290,
262,
1271,
286,
5687,
7352,
422,
1123,
1074,
416,
257,
2508,
8262,
13,
46506,
4816,
11,
327,
28270,
7,
28104,
16034,
27405,
1883,
44441,
11050,
4816
] |
What is the nationality of Shaun Sabol? | SELECT nationality FROM table_name_94 WHERE player = "shaun sabol" | [
2061,
318,
262,
29835,
286,
35188,
9910,
349,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
5824,
33411,
2137,
796,
366,
1477,
1942,
17463,
349,
1
] | [
1,
1,
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,
35188,
9910,
349,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
5824,
33411,
2137,
796,
366,
1477,
1942,
17463,
349,
1
] |
What size was the crowd when Hawthorn was the home team? | SELECT COUNT("Crowd") FROM table_51379 WHERE "Home team" = 'hawthorn' | [
2061,
2546,
373,
262,
4315,
618,
41457,
1211,
373,
262,
1363,
1074,
30,
46506,
327,
28270,
7203,
34,
3986,
4943,
16034,
3084,
62,
48645,
3720,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
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,
2546,
373,
262,
4315,
618,
41457,
1211,
373,
262,
1363,
1074,
30,
46506,
327,
28270,
7203,
34,
3986,
4943,
16034,
3084,
62,
48645,
3720,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
6
] |
What is the highest number of games played? | SELECT MAX(games_played) FROM table_18018214_4 | [
2061,
318,
262,
4511,
1271,
286,
1830,
2826,
30,
46506,
25882,
7,
19966,
62,
21542,
8,
16034,
3084,
62,
1507,
486,
6469,
1415,
62,
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
] | [
2061,
318,
262,
4511,
1271,
286,
1830,
2826,
30,
46506,
25882,
7,
19966,
62,
21542,
8,
16034,
3084,
62,
1507,
486,
6469,
1415,
62,
19
] |
Tell me the date for nicolas pereira | SELECT date FROM table_name_60 WHERE partnering = "nicolas pereira" | [
24446,
502,
262,
3128,
329,
9200,
12456,
279,
567,
8704,
46506,
3128,
16034,
3084,
62,
3672,
62,
1899,
33411,
41759,
796,
366,
6988,
12456,
279,
567,
8704,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
3128,
329,
9200,
12456,
279,
567,
8704,
46506,
3128,
16034,
3084,
62,
3672,
62,
1899,
33411,
41759,
796,
366,
6988,
12456,
279,
567,
8704,
1
] |
Which Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla? | SELECT MAX("Opened") FROM table_37577 WHERE "Themed Area" = 'aerial park' AND "Manufacturer" = 'zamperla' | [
13828,
8670,
2945,
318,
262,
4511,
530,
326,
468,
257,
383,
1150,
9498,
286,
17789,
3952,
11,
290,
257,
40218,
286,
1976,
321,
525,
5031,
30,
46506,
25882,
7203,
18257,
2945,
4943,
16034,
3084,
62,
22318,
3324,
33411,
366,
464,
1150,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8670,
2945,
318,
262,
4511,
530,
326,
468,
257,
383,
1150,
9498,
286,
17789,
3952,
11,
290,
257,
40218,
286,
1976,
321,
525,
5031,
30,
46506,
25882,
7203,
18257,
2945,
4943,
16034,
3084,
62,
22318,
3324,
33411,
366,
464,
1150,
... |
Give me a pie to show the total number from different position. | SELECT Position, COUNT(*) FROM match_season GROUP BY Position | [
23318,
502,
257,
2508,
284,
905,
262,
2472,
1271,
422,
1180,
2292,
13,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
11050,
23158
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
257,
2508,
284,
905,
262,
2472,
1271,
422,
1180,
2292,
13,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
11050,
23158
] |
give me the number of patients whose year of birth is less than 2052 and procedure long title is combined right and left heart cardiac catheterization? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2052" AND procedures.long_title = "Combined right and left heart cardiac catheterization" | [
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
4309,
290,
8771,
890,
3670,
318,
5929,
826,
290,
1364,
2612,
26077,
3797,
43332,
1634,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
4309,
290,
8771,
890,
3670,
318,
5929,
826,
290,
1364,
2612,
26077,
3797,
43332,
1634,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,... |
how many patients during the last year have been admitted into the hospital? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | [
4919,
867,
3871,
1141,
262,
938,
614,
423,
587,
6848,
656,
262,
4436,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
360,
1404,
2767,
12789,
7,
324,
8481,
13,
324,
20124,
524,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
1141,
262,
938,
614,
423,
587,
6848,
656,
262,
4436,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
360,
1404,
2767,
12789,
7,
324,
8481,
13,
324,
20124,
524,
11,
... |
how many times has patient 15754 got an respalor in 08/last year? | SELECT COUNT(*) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15754)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'respalor' AN... | [
4919,
867,
1661,
468,
5827,
1315,
41874,
1392,
281,
1217,
282,
273,
287,
8487,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1661,
468,
5827,
1315,
41874,
1392,
281,
1217,
282,
273,
287,
8487,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
323,
... |
Draw a bar chart about the distribution of All_Road and ACC_Percent , order X from high to low order. | SELECT All_Road, ACC_Percent FROM basketball_match ORDER BY All_Road DESC | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
29197,
290,
15859,
62,
31905,
837,
1502,
1395,
422,
1029,
284,
1877,
1502,
13,
46506,
1439,
62,
29197,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
38678,
11050,
1439,
62,
29197,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
546,
262,
6082,
286,
1439,
62,
29197,
290,
15859,
62,
31905,
837,
1502,
1395,
422,
1029,
284,
1877,
1502,
13,
46506,
1439,
62,
29197,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
38678,
11050,
1439,
62,
29197,
... |
i need a flight from DENVER to SALT LAKE CITY on monday | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SALT LAKE CITY' AND date_day.day_number = 21 AND date_day.month_number = ... | [
72,
761,
257,
5474,
422,
37692,
5959,
284,
311,
31429,
9131,
7336,
27993,
319,
285,
3204,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
1527... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
761,
257,
5474,
422,
37692,
5959,
284,
311,
31429,
9131,
7336,
27993,
319,
285,
3204,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
1527... |
What is the total attendance for Detroit on hasek? | SELECT COUNT("Attendance") FROM table_11807 WHERE "Home" = 'detroit' AND "Decision" = 'hasek' | [
2061,
318,
262,
2472,
14858,
329,
8488,
319,
468,
988,
30,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
1157,
36928,
33411,
366,
16060,
1,
796,
705,
15255,
7775,
6,
5357,
366,
10707,
1166,
1,
796,
705,
71,
589,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14858,
329,
8488,
319,
468,
988,
30,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
1157,
36928,
33411,
366,
16060,
1,
796,
705,
15255,
7775,
6,
5357,
366,
10707,
1166,
1,
796,
705,
71,
589,
74... |
Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team? | SELECT "GT2 Winning Team" FROM table_27150 WHERE "LMP1 Winning Team" = 'Greg Mansell Leo Mansell' | [
8241,
373,
262,
7963,
17,
40983,
4816,
611,
8547,
1869,
7255,
19632,
1869,
7255,
373,
262,
406,
7378,
16,
40983,
4816,
30,
46506,
366,
19555,
17,
40983,
4816,
1,
16034,
3084,
62,
1983,
8628,
33411,
366,
43,
7378,
16,
40983,
4816,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7963,
17,
40983,
4816,
611,
8547,
1869,
7255,
19632,
1869,
7255,
373,
262,
406,
7378,
16,
40983,
4816,
30,
46506,
366,
19555,
17,
40983,
4816,
1,
16034,
3084,
62,
1983,
8628,
33411,
366,
43,
7378,
16,
40983,
4816,
1,
... |
What is the greatest goals for Curtis Davies if ends is greater than 2012? | SELECT MAX(goals) FROM table_name_9 WHERE name = "curtis davies" AND ends > 2012 | [
2061,
318,
262,
6000,
4661,
329,
25157,
26618,
611,
5645,
318,
3744,
621,
2321,
30,
46506,
25882,
7,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
1438,
796,
366,
66,
3325,
271,
288,
615,
444,
1,
5357,
5645,
1875,
2321
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6000,
4661,
329,
25157,
26618,
611,
5645,
318,
3744,
621,
2321,
30,
46506,
25882,
7,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
1438,
796,
366,
66,
3325,
271,
288,
615,
444,
1,
5357,
5645,
1875,
2321
] |
How many Drawns have Points smaller than 5 and a Lost larger than 7? | SELECT COUNT("Drawn") FROM table_6479 WHERE "Points" < '5' AND "Lost" > '7' | [
2437,
867,
50061,
82,
423,
11045,
4833,
621,
642,
290,
257,
9164,
4025,
621,
767,
30,
46506,
327,
28270,
7203,
35,
5791,
4943,
16034,
3084,
62,
2414,
3720,
33411,
366,
40710,
1,
1279,
705,
20,
6,
5357,
366,
31042,
1,
1875,
705,
22,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
50061,
82,
423,
11045,
4833,
621,
642,
290,
257,
9164,
4025,
621,
767,
30,
46506,
327,
28270,
7203,
35,
5791,
4943,
16034,
3084,
62,
2414,
3720,
33411,
366,
40710,
1,
1279,
705,
20,
6,
5357,
366,
31042,
1,
1875,
705,
22,
... |
What's the award for #100? | SELECT "Award" FROM table_77918 WHERE "Result" = '#100' | [
2061,
338,
262,
5764,
329,
1303,
3064,
30,
46506,
366,
32,
904,
1,
16034,
3084,
62,
40393,
1507,
33411,
366,
23004,
1,
796,
705,
2,
3064,
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,
338,
262,
5764,
329,
1303,
3064,
30,
46506,
366,
32,
904,
1,
16034,
3084,
62,
40393,
1507,
33411,
366,
23004,
1,
796,
705,
2,
3064,
6
] |
List all countries of markets in descending order of number of cities. | SELECT Country FROM market ORDER BY Number_cities DESC | [
8053,
477,
2678,
286,
5939,
287,
31491,
1502,
286,
1271,
286,
4736,
13,
46506,
12946,
16034,
1910,
38678,
11050,
7913,
62,
66,
871,
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
] | [
8053,
477,
2678,
286,
5939,
287,
31491,
1502,
286,
1271,
286,
4736,
13,
46506,
12946,
16034,
1910,
38678,
11050,
7913,
62,
66,
871,
22196,
34
] |
What position has a time over 38.61 at the gothenburg venue? | SELECT "Position" FROM table_12828 WHERE "Time" > '38.61' AND "Venue" = 'gothenburg' | [
2061,
2292,
468,
257,
640,
625,
4353,
13,
5333,
379,
262,
1392,
831,
7423,
14359,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
12762,
2078,
33411,
366,
7575,
1,
1875,
705,
2548,
13,
5333,
6,
5357,
366,
37522,
518,
1,
796,
705,
23442,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
468,
257,
640,
625,
4353,
13,
5333,
379,
262,
1392,
831,
7423,
14359,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
12762,
2078,
33411,
366,
7575,
1,
1875,
705,
2548,
13,
5333,
6,
5357,
366,
37522,
518,
1,
796,
705,
23442,
... |
What time does lane 7 have? | SELECT time FROM table_name_56 WHERE lane = 7 | [
2061,
640,
857,
11193,
767,
423,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
3980,
33411,
11193,
796,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
640,
857,
11193,
767,
423,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
3980,
33411,
11193,
796,
767
] |
What position did the player from the saskatchewan roughriders (via toronto) play? | SELECT "Position" FROM table_11305 WHERE "CFL Team" = 'saskatchewan roughriders (via toronto)' | [
2061,
2292,
750,
262,
2137,
422,
262,
264,
2093,
29736,
5210,
81,
4157,
357,
8869,
7332,
5957,
8,
711,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1157,
22515,
33411,
366,
34,
3697,
4816,
1,
796,
705,
82,
2093,
29736,
5210,
81,
4157,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
750,
262,
2137,
422,
262,
264,
2093,
29736,
5210,
81,
4157,
357,
8869,
7332,
5957,
8,
711,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1157,
22515,
33411,
366,
34,
3697,
4816,
1,
796,
705,
82,
2093,
29736,
5210,
81,
4157,... |
On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2 6, 6 7? | SELECT "Surface" FROM table_58044 WHERE "Outcome" = 'runner-up' AND "Partner" = 'ivan lendl' AND "Score in the final" = '2–6, 6–7' | [
2202,
644,
4417,
373,
21798,
406,
437,
75,
257,
5212,
351,
257,
17490,
12,
929,
8055,
290,
2457,
4776,
286,
362,
718,
11,
718,
767,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
39322,
2598,
33411,
366,
7975,
2958,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2202,
644,
4417,
373,
21798,
406,
437,
75,
257,
5212,
351,
257,
17490,
12,
929,
8055,
290,
2457,
4776,
286,
362,
718,
11,
718,
767,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
39322,
2598,
33411,
366,
7975,
2958,
1,
796,
705,
... |
What are the name and level of catalog structure with level number between 5 and 1 Show bar chart, and list from low to high by the X-axis. | SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 ORDER BY catalog_level_name | [
2061,
389,
262,
1438,
290,
1241,
286,
18388,
4645,
351,
1241,
1271,
1022,
642,
290,
352,
5438,
2318,
8262,
11,
290,
1351,
422,
1877,
284,
1029,
416,
262,
1395,
12,
22704,
13,
46506,
18388,
62,
5715,
62,
3672,
11,
18388,
62,
5715,
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... | [
2061,
389,
262,
1438,
290,
1241,
286,
18388,
4645,
351,
1241,
1271,
1022,
642,
290,
352,
5438,
2318,
8262,
11,
290,
1351,
422,
1877,
284,
1029,
416,
262,
1395,
12,
22704,
13,
46506,
18388,
62,
5715,
62,
3672,
11,
18388,
62,
5715,
62... |
Top 1000 users in Iran. | SELECT ROW_NUMBER() OVER (ORDER BY Users.Reputation DESC) AS "#", Users.Id AS "user_link", Users.Reputation, Users.Location, Users.UpVotes, Users.DownVotes, Users.CreationDate FROM Users WHERE LOWER(Location) LIKE '%france' OR LOWER(Location) LIKE '%paris' OR LOWER(Location) LIKE '%lyon' OR LOWER(Location) LIKE '%marse... | [
9126,
8576,
2985,
287,
4068,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
18987,
13,
6207,
7094,
22196,
34,
8,
7054,
25113,
1600,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
18987,
13,
6207,
7094,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
8576,
2985,
287,
4068,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
18987,
13,
6207,
7094,
22196,
34,
8,
7054,
25113,
1600,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
18987,
13,
6207,
7094,
... |
What is the highest administrative panel value with an agricultural panel less than 1 and a labour panel value less than 5? | SELECT MAX("Administrative Panel") FROM table_6989 WHERE "Agricultural Panel" < '1' AND "Labour Panel" < '5' | [
2061,
318,
262,
4511,
11553,
6103,
1988,
351,
281,
14240,
6103,
1342,
621,
352,
290,
257,
10515,
6103,
1988,
1342,
621,
642,
30,
46506,
25882,
7203,
41862,
13260,
18810,
4943,
16034,
3084,
62,
3388,
4531,
33411,
366,
10262,
1173,
8596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11553,
6103,
1988,
351,
281,
14240,
6103,
1342,
621,
352,
290,
257,
10515,
6103,
1988,
1342,
621,
642,
30,
46506,
25882,
7203,
41862,
13260,
18810,
4943,
16034,
3084,
62,
3388,
4531,
33411,
366,
10262,
1173,
8596,
... |
what is the maximum age of patients who are widow and have the admission location as phys referral/normal delivery? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" | [
10919,
318,
262,
5415,
2479,
286,
3871,
508,
389,
27075,
290,
423,
262,
13938,
4067,
355,
2281,
31413,
14,
11265,
7585,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
54,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
2479,
286,
3871,
508,
389,
27075,
290,
423,
262,
13938,
4067,
355,
2281,
31413,
14,
11265,
7585,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
54,
... |
Who won the australian grand prix? | SELECT race AS Winner FROM table_name_53 WHERE race = "australian grand prix" | [
8241,
1839,
262,
38132,
1373,
666,
4490,
1293,
87,
30,
46506,
3234,
7054,
25358,
16034,
3084,
62,
3672,
62,
4310,
33411,
3234,
796,
366,
64,
436,
1373,
666,
4490,
1293,
87,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
1839,
262,
38132,
1373,
666,
4490,
1293,
87,
30,
46506,
3234,
7054,
25358,
16034,
3084,
62,
3672,
62,
4310,
33411,
3234,
796,
366,
64,
436,
1373,
666,
4490,
1293,
87,
1
] |
Which Venue has a Result of 5-0? | SELECT "Venue" FROM table_38737 WHERE "Result" = '5-0' | [
13828,
9932,
518,
468,
257,
25414,
286,
642,
12,
15,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
32220,
2718,
33411,
366,
23004,
1,
796,
705,
20,
12,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
9932,
518,
468,
257,
25414,
286,
642,
12,
15,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
32220,
2718,
33411,
366,
23004,
1,
796,
705,
20,
12,
15,
6
] |
What percentage of votes did the candidate win in the election of 1969? | SELECT share_of_votes FROM table_name_26 WHERE election = 1969 | [
2061,
5873,
286,
5690,
750,
262,
4540,
1592,
287,
262,
3071,
286,
16450,
30,
46506,
2648,
62,
1659,
62,
29307,
16034,
3084,
62,
3672,
62,
2075,
33411,
3071,
796,
16450
] | [
1,
1,
1,
1,
1,
1,
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,
5873,
286,
5690,
750,
262,
4540,
1592,
287,
262,
3071,
286,
16450,
30,
46506,
2648,
62,
1659,
62,
29307,
16034,
3084,
62,
3672,
62,
2075,
33411,
3071,
796,
16450
] |
For those employees who get more salary than the employee whose id is 163, show the frequency of their last name, rank x-axis in asc order please. | SELECT LAST_NAME, COUNT(LAST_NAME) FROM employees WHERE SALARY > (SELECT SALARY FROM employees WHERE EMPLOYEE_ID = 163) GROUP BY LAST_NAME ORDER BY LAST_NAME | [
1890,
883,
4409,
508,
651,
517,
9588,
621,
262,
6538,
3025,
4686,
318,
26826,
11,
905,
262,
8373,
286,
511,
938,
1438,
11,
4279,
2124,
12,
22704,
287,
10570,
1502,
3387,
13,
46506,
41894,
62,
20608,
11,
327,
28270,
7,
43,
11262,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
651,
517,
9588,
621,
262,
6538,
3025,
4686,
318,
26826,
11,
905,
262,
8373,
286,
511,
938,
1438,
11,
4279,
2124,
12,
22704,
287,
10570,
1502,
3387,
13,
46506,
41894,
62,
20608,
11,
327,
28270,
7,
43,
11262,
62,... |
What shows for monounsaturated fat when the saturated fat is 39g? | SELECT monounsaturated_fat FROM table_name_32 WHERE saturated_fat = "39g" | [
2061,
2523,
329,
937,
977,
82,
30192,
3735,
618,
262,
24725,
3735,
318,
5014,
70,
30,
46506,
937,
977,
82,
30192,
62,
17359,
16034,
3084,
62,
3672,
62,
2624,
33411,
24725,
62,
17359,
796,
366,
2670,
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
] | [
2061,
2523,
329,
937,
977,
82,
30192,
3735,
618,
262,
24725,
3735,
318,
5014,
70,
30,
46506,
937,
977,
82,
30192,
62,
17359,
16034,
3084,
62,
3672,
62,
2624,
33411,
24725,
62,
17359,
796,
366,
2670,
70,
1
] |
Which class is the easiest I can take to the fulfill the PreMajor requirement ? | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM progra... | [
13828,
1398,
318,
262,
16638,
314,
460,
1011,
284,
262,
14658,
262,
3771,
24206,
9079,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1398,
318,
262,
16638,
314,
460,
1011,
284,
262,
14658,
262,
3771,
24206,
9079,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
... |
How many constituents does udaipura have? | SELECT "Constituency number" FROM table_65631 WHERE "Name" = 'udaipura' | [
2437,
867,
22573,
857,
334,
6814,
541,
5330,
423,
30,
46506,
366,
34184,
34272,
1387,
1271,
1,
16034,
3084,
62,
37466,
3132,
33411,
366,
5376,
1,
796,
705,
15339,
541,
5330,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
22573,
857,
334,
6814,
541,
5330,
423,
30,
46506,
366,
34184,
34272,
1387,
1271,
1,
16034,
3084,
62,
37466,
3132,
33411,
366,
5376,
1,
796,
705,
15339,
541,
5330,
6
] |
What driver has under 19 laps and a grid under 10? | SELECT "Driver" FROM table_10507 WHERE "Laps" < '19' AND "Grid" < '10' | [
2061,
4639,
468,
739,
678,
24590,
290,
257,
10706,
739,
838,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
940,
35378,
33411,
366,
43,
1686,
1,
1279,
705,
1129,
6,
5357,
366,
41339,
1,
1279,
705,
940,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4639,
468,
739,
678,
24590,
290,
257,
10706,
739,
838,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
940,
35378,
33411,
366,
43,
1686,
1,
1279,
705,
1129,
6,
5357,
366,
41339,
1,
1279,
705,
940,
6
] |
Lowest against for tour match on 21 july 1990? | SELECT MIN("Against") FROM table_50666 WHERE "Status" = 'tour match' AND "Date" = '21 july 1990' | [
20535,
395,
1028,
329,
4205,
2872,
319,
2310,
474,
2062,
6303,
30,
46506,
20625,
7203,
39276,
4943,
16034,
3084,
62,
1120,
27310,
33411,
366,
19580,
1,
796,
705,
83,
454,
2872,
6,
5357,
366,
10430,
1,
796,
705,
2481,
474,
2062,
6303,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20535,
395,
1028,
329,
4205,
2872,
319,
2310,
474,
2062,
6303,
30,
46506,
20625,
7203,
39276,
4943,
16034,
3084,
62,
1120,
27310,
33411,
366,
19580,
1,
796,
705,
83,
454,
2872,
6,
5357,
366,
10430,
1,
796,
705,
2481,
474,
2062,
6303,
... |
What is the name of the race from round 1? | SELECT "Race name" FROM table_41114 WHERE "Round" = '1' | [
2061,
318,
262,
1438,
286,
262,
3234,
422,
2835,
352,
30,
46506,
366,
35157,
1438,
1,
16034,
3084,
62,
42224,
1415,
33411,
366,
22685,
1,
796,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
3234,
422,
2835,
352,
30,
46506,
366,
35157,
1438,
1,
16034,
3084,
62,
42224,
1415,
33411,
366,
22685,
1,
796,
705,
16,
6
] |
What is the enrollment for Foote Field? | SELECT MAX("Enrollment") FROM table_72349 WHERE "Football stadium" = 'Foote Field' | [
2061,
318,
262,
20753,
329,
7870,
68,
7663,
30,
46506,
25882,
7203,
4834,
48108,
4943,
16034,
3084,
62,
22,
1954,
2920,
33411,
366,
37316,
10308,
1,
796,
705,
17574,
68,
7663,
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,
20753,
329,
7870,
68,
7663,
30,
46506,
25882,
7203,
4834,
48108,
4943,
16034,
3084,
62,
22,
1954,
2920,
33411,
366,
37316,
10308,
1,
796,
705,
17574,
68,
7663,
6
] |
What are the clubs with 46 matches? | SELECT "Clubs" FROM table_75457 WHERE "Matches" = '46' | [
2061,
389,
262,
9784,
351,
6337,
7466,
30,
46506,
366,
2601,
23161,
1,
16034,
3084,
62,
2425,
33032,
33411,
366,
19044,
2052,
1,
796,
705,
3510,
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,
389,
262,
9784,
351,
6337,
7466,
30,
46506,
366,
2601,
23161,
1,
16034,
3084,
62,
2425,
33032,
33411,
366,
19044,
2052,
1,
796,
705,
3510,
6
] |
Who was the runner-up after season 2 when the total prize money was $108,000? | SELECT "Runner-up" FROM table_59555 WHERE "Season" > '2' AND "Total prize money" = '$108,000' | [
8241,
373,
262,
17490,
12,
929,
706,
1622,
362,
618,
262,
2472,
11596,
1637,
373,
720,
15711,
11,
830,
30,
46506,
366,
49493,
12,
929,
1,
16034,
3084,
62,
3270,
31046,
33411,
366,
18960,
1,
1875,
705,
17,
6,
5357,
366,
14957,
11596,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17490,
12,
929,
706,
1622,
362,
618,
262,
2472,
11596,
1637,
373,
720,
15711,
11,
830,
30,
46506,
366,
49493,
12,
929,
1,
16034,
3084,
62,
3270,
31046,
33411,
366,
18960,
1,
1875,
705,
17,
6,
5357,
366,
14957,
11596,... |
How many wins were there in 2004-05? | SELECT win__number FROM table_name_67 WHERE season = "2004-05" | [
2437,
867,
7864,
547,
612,
287,
5472,
12,
2713,
30,
46506,
1592,
834,
17618,
16034,
3084,
62,
3672,
62,
3134,
33411,
1622,
796,
366,
15724,
12,
2713,
1
] | [
1,
1,
1,
1,
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,
7864,
547,
612,
287,
5472,
12,
2713,
30,
46506,
1592,
834,
17618,
16034,
3084,
62,
3672,
62,
3134,
33411,
1622,
796,
366,
15724,
12,
2713,
1
] |
how many hours have elapsed since the first time during their current hospital encounter patient 012-31752 received a lab test for paco2? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-31752' AND patient.hosp... | [
4919,
867,
2250,
423,
42118,
1201,
262,
717,
640,
1141,
511,
1459,
4436,
8791,
5827,
5534,
17,
12,
34125,
4309,
2722,
257,
2248,
1332,
329,
279,
10602,
17,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
423,
42118,
1201,
262,
717,
640,
1141,
511,
1459,
4436,
8791,
5827,
5534,
17,
12,
34125,
4309,
2722,
257,
2248,
1332,
329,
279,
10602,
17,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237... |
What public team was founded prior to 1883? | SELECT "Team" FROM table_42406 WHERE "Founded" < '1883' AND "Type" = 'public' | [
2061,
1171,
1074,
373,
9393,
3161,
284,
1248,
5999,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
40090,
3312,
33411,
366,
37,
6302,
1,
1279,
705,
1507,
5999,
6,
5357,
366,
6030,
1,
796,
705,
11377,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1171,
1074,
373,
9393,
3161,
284,
1248,
5999,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
40090,
3312,
33411,
366,
37,
6302,
1,
1279,
705,
1507,
5999,
6,
5357,
366,
6030,
1,
796,
705,
11377,
6
] |
hba1c 7 % _ 10 % | SELECT * FROM table_train_168 WHERE hemoglobin_a1c_hba1c > 7 AND hemoglobin_a1c_hba1c < 10 | [
71,
7012,
16,
66,
767,
4064,
4808,
838,
4064,
46506,
1635,
16034,
3084,
62,
27432,
62,
14656,
33411,
16869,
49835,
62,
64,
16,
66,
62,
71,
7012,
16,
66,
1875,
767,
5357,
16869,
49835,
62,
64,
16,
66,
62,
71,
7012,
16,
66,
1279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
71,
7012,
16,
66,
767,
4064,
4808,
838,
4064,
46506,
1635,
16034,
3084,
62,
27432,
62,
14656,
33411,
16869,
49835,
62,
64,
16,
66,
62,
71,
7012,
16,
66,
1875,
767,
5357,
16869,
49835,
62,
64,
16,
66,
62,
71,
7012,
16,
66,
1279,
... |
Which wireless network did LCD displays with 4 GB of internal storage use? | SELECT "Wireless network" FROM table_58597 WHERE "Screen type" = 'lcd' AND "Internal storage" = '4 gb' | [
13828,
12521,
3127,
750,
23598,
11298,
351,
604,
13124,
286,
5387,
6143,
779,
30,
46506,
366,
29451,
1203,
3127,
1,
16034,
3084,
62,
3365,
43239,
33411,
366,
23901,
2099,
1,
796,
705,
75,
10210,
6,
5357,
366,
37693,
6143,
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
] | [
13828,
12521,
3127,
750,
23598,
11298,
351,
604,
13124,
286,
5387,
6143,
779,
30,
46506,
366,
29451,
1203,
3127,
1,
16034,
3084,
62,
3365,
43239,
33411,
366,
23901,
2099,
1,
796,
705,
75,
10210,
6,
5357,
366,
37693,
6143,
1,
796,
705,... |
Name the least year for gene hassell manager and 6th finish | SELECT MIN(year) FROM table_name_98 WHERE manager = "gene hassell" AND finish = "6th" | [
5376,
262,
1551,
614,
329,
9779,
468,
7255,
4706,
290,
718,
400,
5461,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
4706,
796,
366,
70,
1734,
468,
7255,
1,
5357,
5461,
796,
366,
21,
400,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1551,
614,
329,
9779,
468,
7255,
4706,
290,
718,
400,
5461,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
4706,
796,
366,
70,
1734,
468,
7255,
1,
5357,
5461,
796,
366,
21,
400,
1
] |
Which nation finished with a time of 47.049? | SELECT nation FROM table_name_56 WHERE time__sec_ = 47.049 | [
13828,
3277,
5201,
351,
257,
640,
286,
6298,
13,
15,
2920,
30,
46506,
3277,
16034,
3084,
62,
3672,
62,
3980,
33411,
640,
834,
2363,
62,
796,
6298,
13,
15,
2920
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3277,
5201,
351,
257,
640,
286,
6298,
13,
15,
2920,
30,
46506,
3277,
16034,
3084,
62,
3672,
62,
3980,
33411,
640,
834,
2363,
62,
796,
6298,
13,
15,
2920
] |
What is the Game site week 1? | SELECT "Game site" FROM table_77441 WHERE "Week" = '1' | [
2061,
318,
262,
3776,
2524,
1285,
352,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
3324,
39710,
33411,
366,
20916,
1,
796,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3776,
2524,
1285,
352,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
3324,
39710,
33411,
366,
20916,
1,
796,
705,
16,
6
] |
What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker? | SELECT team FROM table_name_52 WHERE position_in_table = "pre-season" AND manner_of_departure = "end of tenure as caretaker" | [
2061,
4816,
338,
3771,
12,
18960,
9142,
338,
5642,
286,
12928,
373,
262,
886,
286,
17081,
355,
1337,
30157,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
4309,
33411,
2292,
62,
259,
62,
11487,
796,
366,
3866,
12,
6230,
1,
5357,
5642,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4816,
338,
3771,
12,
18960,
9142,
338,
5642,
286,
12928,
373,
262,
886,
286,
17081,
355,
1337,
30157,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
4309,
33411,
2292,
62,
259,
62,
11487,
796,
366,
3866,
12,
6230,
1,
5357,
5642,
... |
how many patients had sennosides-docusate sodium 8.6-50 mg oral tab prescriptions in the same hospital encounter after being diagnosed with platelet dysfunction - due to clopidogrel, since 2102? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'platelet dysfunction - due to clopidogrel' AND STRFTIME('%y', diagnosis.d... | [
4919,
867,
3871,
550,
264,
1697,
418,
1460,
12,
67,
10901,
378,
21072,
807,
13,
21,
12,
1120,
10527,
12886,
7400,
34092,
287,
262,
976,
4436,
8791,
706,
852,
14641,
351,
7480,
1616,
19327,
532,
2233,
284,
537,
404,
312,
519,
2411,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
550,
264,
1697,
418,
1460,
12,
67,
10901,
378,
21072,
807,
13,
21,
12,
1120,
10527,
12886,
7400,
34092,
287,
262,
976,
4436,
8791,
706,
852,
14641,
351,
7480,
1616,
19327,
532,
2233,
284,
537,
404,
312,
519,
2411,
1... |
list the patient ids of those patients who since 2105 had been diagnosed with respiratory acidosis - acute. | SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'respiratory acidosis - acute' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2105') | [
4868,
262,
5827,
220,
2340,
286,
883,
3871,
508,
1201,
362,
13348,
550,
587,
14641,
351,
22949,
7408,
5958,
532,
14352,
13,
46506,
5827,
13,
403,
1557,
538,
312,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
262,
5827,
220,
2340,
286,
883,
3871,
508,
1201,
362,
13348,
550,
587,
14641,
351,
22949,
7408,
5958,
532,
14352,
13,
46506,
5827,
13,
403,
1557,
538,
312,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
... |
Draw a bar chart for how many players played each position?, order names in desc order. | SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY Position DESC | [
25302,
257,
2318,
8262,
329,
703,
867,
1938,
2826,
1123,
2292,
21747,
1502,
3891,
287,
1715,
1502,
13,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
11050,
23158,
38678,
11050,
23158,
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
] | [
25302,
257,
2318,
8262,
329,
703,
867,
1938,
2826,
1123,
2292,
21747,
1502,
3891,
287,
1715,
1502,
13,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
11050,
23158,
38678,
11050,
23158,
22196,
34
] |
what was the top three of the most common output events that occurred until 1 year ago? | SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%output%' AND DATETIME(intakeoutput.intakeoutputtime) <= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 3 | [
10919,
373,
262,
1353,
1115,
286,
262,
749,
2219,
5072,
2995,
326,
5091,
1566,
352,
614,
2084,
30,
46506,
256,
16,
13,
3846,
18242,
16034,
357,
46506,
10337,
22915,
13,
3846,
18242,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
1115,
286,
262,
749,
2219,
5072,
2995,
326,
5091,
1566,
352,
614,
2084,
30,
46506,
256,
16,
13,
3846,
18242,
16034,
357,
46506,
10337,
22915,
13,
3846,
18242,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
125... |
subject's body mass index ( bmi ) must be between 18 and 32 kg / m2 ( inclusive ) , and subject must weigh a minimum of 50 kg ( 110 lbs ) | SELECT * FROM table_train_141 WHERE body_mass_index_bmi >= 18 AND body_mass_index_bmi <= 32 AND body_weight >= 50 | [
32796,
338,
1767,
2347,
6376,
357,
275,
11632,
1267,
1276,
307,
1022,
1248,
290,
3933,
14211,
1220,
285,
17,
357,
19889,
1267,
837,
290,
2426,
1276,
10164,
257,
5288,
286,
2026,
14211,
357,
9796,
15785,
1267,
46506,
1635,
16034,
3084,
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... | [
32796,
338,
1767,
2347,
6376,
357,
275,
11632,
1267,
1276,
307,
1022,
1248,
290,
3933,
14211,
1220,
285,
17,
357,
19889,
1267,
837,
290,
2426,
1276,
10164,
257,
5288,
286,
2026,
14211,
357,
9796,
15785,
1267,
46506,
1635,
16034,
3084,
6... |
Which team has a position higher than 3, a Drawn lower than 12, and a Goals Against higher than 85? | SELECT team FROM table_name_15 WHERE drawn < 12 AND position > 3 AND goals_against > 85 | [
13828,
1074,
468,
257,
2292,
2440,
621,
513,
11,
257,
50061,
2793,
621,
1105,
11,
290,
257,
28510,
12914,
2440,
621,
7600,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
1314,
33411,
7428,
1279,
1105,
5357,
2292,
1875,
513,
5357,
4661,
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
] | [
13828,
1074,
468,
257,
2292,
2440,
621,
513,
11,
257,
50061,
2793,
621,
1105,
11,
290,
257,
28510,
12914,
2440,
621,
7600,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
1314,
33411,
7428,
1279,
1105,
5357,
2292,
1875,
513,
5357,
4661,
6... |
What is the Race on July 30, 1950 with a Formula 2 Fia, non-championship? | SELECT "Race" FROM table_36227 WHERE "Category" = 'formula 2 fia, non-championship' AND "Date" = 'july 30, 1950' | [
2061,
318,
262,
12588,
319,
2901,
1542,
11,
11445,
351,
257,
19639,
362,
376,
544,
11,
1729,
12,
354,
4350,
1056,
30,
46506,
366,
35157,
1,
16034,
3084,
62,
2623,
24403,
33411,
366,
27313,
1,
796,
705,
687,
4712,
362,
277,
544,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12588,
319,
2901,
1542,
11,
11445,
351,
257,
19639,
362,
376,
544,
11,
1729,
12,
354,
4350,
1056,
30,
46506,
366,
35157,
1,
16034,
3084,
62,
2623,
24403,
33411,
366,
27313,
1,
796,
705,
687,
4712,
362,
277,
544,
11,
... |
Show the studios that have not produced films with director 'Walter Hill'. | SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = "Walter Hill" | [
15307,
262,
20747,
326,
423,
407,
4635,
7328,
351,
3437,
705,
21902,
353,
3327,
4458,
46506,
11733,
16034,
2646,
7788,
42006,
33493,
11733,
16034,
2646,
33411,
5890,
796,
366,
21902,
353,
3327,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20747,
326,
423,
407,
4635,
7328,
351,
3437,
705,
21902,
353,
3327,
4458,
46506,
11733,
16034,
2646,
7788,
42006,
33493,
11733,
16034,
2646,
33411,
5890,
796,
366,
21902,
353,
3327,
1
] |
get me the icd9 code for diagnosis and name of drug for the patient with patient id 65652. | SELECT diagnoses.icd9_code, prescriptions.drug FROM diagnoses INNER JOIN prescriptions ON diagnoses.hadm_id = prescriptions.hadm_id WHERE diagnoses.subject_id = "65652" | [
1136,
502,
262,
14158,
67,
24,
2438,
329,
13669,
290,
1438,
286,
2563,
329,
262,
5827,
351,
5827,
4686,
6135,
43193,
13,
46506,
40567,
13,
291,
67,
24,
62,
8189,
11,
34092,
13,
30349,
16034,
40567,
3268,
21479,
32357,
1268,
34092,
617... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1136,
502,
262,
14158,
67,
24,
2438,
329,
13669,
290,
1438,
286,
2563,
329,
262,
5827,
351,
5827,
4686,
6135,
43193,
13,
46506,
40567,
13,
291,
67,
24,
62,
8189,
11,
34092,
13,
30349,
16034,
40567,
3268,
21479,
32357,
1268,
34092,
617... |
report the number of female patients with a diagnoses of unspecified pleural effusion. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Pleural effusion NOS" | [
13116,
262,
1271,
286,
4048,
3871,
351,
257,
40567,
286,
29547,
3339,
1523,
914,
4241,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13116,
262,
1271,
286,
4048,
3871,
351,
257,
40567,
286,
29547,
3339,
1523,
914,
4241,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
... |
What are the average, maximum, and minimum number of floors for all buildings? | SELECT AVG(floors), MAX(floors), MIN(floors) FROM building | [
2061,
389,
262,
2811,
11,
5415,
11,
290,
5288,
1271,
286,
18570,
329,
477,
6832,
30,
46506,
35224,
7,
48679,
669,
828,
25882,
7,
48679,
669,
828,
20625,
7,
48679,
669,
8,
16034,
2615
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
11,
5415,
11,
290,
5288,
1271,
286,
18570,
329,
477,
6832,
30,
46506,
35224,
7,
48679,
669,
828,
25882,
7,
48679,
669,
828,
20625,
7,
48679,
669,
8,
16034,
2615
] |
What is the Game number on April 12 with St. Louis Home Team? | SELECT "Game" FROM table_77163 WHERE "Home Team" = 'st. louis' AND "Date" = 'april 12' | [
2061,
318,
262,
3776,
1271,
319,
3035,
1105,
351,
520,
13,
5593,
5995,
4816,
30,
46506,
366,
8777,
1,
16034,
3084,
62,
3324,
24136,
33411,
366,
16060,
4816,
1,
796,
705,
301,
13,
21081,
271,
6,
5357,
366,
10430,
1,
796,
705,
499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3776,
1271,
319,
3035,
1105,
351,
520,
13,
5593,
5995,
4816,
30,
46506,
366,
8777,
1,
16034,
3084,
62,
3324,
24136,
33411,
366,
16060,
4816,
1,
796,
705,
301,
13,
21081,
271,
6,
5357,
366,
10430,
1,
796,
705,
499,
... |
Show the number of documents created in each day and bin document date by year interval and group by document type with a group line chart, and I want to order by the x-axis in asc. | SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Name ORDER BY Document_Date | [
15307,
262,
1271,
286,
4963,
2727,
287,
1123,
1110,
290,
9874,
3188,
3128,
416,
614,
16654,
290,
1448,
416,
3188,
2099,
351,
257,
1448,
1627,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
2124,
12,
22704,
287,
10570,
13,
46506,
16854,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
1271,
286,
4963,
2727,
287,
1123,
1110,
290,
9874,
3188,
3128,
416,
614,
16654,
290,
1448,
416,
3188,
2099,
351,
257,
1448,
1627,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
2124,
12,
22704,
287,
10570,
13,
46506,
16854,... |
Which Date has a Home team of st kilda? | SELECT date FROM table_name_19 WHERE home_team = "st kilda" | [
13828,
7536,
468,
257,
5995,
1074,
286,
336,
479,
27281,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1129,
33411,
1363,
62,
15097,
796,
366,
301,
479,
27281,
1
] | [
1,
1,
1,
1,
1,
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,
7536,
468,
257,
5995,
1074,
286,
336,
479,
27281,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1129,
33411,
1363,
62,
15097,
796,
366,
301,
479,
27281,
1
] |
what is the name of award when the awardee(s) is elangbam natasha? | SELECT name_of_award FROM table_25926120_7 WHERE awardee_s_ = "Elangbam Natasha" | [
10919,
318,
262,
1438,
286,
5764,
618,
262,
5764,
1453,
7,
82,
8,
318,
1288,
648,
65,
321,
34664,
14715,
30,
46506,
1438,
62,
1659,
62,
707,
446,
16034,
3084,
62,
25191,
2075,
10232,
62,
22,
33411,
5764,
1453,
62,
82,
62,
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
] | [
10919,
318,
262,
1438,
286,
5764,
618,
262,
5764,
1453,
7,
82,
8,
318,
1288,
648,
65,
321,
34664,
14715,
30,
46506,
1438,
62,
1659,
62,
707,
446,
16034,
3084,
62,
25191,
2075,
10232,
62,
22,
33411,
5764,
1453,
62,
82,
62,
796,
366... |
Which location was won by George Heath? | SELECT "Location" FROM table_65996 WHERE "Driver" = 'george heath' | [
13828,
4067,
373,
1839,
416,
4502,
25846,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2996,
38565,
33411,
366,
32103,
1,
796,
705,
469,
3643,
339,
776,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4067,
373,
1839,
416,
4502,
25846,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2996,
38565,
33411,
366,
32103,
1,
796,
705,
469,
3643,
339,
776,
6
] |
What date has 104-113 as the score? | SELECT "Date" FROM table_44288 WHERE "Score" = '104-113' | [
2061,
3128,
468,
14436,
12,
16616,
355,
262,
4776,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2598,
25270,
33411,
366,
26595,
1,
796,
705,
13464,
12,
16616,
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,
3128,
468,
14436,
12,
16616,
355,
262,
4776,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2598,
25270,
33411,
366,
26595,
1,
796,
705,
13464,
12,
16616,
6
] |
How many literate males are there in the taluka name nevasa? | SELECT MAX("Literate Male") FROM table_30844 WHERE "taluka Name" = 'Nevasa' | [
2437,
867,
4187,
378,
10835,
389,
612,
287,
262,
3305,
14852,
1438,
497,
11017,
64,
30,
46506,
25882,
7203,
43460,
378,
12674,
4943,
16034,
3084,
62,
21495,
2598,
33411,
366,
39240,
14852,
6530,
1,
796,
705,
43555,
15462,
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
] | [
2437,
867,
4187,
378,
10835,
389,
612,
287,
262,
3305,
14852,
1438,
497,
11017,
64,
30,
46506,
25882,
7203,
43460,
378,
12674,
4943,
16034,
3084,
62,
21495,
2598,
33411,
366,
39240,
14852,
6530,
1,
796,
705,
43555,
15462,
6
] |
What is score of the game played in place t8 with Byron Nelson playing? | SELECT "Score" FROM table_69125 WHERE "Place" = 't8' AND "Player" = 'byron nelson' | [
2061,
318,
4776,
286,
262,
983,
2826,
287,
1295,
256,
23,
351,
36719,
12996,
2712,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3388,
11623,
33411,
366,
27271,
1,
796,
705,
83,
23,
6,
5357,
366,
14140,
1,
796,
705,
1525,
1313,
299,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
286,
262,
983,
2826,
287,
1295,
256,
23,
351,
36719,
12996,
2712,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3388,
11623,
33411,
366,
27271,
1,
796,
705,
83,
23,
6,
5357,
366,
14140,
1,
796,
705,
1525,
1313,
299,
... |
what challenge came next after jungle falls ? | SELECT "name of trial" FROM table_204_628 WHERE "date" > (SELECT "date" FROM table_204_628 WHERE "name of trial" = 'jungle falls') ORDER BY "date" LIMIT 1 | [
10919,
4427,
1625,
1306,
706,
20712,
8953,
5633,
46506,
366,
3672,
286,
4473,
1,
16034,
3084,
62,
18638,
62,
48200,
33411,
366,
4475,
1,
1875,
357,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
48200,
33411,
366,
3672,
286,
4473,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4427,
1625,
1306,
706,
20712,
8953,
5633,
46506,
366,
3672,
286,
4473,
1,
16034,
3084,
62,
18638,
62,
48200,
33411,
366,
4475,
1,
1875,
357,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
48200,
33411,
366,
3672,
286,
4473,
1... |
Return a pie chart showing the number of documents for each document type description. | SELECT Document_Type_Description, COUNT(Document_Type_Description) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Description | [
13615,
257,
2508,
8262,
4478,
262,
1271,
286,
4963,
329,
1123,
3188,
2099,
6764,
13,
46506,
16854,
62,
6030,
62,
11828,
11,
327,
28270,
7,
24941,
62,
6030,
62,
11828,
8,
16034,
6524,
62,
24941,
62,
31431,
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... | [
13615,
257,
2508,
8262,
4478,
262,
1271,
286,
4963,
329,
1123,
3188,
2099,
6764,
13,
46506,
16854,
62,
6030,
62,
11828,
11,
327,
28270,
7,
24941,
62,
6030,
62,
11828,
8,
16034,
6524,
62,
24941,
62,
31431,
7054,
309,
16,
32357,
1268,
... |
what is the total cost of a minimum hospital with a drug called levaquin until 2104? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'levaquin')) AND STRFTIME('%y', cost.chargetime... | [
10919,
318,
262,
2472,
1575,
286,
257,
5288,
4436,
351,
257,
2563,
1444,
443,
6862,
21915,
1566,
362,
13464,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1575,
286,
257,
5288,
4436,
351,
257,
2563,
1444,
443,
6862,
21915,
1566,
362,
13464,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
... |
get the number of patients on neb route of drug administration who have diagnoses icd9 code 23875. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "23875" AND prescriptions.route = "NEB" | [
1136,
262,
1271,
286,
3871,
319,
45508,
6339,
286,
2563,
3662,
508,
423,
40567,
14158,
67,
24,
2438,
2242,
31360,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1136,
262,
1271,
286,
3871,
319,
45508,
6339,
286,
2563,
3662,
508,
423,
40567,
14158,
67,
24,
2438,
2242,
31360,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40... |
What is the size of Itwara central forest reserve? | SELECT MIN(size_in_km²) FROM table_16577990_1 WHERE central_forest_reserve = "Itwara" | [
2061,
318,
262,
2546,
286,
632,
86,
3301,
4318,
8222,
11515,
30,
46506,
20625,
7,
7857,
62,
259,
62,
13276,
31185,
8,
16034,
3084,
62,
20986,
3324,
34155,
62,
16,
33411,
4318,
62,
29623,
62,
411,
3760,
796,
366,
1026,
86,
3301,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2546,
286,
632,
86,
3301,
4318,
8222,
11515,
30,
46506,
20625,
7,
7857,
62,
259,
62,
13276,
31185,
8,
16034,
3084,
62,
20986,
3324,
34155,
62,
16,
33411,
4318,
62,
29623,
62,
411,
3760,
796,
366,
1026,
86,
3301,
1
] |
What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August? | SELECT sat_29_aug FROM table_23465864_4 WHERE fri_28_aug = "25' 01.89 90.438mph" | [
2061,
640,
373,
8793,
319,
3909,
2808,
400,
2932,
416,
262,
17876,
508,
6264,
1679,
6,
5534,
13,
4531,
4101,
13,
43704,
23335,
319,
3217,
2579,
400,
2932,
30,
46506,
3332,
62,
1959,
62,
7493,
16034,
3084,
62,
24409,
38431,
2414,
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
] | [
2061,
640,
373,
8793,
319,
3909,
2808,
400,
2932,
416,
262,
17876,
508,
6264,
1679,
6,
5534,
13,
4531,
4101,
13,
43704,
23335,
319,
3217,
2579,
400,
2932,
30,
46506,
3332,
62,
1959,
62,
7493,
16034,
3084,
62,
24409,
38431,
2414,
62,
... |
What Player won the PGA in 1989? | SELECT "Player" FROM table_61124 WHERE "Year(s) won" = '1989' | [
2061,
7853,
1839,
262,
350,
9273,
287,
11104,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
5333,
17464,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
25475,
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,
7853,
1839,
262,
350,
9273,
287,
11104,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
5333,
17464,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
25475,
6
] |
What are the first name and last name of all the teachers? | SELECT DISTINCT firstname, lastname FROM teachers | [
2061,
389,
262,
717,
1438,
290,
938,
1438,
286,
477,
262,
7799,
30,
46506,
360,
8808,
1268,
4177,
717,
3672,
11,
938,
3672,
16034,
7799
] | [
1,
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,
717,
1438,
290,
938,
1438,
286,
477,
262,
7799,
30,
46506,
360,
8808,
1268,
4177,
717,
3672,
11,
938,
3672,
16034,
7799
] |
What is the most byes with 11 wins and fewer than 1867 againsts? | SELECT MAX(byes) FROM table_name_95 WHERE against < 1867 AND wins = 11 | [
2061,
318,
262,
749,
416,
274,
351,
1367,
7864,
290,
7380,
621,
1248,
3134,
1028,
82,
30,
46506,
25882,
7,
1525,
274,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
1028,
1279,
1248,
3134,
5357,
7864,
796,
1367
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
749,
416,
274,
351,
1367,
7864,
290,
7380,
621,
1248,
3134,
1028,
82,
30,
46506,
25882,
7,
1525,
274,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
1028,
1279,
1248,
3134,
5357,
7864,
796,
1367
] |
what are the three most commonly used procedures for patients who were previously diagnosed with pneumonia - hospital acquired (not ventilator-associated) within 2 months since 1 year ago? | SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'pneumonia - hospital acquired (not venti... | [
10919,
389,
262,
1115,
749,
8811,
973,
9021,
329,
3871,
508,
547,
4271,
14641,
351,
35647,
532,
4436,
9477,
357,
1662,
7435,
346,
1352,
12,
32852,
8,
1626,
362,
1933,
1201,
352,
614,
2084,
30,
46506,
256,
18,
13,
42487,
3672,
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... | [
10919,
389,
262,
1115,
749,
8811,
973,
9021,
329,
3871,
508,
547,
4271,
14641,
351,
35647,
532,
4436,
9477,
357,
1662,
7435,
346,
1352,
12,
32852,
8,
1626,
362,
1933,
1201,
352,
614,
2084,
30,
46506,
256,
18,
13,
42487,
3672,
16034,
... |
Who was the stage winner of the letua cycling team on stage 2? | SELECT "Stage winner" FROM table_29312 WHERE "Team classification" = 'LeTua Cycling Team' AND "Stage" = '2' | [
8241,
373,
262,
3800,
8464,
286,
262,
1309,
6413,
16259,
1074,
319,
3800,
362,
30,
46506,
366,
29391,
8464,
1,
16034,
3084,
62,
1959,
27970,
33411,
366,
15592,
17923,
1,
796,
705,
3123,
51,
6413,
25550,
4816,
6,
5357,
366,
29391,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3800,
8464,
286,
262,
1309,
6413,
16259,
1074,
319,
3800,
362,
30,
46506,
366,
29391,
8464,
1,
16034,
3084,
62,
1959,
27970,
33411,
366,
15592,
17923,
1,
796,
705,
3123,
51,
6413,
25550,
4816,
6,
5357,
366,
29391,
1,
... |
Name the start date with lsap and end date of present day | SELECT start_date FROM table_name_29 WHERE party = "lsap" AND end_date = "present day" | [
5376,
262,
923,
3128,
351,
43979,
499,
290,
886,
3128,
286,
1944,
1110,
46506,
923,
62,
4475,
16034,
3084,
62,
3672,
62,
1959,
33411,
2151,
796,
366,
7278,
499,
1,
5357,
886,
62,
4475,
796,
366,
25579,
1110,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
923,
3128,
351,
43979,
499,
290,
886,
3128,
286,
1944,
1110,
46506,
923,
62,
4475,
16034,
3084,
62,
3672,
62,
1959,
33411,
2151,
796,
366,
7278,
499,
1,
5357,
886,
62,
4475,
796,
366,
25579,
1110,
1
] |
Which Date has a Location/Attendance of verizon center 7,587? | SELECT date FROM table_name_66 WHERE location_attendance = "verizon center 7,587" | [
13828,
7536,
468,
257,
13397,
14,
8086,
437,
590,
286,
3326,
8637,
3641,
767,
11,
44617,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2791,
33411,
4067,
62,
1078,
437,
590,
796,
366,
332,
8637,
3641,
767,
11,
44617,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7536,
468,
257,
13397,
14,
8086,
437,
590,
286,
3326,
8637,
3641,
767,
11,
44617,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2791,
33411,
4067,
62,
1078,
437,
590,
796,
366,
332,
8637,
3641,
767,
11,
44617,
1
] |
What was the Ravens' record on December 5, 1999? | SELECT record FROM table_name_33 WHERE date = "december 5, 1999" | [
2061,
373,
262,
20091,
6,
1700,
319,
3426,
642,
11,
7358,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2091,
33411,
3128,
796,
366,
2934,
3273,
642,
11,
7358,
1
] | [
1,
1,
1,
1,
1,
1,
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,
20091,
6,
1700,
319,
3426,
642,
11,
7358,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2091,
33411,
3128,
796,
366,
2934,
3273,
642,
11,
7358,
1
] |
What film was filmed in Spain? | SELECT "Film" FROM table_79889 WHERE "Country" = 'spain' | [
2061,
2646,
373,
18976,
287,
8602,
30,
46506,
366,
39750,
1,
16034,
3084,
62,
3720,
39121,
33411,
366,
33921,
1,
796,
705,
2777,
391,
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,
2646,
373,
18976,
287,
8602,
30,
46506,
366,
39750,
1,
16034,
3084,
62,
3720,
39121,
33411,
366,
33921,
1,
796,
705,
2777,
391,
6
] |
Draw a bar chart about the distribution of All_Home and the sum of School_ID , and group by attribute All_Home. | SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
16060,
290,
262,
2160,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
13,
46506,
1439,
62,
16060,
11,
35683,
7,
26130,
62,
2389,
8,
16034,
9669,
62,
15699,
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
] | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
16060,
290,
262,
2160,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
13,
46506,
1439,
62,
16060,
11,
35683,
7,
26130,
62,
2389,
8,
16034,
9669,
62,
15699,
44... |
What was the team the Suns played against in game number 4? | SELECT team FROM table_27312918_5 WHERE game = 4 | [
2061,
373,
262,
1074,
262,
29139,
2826,
1028,
287,
983,
1271,
604,
30,
46506,
1074,
16034,
3084,
62,
27367,
18741,
1507,
62,
20,
33411,
983,
796,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1074,
262,
29139,
2826,
1028,
287,
983,
1271,
604,
30,
46506,
1074,
16034,
3084,
62,
27367,
18741,
1507,
62,
20,
33411,
983,
796,
604
] |
In the tournament where Stuart Appleby was the runner-up, what was the margin of victory? | SELECT margin_of_victory FROM table_name_41 WHERE runner_s__up = "stuart appleby" | [
818,
262,
7756,
810,
22559,
4196,
1525,
373,
262,
17490,
12,
929,
11,
644,
373,
262,
10330,
286,
5373,
30,
46506,
10330,
62,
1659,
62,
32433,
652,
16034,
3084,
62,
3672,
62,
3901,
33411,
17490,
62,
82,
834,
929,
796,
366,
301,
19986... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
7756,
810,
22559,
4196,
1525,
373,
262,
17490,
12,
929,
11,
644,
373,
262,
10330,
286,
5373,
30,
46506,
10330,
62,
1659,
62,
32433,
652,
16034,
3084,
62,
3672,
62,
3901,
33411,
17490,
62,
82,
834,
929,
796,
366,
301,
19986... |
what is the number of patients less than 58 years who have nitroglycerin sl prescription? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "58" AND prescriptions.drug = "Nitroglycerin SL" | [
10919,
318,
262,
1271,
286,
3871,
1342,
621,
7618,
812,
508,
423,
13759,
3828,
38577,
259,
1017,
15077,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
1342,
621,
7618,
812,
508,
423,
13759,
3828,
38577,
259,
1017,
15077,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
... |
what was the total amount of input that patient 027-81062 received since 1038 days ago? | 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 = '027-81062')) AND intakeoutput.cellpath LIKE '%in... | [
10919,
373,
262,
2472,
2033,
286,
5128,
326,
5827,
657,
1983,
12,
40215,
5237,
2722,
1201,
838,
2548,
1528,
2084,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
2472,
2033,
286,
5128,
326,
5827,
657,
1983,
12,
40215,
5237,
2722,
1201,
838,
2548,
1528,
2084,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,
13,
2... |
Which conference does the school from Gainesville, Florida, play in? | SELECT present_conference FROM table_name_5 WHERE location = "gainesville, florida" | [
13828,
4495,
857,
262,
1524,
422,
21686,
19641,
11,
4744,
11,
711,
287,
30,
46506,
1944,
62,
41124,
16034,
3084,
62,
3672,
62,
20,
33411,
4067,
796,
366,
48544,
19641,
11,
781,
273,
3755,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4495,
857,
262,
1524,
422,
21686,
19641,
11,
4744,
11,
711,
287,
30,
46506,
1944,
62,
41124,
16034,
3084,
62,
3672,
62,
20,
33411,
4067,
796,
366,
48544,
19641,
11,
781,
273,
3755,
1
] |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and code , and group by attribute name, could you order by the Name in ascending? | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
714,
345,
1502,
416,
262,
6530,
287,
41988,
30,
46506,
309,
16,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
714,
345,
1502,
416,
262,
6530,
287,
41988,
30,
46506,
309,
16,
13,... |
Give me the papers written by Su-In Lee before 2012 . | SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'Su-In Lee' AND paper.year < 2012 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
23318,
502,
262,
9473,
3194,
416,
1778,
12,
818,
5741,
878,
2321,
764,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
5606,
12,
818,
5741,
6,
5357,
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... | [
23318,
502,
262,
9473,
3194,
416,
1778,
12,
818,
5741,
878,
2321,
764,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
5606,
12,
818,
5741,
6,
5357,
3... |
For all employees who have the letters D or S in their first name, give me the comparison about the amount of hire_date over the hire_date bin hire_date by time by a bar chart, and list Y in asc order please. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1577,
502,
262,
7208,
546,
262,
2033,
286,
11078,
62,
4475,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
416,
257,
2318,
8262,
11,
290,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
262,
2033,
286,
11078,
62,
4475,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
416,
257,
2318,
8262,
11,
290,
1... |
where is the boat area that began on november 30, 1970 | SELECT "Shipyard" FROM table_4187 WHERE "Commissioned" = 'November 30, 1970' | [
3003,
318,
262,
8848,
1989,
326,
2540,
319,
645,
303,
1916,
1542,
11,
8069,
46506,
366,
25586,
9413,
1,
16034,
3084,
62,
19,
23451,
33411,
366,
50246,
276,
1,
796,
705,
21159,
1542,
11,
8069,
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
] | [
3003,
318,
262,
8848,
1989,
326,
2540,
319,
645,
303,
1916,
1542,
11,
8069,
46506,
366,
25586,
9413,
1,
16034,
3084,
62,
19,
23451,
33411,
366,
50246,
276,
1,
796,
705,
21159,
1542,
11,
8069,
6
] |
What shows for W adys awowo, Poland when the world record was clean & jerk? | SELECT władysławowo_, _poland FROM table_name_85 WHERE world_record = "clean & jerk" | [
2061,
2523,
329,
370,
512,
893,
3253,
322,
78,
11,
12873,
618,
262,
995,
1700,
373,
3424,
1222,
29757,
30,
46506,
266,
41615,
324,
893,
41615,
707,
322,
78,
62,
11,
4808,
16104,
392,
16034,
3084,
62,
3672,
62,
5332,
33411,
995,
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
] | [
2061,
2523,
329,
370,
512,
893,
3253,
322,
78,
11,
12873,
618,
262,
995,
1700,
373,
3424,
1222,
29757,
30,
46506,
266,
41615,
324,
893,
41615,
707,
322,
78,
62,
11,
4808,
16104,
392,
16034,
3084,
62,
3672,
62,
5332,
33411,
995,
62,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.