instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What was the Record on Week 13 at the Hoosier Dome? | SELECT record FROM table_name_97 WHERE game_site = "hoosier dome" AND week = 13 | [
2061,
373,
262,
13266,
319,
6119,
1511,
379,
262,
9544,
418,
959,
31390,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
5607,
33411,
983,
62,
15654,
796,
366,
8873,
418,
959,
29500,
1,
5357,
1285,
796,
1511
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13266,
319,
6119,
1511,
379,
262,
9544,
418,
959,
31390,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
5607,
33411,
983,
62,
15654,
796,
366,
8873,
418,
959,
29500,
1,
5357,
1285,
796,
1511
] |
Which team has a long of 67? | SELECT team FROM table_name_6 WHERE long = "67" | [
13828,
1074,
468,
257,
890,
286,
8275,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
21,
33411,
890,
796,
366,
3134,
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,
890,
286,
8275,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
21,
33411,
890,
796,
366,
3134,
1
] |
Tell me the D 47 for D 46 of r 35 | SELECT d_47 FROM table_name_44 WHERE d_46 = "r 35" | [
24446,
502,
262,
360,
6298,
329,
360,
6337,
286,
374,
3439,
46506,
288,
62,
2857,
16034,
3084,
62,
3672,
62,
2598,
33411,
288,
62,
3510,
796,
366,
81,
3439,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
360,
6298,
329,
360,
6337,
286,
374,
3439,
46506,
288,
62,
2857,
16034,
3084,
62,
3672,
62,
2598,
33411,
288,
62,
3510,
796,
366,
81,
3439,
1
] |
Who was the pole position for the rnd equalling 12? | SELECT "Pole position" FROM table_72115 WHERE "Rnd" = '12' | [
8241,
373,
262,
16825,
2292,
329,
262,
374,
358,
1602,
9221,
1105,
30,
46506,
366,
47,
2305,
2292,
1,
16034,
3084,
62,
4761,
15363,
33411,
366,
49,
358,
1,
796,
705,
1065,
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
] | [
8241,
373,
262,
16825,
2292,
329,
262,
374,
358,
1602,
9221,
1105,
30,
46506,
366,
47,
2305,
2292,
1,
16034,
3084,
62,
4761,
15363,
33411,
366,
49,
358,
1,
796,
705,
1065,
6
] |
provide the number patients with medicare insurance whose procedure icd9 code is 9755. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicare" AND procedures.icd9_code = "9755" | [
15234,
485,
262,
1271,
3871,
351,
6924,
533,
5096,
3025,
8771,
14158,
67,
24,
2438,
318,
860,
38172,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3871,
351,
6924,
533,
5096,
3025,
8771,
14158,
67,
24,
2438,
318,
860,
38172,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
167... |
What is the visiting team that has a home team related to footscray? | SELECT "Away team" FROM table_55566 WHERE "Home team" = 'footscray' | [
2061,
318,
262,
10013,
1074,
326,
468,
257,
1363,
1074,
3519,
284,
2366,
1416,
2433,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
31046,
2791,
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,
1,
1,
1
] | [
2061,
318,
262,
10013,
1074,
326,
468,
257,
1363,
1074,
3519,
284,
2366,
1416,
2433,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
31046,
2791,
33411,
366,
16060,
1074,
1,
796,
705,
5898,
1416,
2433,
6
] |
What year was Wilfred Lau separated because Capital stopped recording music? | SELECT "Year separated" FROM table_60977 WHERE "Reason for separation" = 'capital stopped recording music' AND "English name" = 'wilfred lau' | [
2061,
614,
373,
5187,
39193,
40014,
11266,
780,
9747,
5025,
8296,
2647,
30,
46506,
366,
17688,
11266,
1,
16034,
3084,
62,
31751,
3324,
33411,
366,
45008,
329,
14139,
1,
796,
705,
27544,
5025,
8296,
2647,
6,
5357,
366,
15823,
1438,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
373,
5187,
39193,
40014,
11266,
780,
9747,
5025,
8296,
2647,
30,
46506,
366,
17688,
11266,
1,
16034,
3084,
62,
31751,
3324,
33411,
366,
45008,
329,
14139,
1,
796,
705,
27544,
5025,
8296,
2647,
6,
5357,
366,
15823,
1438,
1,
... |
Show the locations of schools that have more than 1 player. | SELECT T2.location FROM player AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T1.school_id HAVING COUNT(*) > 1 | [
15307,
262,
7064,
286,
4266,
326,
423,
517,
621,
352,
2137,
13,
46506,
309,
17,
13,
24886,
16034,
2137,
7054,
309,
16,
32357,
1268,
1524,
7054,
309,
17,
6177,
309,
16,
13,
14347,
62,
312,
796,
309,
17,
13,
14347,
62,
312,
44441,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7064,
286,
4266,
326,
423,
517,
621,
352,
2137,
13,
46506,
309,
17,
13,
24886,
16034,
2137,
7054,
309,
16,
32357,
1268,
1524,
7054,
309,
17,
6177,
309,
16,
13,
14347,
62,
312,
796,
309,
17,
13,
14347,
62,
312,
44441,
1... |
Name the population of maryborough when population of woocoo is 2700 | SELECT population__maryborough_ FROM table_12576536_1 WHERE population__woocoo_ = 2700 | [
5376,
262,
3265,
286,
285,
560,
17913,
618,
3265,
286,
24486,
420,
2238,
318,
2681,
405,
46506,
3265,
834,
6874,
17913,
62,
16034,
3084,
62,
1065,
3553,
2996,
2623,
62,
16,
33411,
3265,
834,
21638,
420,
2238,
62,
796,
2681,
405
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3265,
286,
285,
560,
17913,
618,
3265,
286,
24486,
420,
2238,
318,
2681,
405,
46506,
3265,
834,
6874,
17913,
62,
16034,
3084,
62,
1065,
3553,
2996,
2623,
62,
16,
33411,
3265,
834,
21638,
420,
2238,
62,
796,
2681,
405
] |
Show the hometown of all members, I want to sort by the X-axis in asc. | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY Hometown | [
15307,
262,
20994,
286,
477,
1866,
11,
314,
765,
284,
3297,
416,
262,
1395,
12,
22704,
287,
10570,
13,
46506,
367,
19191,
11,
327,
28270,
7,
39,
19191,
8,
16034,
2888,
44441,
11050,
367,
19191,
38678,
11050,
367,
19191
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20994,
286,
477,
1866,
11,
314,
765,
284,
3297,
416,
262,
1395,
12,
22704,
287,
10570,
13,
46506,
367,
19191,
11,
327,
28270,
7,
39,
19191,
8,
16034,
2888,
44441,
11050,
367,
19191,
38678,
11050,
367,
19191
] |
How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield? | SELECT "League Cup goals" FROM table_49598 WHERE "Total" > '15' AND "FA Cup goals" = '3' AND "Club" = 'chesterfield' | [
2437,
867,
4041,
5454,
4661,
6053,
284,
513,
9677,
5454,
28510,
290,
257,
2472,
625,
1315,
329,
26943,
3245,
30,
46506,
366,
24623,
5454,
4661,
1,
16034,
3084,
62,
2920,
41292,
33411,
366,
14957,
1,
1875,
705,
1314,
6,
5357,
366,
7708... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4041,
5454,
4661,
6053,
284,
513,
9677,
5454,
28510,
290,
257,
2472,
625,
1315,
329,
26943,
3245,
30,
46506,
366,
24623,
5454,
4661,
1,
16034,
3084,
62,
2920,
41292,
33411,
366,
14957,
1,
1875,
705,
1314,
6,
5357,
366,
7708... |
What is the Location for the newington international airport? | SELECT location FROM table_name_6 WHERE name = "newington international airport" | [
2061,
318,
262,
13397,
329,
262,
649,
9557,
3230,
9003,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
21,
33411,
1438,
796,
366,
3605,
9557,
3230,
9003,
1
] | [
1,
1,
1,
1,
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,
13397,
329,
262,
649,
9557,
3230,
9003,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
21,
33411,
1438,
796,
366,
3605,
9557,
3230,
9003,
1
] |
What is the minimum age of patients whose admission location is trsf within this facility and primary disease is ruq pain? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.diagnosis = "RUQ PAIN" | [
2061,
318,
262,
5288,
2479,
286,
3871,
3025,
13938,
4067,
318,
491,
28202,
1626,
428,
6841,
290,
4165,
4369,
318,
7422,
80,
2356,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
5288,
2479,
286,
3871,
3025,
13938,
4067,
318,
491,
28202,
1626,
428,
6841,
290,
4165,
4369,
318,
7422,
80,
2356,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
... |
Answered question closed by himself. | WITH Raw AS (SELECT PostId, Id, Text FROM PostHistory WHERE Id IN (SELECT MAX(Id) AS CloseEventId FROM PostHistory WHERE PostHistoryTypeId = 10 AND PostId IN (SELECT Id FROM Posts WHERE NOT ClosedDate IS NULL) GROUP BY PostId)) SELECT PostId, JSON_EXTRACT_SCALAR(Text, '$.Voters0.Id') AS Voter FROM Raw UNION SELECT Post... | [
2025,
82,
8279,
1808,
4838,
416,
2241,
13,
54,
10554,
16089,
7054,
357,
46506,
2947,
7390,
11,
5121,
11,
8255,
16034,
2947,
18122,
33411,
5121,
3268,
357,
46506,
25882,
7,
7390,
8,
7054,
13872,
9237,
7390,
16034,
2947,
18122,
33411,
294... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2025,
82,
8279,
1808,
4838,
416,
2241,
13,
54,
10554,
16089,
7054,
357,
46506,
2947,
7390,
11,
5121,
11,
8255,
16034,
2947,
18122,
33411,
5121,
3268,
357,
46506,
25882,
7,
7390,
8,
7054,
13872,
9237,
7390,
16034,
2947,
18122,
33411,
294... |
Who directed the episode with a production code of 4WAB04? | SELECT directedby FROM table_20726262_5 WHERE production_code = "4WAB04" | [
8241,
7924,
262,
4471,
351,
257,
3227,
2438,
286,
604,
54,
6242,
3023,
30,
46506,
7924,
1525,
16034,
3084,
62,
22745,
2075,
29119,
62,
20,
33411,
3227,
62,
8189,
796,
366,
19,
54,
6242,
3023,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
604,
54,
6242,
3023,
30,
46506,
7924,
1525,
16034,
3084,
62,
22745,
2075,
29119,
62,
20,
33411,
3227,
62,
8189,
796,
366,
19,
54,
6242,
3023,
1
] |
What is the average pick of school/club team kutztown state with a round 4? | SELECT AVG(pick) FROM table_name_3 WHERE round = 4 AND school_club_team = "kutztown state" | [
2061,
318,
262,
2811,
2298,
286,
1524,
14,
18664,
1074,
479,
27839,
12735,
1181,
351,
257,
2835,
604,
30,
46506,
35224,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
2835,
796,
604,
5357,
1524,
62,
18664,
62,
15097,
796,
366,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
2298,
286,
1524,
14,
18664,
1074,
479,
27839,
12735,
1181,
351,
257,
2835,
604,
30,
46506,
35224,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
2835,
796,
604,
5357,
1524,
62,
18664,
62,
15097,
796,
366,
7... |
How many weeks did a game happen on September 17, 2000? | SELECT COUNT(week) FROM table_name_57 WHERE date = "september 17, 2000" | [
2437,
867,
2745,
750,
257,
983,
1645,
319,
2693,
1596,
11,
4751,
30,
46506,
327,
28270,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
3553,
33411,
3128,
796,
366,
325,
457,
1491,
1596,
11,
4751,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2745,
750,
257,
983,
1645,
319,
2693,
1596,
11,
4751,
30,
46506,
327,
28270,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
3553,
33411,
3128,
796,
366,
325,
457,
1491,
1596,
11,
4751,
1
] |
when was the first intake of patient 010-19726 until 08/06/2104. | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-19726')) AND intakeoutput.cellpath LIKE '%intake%... | [
12518,
373,
262,
717,
10337,
286,
5827,
5534,
15,
12,
24991,
2075,
1566,
8487,
14,
3312,
14,
17,
13464,
13,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
717,
10337,
286,
5827,
5534,
15,
12,
24991,
2075,
1566,
8487,
14,
3312,
14,
17,
13464,
13,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
35... |
give me the number of patients whose marital status is single and procedure long title is open and other right hemicolectomy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.long_title = "Open and other right hemicolectomy" | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
8771,
890,
3670,
318,
1280,
290,
584,
826,
16869,
3713,
801,
9145,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
8771,
890,
3670,
318,
1280,
290,
584,
826,
16869,
3713,
801,
9145,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
What is the lowest number of fa cup goals by a player? | SELECT MIN(fa_cup_goals) FROM table_27170987_5 | [
2061,
318,
262,
9016,
1271,
286,
24685,
6508,
4661,
416,
257,
2137,
30,
46506,
20625,
7,
13331,
62,
25244,
62,
2188,
874,
8,
16034,
3084,
62,
1983,
1558,
2931,
5774,
62,
20
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
1271,
286,
24685,
6508,
4661,
416,
257,
2137,
30,
46506,
20625,
7,
13331,
62,
25244,
62,
2188,
874,
8,
16034,
3084,
62,
1983,
1558,
2931,
5774,
62,
20
] |
Car number 15 earned what time? | SELECT "Time/Retired" FROM table_21424 WHERE "Car No." = '15' | [
9914,
1271,
1315,
7366,
644,
640,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
22291,
1731,
33411,
366,
9914,
1400,
526,
796,
705,
1314,
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
] | [
9914,
1271,
1315,
7366,
644,
640,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
22291,
1731,
33411,
366,
9914,
1400,
526,
796,
705,
1314,
6
] |
give me the number of patients whose admission year is less than 2154 and procedure icd9 code is 331? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2154" AND procedures.icd9_code = "331" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
21526,
290,
8771,
14158,
67,
24,
2438,
318,
43722,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
21526,
290,
8771,
14158,
67,
24,
2438,
318,
43722,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357... |
has there been any blood culture microbiology test done for patient 56490 in 09/last year? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 56490) AND microbiologyevents.spec_type_desc = 'blood culture' AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', ... | [
10134,
612,
587,
597,
2910,
3968,
24559,
1435,
1332,
1760,
329,
5827,
642,
2414,
3829,
287,
7769,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
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,
1,
1,
1,
1,
1... | [
10134,
612,
587,
597,
2910,
3968,
24559,
1435,
1332,
1760,
329,
5827,
642,
2414,
3829,
287,
7769,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
... |
what is the top three diagnosis that have the highest three year mortality rate? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t4.icd9_code FROM (SELECT t3.icd9_code, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.icd9_code, 100 - SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.chartt... | [
10919,
318,
262,
1353,
1115,
13669,
326,
423,
262,
4511,
1115,
614,
12430,
2494,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
1115,
13669,
326,
423,
262,
4511,
1115,
614,
12430,
2494,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
... |
What Year has an (Aramac) of 832 and a Population (Total) less than 3,762? | SELECT SUM(year) FROM table_name_42 WHERE _aramac_ = 832 AND population__total_ < 3 OFFSET 762 | [
2061,
6280,
468,
281,
357,
32,
859,
330,
8,
286,
807,
2624,
290,
257,
20133,
357,
14957,
8,
1342,
621,
513,
11,
48194,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
4808,
283,
11494,
62,
796,
807,
2624,
535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6280,
468,
281,
357,
32,
859,
330,
8,
286,
807,
2624,
290,
257,
20133,
357,
14957,
8,
1342,
621,
513,
11,
48194,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
4808,
283,
11494,
62,
796,
807,
2624,
535... |
Show me manager_id by last name in a histogram, show in asc by the y axis. | SELECT LAST_NAME, MANAGER_ID FROM employees ORDER BY MANAGER_ID | [
15307,
502,
4706,
62,
312,
416,
938,
1438,
287,
257,
1554,
21857,
11,
905,
287,
10570,
416,
262,
331,
16488,
13,
46506,
41894,
62,
20608,
11,
17254,
4760,
1137,
62,
2389,
16034,
4409,
38678,
11050,
17254,
4760,
1137,
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,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
4706,
62,
312,
416,
938,
1438,
287,
257,
1554,
21857,
11,
905,
287,
10570,
416,
262,
331,
16488,
13,
46506,
41894,
62,
20608,
11,
17254,
4760,
1137,
62,
2389,
16034,
4409,
38678,
11050,
17254,
4760,
1137,
62,
2389
] |
Which Country has a Year(s) won of 1977? | SELECT country FROM table_name_60 WHERE year_s__won = "1977" | [
13828,
12946,
468,
257,
6280,
7,
82,
8,
1839,
286,
15589,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1899,
33411,
614,
62,
82,
834,
26502,
796,
366,
37781,
1
] | [
1,
1,
1,
1,
1,
1,
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,
12946,
468,
257,
6280,
7,
82,
8,
1839,
286,
15589,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1899,
33411,
614,
62,
82,
834,
26502,
796,
366,
37781,
1
] |
What was the 2009 result associated with a 2012 of 1R and a 2007 of 2R? | SELECT 2009 FROM table_name_2 WHERE 2012 = "1r" AND 2007 = "2r" | [
2061,
373,
262,
3717,
1255,
3917,
351,
257,
2321,
286,
352,
49,
290,
257,
4343,
286,
362,
49,
30,
46506,
3717,
16034,
3084,
62,
3672,
62,
17,
33411,
2321,
796,
366,
16,
81,
1,
5357,
4343,
796,
366,
17,
81,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3717,
1255,
3917,
351,
257,
2321,
286,
352,
49,
290,
257,
4343,
286,
362,
49,
30,
46506,
3717,
16034,
3084,
62,
3672,
62,
17,
33411,
2321,
796,
366,
16,
81,
1,
5357,
4343,
796,
366,
17,
81,
1
] |
How to receive detailed reputation from SEDE?. https://meta.stackoverflow.com/questions/391784/how-to-receive-detailed-reputation-from-sede | WITH postvotes AS (SELECT v.CreationDate, p.Id AS postid, CASE v.VoteTypeId WHEN 1 THEN 'accepts' WHEN 2 THEN 'up-votes' WHEN 3 THEN 'down-votes' WHEN 9 THEN 'bounty_recieved' END AS vote_type, CASE p.PostTypeId WHEN 1 THEN 'question' WHEN 2 THEN 'answer' END AS post_type, SUM(CASE v.VoteTypeId WHEN 1 THEN 15 WHEN 2 TH... | [
2437,
284,
3328,
6496,
8507,
422,
311,
1961,
36,
30,
13,
3740,
1378,
28961,
13,
25558,
2502,
11125,
13,
785,
14,
6138,
507,
14,
2670,
1558,
5705,
14,
4919,
12,
1462,
12,
260,
15164,
12,
15255,
6255,
12,
260,
1996,
341,
12,
6738,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
3328,
6496,
8507,
422,
311,
1961,
36,
30,
13,
3740,
1378,
28961,
13,
25558,
2502,
11125,
13,
785,
14,
6138,
507,
14,
2670,
1558,
5705,
14,
4919,
12,
1462,
12,
260,
15164,
12,
15255,
6255,
12,
260,
1996,
341,
12,
6738,
1... |
Comment Count to Score Ratio (Identifying Problematic Questions). | SELECT Id AS "post_link", CommentCount / Score AS "comment_to_score_ratio", PostTypeId FROM Posts WHERE CommentCount > Score AND PostTypeId = 1 ORDER BY 'comment_to_score_ratio' DESC LIMIT 100 | [
21357,
2764,
284,
15178,
33956,
357,
33234,
4035,
20647,
1512,
20396,
737,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
18957,
12332,
1220,
15178,
7054,
366,
23893,
62,
1462,
62,
26675,
62,
10366,
952,
1600,
2947,
6030,
7390,
16034,
1204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
21357,
2764,
284,
15178,
33956,
357,
33234,
4035,
20647,
1512,
20396,
737,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
18957,
12332,
1220,
15178,
7054,
366,
23893,
62,
1462,
62,
26675,
62,
10366,
952,
1600,
2947,
6030,
7390,
16034,
1204... |
How many ranks have a Bronze smaller than 8, and a Total smaller than 7, and a Gold smaller than 1? | SELECT COUNT("Rank") FROM table_5455 WHERE "Bronze" < '8' AND "Total" < '7' AND "Gold" < '1' | [
2437,
867,
9803,
423,
257,
19461,
4833,
621,
807,
11,
290,
257,
7472,
4833,
621,
767,
11,
290,
257,
3561,
4833,
621,
352,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
20,
30505,
33411,
366,
18760,
2736,
1,
1279,
705,
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
] | [
2437,
867,
9803,
423,
257,
19461,
4833,
621,
807,
11,
290,
257,
7472,
4833,
621,
767,
11,
290,
257,
3561,
4833,
621,
352,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
20,
30505,
33411,
366,
18760,
2736,
1,
1279,
705,
2... |
Which Builder has BR No. 30782? | SELECT builder FROM table_name_71 WHERE br_no = 30782 | [
13828,
35869,
468,
11177,
1400,
13,
1542,
46519,
30,
46506,
27098,
16034,
3084,
62,
3672,
62,
4869,
33411,
865,
62,
3919,
796,
1542,
46519
] | [
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,
35869,
468,
11177,
1400,
13,
1542,
46519,
30,
46506,
27098,
16034,
3084,
62,
3672,
62,
4869,
33411,
865,
62,
3919,
796,
1542,
46519
] |
Display a bar chart for what is the lowest salary in departments with average salary greater than the overall average. | SELECT dept_name, MIN(salary) FROM instructor GROUP BY dept_name | [
23114,
257,
2318,
8262,
329,
644,
318,
262,
9016,
9588,
287,
13346,
351,
2811,
9588,
3744,
621,
262,
4045,
2811,
13,
46506,
390,
457,
62,
3672,
11,
20625,
7,
21680,
560,
8,
16034,
21187,
44441,
11050,
390,
457,
62,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23114,
257,
2318,
8262,
329,
644,
318,
262,
9016,
9588,
287,
13346,
351,
2811,
9588,
3744,
621,
262,
4045,
2811,
13,
46506,
390,
457,
62,
3672,
11,
20625,
7,
21680,
560,
8,
16034,
21187,
44441,
11050,
390,
457,
62,
3672
] |
How many gas stations dors each manager have? Plot a bar chart, show by the names in ascending. | SELECT Manager_Name, COUNT(Manager_Name) FROM gas_station GROUP BY Manager_Name ORDER BY Manager_Name | [
2437,
867,
3623,
8985,
37650,
1123,
4706,
423,
30,
28114,
257,
2318,
8262,
11,
905,
416,
262,
3891,
287,
41988,
13,
46506,
9142,
62,
5376,
11,
327,
28270,
7,
13511,
62,
5376,
8,
16034,
3623,
62,
17529,
44441,
11050,
9142,
62,
5376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3623,
8985,
37650,
1123,
4706,
423,
30,
28114,
257,
2318,
8262,
11,
905,
416,
262,
3891,
287,
41988,
13,
46506,
9142,
62,
5376,
11,
327,
28270,
7,
13511,
62,
5376,
8,
16034,
3623,
62,
17529,
44441,
11050,
9142,
62,
5376,
... |
Name the most season for old hoss radbourn | SELECT MAX(season) FROM table_242813_2 WHERE pitcher = "Old Hoss Radbourn" | [
5376,
262,
749,
1622,
329,
1468,
289,
793,
2511,
65,
1798,
46506,
25882,
7,
6230,
8,
16034,
3084,
62,
1731,
2078,
1485,
62,
17,
33411,
18086,
796,
366,
19620,
367,
793,
5325,
65,
1798,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
749,
1622,
329,
1468,
289,
793,
2511,
65,
1798,
46506,
25882,
7,
6230,
8,
16034,
3084,
62,
1731,
2078,
1485,
62,
17,
33411,
18086,
796,
366,
19620,
367,
793,
5325,
65,
1798,
1
] |
At which stadium did the Los Angeles Raiders play as the visiting team? | SELECT stadium FROM table_name_85 WHERE visiting_team = "los angeles raiders" | [
2953,
543,
10308,
750,
262,
5401,
5652,
16120,
711,
355,
262,
10013,
1074,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
5332,
33411,
10013,
62,
15097,
796,
366,
33280,
18304,
274,
9513,
364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
543,
10308,
750,
262,
5401,
5652,
16120,
711,
355,
262,
10013,
1074,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
5332,
33411,
10013,
62,
15097,
796,
366,
33280,
18304,
274,
9513,
364,
1
] |
please give me a list of flights leaving BOSTON going to PITTSBURGH | 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 = 'PITTSBU... | [
29688,
1577,
502,
257,
1351,
286,
13956,
4305,
347,
10892,
1340,
1016,
284,
49040,
4694,
38926,
17511,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
900... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
257,
1351,
286,
13956,
4305,
347,
10892,
1340,
1016,
284,
49040,
4694,
38926,
17511,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
900... |
What is the abbreviation for the college pronounced 'k k daigakk '? | SELECT "abbreviation" FROM table_16682 WHERE "Pronouciation" = 'Kōkū Daigakkō' | [
2061,
318,
262,
28873,
47625,
329,
262,
4152,
16293,
705,
74,
479,
12379,
328,
461,
74,
705,
30,
46506,
366,
397,
4679,
47625,
1,
16034,
3084,
62,
1433,
43950,
33411,
366,
47,
1313,
280,
17269,
1,
796,
705,
42,
13090,
74,
20317,
963... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28873,
47625,
329,
262,
4152,
16293,
705,
74,
479,
12379,
328,
461,
74,
705,
30,
46506,
366,
397,
4679,
47625,
1,
16034,
3084,
62,
1433,
43950,
33411,
366,
47,
1313,
280,
17269,
1,
796,
705,
42,
13090,
74,
20317,
963... |
If the driver is Milka Duno, what is the name of the team? | SELECT "Team" FROM table_21872 WHERE "Driver" = 'Milka Duno' | [
1532,
262,
4639,
318,
4460,
4914,
5648,
78,
11,
644,
318,
262,
1438,
286,
262,
1074,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
28727,
4761,
33411,
366,
32103,
1,
796,
705,
24857,
4914,
5648,
78,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
262,
4639,
318,
4460,
4914,
5648,
78,
11,
644,
318,
262,
1438,
286,
262,
1074,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
28727,
4761,
33411,
366,
32103,
1,
796,
705,
24857,
4914,
5648,
78,
6
] |
what was the first time that patient 80119 was prescribed a medication in 01/last year? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 80119) AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', prescriptions.startdate) = '01... | [
10919,
373,
262,
717,
640,
326,
5827,
807,
486,
1129,
373,
14798,
257,
14103,
287,
5534,
14,
12957,
614,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
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... | [
10919,
373,
262,
717,
640,
326,
5827,
807,
486,
1129,
373,
14798,
257,
14103,
287,
5534,
14,
12957,
614,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,... |
what is diagnoses long title of subject id 74463? | SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "74463" | [
10919,
318,
40567,
890,
3670,
286,
2426,
4686,
767,
2598,
5066,
30,
46506,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
22,
2598,
5066,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
890,
3670,
286,
2426,
4686,
767,
2598,
5066,
30,
46506,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
22,
2598,
5066,
1
] |
What's the $51,914 median household income per capita? | SELECT per_capita_income FROM table_name_34 WHERE median_household_income = "$51,914" | [
2061,
338,
262,
720,
4349,
11,
24,
1415,
14288,
6641,
3739,
583,
21344,
30,
46506,
583,
62,
11128,
5350,
62,
12519,
16034,
3084,
62,
3672,
62,
2682,
33411,
14288,
62,
4803,
2946,
62,
12519,
796,
17971,
4349,
11,
24,
1415,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
720,
4349,
11,
24,
1415,
14288,
6641,
3739,
583,
21344,
30,
46506,
583,
62,
11128,
5350,
62,
12519,
16034,
3084,
62,
3672,
62,
2682,
33411,
14288,
62,
4803,
2946,
62,
12519,
796,
17971,
4349,
11,
24,
1415,
1
] |
Which Rank has a Heat larger than 7? | SELECT MAX(rank) FROM table_name_58 WHERE heat > 7 | [
13828,
10916,
468,
257,
12308,
4025,
621,
767,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
3365,
33411,
4894,
1875,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
10916,
468,
257,
12308,
4025,
621,
767,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
3365,
33411,
4894,
1875,
767
] |
When against is 797 and wins is more than 10, what is the sum of draws? | SELECT COUNT("Draws") FROM table_64311 WHERE "Against" = '797' AND "Wins" > '10' | [
2215,
1028,
318,
767,
5607,
290,
7864,
318,
517,
621,
838,
11,
644,
318,
262,
2160,
286,
14293,
30,
46506,
327,
28270,
7203,
25302,
82,
4943,
16034,
3084,
62,
2414,
36244,
33411,
366,
39276,
1,
796,
705,
44673,
6,
5357,
366,
54,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1028,
318,
767,
5607,
290,
7864,
318,
517,
621,
838,
11,
644,
318,
262,
2160,
286,
14293,
30,
46506,
327,
28270,
7203,
25302,
82,
4943,
16034,
3084,
62,
2414,
36244,
33411,
366,
39276,
1,
796,
705,
44673,
6,
5357,
366,
54,
104... |
What is the primary disease and lab test fluid of Wilbur Braatz? | SELECT demographic.diagnosis, lab.fluid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Wilbur Braatz" | [
2061,
318,
262,
4165,
4369,
290,
2248,
1332,
11711,
286,
5187,
6236,
9718,
27906,
30,
46506,
16728,
13,
47356,
5958,
11,
2248,
13,
35522,
312,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
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
] | [
2061,
318,
262,
4165,
4369,
290,
2248,
1332,
11711,
286,
5187,
6236,
9718,
27906,
30,
46506,
16728,
13,
47356,
5958,
11,
2248,
13,
35522,
312,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,... |
Find the name of department that offers the class whose description has the word 'Statistics'. | SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%' | [
16742,
262,
1438,
286,
5011,
326,
4394,
262,
1398,
3025,
6764,
468,
262,
1573,
705,
48346,
4458,
46506,
309,
17,
13,
2934,
457,
62,
3672,
16034,
1781,
7054,
309,
16,
32357,
1268,
5011,
7054,
309,
17,
6177,
309,
16,
13,
2934,
457,
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... | [
16742,
262,
1438,
286,
5011,
326,
4394,
262,
1398,
3025,
6764,
468,
262,
1573,
705,
48346,
4458,
46506,
309,
17,
13,
2934,
457,
62,
3672,
16034,
1781,
7054,
309,
16,
32357,
1268,
5011,
7054,
309,
17,
6177,
309,
16,
13,
2934,
457,
62... |
what country did the last person on the list come from ? | SELECT "country" FROM table_204_726 ORDER BY id DESC LIMIT 1 | [
10919,
1499,
750,
262,
938,
1048,
319,
262,
1351,
1282,
422,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
18638,
62,
22,
2075,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1499,
750,
262,
938,
1048,
319,
262,
1351,
1282,
422,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
18638,
62,
22,
2075,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] |
what is the release date when the sspec number is sr15h(c0)? | SELECT release_date FROM table_name_98 WHERE sspec_number = "sr15h(c0)" | [
10919,
318,
262,
2650,
3128,
618,
262,
264,
16684,
1271,
318,
19677,
1314,
71,
7,
66,
15,
19427,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
4089,
33411,
264,
16684,
62,
17618,
796,
366,
27891,
1314,
71,
7,
66,
15,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2650,
3128,
618,
262,
264,
16684,
1271,
318,
19677,
1314,
71,
7,
66,
15,
19427,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
4089,
33411,
264,
16684,
62,
17618,
796,
366,
27891,
1314,
71,
7,
66,
15,
16725
] |
What is the win-loss when 2008 has a value of Q1 at Australian Open? | SELECT "Career Win-Loss" FROM table_15060 WHERE "2008" = 'q1' AND "Tournament" = 'australian open' | [
2061,
318,
262,
1592,
12,
22462,
618,
3648,
468,
257,
1988,
286,
1195,
16,
379,
6638,
4946,
30,
46506,
366,
17784,
263,
7178,
12,
43,
793,
1,
16034,
3084,
62,
8628,
1899,
33411,
366,
11528,
1,
796,
705,
80,
16,
6,
5357,
366,
51,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1592,
12,
22462,
618,
3648,
468,
257,
1988,
286,
1195,
16,
379,
6638,
4946,
30,
46506,
366,
17784,
263,
7178,
12,
43,
793,
1,
16034,
3084,
62,
8628,
1899,
33411,
366,
11528,
1,
796,
705,
80,
16,
6,
5357,
366,
51,
... |
What's the hometown of rachel muyot soriano? | SELECT "Hometown" FROM table_62332 WHERE "Delegate" = 'rachel muyot soriano' | [
2061,
338,
262,
20994,
286,
3444,
2978,
285,
4669,
313,
25655,
10115,
30,
46506,
366,
39,
19191,
1,
16034,
3084,
62,
46872,
2624,
33411,
366,
5005,
34637,
1,
796,
705,
81,
9636,
285,
4669,
313,
25655,
10115,
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,
338,
262,
20994,
286,
3444,
2978,
285,
4669,
313,
25655,
10115,
30,
46506,
366,
39,
19191,
1,
16034,
3084,
62,
46872,
2624,
33411,
366,
5005,
34637,
1,
796,
705,
81,
9636,
285,
4669,
313,
25655,
10115,
6
] |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of job_id and the average of department_id , and group by attribute job_id, could you rank from high to low by the y axis? | SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(DEPARTMENT_ID) DESC | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,... |
For those employees who was hired before 2002-06-21, a scatter chart shows the correlation between manager_id and department_id . | SELECT MANAGER_ID, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
257,
41058,
8262,
2523,
262,
16096,
1022,
4706,
62,
312,
290,
5011,
62,
312,
764,
46506,
17254,
4760,
1137,
62,
2389,
11,
5550,
30709,
10979,
62,
2389,
16034,
4409,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
41058,
8262,
2523,
262,
16096,
1022,
4706,
62,
312,
290,
5011,
62,
312,
764,
46506,
17254,
4760,
1137,
62,
2389,
11,
5550,
30709,
10979,
62,
2389,
16034,
4409,
... |
What was the venue for the matches played on the dates 3,4,5,6,7 June 1993? | SELECT "Venue" FROM table_67709 WHERE "Date" = '3,4,5,6,7 june 1993' | [
2061,
373,
262,
14359,
329,
262,
7466,
2826,
319,
262,
9667,
513,
11,
19,
11,
20,
11,
21,
11,
22,
2795,
9656,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3134,
31495,
33411,
366,
10430,
1,
796,
705,
18,
11,
19,
11,
20,
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
] | [
2061,
373,
262,
14359,
329,
262,
7466,
2826,
319,
262,
9667,
513,
11,
19,
11,
20,
11,
21,
11,
22,
2795,
9656,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3134,
31495,
33411,
366,
10430,
1,
796,
705,
18,
11,
19,
11,
20,
11,
... |
Return the apartment number and the number of rooms for each apartment by a bar chart, and show by the y-axis from high to low. | SELECT apt_number, room_count FROM Apartments ORDER BY room_count DESC | [
13615,
262,
7962,
1271,
290,
262,
1271,
286,
9519,
329,
1123,
7962,
416,
257,
2318,
8262,
11,
290,
905,
416,
262,
331,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
15409,
62,
17618,
11,
2119,
62,
9127,
16034,
22596,
902,
38678,
11050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
7962,
1271,
290,
262,
1271,
286,
9519,
329,
1123,
7962,
416,
257,
2318,
8262,
11,
290,
905,
416,
262,
331,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
15409,
62,
17618,
11,
2119,
62,
9127,
16034,
22596,
902,
38678,
11050,
... |
what venue saw a score of 285? | SELECT venue FROM table_name_17 WHERE score = "285" | [
10919,
14359,
2497,
257,
4776,
286,
33015,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1558,
33411,
4776,
796,
366,
26279,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
14359,
2497,
257,
4776,
286,
33015,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1558,
33411,
4776,
796,
366,
26279,
1
] |
Visualize a scatter chart on how many different products correspond to each order id? | SELECT order_id, COUNT(DISTINCT product_id) FROM Order_Items | [
36259,
1096,
257,
41058,
8262,
319,
703,
867,
1180,
3186,
6053,
284,
1123,
1502,
4686,
30,
46506,
1502,
62,
312,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
1720,
62,
312,
8,
16034,
8284,
62,
23022
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
41058,
8262,
319,
703,
867,
1180,
3186,
6053,
284,
1123,
1502,
4686,
30,
46506,
1502,
62,
312,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
1720,
62,
312,
8,
16034,
8284,
62,
23022
] |
Give me a bar chart for the number of date moved in of each date moved in | SELECT date_moved_in, COUNT(date_moved_in) FROM Residents | [
23318,
502,
257,
2318,
8262,
329,
262,
1271,
286,
3128,
3888,
287,
286,
1123,
3128,
3888,
287,
46506,
3128,
62,
76,
2668,
62,
259,
11,
327,
28270,
7,
4475,
62,
76,
2668,
62,
259,
8,
16034,
29602
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2318,
8262,
329,
262,
1271,
286,
3128,
3888,
287,
286,
1123,
3128,
3888,
287,
46506,
3128,
62,
76,
2668,
62,
259,
11,
327,
28270,
7,
4475,
62,
76,
2668,
62,
259,
8,
16034,
29602
] |
Which Attendance has a Score of 4 3, and Points smaller than 5? | SELECT MAX(attendance) FROM table_name_13 WHERE score = "4–3" AND points < 5 | [
13828,
46502,
590,
468,
257,
15178,
286,
604,
513,
11,
290,
11045,
4833,
621,
642,
30,
46506,
25882,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
4776,
796,
366,
19,
1906,
18,
1,
5357,
2173,
1279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
46502,
590,
468,
257,
15178,
286,
604,
513,
11,
290,
11045,
4833,
621,
642,
30,
46506,
25882,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
4776,
796,
366,
19,
1906,
18,
1,
5357,
2173,
1279,
642
] |
What class is easier , EECS 537 or EECS 401 ? | SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 537 OR course.number = 401) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON ... | [
2061,
1398,
318,
4577,
837,
412,
2943,
50,
642,
2718,
393,
412,
2943,
50,
22219,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
62,
312,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
1398,
318,
4577,
837,
412,
2943,
50,
642,
2718,
393,
412,
2943,
50,
22219,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
62,
312,
7... |
acl papers in 2016 | SELECT DISTINCT paper.paperid FROM paper, venue WHERE paper.year = 2016 AND venue.venueid = paper.venueid AND venue.venuename = 'acl' | [
37779,
9473,
287,
1584,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
3348,
11,
14359,
33411,
3348,
13,
1941,
796,
1584,
5357,
14359,
13,
4080,
312,
796,
3348,
13,
4080,
312,
5357,
14359,
13,
574,
84,
12453,
796,
705,
377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
37779,
9473,
287,
1584,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
3348,
11,
14359,
33411,
3348,
13,
1941,
796,
1584,
5357,
14359,
13,
4080,
312,
796,
3348,
13,
4080,
312,
5357,
14359,
13,
574,
84,
12453,
796,
705,
377... |
Which committees have delegates from the Democratic party, and count them by a bar chart | SELECT Committee, COUNT(Committee) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" GROUP BY Committee | [
13828,
17460,
423,
15265,
422,
262,
4390,
2151,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
4606,
11,
327,
28270,
7,
6935,
2979,
8,
16034,
3071,
7054,
309,
16,
32357,
1268,
2151,
7054,
309,
17,
6177,
309,
16,
13,
33553,
796,
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
] | [
13828,
17460,
423,
15265,
422,
262,
4390,
2151,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
4606,
11,
327,
28270,
7,
6935,
2979,
8,
16034,
3071,
7054,
309,
16,
32357,
1268,
2151,
7054,
309,
17,
6177,
309,
16,
13,
33553,
796,
309... |
Plot mean age by grouped by sex as a bar graph, could you order by the y-axis from low to high? | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY AVG(Age) | [
43328,
1612,
2479,
416,
32824,
416,
1714,
355,
257,
2318,
4823,
11,
714,
345,
1502,
416,
262,
331,
12,
22704,
422,
1877,
284,
1029,
30,
46506,
14419,
11,
35224,
7,
23396,
8,
16034,
13613,
44441,
11050,
14419,
38678,
11050,
35224,
7,
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
] | [
43328,
1612,
2479,
416,
32824,
416,
1714,
355,
257,
2318,
4823,
11,
714,
345,
1502,
416,
262,
331,
12,
22704,
422,
1877,
284,
1029,
30,
46506,
14419,
11,
35224,
7,
23396,
8,
16034,
13613,
44441,
11050,
14419,
38678,
11050,
35224,
7,
2... |
How many contestants were there in a season where alejandra espinoza won? | SELECT COUNT(number_of_contestants) FROM table_name_65 WHERE winner = "alejandra espinoza" | [
2437,
867,
37851,
547,
612,
287,
257,
1622,
810,
31341,
73,
15918,
15024,
2879,
4496,
1839,
30,
46506,
327,
28270,
7,
17618,
62,
1659,
62,
3642,
395,
1187,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
8464,
796,
366,
1000,
73,
15918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
37851,
547,
612,
287,
257,
1622,
810,
31341,
73,
15918,
15024,
2879,
4496,
1839,
30,
46506,
327,
28270,
7,
17618,
62,
1659,
62,
3642,
395,
1187,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
8464,
796,
366,
1000,
73,
15918,
... |
Find out the age and long title of the procedure for the patient with patient id 52118. | SELECT demographic.age, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "52118" | [
16742,
503,
262,
2479,
290,
890,
3670,
286,
262,
8771,
329,
262,
5827,
351,
5827,
4686,
6740,
16817,
13,
46506,
16728,
13,
496,
11,
40567,
13,
6511,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
503,
262,
2479,
290,
890,
3670,
286,
262,
8771,
329,
262,
5827,
351,
5827,
4686,
6740,
16817,
13,
46506,
16728,
13,
496,
11,
40567,
13,
6511,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
... |
calculate how many times patient 65962 has had a troponin t test in the lab until 10/2104. | SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'troponin t') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65962) AND STRFTIME('%y-%m', labevents.charttime) <= '2104-10' | [
9948,
3129,
378,
703,
867,
1661,
5827,
718,
3270,
5237,
468,
550,
257,
14673,
261,
259,
256,
1332,
287,
262,
2248,
1566,
838,
14,
17,
13464,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
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... | [
9948,
3129,
378,
703,
867,
1661,
5827,
718,
3270,
5237,
468,
550,
257,
14673,
261,
259,
256,
1332,
287,
262,
2248,
1566,
838,
14,
17,
13464,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,... |
Which event was the opponent jose carlos oliveira? | SELECT "Event" FROM table_59339 WHERE "Opponent" = 'jose carlos oliveira' | [
13828,
1785,
373,
262,
6125,
474,
577,
1097,
33280,
19450,
8704,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
3270,
29626,
33411,
366,
27524,
3471,
1,
796,
705,
73,
577,
1097,
33280,
19450,
8704,
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
] | [
13828,
1785,
373,
262,
6125,
474,
577,
1097,
33280,
19450,
8704,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
3270,
29626,
33411,
366,
27524,
3471,
1,
796,
705,
73,
577,
1097,
33280,
19450,
8704,
6
] |
what is the average rank when the cyclist is alexandr pliuschin? | SELECT AVG(rank) FROM table_name_71 WHERE cyclist = "alexandr pliuschin" | [
10919,
318,
262,
2811,
4279,
618,
262,
34632,
318,
257,
2588,
46273,
458,
3754,
24658,
30,
46506,
35224,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
34632,
796,
366,
1000,
87,
46273,
458,
3754,
24658,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
4279,
618,
262,
34632,
318,
257,
2588,
46273,
458,
3754,
24658,
30,
46506,
35224,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
34632,
796,
366,
1000,
87,
46273,
458,
3754,
24658,
1
] |
Find the name of project that continues for the longest time. | SELECT name FROM projects ORDER BY hours DESC LIMIT 1 | [
16742,
262,
1438,
286,
1628,
326,
4477,
329,
262,
14069,
640,
13,
46506,
1438,
16034,
4493,
38678,
11050,
2250,
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
] | [
16742,
262,
1438,
286,
1628,
326,
4477,
329,
262,
14069,
640,
13,
46506,
1438,
16034,
4493,
38678,
11050,
2250,
22196,
34,
27564,
2043,
352
] |
Users with the most posts above a score of N.. | SELECT Posts.OwnerUserId AS "user_link", COUNT(Posts.Score) AS "count", SUM(Posts.Score) AS "total_score" FROM Posts WHERE Posts.Score >= @minScore AND Posts.PostTypeId <= 2 AND NOT Posts.OwnerUserId IS NULL GROUP BY Posts.OwnerUserId ORDER BY 'count' DESC, 'total_score' DESC LIMIT 50 | [
14490,
351,
262,
749,
6851,
2029,
257,
4776,
286,
399,
492,
46506,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
21496,
13,
26595,
8,
7054,
366,
9127,
1600,
35683,
7,
21496,
13,
26595,
8,
7054,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
351,
262,
749,
6851,
2029,
257,
4776,
286,
399,
492,
46506,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
21496,
13,
26595,
8,
7054,
366,
9127,
1600,
35683,
7,
21496,
13,
26595,
8,
7054,
366,
... |
Who had the high point total when dee brown (5) had the high assist total? | SELECT "High points" FROM table_18881 WHERE "High assists" = 'Dee Brown (5)' | [
8241,
550,
262,
1029,
966,
2472,
618,
390,
68,
7586,
357,
20,
8,
550,
262,
1029,
3342,
2472,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
1507,
3459,
16,
33411,
366,
11922,
13648,
1,
796,
705,
35,
1453,
4373,
357,
20,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
550,
262,
1029,
966,
2472,
618,
390,
68,
7586,
357,
20,
8,
550,
262,
1029,
3342,
2472,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
1507,
3459,
16,
33411,
366,
11922,
13648,
1,
796,
705,
35,
1453,
4373,
357,
20,
33047
] |
Which women's doubles has a Year of 1992? | SELECT "Women's doubles" FROM table_69810 WHERE "Year" = '1992' | [
13828,
1466,
338,
21938,
468,
257,
6280,
286,
9768,
30,
46506,
366,
18495,
338,
21938,
1,
16034,
3084,
62,
39357,
940,
33411,
366,
17688,
1,
796,
705,
23847,
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
] | [
13828,
1466,
338,
21938,
468,
257,
6280,
286,
9768,
30,
46506,
366,
18495,
338,
21938,
1,
16034,
3084,
62,
39357,
940,
33411,
366,
17688,
1,
796,
705,
23847,
6
] |
What is the sum of state champions with more tan 9 MRC Championships, more than 4 co-champions, and a record of 192-189-3? | SELECT SUM(state_champions) FROM table_name_72 WHERE mrc_championships > 9 AND records = "192-189-3" AND co_champions > 4 | [
2061,
318,
262,
2160,
286,
1181,
7827,
351,
517,
25706,
860,
337,
7397,
24782,
11,
517,
621,
604,
763,
12,
354,
4350,
11,
290,
257,
1700,
286,
17817,
12,
23362,
12,
18,
30,
46506,
35683,
7,
5219,
62,
354,
4350,
8,
16034,
3084,
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,
318,
262,
2160,
286,
1181,
7827,
351,
517,
25706,
860,
337,
7397,
24782,
11,
517,
621,
604,
763,
12,
354,
4350,
11,
290,
257,
1700,
286,
17817,
12,
23362,
12,
18,
30,
46506,
35683,
7,
5219,
62,
354,
4350,
8,
16034,
3084,
62,... |
how many patients in 2104 had an intake of carrier? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'carrier' AND d_item... | [
4919,
867,
3871,
287,
362,
13464,
550,
281,
10337,
286,
11920,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
14158,
436,
592,
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... | [
4919,
867,
3871,
287,
362,
13464,
550,
281,
10337,
286,
11920,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
... |
what is the distance from YYZ airport to TORONTO | SELECT DISTINCT airport_service.miles_distant FROM airport, airport_service, city WHERE airport.airport_code = 'YYZ' AND airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'TORONTO' | [
10919,
318,
262,
5253,
422,
575,
56,
57,
9003,
284,
40691,
35830,
14058,
16779,
360,
8808,
1268,
4177,
9003,
62,
15271,
13,
76,
2915,
62,
67,
10167,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
33411,
9003,
13,
958,
634,
62,
8189,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5253,
422,
575,
56,
57,
9003,
284,
40691,
35830,
14058,
16779,
360,
8808,
1268,
4177,
9003,
62,
15271,
13,
76,
2915,
62,
67,
10167,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
33411,
9003,
13,
958,
634,
62,
8189,
79... |
How many socialist have a lead of 12.6%? | SELECT COUNT(socialist) FROM table_1886589_1 WHERE lead = "12.6%" | [
2437,
867,
15889,
423,
257,
1085,
286,
1105,
13,
21,
4,
30,
46506,
327,
28270,
7,
14557,
396,
8,
16034,
3084,
62,
20356,
2996,
4531,
62,
16,
33411,
1085,
796,
366,
1065,
13,
21,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15889,
423,
257,
1085,
286,
1105,
13,
21,
4,
30,
46506,
327,
28270,
7,
14557,
396,
8,
16034,
3084,
62,
20356,
2996,
4531,
62,
16,
33411,
1085,
796,
366,
1065,
13,
21,
39658
] |
How many players are listed for the school/club team Washington? | SELECT COUNT(name) FROM table_15463188_17 WHERE school_club_team = "Washington" | [
2437,
867,
1938,
389,
5610,
329,
262,
1524,
14,
18664,
1074,
2669,
30,
46506,
327,
28270,
7,
3672,
8,
16034,
3084,
62,
1314,
38380,
20356,
62,
1558,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
17402,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1938,
389,
5610,
329,
262,
1524,
14,
18664,
1074,
2669,
30,
46506,
327,
28270,
7,
3672,
8,
16034,
3084,
62,
1314,
38380,
20356,
62,
1558,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
17402,
1
] |
What is every episode with Barry Purchese as the writer? | SELECT episode FROM table_27208311_1 WHERE writer = "Barry Purchese" | [
2061,
318,
790,
4471,
351,
14488,
9330,
2395,
325,
355,
262,
6260,
30,
46506,
4471,
16034,
3084,
62,
1983,
1238,
5999,
1157,
62,
16,
33411,
6260,
796,
366,
33,
6532,
9330,
2395,
325,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
790,
4471,
351,
14488,
9330,
2395,
325,
355,
262,
6260,
30,
46506,
4471,
16034,
3084,
62,
1983,
1238,
5999,
1157,
62,
16,
33411,
6260,
796,
366,
33,
6532,
9330,
2395,
325,
1
] |
What airport has an IATA of ARN? | SELECT "Airport" FROM table_76247 WHERE "IATA" = 'arn' | [
2061,
9003,
468,
281,
314,
13563,
286,
5923,
45,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
4304,
23753,
33411,
366,
40,
13563,
1,
796,
705,
1501,
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,
9003,
468,
281,
314,
13563,
286,
5923,
45,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
4304,
23753,
33411,
366,
40,
13563,
1,
796,
705,
1501,
6
] |
What years did Tom Lehman win? | SELECT "Year(s) won" FROM table_60744 WHERE "Player" = 'tom lehman' | [
2061,
812,
750,
4186,
29921,
805,
1592,
30,
46506,
366,
17688,
7,
82,
8,
1839,
1,
16034,
3084,
62,
31980,
2598,
33411,
366,
14140,
1,
796,
705,
39532,
443,
71,
805,
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,
812,
750,
4186,
29921,
805,
1592,
30,
46506,
366,
17688,
7,
82,
8,
1839,
1,
16034,
3084,
62,
31980,
2598,
33411,
366,
14140,
1,
796,
705,
39532,
443,
71,
805,
6
] |
what is the soap opera when the duration is 18 years and the character is miley byrne? | SELECT soap_opera FROM table_name_4 WHERE duration = "18 years" AND character = "miley byrne" | [
10919,
318,
262,
19533,
27296,
618,
262,
9478,
318,
1248,
812,
290,
262,
2095,
318,
285,
9618,
416,
81,
710,
30,
46506,
19533,
62,
3575,
64,
16034,
3084,
62,
3672,
62,
19,
33411,
9478,
796,
366,
1507,
812,
1,
5357,
2095,
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
] | [
10919,
318,
262,
19533,
27296,
618,
262,
9478,
318,
1248,
812,
290,
262,
2095,
318,
285,
9618,
416,
81,
710,
30,
46506,
19533,
62,
3575,
64,
16034,
3084,
62,
3672,
62,
19,
33411,
9478,
796,
366,
1507,
812,
1,
5357,
2095,
796,
366,
... |
how many broadcaste dates features the overtones | SELECT COUNT("Broadcast date") FROM table_30966 WHERE "Singer(s)" = 'The Overtones' | [
4919,
867,
7025,
68,
9667,
3033,
262,
625,
36257,
46506,
327,
28270,
7203,
30507,
2701,
3128,
4943,
16034,
3084,
62,
26895,
2791,
33411,
366,
50,
3889,
7,
82,
16725,
796,
705,
464,
3827,
36257,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
7025,
68,
9667,
3033,
262,
625,
36257,
46506,
327,
28270,
7203,
30507,
2701,
3128,
4943,
16034,
3084,
62,
26895,
2791,
33411,
366,
50,
3889,
7,
82,
16725,
796,
705,
464,
3827,
36257,
6
] |
How many millions of U.S. viewers watched the episode directed by Allison Liddi-Brown? | SELECT "U.S. viewers (millions)" FROM table_1813 WHERE "Directed by" = 'Allison Liddi-Brown' | [
2437,
867,
5242,
286,
471,
13,
50,
13,
10209,
7342,
262,
4471,
7924,
416,
33461,
406,
1638,
72,
12,
20644,
30,
46506,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
16034,
3084,
62,
1507,
1485,
33411,
366,
13470,
276,
416,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5242,
286,
471,
13,
50,
13,
10209,
7342,
262,
4471,
7924,
416,
33461,
406,
1638,
72,
12,
20644,
30,
46506,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
16034,
3084,
62,
1507,
1485,
33411,
366,
13470,
276,
416,
1,
... |
How Many Top 1000 Users according to Average Question Score in the Real Top 1000. | WITH TT AS (SELECT Users.Id AS Id, Users.Reputation AS UserReputation, COUNT(Posts.Id) AS Questions, CAST(AVG(CAST(Score AS FLOAT)) AS FLOAT(6, 2)) AS "average_question_score" FROM Posts INNER JOIN Users ON Users.Id = OwnerUserId WHERE PostTypeId = 1 AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL GROUP BY Users.... | [
2437,
4650,
5849,
8576,
18987,
1864,
284,
13475,
18233,
15178,
287,
262,
6416,
5849,
8576,
13,
54,
10554,
26653,
7054,
357,
46506,
18987,
13,
7390,
7054,
5121,
11,
18987,
13,
6207,
7094,
7054,
11787,
6207,
7094,
11,
327,
28270,
7,
21496... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4650,
5849,
8576,
18987,
1864,
284,
13475,
18233,
15178,
287,
262,
6416,
5849,
8576,
13,
54,
10554,
26653,
7054,
357,
46506,
18987,
13,
7390,
7054,
5121,
11,
18987,
13,
6207,
7094,
7054,
11787,
6207,
7094,
11,
327,
28270,
7,
21496... |
How many records show Utah as the opponent? | SELECT COUNT("Record") FROM table_25323 WHERE "Opponent" = 'Utah' | [
2437,
867,
4406,
905,
10202,
355,
262,
6125,
30,
46506,
327,
28270,
7203,
23739,
4943,
16034,
3084,
62,
28592,
1954,
33411,
366,
27524,
3471,
1,
796,
705,
44350,
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
] | [
2437,
867,
4406,
905,
10202,
355,
262,
6125,
30,
46506,
327,
28270,
7203,
23739,
4943,
16034,
3084,
62,
28592,
1954,
33411,
366,
27524,
3471,
1,
796,
705,
44350,
6
] |
Which Support Category had a Round score of 9? | SELECT "Support Category" FROM table_64380 WHERE "Round" = '9' | [
13828,
7929,
21743,
550,
257,
10485,
4776,
286,
860,
30,
46506,
366,
15514,
21743,
1,
16034,
3084,
62,
2414,
23734,
33411,
366,
22685,
1,
796,
705,
24,
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,
7929,
21743,
550,
257,
10485,
4776,
286,
860,
30,
46506,
366,
15514,
21743,
1,
16034,
3084,
62,
2414,
23734,
33411,
366,
22685,
1,
796,
705,
24,
6
] |
please give me evening flights leaving PHILADELPHIA to SAN FRANCISCO friday | 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 = 'SAN FRANCISCO' AND date_day.day_number = 25 AND date_day.month_number = ... | [
29688,
1577,
502,
6180,
13956,
4305,
9370,
4146,
2885,
3698,
11909,
3539,
284,
37376,
8782,
20940,
1797,
8220,
1216,
2567,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
6180,
13956,
4305,
9370,
4146,
2885,
3698,
11909,
3539,
284,
37376,
8782,
20940,
1797,
8220,
1216,
2567,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
2738... |
What's the most overall when the executive appointments were 28 and the background was smaller than 37? | SELECT MAX(overall) FROM table_name_77 WHERE executive_appointments = 28 AND background < 37 | [
2061,
338,
262,
749,
4045,
618,
262,
4640,
23976,
547,
2579,
290,
262,
4469,
373,
4833,
621,
5214,
30,
46506,
25882,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
4640,
62,
1324,
1563,
902,
796,
2579,
5357,
4469,
1279,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
4045,
618,
262,
4640,
23976,
547,
2579,
290,
262,
4469,
373,
4833,
621,
5214,
30,
46506,
25882,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
4640,
62,
1324,
1563,
902,
796,
2579,
5357,
4469,
1279,
52... |
Return the lot details, group the lot details, and compute the number of each lot details, and show y-axis in ascending order. | SELECT lot_details, COUNT(lot_details) FROM Lots GROUP BY lot_details ORDER BY COUNT(lot_details) | [
13615,
262,
1256,
3307,
11,
1448,
262,
1256,
3307,
11,
290,
24061,
262,
1271,
286,
1123,
1256,
3307,
11,
290,
905,
331,
12,
22704,
287,
41988,
1502,
13,
46506,
1256,
62,
36604,
11,
327,
28270,
7,
26487,
62,
36604,
8,
16034,
25024,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1256,
3307,
11,
1448,
262,
1256,
3307,
11,
290,
24061,
262,
1271,
286,
1123,
1256,
3307,
11,
290,
905,
331,
12,
22704,
287,
41988,
1502,
13,
46506,
1256,
62,
36604,
11,
327,
28270,
7,
26487,
62,
36604,
8,
16034,
25024,
4... |
Provide the number of patients having main type drug prescription who have coronary atherosclerosis of unspecified type of vessel, native or graft, diagnoses. | 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 = "Coronary atherosclerosis of unspecified type of vessel, native or graft" AND prescriptions.... | [
15946,
485,
262,
1271,
286,
3871,
1719,
1388,
2099,
2563,
15077,
508,
423,
37151,
13366,
4951,
31399,
286,
29547,
2099,
286,
8837,
11,
6868,
393,
38455,
11,
40567,
13,
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... | [
15946,
485,
262,
1271,
286,
3871,
1719,
1388,
2099,
2563,
15077,
508,
423,
37151,
13366,
4951,
31399,
286,
29547,
2099,
286,
8837,
11,
6868,
393,
38455,
11,
40567,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
... |
Count the number of captains that have each rank Visualize by bar chart, rank by the the total number in descending. | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*) DESC | [
12332,
262,
1271,
286,
37551,
326,
423,
1123,
4279,
15612,
1096,
416,
2318,
8262,
11,
4279,
416,
262,
262,
2472,
1271,
287,
31491,
13,
46506,
10916,
11,
327,
28270,
7,
28104,
16034,
10654,
44441,
11050,
10916,
38678,
11050,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
262,
1271,
286,
37551,
326,
423,
1123,
4279,
15612,
1096,
416,
2318,
8262,
11,
4279,
416,
262,
262,
2472,
1271,
287,
31491,
13,
46506,
10916,
11,
327,
28270,
7,
28104,
16034,
10654,
44441,
11050,
10916,
38678,
11050,
327,
28270,
... |
How many codes have a density of 621.68, and a Land area (hectares) larger than 75.28? | SELECT SUM(code) FROM table_name_24 WHERE density__inh_km²_ = 621.68 AND land_area__hectares_ > 75.28 | [
2437,
867,
12416,
423,
257,
12109,
286,
718,
2481,
13,
3104,
11,
290,
257,
6379,
1989,
357,
258,
310,
3565,
8,
4025,
621,
5441,
13,
2078,
30,
46506,
35683,
7,
8189,
8,
16034,
3084,
62,
3672,
62,
1731,
33411,
12109,
834,
259,
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,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12416,
423,
257,
12109,
286,
718,
2481,
13,
3104,
11,
290,
257,
6379,
1989,
357,
258,
310,
3565,
8,
4025,
621,
5441,
13,
2078,
30,
46506,
35683,
7,
8189,
8,
16034,
3084,
62,
3672,
62,
1731,
33411,
12109,
834,
259,
71,
6... |
What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze? | SELECT MAX("Total") FROM table_69527 WHERE "Bronze" = '2' AND "Gold" = '1' AND "Silver" > '0' | [
2061,
318,
262,
4511,
2472,
1271,
286,
28057,
3917,
351,
352,
3869,
11,
517,
621,
657,
8465,
11,
290,
362,
22101,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
37381,
1983,
33411,
366,
18760,
2736,
1,
796,
705,
17,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
2472,
1271,
286,
28057,
3917,
351,
352,
3869,
11,
517,
621,
657,
8465,
11,
290,
362,
22101,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
37381,
1983,
33411,
366,
18760,
2736,
1,
796,
705,
17,
6,
5357,
... |
what is the number of patients whose days of hospital stay is greater than 16 and diagnoses icd9 code is 5781? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "16" AND diagnoses.icd9_code = "5781" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
1467,
290,
40567,
14158,
67,
24,
2438,
318,
642,
49703,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
1467,
290,
40567,
14158,
67,
24,
2438,
318,
642,
49703,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
Find out the number of patients less than 62 years old who had more than 4 days of hospital stay. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "62" AND demographic.days_stay > "4" | [
16742,
503,
262,
1271,
286,
3871,
1342,
621,
8190,
812,
1468,
508,
550,
517,
621,
604,
1528,
286,
4436,
2652,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
496,
1279,
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
] | [
16742,
503,
262,
1271,
286,
3871,
1342,
621,
8190,
812,
1468,
508,
550,
517,
621,
604,
1528,
286,
4436,
2652,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
496,
1279,
3... |
What is the country seat for the license plate code 5c? | SELECT county AS seat FROM table_name_72 WHERE license_plate_code = "5c" | [
2061,
318,
262,
1499,
5852,
329,
262,
5964,
7480,
2438,
642,
66,
30,
46506,
7968,
7054,
5852,
16034,
3084,
62,
3672,
62,
4761,
33411,
5964,
62,
6816,
62,
8189,
796,
366,
20,
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,
1
] | [
2061,
318,
262,
1499,
5852,
329,
262,
5964,
7480,
2438,
642,
66,
30,
46506,
7968,
7054,
5852,
16034,
3084,
62,
3672,
62,
4761,
33411,
5964,
62,
6816,
62,
8189,
796,
366,
20,
66,
1
] |
what are the cost of morning flights from ATLANTA to BALTIMORE | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.cit... | [
10919,
389,
262,
1575,
286,
3329,
13956,
422,
5161,
25697,
5603,
284,
347,
31429,
3955,
1581,
33635,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1575,
286,
3329,
13956,
422,
5161,
25697,
5603,
284,
347,
31429,
3955,
1581,
33635,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,... |
Count the number of patients that survived and have a lab test name of alkaline phosphatase. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.expire_flag = "0" AND lab.label = "Alkaline Phosphatase" | [
12332,
262,
1271,
286,
3871,
326,
11803,
290,
423,
257,
2248,
1332,
1438,
286,
32915,
20663,
18431,
265,
589,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
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,
1,
1,
1,
1,
1... | [
12332,
262,
1271,
286,
3871,
326,
11803,
290,
423,
257,
2248,
1332,
1438,
286,
32915,
20663,
18431,
265,
589,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a bar chart shows the distribution of hire_date and the amount of hire_date bin hire_date by weekday, and rank by the total number in descending. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY COUNT(HIRE_DATE) DESC | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
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,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11... |
What is the sum of the total of the player who won in 1979? | SELECT SUM("Total") FROM table_62505 WHERE "Year(s) won" = '1979' | [
2061,
318,
262,
2160,
286,
262,
2472,
286,
262,
2137,
508,
1839,
287,
13521,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
5237,
31654,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
33581,
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,
318,
262,
2160,
286,
262,
2472,
286,
262,
2137,
508,
1839,
287,
13521,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
5237,
31654,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
33581,
6
] |
For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, list by the X-axis in ascending please. | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1351,
416,
262,
1395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1351,
416,
262,
1395... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.