instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Who was the Human Resources & Operations person between 2003-2004? | SELECT human_resources_ & _operations FROM table_name_14 WHERE year = "2003-2004" | [
8241,
373,
262,
5524,
13864,
1222,
16205,
1048,
1022,
5816,
12,
15724,
30,
46506,
1692,
62,
37540,
62,
1222,
4808,
3575,
602,
16034,
3084,
62,
3672,
62,
1415,
33411,
614,
796,
366,
16088,
12,
15724,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5524,
13864,
1222,
16205,
1048,
1022,
5816,
12,
15724,
30,
46506,
1692,
62,
37540,
62,
1222,
4808,
3575,
602,
16034,
3084,
62,
3672,
62,
1415,
33411,
614,
796,
366,
16088,
12,
15724,
1
] |
calculate the maximum age of married patients who are aged 45 years or more. | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.age >= "45" | [
9948,
3129,
378,
262,
5415,
2479,
286,
6405,
3871,
508,
389,
9722,
4153,
812,
393,
517,
13,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9948,
3129,
378,
262,
5415,
2479,
286,
6405,
3871,
508,
389,
9722,
4153,
812,
393,
517,
13,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16728,
... |
What was the crowd attendance in the match at punt road oval? | SELECT SUM("Crowd") FROM table_58581 WHERE "Venue" = 'punt road oval' | [
2061,
373,
262,
4315,
14858,
287,
262,
2872,
379,
35363,
2975,
41186,
30,
46506,
35683,
7203,
34,
3986,
4943,
16034,
3084,
62,
3365,
48630,
33411,
366,
37522,
518,
1,
796,
705,
79,
2797,
2975,
41186,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4315,
14858,
287,
262,
2872,
379,
35363,
2975,
41186,
30,
46506,
35683,
7203,
34,
3986,
4943,
16034,
3084,
62,
3365,
48630,
33411,
366,
37522,
518,
1,
796,
705,
79,
2797,
2975,
41186,
6
] |
please list the flights from NEW YORK to LOS ANGELES | 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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LOS A... | [
29688,
1351,
262,
13956,
422,
12682,
28154,
284,
406,
2640,
44892,
1546,
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,
15271,
7054,
31600,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
29688,
1351,
262,
13956,
422,
12682,
28154,
284,
406,
2640,
44892,
1546,
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,
15271,
7054,
31600,
154... |
Total Answers from Users with Parameters. | SELECT COUNT(*) FROM Users | [
14957,
42612,
422,
18987,
351,
40117,
13,
46506,
327,
28270,
7,
28104,
16034,
18987
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
14957,
42612,
422,
18987,
351,
40117,
13,
46506,
327,
28270,
7,
28104,
16034,
18987
] |
the first time patient 011-55939 was diagnosed during the last year with hyperglycemia - stress related? | SELECT diagnosis.diagnosistime FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-55939')) AND diagnosis.diagnosisname = 'hyperglycemia - stres... | [
1169,
717,
640,
5827,
5534,
16,
12,
38605,
2670,
373,
14641,
1141,
262,
938,
614,
351,
8718,
10853,
344,
20730,
532,
5503,
3519,
30,
46506,
13669,
13,
47356,
418,
396,
524,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
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... | [
1169,
717,
640,
5827,
5534,
16,
12,
38605,
2670,
373,
14641,
1141,
262,
938,
614,
351,
8718,
10853,
344,
20730,
532,
5503,
3519,
30,
46506,
13669,
13,
47356,
418,
396,
524,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,... |
Tell me the affiliation for mls team of metrostars and pick number of 26 | SELECT affiliation FROM table_name_28 WHERE mls_team = "metrostars" AND pick__number = 26 | [
24446,
502,
262,
26218,
329,
285,
7278,
1074,
286,
1138,
23341,
945,
290,
2298,
1271,
286,
2608,
46506,
26218,
16034,
3084,
62,
3672,
62,
2078,
33411,
285,
7278,
62,
15097,
796,
366,
4164,
23341,
945,
1,
5357,
2298,
834,
17618,
796,
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
] | [
24446,
502,
262,
26218,
329,
285,
7278,
1074,
286,
1138,
23341,
945,
290,
2298,
1271,
286,
2608,
46506,
26218,
16034,
3084,
62,
3672,
62,
2078,
33411,
285,
7278,
62,
15097,
796,
366,
4164,
23341,
945,
1,
5357,
2298,
834,
17618,
796,
2... |
provide the number of patients whose admission year is less than 2178 and lab test abnormal status is delta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2178" AND lab.flag = "delta" | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
23188,
290,
2248,
1332,
18801,
3722,
318,
25979,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
23188,
290,
2248,
1332,
18801,
3722,
318,
25979,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
which circuit has less screens than bow tie cinemas ? | SELECT "circuit" FROM table_203_752 WHERE "screens" < (SELECT "screens" FROM table_203_752 WHERE "circuit" = 'bow tie cinemas') | [
4758,
10349,
468,
1342,
8947,
621,
9563,
9839,
13483,
292,
5633,
46506,
366,
21170,
5013,
1,
16034,
3084,
62,
22416,
62,
43665,
33411,
366,
1416,
5681,
1,
1279,
357,
46506,
366,
1416,
5681,
1,
16034,
3084,
62,
22416,
62,
43665,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
10349,
468,
1342,
8947,
621,
9563,
9839,
13483,
292,
5633,
46506,
366,
21170,
5013,
1,
16034,
3084,
62,
22416,
62,
43665,
33411,
366,
1416,
5681,
1,
1279,
357,
46506,
366,
1416,
5681,
1,
16034,
3084,
62,
22416,
62,
43665,
33411,
... |
find out the maximum age of married patients who have had emergency hospital admission. | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admission_type = "EMERGENCY" | [
19796,
503,
262,
5415,
2479,
286,
6405,
3871,
508,
423,
550,
6334,
4436,
13938,
13,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16728,
13,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
503,
262,
5415,
2479,
286,
6405,
3871,
508,
423,
550,
6334,
4436,
13938,
13,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16728,
13,
324,
... |
give me the number of patients whose admission year is less than 2174 and diagnoses short title is single lb in-hosp w/o cs? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2174" AND diagnoses.short_title = "Single lb in-hosp w/o cs" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
22985,
290,
40567,
1790,
3670,
318,
2060,
18360,
287,
12,
71,
2117,
266,
14,
78,
50115,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
22985,
290,
40567,
1790,
3670,
318,
2060,
18360,
287,
12,
71,
2117,
266,
14,
78,
50115,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
3... |
What is the sum of the crowd when the away team score was 12.11 (83)? | SELECT SUM("Crowd") FROM table_52690 WHERE "Away team score" = '12.11 (83)' | [
2061,
318,
262,
2160,
286,
262,
4315,
618,
262,
1497,
1074,
4776,
373,
1105,
13,
1157,
357,
5999,
19427,
46506,
35683,
7203,
34,
3986,
4943,
16034,
3084,
62,
48531,
3829,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1065,
13,
1157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
262,
4315,
618,
262,
1497,
1074,
4776,
373,
1105,
13,
1157,
357,
5999,
19427,
46506,
35683,
7203,
34,
3986,
4943,
16034,
3084,
62,
48531,
3829,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1065,
13,
1157,
... |
Who directed the episode with a production code greater than 4301103.585233785 that was written by Curtis Kheel? | SELECT "Directed by" FROM table_24263 WHERE "Production code" > '4301103.585233785' AND "Written by" = 'Curtis Kheel' | [
8241,
7924,
262,
4471,
351,
257,
3227,
2438,
3744,
621,
5946,
486,
15197,
13,
38905,
1954,
2718,
5332,
326,
373,
3194,
416,
25157,
48888,
417,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
1731,
29558,
33411,
366,
35027,
2438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7924,
262,
4471,
351,
257,
3227,
2438,
3744,
621,
5946,
486,
15197,
13,
38905,
1954,
2718,
5332,
326,
373,
3194,
416,
25157,
48888,
417,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
1731,
29558,
33411,
366,
35027,
2438,
... |
Which Location Attendance has a Game larger than 5? | SELECT location_attendance FROM table_name_32 WHERE game > 5 | [
13828,
13397,
46502,
590,
468,
257,
3776,
4025,
621,
642,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
3672,
62,
2624,
33411,
983,
1875,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
13397,
46502,
590,
468,
257,
3776,
4025,
621,
642,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
3672,
62,
2624,
33411,
983,
1875,
642
] |
When the wins is 3, what is the maximum races? | SELECT MAX("Races") FROM table_1654 WHERE "Wins" = '3' | [
2215,
262,
7864,
318,
513,
11,
644,
318,
262,
5415,
9558,
30,
46506,
25882,
7203,
49,
2114,
4943,
16034,
3084,
62,
1433,
4051,
33411,
366,
54,
1040,
1,
796,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
7864,
318,
513,
11,
644,
318,
262,
5415,
9558,
30,
46506,
25882,
7203,
49,
2114,
4943,
16034,
3084,
62,
1433,
4051,
33411,
366,
54,
1040,
1,
796,
705,
18,
6
] |
What is the Date of Catalogue number 602517739468? | SELECT "Date" FROM table_39391 WHERE "Catalogue" = '602517739468' | [
2061,
318,
262,
7536,
286,
16758,
5119,
1271,
3126,
1495,
22413,
34626,
3104,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2670,
37710,
33411,
366,
39075,
5119,
1,
796,
705,
1899,
1495,
22413,
34626,
3104,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
286,
16758,
5119,
1271,
3126,
1495,
22413,
34626,
3104,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2670,
37710,
33411,
366,
39075,
5119,
1,
796,
705,
1899,
1495,
22413,
34626,
3104,
6
] |
What player was picked earlier than 126 by the Houston Oilers? | SELECT "Player" FROM table_63552 WHERE "Pick" < '126' AND "Team" = 'houston oilers' | [
2061,
2137,
373,
6497,
2961,
621,
19710,
416,
262,
6995,
35004,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
48250,
4309,
33411,
366,
31686,
1,
1279,
705,
19420,
6,
5357,
366,
15592,
1,
796,
705,
71,
6526,
3056,
364,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2137,
373,
6497,
2961,
621,
19710,
416,
262,
6995,
35004,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
48250,
4309,
33411,
366,
31686,
1,
1279,
705,
19420,
6,
5357,
366,
15592,
1,
796,
705,
71,
6526,
3056,
364,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of job_id and employee_id in a bar chart. | SELECT JOB_ID, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
6538,
62,
312,
287,
257,
2318,
8262,
13,
46506,
449,
9864,
62,
2389,
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... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
6538,
62,
312,
287,
257,
2318,
8262,
13,
46506,
449,
9864,
62,
2389,
11... |
What is the date of the locomotive named Blacklion Glencar? | SELECT "Date made" FROM table_70759 WHERE "Names" = 'blacklion glencar' | [
2061,
318,
262,
3128,
286,
262,
33334,
19138,
3706,
2619,
75,
295,
20716,
7718,
30,
46506,
366,
10430,
925,
1,
16034,
3084,
62,
2154,
38314,
33411,
366,
36690,
1,
796,
705,
13424,
75,
295,
1278,
268,
7718,
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,
318,
262,
3128,
286,
262,
33334,
19138,
3706,
2619,
75,
295,
20716,
7718,
30,
46506,
366,
10430,
925,
1,
16034,
3084,
62,
2154,
38314,
33411,
366,
36690,
1,
796,
705,
13424,
75,
295,
1278,
268,
7718,
6
] |
give me the number of patients whose admission year is less than 2137 and procedure icd9 code is 3322? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2137" AND procedures.icd9_code = "3322" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
19708,
290,
8771,
14158,
67,
24,
2438,
318,
4747,
1828,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
19708,
290,
8771,
14158,
67,
24,
2438,
318,
4747,
1828,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... |
WHAT WAS THE WINNING SCORE IN YEAR 1922? | SELECT winning_score FROM table_1507806_1 WHERE year = 1922 | [
32971,
21725,
3336,
25779,
15871,
6374,
6965,
3268,
32914,
36094,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
8628,
22,
37988,
62,
16,
33411,
614,
796,
36094
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
21725,
3336,
25779,
15871,
6374,
6965,
3268,
32914,
36094,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
8628,
22,
37988,
62,
16,
33411,
614,
796,
36094
] |
What was the opponent at the game that had a loss of Travers (0 2)? | SELECT "Opponent" FROM table_68536 WHERE "Loss" = 'travers (0–2)' | [
2061,
373,
262,
6125,
379,
262,
983,
326,
550,
257,
2994,
286,
4759,
690,
357,
15,
362,
19427,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
35978,
2623,
33411,
366,
43,
793,
1,
796,
705,
9535,
690,
357,
15,
1906,
17,
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
] | [
2061,
373,
262,
6125,
379,
262,
983,
326,
550,
257,
2994,
286,
4759,
690,
357,
15,
362,
19427,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
35978,
2623,
33411,
366,
43,
793,
1,
796,
705,
9535,
690,
357,
15,
1906,
17,
33047
] |
What was the attendance when the result was a bye? | SELECT attendance FROM table_name_79 WHERE result = "bye" | [
2061,
373,
262,
14858,
618,
262,
1255,
373,
257,
33847,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
3720,
33411,
1255,
796,
366,
16390,
1
] | [
1,
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,
14858,
618,
262,
1255,
373,
257,
33847,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
3720,
33411,
1255,
796,
366,
16390,
1
] |
What was the venue when the runner up was Tennis Borussia Berlin, and the score was 4 2 *? | SELECT "Venue" FROM table_66065 WHERE "Runners-up" = 'tennis borussia berlin' AND "Score" = '4 – 2 *' | [
2061,
373,
262,
14359,
618,
262,
17490,
510,
373,
37213,
12182,
31269,
11307,
11,
290,
262,
4776,
373,
604,
362,
1635,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
39885,
2996,
33411,
366,
10987,
2741,
12,
929,
1,
796,
705,
1452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14359,
618,
262,
17490,
510,
373,
37213,
12182,
31269,
11307,
11,
290,
262,
4776,
373,
604,
362,
1635,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
39885,
2996,
33411,
366,
10987,
2741,
12,
929,
1,
796,
705,
1452,
... |
Can you draw a bar chart to show the number of positions of the pilots? | SELECT Position, COUNT(Position) FROM pilot GROUP BY Position | [
6090,
345,
3197,
257,
2318,
8262,
284,
905,
262,
1271,
286,
6116,
286,
262,
14982,
30,
46506,
23158,
11,
327,
28270,
7,
26545,
8,
16034,
8022,
44441,
11050,
23158
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
3197,
257,
2318,
8262,
284,
905,
262,
1271,
286,
6116,
286,
262,
14982,
30,
46506,
23158,
11,
327,
28270,
7,
26545,
8,
16034,
8022,
44441,
11050,
23158
] |
What day is collingwood the home side? | SELECT date FROM table_name_79 WHERE home_team = "collingwood" | [
2061,
1110,
318,
2927,
278,
3822,
262,
1363,
1735,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3720,
33411,
1363,
62,
15097,
796,
366,
26000,
278,
3822,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1110,
318,
2927,
278,
3822,
262,
1363,
1735,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3720,
33411,
1363,
62,
15097,
796,
366,
26000,
278,
3822,
1
] |
What institution is a NCAA Division i school and part of the NEC conference with a nickname the Blue Devils? | SELECT institution FROM table_name_48 WHERE classification = "ncaa division i" AND current_conference = "nec" AND nickname = "blue devils" | [
2061,
9901,
318,
257,
15244,
7458,
1312,
1524,
290,
636,
286,
262,
41804,
4495,
351,
257,
21814,
262,
4518,
26199,
30,
46506,
9901,
16034,
3084,
62,
3672,
62,
2780,
33411,
17923,
796,
366,
77,
6888,
64,
7297,
1312,
1,
5357,
1459,
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
] | [
2061,
9901,
318,
257,
15244,
7458,
1312,
1524,
290,
636,
286,
262,
41804,
4495,
351,
257,
21814,
262,
4518,
26199,
30,
46506,
9901,
16034,
3084,
62,
3672,
62,
2780,
33411,
17923,
796,
366,
77,
6888,
64,
7297,
1312,
1,
5357,
1459,
62,
... |
Show the number of products with price higher than 1000 or lower than 500 for each product name in a bar chart. | SELECT product_name, COUNT(product_name) FROM Products WHERE product_price > 1000 OR product_price < 500 GROUP BY product_name | [
15307,
262,
1271,
286,
3186,
351,
2756,
2440,
621,
8576,
393,
2793,
621,
5323,
329,
1123,
1720,
1438,
287,
257,
2318,
8262,
13,
46506,
1720,
62,
3672,
11,
327,
28270,
7,
11167,
62,
3672,
8,
16034,
18675,
33411,
1720,
62,
20888,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
1271,
286,
3186,
351,
2756,
2440,
621,
8576,
393,
2793,
621,
5323,
329,
1123,
1720,
1438,
287,
257,
2318,
8262,
13,
46506,
1720,
62,
3672,
11,
327,
28270,
7,
11167,
62,
3672,
8,
16034,
18675,
33411,
1720,
62,
20888,
1875,
... |
Which Time has Notes of men's speed skating? | SELECT "Time" FROM table_8105 WHERE "Notes" = 'men''s speed skating' | [
13828,
3862,
468,
11822,
286,
1450,
338,
2866,
33051,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
23,
13348,
33411,
366,
16130,
1,
796,
705,
3653,
7061,
82,
2866,
33051,
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,
3862,
468,
11822,
286,
1450,
338,
2866,
33051,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
23,
13348,
33411,
366,
16130,
1,
796,
705,
3653,
7061,
82,
2866,
33051,
6
] |
Provide the number of patients who have been diagnosed with subarachnoid hemorrhage and were ordered a pleural fluid lab test. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Subarachnoid hemorrhage" AND lab.fluid = "Pleural" | [
15946,
485,
262,
1271,
286,
3871,
508,
423,
587,
14641,
351,
850,
283,
620,
77,
1868,
42203,
496,
290,
547,
6149,
257,
3339,
1523,
11711,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15946,
485,
262,
1271,
286,
3871,
508,
423,
587,
14641,
351,
850,
283,
620,
77,
1868,
42203,
496,
290,
547,
6149,
257,
3339,
1523,
11711,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
1603... |
is there any procedure patient 77676 underwent until 1 year ago? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 77676) AND DATETIME(procedures_icd.charttime) <= DATETIME(CURRENT_TIME(), '-1 year') | [
271,
612,
597,
8771,
5827,
8541,
42548,
25289,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
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... | [
271,
612,
597,
8771,
5827,
8541,
42548,
25289,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,... |
How many students play each sport? | SELECT sportname, COUNT(*) FROM sportsinfo GROUP BY sportname | [
2437,
867,
2444,
711,
1123,
6332,
30,
46506,
6332,
3672,
11,
327,
28270,
7,
28104,
16034,
5701,
10951,
44441,
11050,
6332,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2444,
711,
1123,
6332,
30,
46506,
6332,
3672,
11,
327,
28270,
7,
28104,
16034,
5701,
10951,
44441,
11050,
6332,
3672
] |
What is 1:30 pm, when 7:00 am is 'Tiny Toon Adventures'? | SELECT "1:30 pm" FROM table_61151 WHERE "7:00 am" = 'tiny toon adventures' | [
2061,
318,
352,
25,
1270,
9114,
11,
618,
767,
25,
405,
716,
318,
705,
51,
3541,
1675,
261,
15640,
30960,
46506,
366,
16,
25,
1270,
9114,
1,
16034,
3084,
62,
21,
1157,
4349,
33411,
366,
22,
25,
405,
716,
1,
796,
705,
44152,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
352,
25,
1270,
9114,
11,
618,
767,
25,
405,
716,
318,
705,
51,
3541,
1675,
261,
15640,
30960,
46506,
366,
16,
25,
1270,
9114,
1,
16034,
3084,
62,
21,
1157,
4349,
33411,
366,
22,
25,
405,
716,
1,
796,
705,
44152,
284,
... |
all flights from BOSTON to WASHINGTON | 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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHING... | [
439,
13956,
422,
347,
10892,
1340,
284,
370,
19436,
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,
15271,
7054,
31600,
15490,
62,
35009,
27389,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
439,
13956,
422,
347,
10892,
1340,
284,
370,
19436,
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,
15271,
7054,
31600,
15490,
62,
35009,
27389,... |
the team placed 1st in 1992/93 . how did they place the previous year ? | SELECT "place" FROM table_204_35 WHERE "season" < '1992/93' ORDER BY "season" DESC LIMIT 1 | [
1169,
1074,
4624,
352,
301,
287,
9768,
14,
6052,
764,
703,
750,
484,
1295,
262,
2180,
614,
5633,
46506,
366,
5372,
1,
16034,
3084,
62,
18638,
62,
2327,
33411,
366,
6230,
1,
1279,
705,
23847,
14,
6052,
6,
38678,
11050,
366,
6230,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1169,
1074,
4624,
352,
301,
287,
9768,
14,
6052,
764,
703,
750,
484,
1295,
262,
2180,
614,
5633,
46506,
366,
5372,
1,
16034,
3084,
62,
18638,
62,
2327,
33411,
366,
6230,
1,
1279,
705,
23847,
14,
6052,
6,
38678,
11050,
366,
6230,
1,
... |
What are the fewest seats with fewer than 5.4% seats and more than -1 change? | SELECT MIN("Seats") FROM table_59447 WHERE "% votes" < '5.4' AND "Change" > '-1' | [
2061,
389,
262,
1178,
395,
8632,
351,
7380,
621,
642,
13,
19,
4,
8632,
290,
517,
621,
532,
16,
1487,
30,
46506,
20625,
7203,
4653,
1381,
4943,
16034,
3084,
62,
3270,
34825,
33411,
36521,
5690,
1,
1279,
705,
20,
13,
19,
6,
5357,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1178,
395,
8632,
351,
7380,
621,
642,
13,
19,
4,
8632,
290,
517,
621,
532,
16,
1487,
30,
46506,
20625,
7203,
4653,
1381,
4943,
16034,
3084,
62,
3270,
34825,
33411,
36521,
5690,
1,
1279,
705,
20,
13,
19,
6,
5357,
36... |
What is Package/Option, when Content is Tennis? | SELECT "Package/Option" FROM table_75797 WHERE "Content" = 'tennis' | [
2061,
318,
15717,
14,
19722,
11,
618,
14041,
318,
37213,
30,
46506,
366,
27813,
14,
19722,
1,
16034,
3084,
62,
2425,
44673,
33411,
366,
19746,
1,
796,
705,
1452,
21361,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
15717,
14,
19722,
11,
618,
14041,
318,
37213,
30,
46506,
366,
27813,
14,
19722,
1,
16034,
3084,
62,
2425,
44673,
33411,
366,
19746,
1,
796,
705,
1452,
21361,
6
] |
what is the properties of lithium when caesium is ki (1.7)? | SELECT lithium FROM table_name_17 WHERE caesium = "ki (1.7)" | [
10919,
318,
262,
6608,
286,
28444,
618,
1275,
274,
1505,
318,
47748,
357,
16,
13,
22,
19427,
46506,
28444,
16034,
3084,
62,
3672,
62,
1558,
33411,
1275,
274,
1505,
796,
366,
4106,
357,
16,
13,
22,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
6608,
286,
28444,
618,
1275,
274,
1505,
318,
47748,
357,
16,
13,
22,
19427,
46506,
28444,
16034,
3084,
62,
3672,
62,
1558,
33411,
1275,
274,
1505,
796,
366,
4106,
357,
16,
13,
22,
16725
] |
What round was held in palavas-les-flots , herault , france? | SELECT round FROM table_name_43 WHERE location = "palavas-les-flots , herault , france" | [
2061,
2835,
373,
2714,
287,
6340,
615,
292,
12,
829,
12,
2704,
1747,
837,
339,
430,
586,
837,
1216,
590,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
3559,
33411,
4067,
796,
366,
18596,
615,
292,
12,
829,
12,
2704,
1747,
837,
339,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2835,
373,
2714,
287,
6340,
615,
292,
12,
829,
12,
2704,
1747,
837,
339,
430,
586,
837,
1216,
590,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
3559,
33411,
4067,
796,
366,
18596,
615,
292,
12,
829,
12,
2704,
1747,
837,
339,
... |
Name the archive for run time of 23:55 | SELECT archive FROM table_2102782_1 WHERE run_time = "23:55" | [
5376,
262,
15424,
329,
1057,
640,
286,
2242,
25,
2816,
46506,
15424,
16034,
3084,
62,
21536,
1983,
6469,
62,
16,
33411,
1057,
62,
2435,
796,
366,
1954,
25,
2816,
1
] | [
1,
1,
1,
1,
1,
1,
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,
15424,
329,
1057,
640,
286,
2242,
25,
2816,
46506,
15424,
16034,
3084,
62,
21536,
1983,
6469,
62,
16,
33411,
1057,
62,
2435,
796,
366,
1954,
25,
2816,
1
] |
which race was faster , 1990 or 1993 ? | SELECT "year" FROM table_204_555 WHERE "year" IN (1990, 1993) ORDER BY "notes" LIMIT 1 | [
4758,
3234,
373,
5443,
837,
6303,
393,
9656,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
31046,
33411,
366,
1941,
1,
3268,
357,
19891,
11,
9656,
8,
38678,
11050,
366,
17815,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
3234,
373,
5443,
837,
6303,
393,
9656,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
31046,
33411,
366,
1941,
1,
3268,
357,
19891,
11,
9656,
8,
38678,
11050,
366,
17815,
1,
27564,
2043,
352
] |
During what period did Ricky Ponting play? | SELECT period FROM table_21100348_10 WHERE player = "Ricky Ponting" | [
7191,
644,
2278,
750,
31668,
26345,
278,
711,
30,
46506,
2278,
16034,
3084,
62,
21895,
405,
28978,
62,
940,
33411,
2137,
796,
366,
49,
17479,
26345,
278,
1
] | [
1,
1,
1,
1,
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,
644,
2278,
750,
31668,
26345,
278,
711,
30,
46506,
2278,
16034,
3084,
62,
21895,
405,
28978,
62,
940,
33411,
2137,
796,
366,
49,
17479,
26345,
278,
1
] |
How many patients with diagnoses icd9 code 3572 are still unmarried? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "SINGLE" AND diagnoses.icd9_code = "3572" | [
2437,
867,
3871,
351,
40567,
14158,
67,
24,
2438,
3439,
4761,
389,
991,
39183,
30,
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,
76,
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,
3871,
351,
40567,
14158,
67,
24,
2438,
3439,
4761,
389,
991,
39183,
30,
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,
76,
62... |
Gieco Max Number of Comments for a Single Post. | SELECT Id, CommentCount FROM Posts ORDER BY CommentCount DESC LIMIT 1 | [
38,
494,
1073,
5436,
7913,
286,
19502,
329,
257,
14206,
2947,
13,
46506,
5121,
11,
18957,
12332,
16034,
12043,
38678,
11050,
18957,
12332,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
38,
494,
1073,
5436,
7913,
286,
19502,
329,
257,
14206,
2947,
13,
46506,
5121,
11,
18957,
12332,
16034,
12043,
38678,
11050,
18957,
12332,
22196,
34,
27564,
2043,
352
] |
Name the males for language of persons that didn't name their native language | SELECT males FROM table_name_57 WHERE language = "persons that didn't name their native language" | [
5376,
262,
10835,
329,
3303,
286,
6506,
326,
1422,
470,
1438,
511,
6868,
3303,
46506,
10835,
16034,
3084,
62,
3672,
62,
3553,
33411,
3303,
796,
366,
19276,
684,
326,
1422,
470,
1438,
511,
6868,
3303,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10835,
329,
3303,
286,
6506,
326,
1422,
470,
1438,
511,
6868,
3303,
46506,
10835,
16034,
3084,
62,
3672,
62,
3553,
33411,
3303,
796,
366,
19276,
684,
326,
1422,
470,
1438,
511,
6868,
3303,
1
] |
What is the record for the game on January 19? | SELECT "Record" FROM table_77610 WHERE "Date" = 'january 19' | [
2061,
318,
262,
1700,
329,
262,
983,
319,
3269,
678,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3324,
39132,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
678,
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,
1700,
329,
262,
983,
319,
3269,
678,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3324,
39132,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
678,
6
] |
What number in series was the episode written by Eric Gilliland? | SELECT MAX("No. in series") FROM table_30173 WHERE "Written by" = 'Eric Gilliland' | [
2061,
1271,
287,
2168,
373,
262,
4471,
3194,
416,
7651,
12981,
40855,
30,
46506,
25882,
7203,
2949,
13,
287,
2168,
4943,
16034,
3084,
62,
18938,
4790,
33411,
366,
25354,
416,
1,
796,
705,
25004,
12981,
40855,
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,
1271,
287,
2168,
373,
262,
4471,
3194,
416,
7651,
12981,
40855,
30,
46506,
25882,
7203,
2949,
13,
287,
2168,
4943,
16034,
3084,
62,
18938,
4790,
33411,
366,
25354,
416,
1,
796,
705,
25004,
12981,
40855,
6
] |
which tribunal pronounced the least number of sentences between 1701 and 1746 ? | SELECT "tribunal" FROM table_203_303 ORDER BY "total" LIMIT 1 | [
4758,
30105,
16293,
262,
1551,
1271,
286,
13439,
1022,
1596,
486,
290,
1596,
3510,
5633,
46506,
366,
83,
822,
18835,
1,
16034,
3084,
62,
22416,
62,
22572,
38678,
11050,
366,
23350,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
30105,
16293,
262,
1551,
1271,
286,
13439,
1022,
1596,
486,
290,
1596,
3510,
5633,
46506,
366,
83,
822,
18835,
1,
16034,
3084,
62,
22416,
62,
22572,
38678,
11050,
366,
23350,
1,
27564,
2043,
352
] |
On what day did the team play the Indianapolis Colts? | SELECT date FROM table_name_26 WHERE opponent = "indianapolis colts" | [
2202,
644,
1110,
750,
262,
1074,
711,
262,
19362,
20464,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2075,
33411,
6125,
796,
366,
521,
666,
11174,
951,
912,
1
] | [
1,
1,
1,
1,
1,
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,
1110,
750,
262,
1074,
711,
262,
19362,
20464,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2075,
33411,
6125,
796,
366,
521,
666,
11174,
951,
912,
1
] |
What percentile am I in for a given tag for a given location?. Determines where you rank in a given tag as of the last data load | SELECT STR(NTILE(100) OVER (ORDER BY SUM(answers.Score) DESC), 3) + '%' AS "top", ROW_NUMBER() OVER (ORDER BY SUM(answers.Score) DESC) AS "ranking", Users.Id AS "user_link", SUM(answers.Score) AS "total_score" FROM Tags JOIN PostTags ON Tags.Id = PostTags.TagId AND Tags.TagName = '##TagName##' JOIN Posts AS questions O... | [
2061,
37894,
716,
314,
287,
329,
257,
1813,
7621,
329,
257,
1813,
4067,
30,
13,
360,
13221,
274,
810,
345,
4279,
287,
257,
1813,
7621,
355,
286,
262,
938,
1366,
3440,
46506,
19269,
7,
11251,
41119,
7,
3064,
8,
28729,
357,
12532,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
37894,
716,
314,
287,
329,
257,
1813,
7621,
329,
257,
1813,
4067,
30,
13,
360,
13221,
274,
810,
345,
4279,
287,
257,
1813,
7621,
355,
286,
262,
938,
1366,
3440,
46506,
19269,
7,
11251,
41119,
7,
3064,
8,
28729,
357,
12532,
113... |
provide the number of patients whose discharge location is disch-tran to psych hosp and procedure short title is exc/des hrt les, endovasc. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND procedures.short_title = "Exc/des hrt les,endovasc" | [
15234,
485,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
595,
354,
12,
2213,
272,
284,
3795,
10496,
290,
8771,
1790,
3670,
318,
2859,
14,
8906,
289,
17034,
10287,
11,
886,
709,
3372,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17655,
4067,
318,
595,
354,
12,
2213,
272,
284,
3795,
10496,
290,
8771,
1790,
3670,
318,
2859,
14,
8906,
289,
17034,
10287,
11,
886,
709,
3372,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
... |
What is the result for Gold Coast when Adelaide and Perth are yes, but Auckland is no? | SELECT gold_coast FROM table_name_6 WHERE adelaide = "yes" AND auckland = "no" AND perth = "yes" | [
2061,
318,
262,
1255,
329,
3561,
8545,
618,
27139,
290,
29913,
389,
3763,
11,
475,
30422,
318,
645,
30,
46506,
3869,
62,
1073,
459,
16034,
3084,
62,
3672,
62,
21,
33411,
512,
25078,
796,
366,
8505,
1,
5357,
257,
28789,
796,
366,
391... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1255,
329,
3561,
8545,
618,
27139,
290,
29913,
389,
3763,
11,
475,
30422,
318,
645,
30,
46506,
3869,
62,
1073,
459,
16034,
3084,
62,
3672,
62,
21,
33411,
512,
25078,
796,
366,
8505,
1,
5357,
257,
28789,
796,
366,
391... |
Which rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engine have? | SELECT "Rounds" FROM table_58506 WHERE "Driver" = 'vic elford' AND "Engine" = 'ford cosworth dfv 3.0 v8' | [
13828,
9196,
750,
24017,
19067,
585,
351,
257,
8092,
8615,
9268,
47764,
85,
513,
13,
15,
410,
23,
3113,
423,
30,
46506,
366,
49,
3733,
1,
16034,
3084,
62,
3365,
35638,
33411,
366,
32103,
1,
796,
705,
25531,
1288,
3841,
6,
5357,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
9196,
750,
24017,
19067,
585,
351,
257,
8092,
8615,
9268,
47764,
85,
513,
13,
15,
410,
23,
3113,
423,
30,
46506,
366,
49,
3733,
1,
16034,
3084,
62,
3365,
35638,
33411,
366,
32103,
1,
796,
705,
25531,
1288,
3841,
6,
5357,
366,... |
what were the top three most common intakes this year? | SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY intakeoutput.celllabel) AS ... | [
10919,
547,
262,
1353,
1115,
749,
2219,
42219,
428,
614,
30,
46506,
256,
16,
13,
3846,
18242,
16034,
357,
46506,
10337,
22915,
13,
3846,
18242,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1353,
1115,
749,
2219,
42219,
428,
614,
30,
46506,
256,
16,
13,
3846,
18242,
16034,
357,
46506,
10337,
22915,
13,
3846,
18242,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
... |
what were the four most frequent drugs that were prescribed to male patients in the 60 or above in the same hospital visit after being diagnosed with status-post ptca since 2105? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_... | [
10919,
547,
262,
1440,
749,
10792,
5010,
326,
547,
14798,
284,
4257,
3871,
287,
262,
3126,
393,
2029,
287,
262,
976,
4436,
3187,
706,
852,
14641,
351,
3722,
12,
7353,
42975,
6888,
1201,
362,
13348,
30,
46506,
256,
18,
13,
30349,
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,
547,
262,
1440,
749,
10792,
5010,
326,
547,
14798,
284,
4257,
3871,
287,
262,
3126,
393,
2029,
287,
262,
976,
4436,
3187,
706,
852,
14641,
351,
3722,
12,
7353,
42975,
6888,
1201,
362,
13348,
30,
46506,
256,
18,
13,
30349,
16034... |
Who did the fastest lap with the race winner john watson? | SELECT "Fastest Lap" FROM table_16725 WHERE "Race Winner" = 'John Watson' | [
8241,
750,
262,
14162,
14779,
351,
262,
3234,
8464,
45610,
266,
13506,
30,
46506,
366,
22968,
395,
26944,
1,
16034,
3084,
62,
21940,
1495,
33411,
366,
35157,
25358,
1,
796,
705,
7554,
14959,
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
] | [
8241,
750,
262,
14162,
14779,
351,
262,
3234,
8464,
45610,
266,
13506,
30,
46506,
366,
22968,
395,
26944,
1,
16034,
3084,
62,
21940,
1495,
33411,
366,
35157,
25358,
1,
796,
705,
7554,
14959,
6
] |
What Valley Vista has a Dysart of 1668? | SELECT valley_vista FROM table_name_39 WHERE dysart = "1668" | [
2061,
6916,
25160,
468,
257,
46876,
433,
286,
1467,
3104,
30,
46506,
19272,
62,
85,
12523,
16034,
3084,
62,
3672,
62,
2670,
33411,
13147,
433,
796,
366,
1433,
3104,
1
] | [
1,
1,
1,
1,
1,
1,
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,
6916,
25160,
468,
257,
46876,
433,
286,
1467,
3104,
30,
46506,
19272,
62,
85,
12523,
16034,
3084,
62,
3672,
62,
2670,
33411,
13147,
433,
796,
366,
1433,
3104,
1
] |
Top 200 users from Kolkata,India. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%kolkata%' OR UPPER(Location) LIKE '%KOLKATA' ORDER BY Reputation DESC LIMIT 2000 | [
9126,
939,
2985,
422,
509,
13597,
1045,
11,
21569,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
1898... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
939,
2985,
422,
509,
13597,
1045,
11,
21569,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
1898... |
Questions in a given tag sorted by number of views per day. | SELECT q.Id AS "post_link", q.ViewCount, ROUND(CAST(q.ViewCount AS FLOAT) / DATEDIFF(dd, q.CreationDate, @today), 1) AS ViewsPerDay FROM Posts AS q ORDER BY LEN(q.Body) DESC | [
35741,
287,
257,
1813,
7621,
23243,
416,
1271,
286,
5009,
583,
1110,
13,
46506,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
10662,
13,
7680,
12332,
11,
371,
15919,
7,
44647,
7,
80,
13,
7680,
12332,
7054,
9977,
46,
1404,
8,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35741,
287,
257,
1813,
7621,
23243,
416,
1271,
286,
5009,
583,
1110,
13,
46506,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
10662,
13,
7680,
12332,
11,
371,
15919,
7,
44647,
7,
80,
13,
7680,
12332,
7054,
9977,
46,
1404,
8,
122... |
What was the attendance of the game on September 18, 1965 before week 3? | SELECT attendance FROM table_name_72 WHERE week < 3 AND date = "september 18, 1965" | [
2061,
373,
262,
14858,
286,
262,
983,
319,
2693,
1248,
11,
17672,
878,
1285,
513,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
4761,
33411,
1285,
1279,
513,
5357,
3128,
796,
366,
325,
457,
1491,
1248,
11,
17672,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14858,
286,
262,
983,
319,
2693,
1248,
11,
17672,
878,
1285,
513,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
4761,
33411,
1285,
1279,
513,
5357,
3128,
796,
366,
325,
457,
1491,
1248,
11,
17672,
1
] |
Users owning both Epic and Generalist badges. | SELECT DISTINCT u.* FROM Badges AS g JOIN Badges AS e ON e.UserId = g.UserId JOIN Users AS u ON u.Id = e.UserId WHERE g.Name IN ('Epic', 'Generalist') AND e.Name IN ('Epic', 'Generalist') AND g.Id != e.Id ORDER BY u.DisplayName | [
14490,
23107,
1111,
16781,
290,
3611,
396,
37583,
13,
46506,
360,
8808,
1268,
4177,
334,
15885,
16034,
7772,
3212,
7054,
308,
32357,
1268,
7772,
3212,
7054,
304,
6177,
304,
13,
12982,
7390,
796,
308,
13,
12982,
7390,
32357,
1268,
18987,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
23107,
1111,
16781,
290,
3611,
396,
37583,
13,
46506,
360,
8808,
1268,
4177,
334,
15885,
16034,
7772,
3212,
7054,
308,
32357,
1268,
7772,
3212,
7054,
304,
6177,
304,
13,
12982,
7390,
796,
308,
13,
12982,
7390,
32357,
1268,
18987,
... |
Show the number of professors who is in office DRE 102 hired in each month with a bar chart. | SELECT EMP_HIREDATE, COUNT(EMP_HIREDATE) FROM EMPLOYEE AS T1 JOIN PROFESSOR AS T2 ON T1.EMP_NUM = T2.EMP_NUM WHERE T2.PROF_OFFICE = 'DRE 102' | [
15307,
262,
1271,
286,
20339,
508,
318,
287,
2607,
360,
2200,
15143,
9657,
287,
1123,
1227,
351,
257,
2318,
8262,
13,
46506,
38144,
62,
39,
37819,
6158,
11,
327,
28270,
7,
39494,
62,
39,
37819,
6158,
8,
16034,
17228,
6489,
21414,
6500... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20339,
508,
318,
287,
2607,
360,
2200,
15143,
9657,
287,
1123,
1227,
351,
257,
2318,
8262,
13,
46506,
38144,
62,
39,
37819,
6158,
11,
327,
28270,
7,
39494,
62,
39,
37819,
6158,
8,
16034,
17228,
6489,
21414,
6500... |
body mass index ( bmi ) 20 to 27 kg / m2 and a total body weight > 50 kg ( 110 lbs ) | SELECT * FROM table_train_167 WHERE body_mass_index_bmi >= 20 AND body_mass_index_bmi <= 27 AND body_weight > 50 | [
2618,
2347,
6376,
357,
275,
11632,
1267,
1160,
284,
2681,
14211,
1220,
285,
17,
290,
257,
2472,
1767,
3463,
1875,
2026,
14211,
357,
9796,
15785,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
21940,
33411,
1767,
62,
22208,
62,
9630,
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
] | [
2618,
2347,
6376,
357,
275,
11632,
1267,
1160,
284,
2681,
14211,
1220,
285,
17,
290,
257,
2472,
1767,
3463,
1875,
2026,
14211,
357,
9796,
15785,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
21940,
33411,
1767,
62,
22208,
62,
9630,
62,... |
previous to being on the bmw motorsport team , which team was he on ? | SELECT "team" FROM table_204_192 WHERE "year" < (SELECT "year" FROM table_204_192 WHERE "team" = 'bmw motorsport') | [
3866,
1442,
284,
852,
319,
262,
275,
76,
86,
24699,
634,
1074,
837,
543,
1074,
373,
339,
319,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
17477,
33411,
366,
1941,
1,
1279,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
18638... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3866,
1442,
284,
852,
319,
262,
275,
76,
86,
24699,
634,
1074,
837,
543,
1074,
373,
339,
319,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
17477,
33411,
366,
1941,
1,
1279,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
18638... |
When 1509 is the c/w 15+ how many results of 15 to 17 are there? | SELECT COUNT("15 to 17") FROM table_20837 WHERE "C/W 15+" = '1509' | [
2215,
6640,
24,
318,
262,
269,
14,
86,
1315,
10,
703,
867,
2482,
286,
1315,
284,
1596,
389,
612,
30,
46506,
327,
28270,
7203,
1314,
284,
1596,
4943,
16034,
3084,
62,
21315,
2718,
33411,
366,
34,
14,
54,
1315,
10,
1,
796,
705,
8628... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6640,
24,
318,
262,
269,
14,
86,
1315,
10,
703,
867,
2482,
286,
1315,
284,
1596,
389,
612,
30,
46506,
327,
28270,
7203,
1314,
284,
1596,
4943,
16034,
3084,
62,
21315,
2718,
33411,
366,
34,
14,
54,
1315,
10,
1,
796,
705,
8628... |
What is the average crowd when footscray is at home? | SELECT AVG("Crowd") FROM table_53096 WHERE "Home team" = 'footscray' | [
2061,
318,
262,
2811,
4315,
618,
2366,
1416,
2433,
318,
379,
1363,
30,
46506,
35224,
7203,
34,
3986,
4943,
16034,
3084,
62,
38612,
4846,
33411,
366,
16060,
1074,
1,
796,
705,
5898,
1416,
2433,
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,
2811,
4315,
618,
2366,
1416,
2433,
318,
379,
1363,
30,
46506,
35224,
7203,
34,
3986,
4943,
16034,
3084,
62,
38612,
4846,
33411,
366,
16060,
1074,
1,
796,
705,
5898,
1416,
2433,
6
] |
Which capacity has the class 4c3h? | SELECT "Capacity" FROM table_63883 WHERE "Class" = '4c3h' | [
13828,
5339,
468,
262,
1398,
604,
66,
18,
71,
30,
46506,
366,
15610,
4355,
1,
16034,
3084,
62,
21,
2548,
5999,
33411,
366,
9487,
1,
796,
705,
19,
66,
18,
71,
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
] | [
13828,
5339,
468,
262,
1398,
604,
66,
18,
71,
30,
46506,
366,
15610,
4355,
1,
16034,
3084,
62,
21,
2548,
5999,
33411,
366,
9487,
1,
796,
705,
19,
66,
18,
71,
6
] |
List the number of the names of patients who have made appointments, list by the bars in asc. | SELECT Name, COUNT(Name) FROM Appointment AS T1 JOIN Patient AS T2 ON T1.Patient = T2.SSN GROUP BY Name ORDER BY Name | [
8053,
262,
1271,
286,
262,
3891,
286,
3871,
508,
423,
925,
23976,
11,
1351,
416,
262,
9210,
287,
10570,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
2034,
49805,
7054,
309,
16,
32357,
1268,
35550,
7054,
309,
17,
6177,
309,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
262,
3891,
286,
3871,
508,
423,
925,
23976,
11,
1351,
416,
262,
9210,
287,
10570,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
2034,
49805,
7054,
309,
16,
32357,
1268,
35550,
7054,
309,
17,
6177,
309,
16... |
A bar chart shows the distribution of ACC_Road and Team_ID , and group by attribute ACC_Home, and list from high to low by the Team_ID. | SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY Team_ID DESC | [
32,
2318,
8262,
2523,
262,
6082,
286,
15859,
62,
29197,
290,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
11,
290,
1351,
422,
1029,
284,
1877,
416,
262,
4816,
62,
2389,
13,
46506,
15859,
62,
29197,
11,
4816,
62,
238... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2523,
262,
6082,
286,
15859,
62,
29197,
290,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
11,
290,
1351,
422,
1029,
284,
1877,
416,
262,
4816,
62,
2389,
13,
46506,
15859,
62,
29197,
11,
4816,
62,
238... |
what is days of hospital stay and drug route of subject name gus marques? | SELECT demographic.days_stay, prescriptions.route FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Gus Marques" | [
10919,
318,
1528,
286,
4436,
2652,
290,
2563,
6339,
286,
2426,
1438,
308,
385,
1667,
13281,
30,
46506,
16728,
13,
12545,
62,
31712,
11,
34092,
13,
38629,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
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
] | [
10919,
318,
1528,
286,
4436,
2652,
290,
2563,
6339,
286,
2426,
1438,
308,
385,
1667,
13281,
30,
46506,
16728,
13,
12545,
62,
31712,
11,
34092,
13,
38629,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312... |
How many ranks have an industry of health care? | SELECT COUNT("Rank") FROM table_75243 WHERE "Primary industry" = 'health care' | [
2437,
867,
9803,
423,
281,
2831,
286,
1535,
1337,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
2425,
26660,
33411,
366,
35170,
2831,
1,
796,
705,
13948,
1337,
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
] | [
2437,
867,
9803,
423,
281,
2831,
286,
1535,
1337,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
2425,
26660,
33411,
366,
35170,
2831,
1,
796,
705,
13948,
1337,
6
] |
Which Result has a Venue of home, and a Date of 3 october 1987? | SELECT result FROM table_name_54 WHERE venue = "home" AND date = "3 october 1987" | [
13828,
25414,
468,
257,
9932,
518,
286,
1363,
11,
290,
257,
7536,
286,
513,
19318,
2023,
12923,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
4051,
33411,
14359,
796,
366,
11195,
1,
5357,
3128,
796,
366,
18,
19318,
2023,
12923,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9932,
518,
286,
1363,
11,
290,
257,
7536,
286,
513,
19318,
2023,
12923,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
4051,
33411,
14359,
796,
366,
11195,
1,
5357,
3128,
796,
366,
18,
19318,
2023,
12923,
1
] |
What is the firefox value with a 1.9% safari? | SELECT "Firefox" FROM table_79524 WHERE "Safari" = '1.9%' | [
2061,
318,
262,
2046,
12792,
1988,
351,
257,
352,
13,
24,
4,
1932,
2743,
30,
46506,
366,
13543,
12792,
1,
16034,
3084,
62,
41544,
1731,
33411,
366,
50,
1878,
2743,
1,
796,
705,
16,
13,
24,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2046,
12792,
1988,
351,
257,
352,
13,
24,
4,
1932,
2743,
30,
46506,
366,
13543,
12792,
1,
16034,
3084,
62,
41544,
1731,
33411,
366,
50,
1878,
2743,
1,
796,
705,
16,
13,
24,
4,
6
] |
What are the id of songs whose format is mp3. | SELECT f_id FROM files WHERE formats = "mp3" | [
2061,
389,
262,
4686,
286,
7259,
3025,
5794,
318,
29034,
18,
13,
46506,
277,
62,
312,
16034,
3696,
33411,
17519,
796,
366,
3149,
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
] | [
2061,
389,
262,
4686,
286,
7259,
3025,
5794,
318,
29034,
18,
13,
46506,
277,
62,
312,
16034,
3696,
33411,
17519,
796,
366,
3149,
18,
1
] |
What party does the incumbent from the Ohio 20 district belong to? | SELECT party FROM table_1342218_35 WHERE district = "Ohio 20" | [
2061,
2151,
857,
262,
23526,
422,
262,
6835,
1160,
4783,
5594,
284,
30,
46506,
2151,
16034,
3084,
62,
19880,
1828,
1507,
62,
2327,
33411,
4783,
796,
366,
31274,
1160,
1
] | [
1,
1,
1,
1,
1,
1,
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,
2151,
857,
262,
23526,
422,
262,
6835,
1160,
4783,
5594,
284,
30,
46506,
2151,
16034,
3084,
62,
19880,
1828,
1507,
62,
2327,
33411,
4783,
796,
366,
31274,
1160,
1
] |
Are any of the courses I 've taken PreMajor courses ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN program_course ON student_record.course_id = program_course.course_id WHERE program_course.category LIKE '%PreMajor%' AND student_record.student_id = 1 | [
8491,
597,
286,
262,
10902,
314,
705,
303,
2077,
3771,
24206,
10902,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
3710,
62,
22105,
6177,
3710,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
597,
286,
262,
10902,
314,
705,
303,
2077,
3771,
24206,
10902,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
3710,
62,
22105,
6177,
3710,... |
What is the Website of the Cheadle School for Ages 8-16? | SELECT website FROM table_name_53 WHERE ages = "8-16" AND locality = "cheadle" | [
2061,
318,
262,
15887,
286,
262,
327,
2256,
293,
3961,
329,
21449,
807,
12,
1433,
30,
46506,
3052,
16034,
3084,
62,
3672,
62,
4310,
33411,
9337,
796,
366,
23,
12,
1433,
1,
5357,
48036,
796,
366,
66,
2256,
293,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15887,
286,
262,
327,
2256,
293,
3961,
329,
21449,
807,
12,
1433,
30,
46506,
3052,
16034,
3084,
62,
3672,
62,
4310,
33411,
9337,
796,
366,
23,
12,
1433,
1,
5357,
48036,
796,
366,
66,
2256,
293,
1
] |
What are the names of climbers and the corresponding heights of the mountains that they climb. Show bar chart. | SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID | [
2061,
389,
262,
3891,
286,
39311,
290,
262,
11188,
23245,
286,
262,
12269,
326,
484,
12080,
13,
5438,
2318,
8262,
13,
46506,
309,
16,
13,
5376,
11,
309,
17,
13,
23106,
16034,
5424,
527,
7054,
309,
16,
32357,
1268,
8598,
7054,
309,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
286,
39311,
290,
262,
11188,
23245,
286,
262,
12269,
326,
484,
12080,
13,
5438,
2318,
8262,
13,
46506,
309,
16,
13,
5376,
11,
309,
17,
13,
23106,
16034,
5424,
527,
7054,
309,
16,
32357,
1268,
8598,
7054,
309,
1... |
what's the health score with justice being 80.7 | SELECT health FROM table_145439_1 WHERE justice = "80.7" | [
10919,
338,
262,
1535,
4776,
351,
5316,
852,
4019,
13,
22,
46506,
1535,
16034,
3084,
62,
1415,
4051,
2670,
62,
16,
33411,
5316,
796,
366,
1795,
13,
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
] | [
10919,
338,
262,
1535,
4776,
351,
5316,
852,
4019,
13,
22,
46506,
1535,
16034,
3084,
62,
1415,
4051,
2670,
62,
16,
33411,
5316,
796,
366,
1795,
13,
22,
1
] |
What are the name, latitude, and city of the station with the lowest latitude? | SELECT name, lat, city FROM station ORDER BY lat LIMIT 1 | [
2061,
389,
262,
1438,
11,
32477,
11,
290,
1748,
286,
262,
4429,
351,
262,
9016,
32477,
30,
46506,
1438,
11,
3042,
11,
1748,
16034,
4429,
38678,
11050,
3042,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1438,
11,
32477,
11,
290,
1748,
286,
262,
4429,
351,
262,
9016,
32477,
30,
46506,
1438,
11,
3042,
11,
1748,
16034,
4429,
38678,
11050,
3042,
27564,
2043,
352
] |
What is Year, when Location is Philadelphia Municipal Stadium? | SELECT year FROM table_name_89 WHERE location = "philadelphia municipal stadium" | [
2061,
318,
6280,
11,
618,
13397,
318,
8857,
31526,
10499,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
4531,
33411,
4067,
796,
366,
28864,
8273,
13474,
10308,
1
] | [
1,
1,
1,
1,
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,
6280,
11,
618,
13397,
318,
8857,
31526,
10499,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
4531,
33411,
4067,
796,
366,
28864,
8273,
13474,
10308,
1
] |
For those employees who was hired before 2002-06-21, show me about the distribution of job_id and the sum of salary , and group by attribute job_id in a bar chart, order x axis in ascending order please. | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
287,
257,
2318,
8262,
11,
1502,
2124,
16488,
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,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
287,
257,
2318,
8262,
11,
1502,
2124,
16488,
2... |
At what Location in Round 3 is the Score 1-1? | SELECT "Location" FROM table_12816 WHERE "Round" = 'round 3' AND "Score" = '1-1' | [
2953,
644,
13397,
287,
10485,
513,
318,
262,
15178,
352,
12,
16,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
12762,
1433,
33411,
366,
22685,
1,
796,
705,
744,
513,
6,
5357,
366,
26595,
1,
796,
705,
16,
12,
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
] | [
2953,
644,
13397,
287,
10485,
513,
318,
262,
15178,
352,
12,
16,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
12762,
1433,
33411,
366,
22685,
1,
796,
705,
744,
513,
6,
5357,
366,
26595,
1,
796,
705,
16,
12,
16,
6
] |
what were the top three most frequent laboratory tests that followed within 2 months for patients who took non-cardiac angiography - angiography of arteries of extremities, bilateral in this year? | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'non-cardiac angiography - angiography of arteries of... | [
10919,
547,
262,
1353,
1115,
749,
10792,
14010,
5254,
326,
3940,
1626,
362,
1933,
329,
3871,
508,
1718,
1729,
12,
9517,
9607,
3550,
72,
4867,
532,
3550,
72,
4867,
286,
45894,
286,
8963,
871,
11,
24537,
287,
428,
614,
30,
46506,
256,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1353,
1115,
749,
10792,
14010,
5254,
326,
3940,
1626,
362,
1933,
329,
3871,
508,
1718,
1729,
12,
9517,
9607,
3550,
72,
4867,
532,
3550,
72,
4867,
286,
45894,
286,
8963,
871,
11,
24537,
287,
428,
614,
30,
46506,
256,
... |
What is the number of Inaug., when the Type is Public, when the Name is Mei Lam Estate, and when the No Units is larger than 4,156? | SELECT COUNT("Inaug.") FROM table_14324 WHERE "Type" = 'public' AND "Name" = 'mei lam estate' AND "No Units" > '4,156' | [
2061,
318,
262,
1271,
286,
554,
7493,
1539,
618,
262,
5994,
318,
5094,
11,
618,
262,
6530,
318,
42244,
10923,
23015,
11,
290,
618,
262,
1400,
27719,
318,
4025,
621,
604,
11,
21599,
30,
46506,
327,
28270,
7203,
818,
7493,
19570,
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... | [
2061,
318,
262,
1271,
286,
554,
7493,
1539,
618,
262,
5994,
318,
5094,
11,
618,
262,
6530,
318,
42244,
10923,
23015,
11,
290,
618,
262,
1400,
27719,
318,
4025,
621,
604,
11,
21599,
30,
46506,
327,
28270,
7203,
818,
7493,
19570,
16034,... |
What is the lowest number of uncommitted superdelegates for a state with more than 16 total and 2 for Hillary Clinton? | SELECT MIN("Uncommitted") FROM table_7236 WHERE "Total" > '16' AND "Hillary Clinton" = '2' | [
2061,
318,
262,
9016,
1271,
286,
8820,
3291,
2208,
2934,
37061,
329,
257,
1181,
351,
517,
621,
1467,
2472,
290,
362,
329,
5073,
2605,
30,
46506,
20625,
7203,
3118,
785,
3291,
4943,
16034,
3084,
62,
22,
24940,
33411,
366,
14957,
1,
187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
1271,
286,
8820,
3291,
2208,
2934,
37061,
329,
257,
1181,
351,
517,
621,
1467,
2472,
290,
362,
329,
5073,
2605,
30,
46506,
20625,
7203,
3118,
785,
3291,
4943,
16034,
3084,
62,
22,
24940,
33411,
366,
14957,
1,
187... |
what's runner-up with season being season 13 | SELECT "Runner-up" FROM table_17953 WHERE "Season" = 'Season 13' | [
10919,
338,
17490,
12,
929,
351,
1622,
852,
1622,
1511,
46506,
366,
49493,
12,
929,
1,
16034,
3084,
62,
1558,
49649,
33411,
366,
18960,
1,
796,
705,
18960,
1511,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
17490,
12,
929,
351,
1622,
852,
1622,
1511,
46506,
366,
49493,
12,
929,
1,
16034,
3084,
62,
1558,
49649,
33411,
366,
18960,
1,
796,
705,
18960,
1511,
6
] |
What is the earliest pick listed in the table. | SELECT MIN("Pick #") FROM table_16329 | [
2061,
318,
262,
14555,
2298,
5610,
287,
262,
3084,
13,
46506,
20625,
7203,
31686,
1303,
4943,
16034,
3084,
62,
24136,
1959
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
14555,
2298,
5610,
287,
262,
3084,
13,
46506,
20625,
7203,
31686,
1303,
4943,
16034,
3084,
62,
24136,
1959
] |
For those employees who did not have any job in the past, give me the comparison about the average of manager_id over the job_id , and group by attribute job_id by a bar chart, and display by the the average of manager id in asc please. | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
4706,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
416,
257,
2318,
8262,
11,
290,
3359,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
286,
4706,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
416,
257,
2318,
8262,
11,
290,
3359,... |
Which IHSAA Class has a Mascot of tigers? | SELECT ihsaa_class FROM table_name_32 WHERE mascot = "tigers" | [
13828,
314,
7998,
3838,
5016,
468,
257,
337,
3372,
313,
286,
43114,
30,
46506,
1312,
11994,
7252,
62,
4871,
16034,
3084,
62,
3672,
62,
2624,
33411,
37358,
796,
366,
83,
34984,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
314,
7998,
3838,
5016,
468,
257,
337,
3372,
313,
286,
43114,
30,
46506,
1312,
11994,
7252,
62,
4871,
16034,
3084,
62,
3672,
62,
2624,
33411,
37358,
796,
366,
83,
34984,
1
] |
What is the average game for March 8 with less than 84 points? | SELECT AVG(game) FROM table_name_23 WHERE points < 84 AND march = 8 | [
2061,
318,
262,
2811,
983,
329,
2805,
807,
351,
1342,
621,
9508,
2173,
30,
46506,
35224,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
2173,
1279,
9508,
5357,
9960,
796,
807
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
983,
329,
2805,
807,
351,
1342,
621,
9508,
2173,
30,
46506,
35224,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
2173,
1279,
9508,
5357,
9960,
796,
807
] |
What is the total gold from New zealand and a rank less than 14? | SELECT SUM("Gold") FROM table_69668 WHERE "Nation" = 'new zealand' AND "Rank" < '14' | [
2061,
318,
262,
2472,
3869,
422,
968,
27689,
392,
290,
257,
4279,
1342,
621,
1478,
30,
46506,
35683,
7203,
13306,
4943,
16034,
3084,
62,
3388,
35809,
33411,
366,
46108,
1,
796,
705,
3605,
27689,
392,
6,
5357,
366,
27520,
1,
1279,
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
] | [
2061,
318,
262,
2472,
3869,
422,
968,
27689,
392,
290,
257,
4279,
1342,
621,
1478,
30,
46506,
35683,
7203,
13306,
4943,
16034,
3084,
62,
3388,
35809,
33411,
366,
46108,
1,
796,
705,
3605,
27689,
392,
6,
5357,
366,
27520,
1,
1279,
705,... |
Give me the comparison about Team_ID over the All_Games by a bar chart. | SELECT All_Games, Team_ID FROM basketball_match | [
23318,
502,
262,
7208,
546,
4816,
62,
2389,
625,
262,
1439,
62,
24474,
416,
257,
2318,
8262,
13,
46506,
1439,
62,
24474,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] | [
1,
1,
1,
1,
1,
1,
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,
7208,
546,
4816,
62,
2389,
625,
262,
1439,
62,
24474,
416,
257,
2318,
8262,
13,
46506,
1439,
62,
24474,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] |
Tell me the week that has an attendance of 78,301 | SELECT week FROM table_name_89 WHERE attendance = "78,301" | [
24446,
502,
262,
1285,
326,
468,
281,
14858,
286,
8699,
11,
18938,
46506,
1285,
16034,
3084,
62,
3672,
62,
4531,
33411,
14858,
796,
366,
3695,
11,
18938,
1
] | [
1,
1,
1,
1,
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,
1285,
326,
468,
281,
14858,
286,
8699,
11,
18938,
46506,
1285,
16034,
3084,
62,
3672,
62,
4531,
33411,
14858,
796,
366,
3695,
11,
18938,
1
] |
For all employees who have the letters D or S in their first name, a line chart shows the change of commission_pct over hire_date, and show x-axis in desc order. | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
1627,
8262,
2523,
262,
1487,
286,
5810,
62,
79,
310,
625,
11078,
62,
4475,
11,
290,
905,
2124,
12,
22704,
287,
1715,
1502,
13,
46506,
36210,
2200,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
1627,
8262,
2523,
262,
1487,
286,
5810,
62,
79,
310,
625,
11078,
62,
4475,
11,
290,
905,
2124,
12,
22704,
287,
1715,
1502,
13,
46506,
36210,
2200,
... |
Who is the opponent with a score of 5 4? | SELECT opponent FROM table_name_36 WHERE score = "5–4" | [
8241,
318,
262,
6125,
351,
257,
4776,
286,
642,
604,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2623,
33411,
4776,
796,
366,
20,
1906,
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
] | [
8241,
318,
262,
6125,
351,
257,
4776,
286,
642,
604,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2623,
33411,
4776,
796,
366,
20,
1906,
19,
1
] |
What is the Age of f/c Posiiton? | SELECT year_born__age_ FROM table_name_85 WHERE position = "f/c" | [
2061,
318,
262,
7129,
286,
277,
14,
66,
18574,
72,
37752,
30,
46506,
614,
62,
6286,
834,
496,
62,
16034,
3084,
62,
3672,
62,
5332,
33411,
2292,
796,
366,
69,
14,
66,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7129,
286,
277,
14,
66,
18574,
72,
37752,
30,
46506,
614,
62,
6286,
834,
496,
62,
16034,
3084,
62,
3672,
62,
5332,
33411,
2292,
796,
366,
69,
14,
66,
1
] |
provide the number of patients whose diagnoses long title is myelodysplastic syndrome, unspecified and drug type is base? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Myelodysplastic syndrome, unspecified" AND prescriptions.drug_type = "BASE" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
616,
417,
375,
893,
489,
3477,
14027,
11,
29547,
290,
2563,
2099,
318,
2779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
616,
417,
375,
893,
489,
3477,
14027,
11,
29547,
290,
2563,
2099,
318,
2779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... |
Show the total number from each flag | SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag | [
15307,
262,
2472,
1271,
422,
1123,
6056,
46506,
19762,
11,
327,
28270,
7,
28104,
16034,
16656,
44441,
11050,
19762
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
2472,
1271,
422,
1123,
6056,
46506,
19762,
11,
327,
28270,
7,
28104,
16034,
16656,
44441,
11050,
19762
] |
What is the total number of Year, when Bronze is 'Jamie Stevenson'? | SELECT COUNT(year) FROM table_name_90 WHERE bronze = "jamie stevenson" | [
2061,
318,
262,
2472,
1271,
286,
6280,
11,
618,
19461,
318,
705,
48337,
38681,
30960,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
22101,
796,
366,
39159,
494,
2876,
574,
1559,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
6280,
11,
618,
19461,
318,
705,
48337,
38681,
30960,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
22101,
796,
366,
39159,
494,
2876,
574,
1559,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.