instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Who was the runner-up in the Michelob Light Open at Kingsmill? | SELECT runner_s__up FROM table_name_93 WHERE tournament = "michelob light open at kingsmill" | [
8241,
373,
262,
17490,
12,
929,
287,
262,
12386,
672,
4401,
4946,
379,
10578,
17805,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
6052,
33411,
7756,
796,
366,
9383,
2978,
672,
1657,
1280,
379,
21557,
17805,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
17490,
12,
929,
287,
262,
12386,
672,
4401,
4946,
379,
10578,
17805,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
6052,
33411,
7756,
796,
366,
9383,
2978,
672,
1657,
1280,
379,
21557,
17805,
1
] |
Which club had 1, draw, 11 lost, and a try bonus of 7? | SELECT "Club" FROM table_15255 WHERE "Drawn" = '1' AND "Lost" = '11' AND "Try bonus" = '7' | [
13828,
3430,
550,
352,
11,
3197,
11,
1367,
2626,
11,
290,
257,
1949,
7202,
286,
767,
30,
46506,
366,
42350,
1,
16034,
3084,
62,
1314,
13381,
33411,
366,
35,
5791,
1,
796,
705,
16,
6,
5357,
366,
31042,
1,
796,
705,
1157,
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
] | [
13828,
3430,
550,
352,
11,
3197,
11,
1367,
2626,
11,
290,
257,
1949,
7202,
286,
767,
30,
46506,
366,
42350,
1,
16034,
3084,
62,
1314,
13381,
33411,
366,
35,
5791,
1,
796,
705,
16,
6,
5357,
366,
31042,
1,
796,
705,
1157,
6,
5357,
... |
Who was the Original West End Cast when the irst US Tour Cast was lael van keuren? | SELECT "Original West End Cast" FROM table_15522 WHERE "First US Tour Cast" = 'lael van keuren' | [
8241,
373,
262,
13745,
2688,
5268,
5833,
618,
262,
220,
667,
1294,
9852,
5833,
373,
300,
3010,
5719,
885,
23532,
30,
46506,
366,
20556,
2688,
5268,
5833,
1,
16034,
3084,
62,
18742,
1828,
33411,
366,
5962,
1294,
9852,
5833,
1,
796,
705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
13745,
2688,
5268,
5833,
618,
262,
220,
667,
1294,
9852,
5833,
373,
300,
3010,
5719,
885,
23532,
30,
46506,
366,
20556,
2688,
5268,
5833,
1,
16034,
3084,
62,
18742,
1828,
33411,
366,
5962,
1294,
9852,
5833,
1,
796,
705... |
With a 1986 of NH and a career SR of 0 / 5 what is the results in 1985? | SELECT "1985" FROM table_76605 WHERE "Career SR" = '0 / 5' AND "1986" = 'nh' | [
3152,
257,
12113,
286,
24451,
290,
257,
3451,
16808,
286,
657,
1220,
642,
644,
318,
262,
2482,
287,
12863,
30,
46506,
366,
29110,
1,
16034,
3084,
62,
4304,
32417,
33411,
366,
17784,
263,
16808,
1,
796,
705,
15,
1220,
642,
6,
5357,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3152,
257,
12113,
286,
24451,
290,
257,
3451,
16808,
286,
657,
1220,
642,
644,
318,
262,
2482,
287,
12863,
30,
46506,
366,
29110,
1,
16034,
3084,
62,
4304,
32417,
33411,
366,
17784,
263,
16808,
1,
796,
705,
15,
1220,
642,
6,
5357,
3... |
What is the most games lost when the against is greater than 1401, and the draws greater than 0? | SELECT MAX(losses) FROM table_name_9 WHERE draws > 0 AND against > 1401 | [
2061,
318,
262,
749,
1830,
2626,
618,
262,
1028,
318,
3744,
621,
1478,
486,
11,
290,
262,
14293,
3744,
621,
657,
30,
46506,
25882,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
14293,
1875,
657,
5357,
1028,
1875,
1478,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
749,
1830,
2626,
618,
262,
1028,
318,
3744,
621,
1478,
486,
11,
290,
262,
14293,
3744,
621,
657,
30,
46506,
25882,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
14293,
1875,
657,
5357,
1028,
1875,
1478,
486... |
What's the lineup when the assist/pass was Unassisted? | SELECT lineup FROM table_name_42 WHERE assist_pass = "unassisted" | [
2061,
338,
262,
12750,
618,
262,
3342,
14,
6603,
373,
791,
42191,
30,
46506,
12750,
16034,
3084,
62,
3672,
62,
3682,
33411,
3342,
62,
6603,
796,
366,
403,
42191,
1
] | [
1,
1,
1,
1,
1,
1,
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,
12750,
618,
262,
3342,
14,
6603,
373,
791,
42191,
30,
46506,
12750,
16034,
3084,
62,
3672,
62,
3682,
33411,
3342,
62,
6603,
796,
366,
403,
42191,
1
] |
What was the # for the episode 'the birthday present'? | SELECT MAX("#") FROM table_168 WHERE "Episode" = 'The Birthday Present' | [
2061,
373,
262,
1303,
329,
262,
4471,
705,
1169,
10955,
1944,
30960,
46506,
25882,
7203,
2,
4943,
16034,
3084,
62,
14656,
33411,
366,
23758,
1,
796,
705,
464,
33511,
21662,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1303,
329,
262,
4471,
705,
1169,
10955,
1944,
30960,
46506,
25882,
7203,
2,
4943,
16034,
3084,
62,
14656,
33411,
366,
23758,
1,
796,
705,
464,
33511,
21662,
6
] |
Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price? | SELECT date FROM table_name_99 WHERE home = "montreal canadiens" AND points > 9 AND decision = "price" | [
13828,
7536,
468,
257,
5995,
286,
40689,
5305,
460,
9189,
641,
11,
290,
11045,
4025,
621,
860,
11,
290,
257,
26423,
286,
2756,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2079,
33411,
1363,
796,
366,
8691,
5305,
460,
9189,
641,
1,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7536,
468,
257,
5995,
286,
40689,
5305,
460,
9189,
641,
11,
290,
11045,
4025,
621,
860,
11,
290,
257,
26423,
286,
2756,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2079,
33411,
1363,
796,
366,
8691,
5305,
460,
9189,
641,
1,
5... |
What did the away team score at MCG? | SELECT "Away team score" FROM table_55441 WHERE "Venue" = 'mcg' | [
2061,
750,
262,
1497,
1074,
4776,
379,
13122,
38,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
2816,
39710,
33411,
366,
37522,
518,
1,
796,
705,
23209,
70,
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,
750,
262,
1497,
1074,
4776,
379,
13122,
38,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
2816,
39710,
33411,
366,
37522,
518,
1,
796,
705,
23209,
70,
6
] |
Unique users with post that contain {mhchem}. | SELECT DISTINCT OwnerUserId FROM Posts WHERE 'body' LIKE '%{mhchem}%' | [
40257,
2985,
351,
1281,
326,
3994,
1391,
76,
71,
15245,
27422,
46506,
360,
8808,
1268,
4177,
23853,
12982,
7390,
16034,
12043,
33411,
705,
2618,
6,
34178,
705,
4,
90,
76,
71,
15245,
92,
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
] | [
40257,
2985,
351,
1281,
326,
3994,
1391,
76,
71,
15245,
27422,
46506,
360,
8808,
1268,
4177,
23853,
12982,
7390,
16034,
12043,
33411,
705,
2618,
6,
34178,
705,
4,
90,
76,
71,
15245,
92,
4,
6
] |
Give me a histogram for what are the names of the technicians and how many machines are they assigned to repair?, rank names in desc order. | SELECT Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name ORDER BY Name DESC | [
23318,
502,
257,
1554,
21857,
329,
644,
389,
262,
3891,
286,
262,
33519,
290,
703,
867,
8217,
389,
484,
8686,
284,
9185,
21747,
4279,
3891,
287,
1715,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
9185,
62,
562,
16747,
7054,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23318,
502,
257,
1554,
21857,
329,
644,
389,
262,
3891,
286,
262,
33519,
290,
703,
867,
8217,
389,
484,
8686,
284,
9185,
21747,
4279,
3891,
287,
1715,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
9185,
62,
562,
16747,
7054,... |
Which 2011's tournament was Indian Wells? | SELECT "2011" FROM table_5542 WHERE "Tournament" = 'indian wells' | [
13828,
2813,
338,
7756,
373,
3942,
18292,
30,
46506,
366,
9804,
1,
16034,
3084,
62,
2816,
3682,
33411,
366,
51,
5138,
1,
796,
705,
521,
666,
22571,
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,
2813,
338,
7756,
373,
3942,
18292,
30,
46506,
366,
9804,
1,
16034,
3084,
62,
2816,
3682,
33411,
366,
51,
5138,
1,
796,
705,
521,
666,
22571,
6
] |
What is the sum of the average of Hawaii, with an interviewer larger than 9.636? | SELECT SUM("Average") FROM table_54689 WHERE "State" = 'hawaii' AND "Interview" > '9.636' | [
2061,
318,
262,
2160,
286,
262,
2811,
286,
13708,
11,
351,
281,
39877,
4025,
621,
860,
13,
21,
2623,
30,
46506,
35683,
7203,
26287,
4943,
16034,
3084,
62,
4051,
40523,
33411,
366,
9012,
1,
796,
705,
26615,
42648,
6,
5357,
366,
39945,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
286,
13708,
11,
351,
281,
39877,
4025,
621,
860,
13,
21,
2623,
30,
46506,
35683,
7203,
26287,
4943,
16034,
3084,
62,
4051,
40523,
33411,
366,
9012,
1,
796,
705,
26615,
42648,
6,
5357,
366,
39945,
... |
What's the total byes for more than 1 draw? | SELECT COUNT(byes) FROM table_name_74 WHERE draws > 1 | [
2061,
338,
262,
2472,
416,
274,
329,
517,
621,
352,
3197,
30,
46506,
327,
28270,
7,
1525,
274,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
14293,
1875,
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
] | [
2061,
338,
262,
2472,
416,
274,
329,
517,
621,
352,
3197,
30,
46506,
327,
28270,
7,
1525,
274,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
14293,
1875,
352
] |
Name the number of bowl for lee corso, gene chizik and chip kelly | SELECT COUNT(bowl) FROM table_2724704_5 WHERE studio_analyst_s_ = "Lee Corso, Gene Chizik and Chip Kelly" | [
5376,
262,
1271,
286,
9396,
329,
443,
68,
1162,
568,
11,
9779,
442,
528,
1134,
290,
11594,
885,
12810,
46506,
327,
28270,
7,
36859,
8,
16034,
3084,
62,
1983,
1731,
32869,
62,
20,
33411,
8034,
62,
272,
21470,
62,
82,
62,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1271,
286,
9396,
329,
443,
68,
1162,
568,
11,
9779,
442,
528,
1134,
290,
11594,
885,
12810,
46506,
327,
28270,
7,
36859,
8,
16034,
3084,
62,
1983,
1731,
32869,
62,
20,
33411,
8034,
62,
272,
21470,
62,
82,
62,
796,
366,
... |
what is the cfl team where college is waterloo? | SELECT COUNT(cfl_team) FROM table_26996293_4 WHERE college = "Waterloo" | [
10919,
318,
262,
269,
2704,
1074,
810,
4152,
318,
1660,
29680,
30,
46506,
327,
28270,
7,
66,
2704,
62,
15097,
8,
16034,
3084,
62,
2075,
38565,
31675,
62,
19,
33411,
4152,
796,
366,
19184,
29680,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
269,
2704,
1074,
810,
4152,
318,
1660,
29680,
30,
46506,
327,
28270,
7,
66,
2704,
62,
15097,
8,
16034,
3084,
62,
2075,
38565,
31675,
62,
19,
33411,
4152,
796,
366,
19184,
29680,
1
] |
Do ID askers return to the site?. | SELECT COUNT(u.Id) AS "# Questions", MIN(p.Id) AS "post_link", u.Id AS "user_link", u.Reputation AS "Reputation", DATEDIFF(day, u.LastAccessDate, GETDATE()) AS "last access to today", DATEDIFF(day, u.CreationDate, LastAccessDate) AS "creation to last access" FROM Posts AS p JOIN Users AS u ON p.OwnerUserId = u.Id WHERE... | [
5211,
4522,
1265,
364,
1441,
284,
262,
2524,
30,
13,
46506,
327,
28270,
7,
84,
13,
7390,
8,
7054,
25113,
20396,
1600,
20625,
7,
79,
13,
7390,
8,
7054,
366,
7353,
62,
8726,
1600,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5211,
4522,
1265,
364,
1441,
284,
262,
2524,
30,
13,
46506,
327,
28270,
7,
84,
13,
7390,
8,
7054,
25113,
20396,
1600,
20625,
7,
79,
13,
7390,
8,
7054,
366,
7353,
62,
8726,
1600,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
334,... |
Name the young rider classification with laudelino cubino | SELECT "Young rider classification" FROM table_17568 WHERE "Winner" = 'Laudelino Cubino' | [
5376,
262,
1862,
17876,
17923,
351,
28907,
417,
2879,
13617,
2879,
46506,
366,
20917,
17876,
17923,
1,
16034,
3084,
62,
17430,
3104,
33411,
366,
48056,
1,
796,
705,
43,
3885,
417,
2879,
7070,
2879,
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
] | [
5376,
262,
1862,
17876,
17923,
351,
28907,
417,
2879,
13617,
2879,
46506,
366,
20917,
17876,
17923,
1,
16034,
3084,
62,
17430,
3104,
33411,
366,
48056,
1,
796,
705,
43,
3885,
417,
2879,
7070,
2879,
6
] |
How many numbers are there for kam wa7ed fina? | SELECT COUNT("No.") FROM table_30202 WHERE "Title" = 'Kam Wa7ed Fina' | [
2437,
867,
3146,
389,
612,
329,
479,
321,
2082,
22,
276,
957,
64,
30,
46506,
327,
28270,
7203,
2949,
19570,
16034,
3084,
62,
1270,
19004,
33411,
366,
19160,
1,
796,
705,
42,
321,
15329,
22,
276,
376,
1437,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3146,
389,
612,
329,
479,
321,
2082,
22,
276,
957,
64,
30,
46506,
327,
28270,
7203,
2949,
19570,
16034,
3084,
62,
1270,
19004,
33411,
366,
19160,
1,
796,
705,
42,
321,
15329,
22,
276,
376,
1437,
6
] |
which party/alliance has more than 300,000 votes ? | SELECT "name of the party/alliance" FROM table_204_28 WHERE "number of votes" > 300000 | [
4758,
2151,
14,
439,
3610,
468,
517,
621,
5867,
11,
830,
5690,
5633,
46506,
366,
3672,
286,
262,
2151,
14,
439,
3610,
1,
16034,
3084,
62,
18638,
62,
2078,
33411,
366,
17618,
286,
5690,
1,
1875,
5867,
830
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2151,
14,
439,
3610,
468,
517,
621,
5867,
11,
830,
5690,
5633,
46506,
366,
3672,
286,
262,
2151,
14,
439,
3610,
1,
16034,
3084,
62,
18638,
62,
2078,
33411,
366,
17618,
286,
5690,
1,
1875,
5867,
830
] |
What was the date of the Arden Street Oval game? | SELECT "Date" FROM table_32551 WHERE "Venue" = 'arden street oval' | [
2061,
373,
262,
3128,
286,
262,
943,
6559,
3530,
25165,
983,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
26582,
4349,
33411,
366,
37522,
518,
1,
796,
705,
5872,
4675,
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
] | [
2061,
373,
262,
3128,
286,
262,
943,
6559,
3530,
25165,
983,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
26582,
4349,
33411,
366,
37522,
518,
1,
796,
705,
5872,
4675,
41186,
6
] |
how many total where last/current driver(s) is narain karthikeyan ( 2010 ) | SELECT COUNT(total) FROM table_19312274_2 WHERE last_current_driver_s_ = "Narain Karthikeyan ( 2010 )" | [
4919,
867,
2472,
810,
938,
14,
14421,
4639,
7,
82,
8,
318,
30083,
391,
479,
11999,
522,
4121,
357,
3050,
1267,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
24943,
1065,
28857,
62,
17,
33411,
938,
62,
14421,
62,
26230,
62,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
810,
938,
14,
14421,
4639,
7,
82,
8,
318,
30083,
391,
479,
11999,
522,
4121,
357,
3050,
1267,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
24943,
1065,
28857,
62,
17,
33411,
938,
62,
14421,
62,
26230,
62,
82,
... |
count the number of patients whose insurance is medicare and procedure short title is iv infusion clofarabine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicare" AND procedures.short_title = "IV infusion clofarabine" | [
9127,
262,
1271,
286,
3871,
3025,
5096,
318,
6924,
533,
290,
8771,
1790,
3670,
318,
21628,
35547,
537,
1659,
283,
397,
500,
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... | [
9127,
262,
1271,
286,
3871,
3025,
5096,
318,
6924,
533,
290,
8771,
1790,
3670,
318,
21628,
35547,
537,
1659,
283,
397,
500,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357... |
Which winner has a Challenge Loser of gisel? | SELECT challenge_winner FROM table_name_19 WHERE challenge_loser = "gisel" | [
13828,
8464,
468,
257,
13879,
5401,
263,
286,
308,
36811,
30,
46506,
4427,
62,
39791,
16034,
3084,
62,
3672,
62,
1129,
33411,
4427,
62,
75,
13416,
796,
366,
70,
36811,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
8464,
468,
257,
13879,
5401,
263,
286,
308,
36811,
30,
46506,
4427,
62,
39791,
16034,
3084,
62,
3672,
62,
1129,
33411,
4427,
62,
75,
13416,
796,
366,
70,
36811,
1
] |
What was the result of the fight when Tetsuji Kato's record was 19-9? | SELECT "Res." FROM table_49095 WHERE "Record" = '19-9' | [
2061,
373,
262,
1255,
286,
262,
1907,
618,
309,
30470,
7285,
509,
5549,
338,
1700,
373,
678,
12,
24,
30,
46506,
366,
4965,
526,
16034,
3084,
62,
2920,
2931,
20,
33411,
366,
23739,
1,
796,
705,
1129,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
1907,
618,
309,
30470,
7285,
509,
5549,
338,
1700,
373,
678,
12,
24,
30,
46506,
366,
4965,
526,
16034,
3084,
62,
2920,
2931,
20,
33411,
366,
23739,
1,
796,
705,
1129,
12,
24,
6
] |
who ranked right after turkey ? | SELECT "nation" FROM table_203_812 WHERE "rank" = (SELECT "rank" FROM table_203_812 WHERE "nation" = 'turkey') + 1 | [
8727,
10307,
826,
706,
26876,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
22416,
62,
23,
1065,
33411,
366,
43027,
1,
796,
357,
46506,
366,
43027,
1,
16034,
3084,
62,
22416,
62,
23,
1065,
33411,
366,
25729,
1,
796,
705,
36590,
2539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
10307,
826,
706,
26876,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
22416,
62,
23,
1065,
33411,
366,
43027,
1,
796,
357,
46506,
366,
43027,
1,
16034,
3084,
62,
22416,
62,
23,
1065,
33411,
366,
25729,
1,
796,
705,
36590,
2539,
... |
In which location did he win the Superbrawl 16 event? | SELECT location FROM table_name_57 WHERE res = "win" AND event = "superbrawl 16" | [
818,
543,
4067,
750,
339,
1592,
262,
3115,
65,
13132,
1467,
1785,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3553,
33411,
581,
796,
366,
5404,
1,
5357,
1785,
796,
366,
16668,
65,
13132,
1467,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
543,
4067,
750,
339,
1592,
262,
3115,
65,
13132,
1467,
1785,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3553,
33411,
581,
796,
366,
5404,
1,
5357,
1785,
796,
366,
16668,
65,
13132,
1467,
1
] |
How many events have each participants attended? Show their total number by each participant type code using a bar chart, rank in asc by the total number of count(*). | SELECT T1.Participant_Type_Code, SUM(COUNT(*)) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_Type_Code ORDER BY SUM(COUNT(*)) | [
2437,
867,
2995,
423,
1123,
6809,
9141,
30,
5438,
511,
2472,
1271,
416,
1123,
18399,
2099,
2438,
1262,
257,
2318,
8262,
11,
4279,
287,
10570,
416,
262,
2472,
1271,
286,
954,
46491,
737,
46506,
309,
16,
13,
34363,
415,
62,
6030,
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,
2995,
423,
1123,
6809,
9141,
30,
5438,
511,
2472,
1271,
416,
1123,
18399,
2099,
2438,
1262,
257,
2318,
8262,
11,
4279,
287,
10570,
416,
262,
2472,
1271,
286,
954,
46491,
737,
46506,
309,
16,
13,
34363,
415,
62,
6030,
62,
... |
What was the attendance at war memorial stadium? | SELECT "Attenmdance" FROM table_4855 WHERE "Stadium" = 'war memorial stadium' | [
2061,
373,
262,
14858,
379,
1175,
17357,
10308,
30,
46506,
366,
8086,
268,
9132,
590,
1,
16034,
3084,
62,
2780,
2816,
33411,
366,
1273,
6271,
1,
796,
705,
5767,
17357,
10308,
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,
373,
262,
14858,
379,
1175,
17357,
10308,
30,
46506,
366,
8086,
268,
9132,
590,
1,
16034,
3084,
62,
2780,
2816,
33411,
366,
1273,
6271,
1,
796,
705,
5767,
17357,
10308,
6
] |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and code , and group by attribute founder, and order by the Code in desc. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Code DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
290,
1502,
416,
262,
6127,
287,
1715,
13,
46506,
309,
16,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
290,
1502,
416,
262,
6127,
287,
1715,
13,
46506,
309,
16,
13,
5376,... |
What is the Date of the match with a Score in the final of 6 3, 6 3, 2 6, 6 4? | SELECT date FROM table_name_9 WHERE score_in_the_final = "6–3, 6–3, 2–6, 6–4" | [
2061,
318,
262,
7536,
286,
262,
2872,
351,
257,
15178,
287,
262,
2457,
286,
718,
513,
11,
718,
513,
11,
362,
718,
11,
718,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
24,
33411,
4776,
62,
259,
62,
1169,
62,
20311,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
286,
262,
2872,
351,
257,
15178,
287,
262,
2457,
286,
718,
513,
11,
718,
513,
11,
362,
718,
11,
718,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
24,
33411,
4776,
62,
259,
62,
1169,
62,
20311,
796,
366,
... |
have patient 14836 had a hematocrit test in 2105? | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hematocrit') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14836) AND STRFTIME('%y', labevents.charttime) = '2105' | [
14150,
5827,
22613,
2623,
550,
257,
339,
6759,
420,
799,
1332,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
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... | [
14150,
5827,
22613,
2623,
550,
257,
339,
6759,
420,
799,
1332,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
312,
... |
Name the total number of kenesia for african record | SELECT COUNT(kenenisa_bekele___eth__) FROM table_24011830_2 WHERE world_record = "African record" | [
5376,
262,
2472,
1271,
286,
479,
18719,
544,
329,
6580,
37189,
1700,
46506,
327,
28270,
7,
3464,
268,
9160,
62,
1350,
365,
293,
17569,
2788,
834,
8,
16034,
3084,
62,
1731,
486,
1507,
1270,
62,
17,
33411,
995,
62,
22105,
796,
366,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2472,
1271,
286,
479,
18719,
544,
329,
6580,
37189,
1700,
46506,
327,
28270,
7,
3464,
268,
9160,
62,
1350,
365,
293,
17569,
2788,
834,
8,
16034,
3084,
62,
1731,
486,
1507,
1270,
62,
17,
33411,
995,
62,
22105,
796,
366,
43... |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a line chart about the change of employee_id over hire_date , and rank by the x axis in asc. | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
1627,
8262,
546,
262,
1487,
286,
6538,
62,
312,
625,
11078,
62,
4475,
837,
290,
4279,
416,
262,
2124,
16488,
287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3197,
257,
1627,
8262,
546,
262,
1487,
286,
6538,
62,
312,
625,
11078,
62,
4475,
837,
290,
4279,
416,
262,
2124,
16488,
287,... |
What is Opponents In The Final, when Surface is 'Carpet', and when Tournament is 'Milan , Italy'? | SELECT opponents_in_the_final FROM table_name_61 WHERE surface = "carpet" AND tournament = "milan , italy" | [
2061,
318,
9385,
3906,
554,
383,
8125,
11,
618,
20321,
318,
705,
34,
5117,
316,
3256,
290,
618,
9595,
318,
705,
24857,
272,
837,
8031,
30960,
46506,
7691,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
5333,
33411,
4417,
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
] | [
2061,
318,
9385,
3906,
554,
383,
8125,
11,
618,
20321,
318,
705,
34,
5117,
316,
3256,
290,
618,
9595,
318,
705,
24857,
272,
837,
8031,
30960,
46506,
7691,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
5333,
33411,
4417,
7... |
What are some survey papers on Multiuser Receiver problems in Decision Feedback ? | SELECT DISTINCT paperkeyphrase.paperid FROM keyphrase, paperkeyphrase WHERE keyphrase.keyphrasename IN ('Multiuser Receiver', 'Decision Feedback') GROUP BY paperkeyphrase.paperid HAVING COUNT(DISTINCT keyphrase.keyphraseid) = 1 | [
2061,
389,
617,
5526,
9473,
319,
7854,
3754,
263,
39106,
2761,
287,
26423,
37774,
5633,
46506,
360,
8808,
1268,
4177,
3348,
2539,
34675,
13,
20189,
312,
16034,
1994,
34675,
11,
3348,
2539,
34675,
33411,
1994,
34675,
13,
2539,
746,
8847,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
617,
5526,
9473,
319,
7854,
3754,
263,
39106,
2761,
287,
26423,
37774,
5633,
46506,
360,
8808,
1268,
4177,
3348,
2539,
34675,
13,
20189,
312,
16034,
1994,
34675,
11,
3348,
2539,
34675,
33411,
1994,
34675,
13,
2539,
746,
8847,
... |
Weighing less than 85, with less than 340 Spikes, what is Gilberto Godoy Filho's Height | SELECT COUNT(height) FROM table_name_22 WHERE spike < 340 AND name = "gilberto godoy filho" AND weight < 85 | [
1135,
394,
278,
1342,
621,
7600,
11,
351,
1342,
621,
28560,
1338,
7938,
11,
644,
318,
10689,
32371,
1793,
726,
7066,
8873,
338,
27280,
46506,
327,
28270,
7,
17015,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
20240,
1279,
28560,
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
] | [
1135,
394,
278,
1342,
621,
7600,
11,
351,
1342,
621,
28560,
1338,
7938,
11,
644,
318,
10689,
32371,
1793,
726,
7066,
8873,
338,
27280,
46506,
327,
28270,
7,
17015,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
20240,
1279,
28560,
5357,
1... |
Show the number of the countries that have managers of age above 50 or below 46, and could you show from high to low by the total number? | SELECT Country, COUNT(Country) FROM manager WHERE Age > 50 OR Age < 46 GROUP BY Country ORDER BY COUNT(Country) DESC | [
15307,
262,
1271,
286,
262,
2678,
326,
423,
11663,
286,
2479,
2029,
2026,
393,
2174,
6337,
11,
290,
714,
345,
905,
422,
1029,
284,
1877,
416,
262,
2472,
1271,
30,
46506,
12946,
11,
327,
28270,
7,
33921,
8,
16034,
4706,
33411,
7129,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2678,
326,
423,
11663,
286,
2479,
2029,
2026,
393,
2174,
6337,
11,
290,
714,
345,
905,
422,
1029,
284,
1877,
416,
262,
2472,
1271,
30,
46506,
12946,
11,
327,
28270,
7,
33921,
8,
16034,
4706,
33411,
7129,
... |
Name the D 42 which has a D 46 of r 26 | SELECT d_42 FROM table_name_6 WHERE d_46 = "r 26" | [
5376,
262,
360,
5433,
543,
468,
257,
360,
6337,
286,
374,
2608,
46506,
288,
62,
3682,
16034,
3084,
62,
3672,
62,
21,
33411,
288,
62,
3510,
796,
366,
81,
2608,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
360,
5433,
543,
468,
257,
360,
6337,
286,
374,
2608,
46506,
288,
62,
3682,
16034,
3084,
62,
3672,
62,
21,
33411,
288,
62,
3510,
796,
366,
81,
2608,
1
] |
Where where the bbc three weekly ranking for episode no. 5? | SELECT bbc_three_weekly_ranking FROM table_24399615_3 WHERE episode_no = 5 | [
8496,
810,
262,
275,
15630,
1115,
10273,
12759,
329,
4471,
645,
13,
642,
30,
46506,
275,
15630,
62,
15542,
62,
45291,
62,
28405,
16034,
3084,
62,
26660,
38565,
1314,
62,
18,
33411,
4471,
62,
3919,
796,
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
] | [
8496,
810,
262,
275,
15630,
1115,
10273,
12759,
329,
4471,
645,
13,
642,
30,
46506,
275,
15630,
62,
15542,
62,
45291,
62,
28405,
16034,
3084,
62,
26660,
38565,
1314,
62,
18,
33411,
4471,
62,
3919,
796,
642
] |
what percentile is the calculated total co2 value of 32.0 in the same age group as patient 25847 during the first hospital encounter? | SELECT DISTINCT t1.c1 FROM (SELECT labevents.valuenum, PERCENT_RANK() OVER (ORDER BY labevents.valuenum) AS c1 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'calculated total co2') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE adm... | [
10919,
37894,
318,
262,
10488,
2472,
763,
17,
1988,
286,
3933,
13,
15,
287,
262,
976,
2479,
1448,
355,
5827,
37528,
2857,
1141,
262,
717,
4436,
8791,
30,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
66,
16,
16034,
357,
46506,
2248,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
37894,
318,
262,
10488,
2472,
763,
17,
1988,
286,
3933,
13,
15,
287,
262,
976,
2479,
1448,
355,
5827,
37528,
2857,
1141,
262,
717,
4436,
8791,
30,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
66,
16,
16034,
357,
46506,
2248,
31... |
The event that has a record of 1-0 is none of the above. | SELECT event FROM table_name_71 WHERE record = "1-0" | [
464,
1785,
326,
468,
257,
1700,
286,
352,
12,
15,
318,
4844,
286,
262,
2029,
13,
46506,
1785,
16034,
3084,
62,
3672,
62,
4869,
33411,
1700,
796,
366,
16,
12,
15,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
464,
1785,
326,
468,
257,
1700,
286,
352,
12,
15,
318,
4844,
286,
262,
2029,
13,
46506,
1785,
16034,
3084,
62,
3672,
62,
4869,
33411,
1700,
796,
366,
16,
12,
15,
1
] |
what is the definition of the last channel ? | SELECT "definition" FROM table_203_51 ORDER BY id DESC LIMIT 1 | [
10919,
318,
262,
6770,
286,
262,
938,
6518,
5633,
46506,
366,
46758,
1,
16034,
3084,
62,
22416,
62,
4349,
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
] | [
10919,
318,
262,
6770,
286,
262,
938,
6518,
5633,
46506,
366,
46758,
1,
16034,
3084,
62,
22416,
62,
4349,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] |
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, give me the comparison about the average of department_id over the job_id , and group by attribute job_id, and I want to sort in asc by the JOB_ID. | 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 JOB_ID | [
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,
1577,
502,
262,
7208,
546,
262,
2811,
286,
5011,
62,
312,
625,
262,
1693,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
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,
1577,
502,
262,
7208,
546,
262,
2811,
286,
5011,
62,
312,
625,
262,
1693,
62,
... |
how much does it cost vancocin. | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'vancocin') | [
4919,
881,
857,
340,
1575,
410,
1192,
420,
259,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
14103,
13,
1150,
3299... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
881,
857,
340,
1575,
410,
1192,
420,
259,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
14103,
13,
1150,
3299... |
What was the To par of the golfer that placed t5? | SELECT to_par FROM table_name_66 WHERE place = "t5" | [
2061,
373,
262,
1675,
1582,
286,
262,
43791,
2232,
326,
4624,
256,
20,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
2791,
33411,
1295,
796,
366,
83,
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,
373,
262,
1675,
1582,
286,
262,
43791,
2232,
326,
4624,
256,
20,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
2791,
33411,
1295,
796,
366,
83,
20,
1
] |
What are the years when the grizzles had a player who attended Villanova? | SELECT years_for_grizzlies FROM table_name_37 WHERE school_club_team = "villanova" | [
2061,
389,
262,
812,
618,
262,
46307,
829,
550,
257,
2137,
508,
9141,
9757,
40993,
30,
46506,
812,
62,
1640,
62,
70,
380,
3019,
13508,
16034,
3084,
62,
3672,
62,
2718,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
41082,
40993,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
812,
618,
262,
46307,
829,
550,
257,
2137,
508,
9141,
9757,
40993,
30,
46506,
812,
62,
1640,
62,
70,
380,
3019,
13508,
16034,
3084,
62,
3672,
62,
2718,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
41082,
40993,
1
] |
What is the gross capacity where the net capacity is 1380? | SELECT MIN("Gross Capacity (MW)") FROM table_24253 WHERE "Net Capacity (MW)" = '1380' | [
2061,
318,
262,
10319,
5339,
810,
262,
2010,
5339,
318,
1511,
1795,
30,
46506,
20625,
7203,
38,
1214,
29765,
357,
14326,
8,
4943,
16034,
3084,
62,
1731,
28592,
33411,
366,
7934,
29765,
357,
14326,
16725,
796,
705,
1485,
1795,
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,
318,
262,
10319,
5339,
810,
262,
2010,
5339,
318,
1511,
1795,
30,
46506,
20625,
7203,
38,
1214,
29765,
357,
14326,
8,
4943,
16034,
3084,
62,
1731,
28592,
33411,
366,
7934,
29765,
357,
14326,
16725,
796,
705,
1485,
1795,
6
] |
how many unmarried patients take medication via left eye? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.marital_status = "SINGLE" AND prescriptions.route = "LEFT EYE" | [
4919,
867,
39183,
3871,
1011,
14103,
2884,
1364,
4151,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
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,
1... | [
4919,
867,
39183,
3871,
1011,
14103,
2884,
1364,
4151,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
1... |
What is the destination of the Garib nwaz exp train? | SELECT destination FROM table_name_87 WHERE train_name = "garib nwaz exp" | [
2061,
318,
262,
10965,
286,
262,
7164,
571,
299,
86,
1031,
1033,
4512,
30,
46506,
10965,
16034,
3084,
62,
3672,
62,
5774,
33411,
4512,
62,
3672,
796,
366,
4563,
571,
299,
86,
1031,
1033,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10965,
286,
262,
7164,
571,
299,
86,
1031,
1033,
4512,
30,
46506,
10965,
16034,
3084,
62,
3672,
62,
5774,
33411,
4512,
62,
3672,
796,
366,
4563,
571,
299,
86,
1031,
1033,
1
] |
SELECT Users by Reputation >= 5000. | SELECT Users.DisplayName, Users.Reputation, Users.WebsiteUrl FROM Users WHERE Reputation >= 5000 ORDER BY Reputation DESC | [
46506,
18987,
416,
1432,
7094,
18189,
23336,
13,
46506,
18987,
13,
23114,
5376,
11,
18987,
13,
6207,
7094,
11,
18987,
13,
33420,
28165,
16034,
18987,
33411,
1432,
7094,
18189,
23336,
38678,
11050,
1432,
7094,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
46506,
18987,
416,
1432,
7094,
18189,
23336,
13,
46506,
18987,
13,
23114,
5376,
11,
18987,
13,
6207,
7094,
11,
18987,
13,
33420,
28165,
16034,
18987,
33411,
1432,
7094,
18189,
23336,
38678,
11050,
1432,
7094,
22196,
34
] |
where does flight UA 281 from BOSTON to OAKLAND stop | SELECT DISTINCT flight_stop.stop_airport FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight, flight_stop WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND flight.flight_number = 281 AND flight.to_airport = AIR... | [
3003,
857,
5474,
46164,
39882,
422,
347,
10892,
1340,
284,
440,
10206,
28182,
2245,
46506,
360,
8808,
1268,
4177,
5474,
62,
11338,
13,
11338,
62,
958,
634,
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... | [
3003,
857,
5474,
46164,
39882,
422,
347,
10892,
1340,
284,
440,
10206,
28182,
2245,
46506,
360,
8808,
1268,
4177,
5474,
62,
11338,
13,
11338,
62,
958,
634,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
... |
what was the first game of the year ? | SELECT "game of the year" FROM table_204_675 ORDER BY "year" LIMIT 1 | [
10919,
373,
262,
717,
983,
286,
262,
614,
5633,
46506,
366,
6057,
286,
262,
614,
1,
16034,
3084,
62,
18638,
62,
42444,
38678,
11050,
366,
1941,
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
] | [
10919,
373,
262,
717,
983,
286,
262,
614,
5633,
46506,
366,
6057,
286,
262,
614,
1,
16034,
3084,
62,
18638,
62,
42444,
38678,
11050,
366,
1941,
1,
27564,
2043,
352
] |
What is the attendance number for the record of 17-22? | SELECT "Attendance" FROM table_6662 WHERE "Record" = '17-22' | [
2061,
318,
262,
14858,
1271,
329,
262,
1700,
286,
1596,
12,
1828,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2791,
5237,
33411,
366,
23739,
1,
796,
705,
1558,
12,
1828,
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
] | [
2061,
318,
262,
14858,
1271,
329,
262,
1700,
286,
1596,
12,
1828,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2791,
5237,
33411,
366,
23739,
1,
796,
705,
1558,
12,
1828,
6
] |
For those records from the products and each product's manufacturer, find name and the sum of revenue , and group by attribute name, and visualize them by a bar chart, I want to sort in desc by the Y-axis. | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T2.Revenue DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
3297,
287,
1715,
416,
262,
575,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
3297,
287,
1715,
416,
262,
575,... |
What is the donor payment in Belgium? | SELECT "Donor payment" FROM table_20600 WHERE "Country" = 'Belgium' | [
2061,
318,
262,
17052,
6074,
287,
15664,
30,
46506,
366,
3987,
273,
6074,
1,
16034,
3084,
62,
1238,
8054,
33411,
366,
33921,
1,
796,
705,
12193,
70,
1505,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
17052,
6074,
287,
15664,
30,
46506,
366,
3987,
273,
6074,
1,
16034,
3084,
62,
1238,
8054,
33411,
366,
33921,
1,
796,
705,
12193,
70,
1505,
6
] |
What is the tour Apps when the career caps show 15? | SELECT tour_apps FROM table_name_57 WHERE career_caps = 15 | [
2061,
318,
262,
4205,
27710,
618,
262,
3451,
11022,
905,
1315,
30,
46506,
4205,
62,
18211,
16034,
3084,
62,
3672,
62,
3553,
33411,
3451,
62,
27979,
796,
1315
] | [
1,
1,
1,
1,
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,
4205,
27710,
618,
262,
3451,
11022,
905,
1315,
30,
46506,
4205,
62,
18211,
16034,
3084,
62,
3672,
62,
3553,
33411,
3451,
62,
27979,
796,
1315
] |
What is the lowest Round, when College/Team is 'Kansas', and when Pick is less than 56? | SELECT MIN("Round") FROM table_44885 WHERE "College/Team" = 'kansas' AND "Pick" < '56' | [
2061,
318,
262,
9016,
10485,
11,
618,
5535,
14,
15592,
318,
705,
43451,
3256,
290,
618,
12346,
318,
1342,
621,
7265,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
2598,
44230,
33411,
366,
38951,
14,
15592,
1,
796,
705,
74,
661... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10485,
11,
618,
5535,
14,
15592,
318,
705,
43451,
3256,
290,
618,
12346,
318,
1342,
621,
7265,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
2598,
44230,
33411,
366,
38951,
14,
15592,
1,
796,
705,
74,
661... |
How many documents do not have any expense? | SELECT COUNT(*) FROM Documents WHERE NOT document_id IN (SELECT document_id FROM Documents_with_expenses) | [
2437,
867,
4963,
466,
407,
423,
597,
10907,
30,
46506,
327,
28270,
7,
28104,
16034,
33267,
33411,
5626,
3188,
62,
312,
3268,
357,
46506,
3188,
62,
312,
16034,
33267,
62,
4480,
62,
11201,
4541,
8
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
4963,
466,
407,
423,
597,
10907,
30,
46506,
327,
28270,
7,
28104,
16034,
33267,
33411,
5626,
3188,
62,
312,
3268,
357,
46506,
3188,
62,
312,
16034,
33267,
62,
4480,
62,
11201,
4541,
8
] |
Which courses will be taught by Dr. Selena Smith next semester ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Selena Smith%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offe... | [
13828,
10902,
481,
307,
7817,
416,
1583,
13,
15300,
8107,
4176,
1306,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
601... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10902,
481,
307,
7817,
416,
1583,
13,
15300,
8107,
4176,
1306,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
601... |
cheapest fare from MEMPHIS to SEATTLE | 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 = 'MEMPHIS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city... | [
2395,
35746,
14505,
422,
35153,
11909,
1797,
284,
7946,
1404,
14990,
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,
62,
15271,
7054,
31600,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2395,
35746,
14505,
422,
35153,
11909,
1797,
284,
7946,
1404,
14990,
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,
62,
15271,
7054,
31600,
... |
what is the tournament when 2011 is qf and 2012 is sf? | SELECT "Tournament" FROM table_15068 WHERE "2011" = 'qf' AND "2012" = 'sf' | [
10919,
318,
262,
7756,
618,
2813,
318,
10662,
69,
290,
2321,
318,
264,
69,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
8628,
3104,
33411,
366,
9804,
1,
796,
705,
80,
69,
6,
5357,
366,
6999,
1,
796,
705,
28202,
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
] | [
10919,
318,
262,
7756,
618,
2813,
318,
10662,
69,
290,
2321,
318,
264,
69,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
8628,
3104,
33411,
366,
9804,
1,
796,
705,
80,
69,
6,
5357,
366,
6999,
1,
796,
705,
28202,
6
] |
What is Name, when Moving To is 'NEC Nijmegen'? | SELECT "Name" FROM table_49811 WHERE "Moving To" = 'nec nijmegen' | [
2061,
318,
6530,
11,
618,
26768,
1675,
318,
705,
45,
2943,
399,
2926,
1326,
5235,
30960,
46506,
366,
5376,
1,
16034,
3084,
62,
36260,
1157,
33411,
366,
33622,
1675,
1,
796,
705,
32984,
299,
2926,
1326,
5235,
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,
6530,
11,
618,
26768,
1675,
318,
705,
45,
2943,
399,
2926,
1326,
5235,
30960,
46506,
366,
5376,
1,
16034,
3084,
62,
36260,
1157,
33411,
366,
33622,
1675,
1,
796,
705,
32984,
299,
2926,
1326,
5235,
6
] |
until 08/2105, how many times was prescribed potassium phosphate 3 mmol/ml15 ml inj to patient 022-151182? | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-151182')) AND medication.drugname = 'potassium phosphate 3 mmol/ml15 ml in... | [
28446,
8487,
14,
17,
13348,
11,
703,
867,
1661,
373,
14798,
33156,
46926,
513,
47340,
14,
4029,
1314,
25962,
2529,
284,
5827,
657,
1828,
12,
1314,
1157,
6469,
30,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
26029,
20850... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
28446,
8487,
14,
17,
13348,
11,
703,
867,
1661,
373,
14798,
33156,
46926,
513,
47340,
14,
4029,
1314,
25962,
2529,
284,
5827,
657,
1828,
12,
1314,
1157,
6469,
30,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
26029,
20850... |
Which Allied Force targetted Woensdrecht? | SELECT allied_forces FROM table_1160161_12 WHERE target = "Woensdrecht" | [
13828,
28234,
5221,
2496,
1513,
22173,
641,
67,
260,
21474,
30,
46506,
22034,
62,
27087,
16034,
3084,
62,
18298,
486,
5333,
62,
1065,
33411,
2496,
796,
366,
49450,
641,
67,
260,
21474,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28234,
5221,
2496,
1513,
22173,
641,
67,
260,
21474,
30,
46506,
22034,
62,
27087,
16034,
3084,
62,
18298,
486,
5333,
62,
1065,
33411,
2496,
796,
366,
49450,
641,
67,
260,
21474,
1
] |
Which title has xbox as the platform with a year prior to 2006? | SELECT title FROM table_name_85 WHERE platform = "xbox" AND year < 2006 | [
13828,
3670,
468,
2124,
3524,
355,
262,
3859,
351,
257,
614,
3161,
284,
4793,
30,
46506,
3670,
16034,
3084,
62,
3672,
62,
5332,
33411,
3859,
796,
366,
87,
3524,
1,
5357,
614,
1279,
4793
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3670,
468,
2124,
3524,
355,
262,
3859,
351,
257,
614,
3161,
284,
4793,
30,
46506,
3670,
16034,
3084,
62,
3672,
62,
5332,
33411,
3859,
796,
366,
87,
3524,
1,
5357,
614,
1279,
4793
] |
What Entrant older than 1950 has points smaller than 7? | SELECT entrant FROM table_name_82 WHERE year > 1950 AND points < 7 | [
2061,
7232,
5250,
4697,
621,
11445,
468,
2173,
4833,
621,
767,
30,
46506,
920,
5250,
16034,
3084,
62,
3672,
62,
6469,
33411,
614,
1875,
11445,
5357,
2173,
1279,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
7232,
5250,
4697,
621,
11445,
468,
2173,
4833,
621,
767,
30,
46506,
920,
5250,
16034,
3084,
62,
3672,
62,
6469,
33411,
614,
1875,
11445,
5357,
2173,
1279,
767
] |
how many female patients had the procedure icd9 code 5771? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.icd9_code = "5771" | [
4919,
867,
4048,
3871,
550,
262,
8771,
14158,
67,
24,
2438,
642,
46761,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
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,
1,
1,
1,
1,
1... | [
4919,
867,
4048,
3871,
550,
262,
8771,
14158,
67,
24,
2438,
642,
46761,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
... |
What is Chep n's average UBIGEO? | SELECT AVG(ubigeo) FROM table_name_34 WHERE province = "chepén" | [
2061,
318,
2580,
79,
299,
338,
2811,
471,
3483,
38,
4720,
30,
46506,
35224,
7,
549,
10045,
78,
8,
16034,
3084,
62,
3672,
62,
2682,
33411,
8473,
796,
366,
2395,
79,
35942,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2580,
79,
299,
338,
2811,
471,
3483,
38,
4720,
30,
46506,
35224,
7,
549,
10045,
78,
8,
16034,
3084,
62,
3672,
62,
2682,
33411,
8473,
796,
366,
2395,
79,
35942,
1
] |
What Record has an Event of Pride Shockwave 2004? | SELECT "Record" FROM table_35065 WHERE "Event" = 'pride shockwave 2004' | [
2061,
13266,
468,
281,
8558,
286,
21735,
22763,
19204,
5472,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
14877,
2996,
33411,
366,
9237,
1,
796,
705,
1050,
485,
6380,
19204,
5472,
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,
13266,
468,
281,
8558,
286,
21735,
22763,
19204,
5472,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
14877,
2996,
33411,
366,
9237,
1,
796,
705,
1050,
485,
6380,
19204,
5472,
6
] |
what is the number of post for 3rd finished | SELECT "post" FROM table_204_13 WHERE "finished" = 3 | [
10919,
318,
262,
1271,
286,
1281,
329,
513,
4372,
5201,
46506,
366,
7353,
1,
16034,
3084,
62,
18638,
62,
1485,
33411,
366,
43952,
1,
796,
513
] | [
1,
1,
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,
1281,
329,
513,
4372,
5201,
46506,
366,
7353,
1,
16034,
3084,
62,
18638,
62,
1485,
33411,
366,
43952,
1,
796,
513
] |
Visualize a bar chart for how films are produced by each studio?, I want to display in descending by the Y. | SELECT Studio, COUNT(*) FROM film GROUP BY Studio ORDER BY COUNT(*) DESC | [
36259,
1096,
257,
2318,
8262,
329,
703,
7328,
389,
4635,
416,
1123,
8034,
21747,
314,
765,
284,
3359,
287,
31491,
416,
262,
575,
13,
46506,
11733,
11,
327,
28270,
7,
28104,
16034,
2646,
44441,
11050,
11733,
38678,
11050,
327,
28270,
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
] | [
36259,
1096,
257,
2318,
8262,
329,
703,
7328,
389,
4635,
416,
1123,
8034,
21747,
314,
765,
284,
3359,
287,
31491,
416,
262,
575,
13,
46506,
11733,
11,
327,
28270,
7,
28104,
16034,
2646,
44441,
11050,
11733,
38678,
11050,
327,
28270,
7,
... |
What is the episode number of the episode that originally aired on January 26, 2009 and had a production number smaller than 38? | SELECT COUNT(episode_no) FROM table_name_53 WHERE original_airdate = "january 26, 2009" AND production_no < 38 | [
2061,
318,
262,
4471,
1271,
286,
262,
4471,
326,
6198,
18530,
319,
3269,
2608,
11,
3717,
290,
550,
257,
3227,
1271,
4833,
621,
4353,
30,
46506,
327,
28270,
7,
38668,
62,
3919,
8,
16034,
3084,
62,
3672,
62,
4310,
33411,
2656,
62,
958... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
1271,
286,
262,
4471,
326,
6198,
18530,
319,
3269,
2608,
11,
3717,
290,
550,
257,
3227,
1271,
4833,
621,
4353,
30,
46506,
327,
28270,
7,
38668,
62,
3919,
8,
16034,
3084,
62,
3672,
62,
4310,
33411,
2656,
62,
958... |
Which Top 10 is the lowest one that has Winnings of $405,300, and an Avg Start smaller than 30? | SELECT MIN("Top 10") FROM table_38438 WHERE "Winnings" = '$405,300' AND "Avg. Start" < '30' | [
13828,
5849,
838,
318,
262,
9016,
530,
326,
468,
19454,
654,
286,
720,
26598,
11,
6200,
11,
290,
281,
33455,
7253,
4833,
621,
1542,
30,
46506,
20625,
7203,
9126,
838,
4943,
16034,
3084,
62,
22842,
2548,
33411,
366,
54,
3732,
654,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5849,
838,
318,
262,
9016,
530,
326,
468,
19454,
654,
286,
720,
26598,
11,
6200,
11,
290,
281,
33455,
7253,
4833,
621,
1542,
30,
46506,
20625,
7203,
9126,
838,
4943,
16034,
3084,
62,
22842,
2548,
33411,
366,
54,
3732,
654,
1,
... |
What are the ids of stations that are located in San Francisco and have average bike availability above 10. | SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10 | [
2061,
389,
262,
220,
2340,
286,
8985,
326,
389,
5140,
287,
2986,
6033,
290,
423,
2811,
7161,
11500,
2029,
838,
13,
46506,
4686,
16034,
4429,
33411,
1748,
796,
366,
15017,
6033,
1,
17828,
4877,
9782,
33493,
4429,
62,
312,
16034,
3722,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
220,
2340,
286,
8985,
326,
389,
5140,
287,
2986,
6033,
290,
423,
2811,
7161,
11500,
2029,
838,
13,
46506,
4686,
16034,
4429,
33411,
1748,
796,
366,
15017,
6033,
1,
17828,
4877,
9782,
33493,
4429,
62,
312,
16034,
3722,
... |
what was the total amount of input that patient 2753 received until 38 days ago? | SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2753)) AND DATETIME(inputevents_cv.charttime) <= DATETIME(CURRENT_TIME(), '-38 day') | [
10919,
373,
262,
2472,
2033,
286,
5128,
326,
5827,
25829,
18,
2722,
1566,
4353,
1528,
2084,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
2472,
2033,
286,
5128,
326,
5827,
25829,
18,
2722,
1566,
4353,
1528,
2084,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
... |
What is the fewest recorded entrants against paris saint-germain? | SELECT MIN(entries) FROM table_26455614_1 WHERE winner = "Paris Saint-Germain" | [
2061,
318,
262,
1178,
395,
6264,
49117,
1028,
1582,
271,
32292,
12,
1362,
12417,
30,
46506,
20625,
7,
298,
1678,
8,
16034,
3084,
62,
2075,
2231,
3980,
1415,
62,
16,
33411,
8464,
796,
366,
40313,
9281,
12,
38,
7780,
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
] | [
2061,
318,
262,
1178,
395,
6264,
49117,
1028,
1582,
271,
32292,
12,
1362,
12417,
30,
46506,
20625,
7,
298,
1678,
8,
16034,
3084,
62,
2075,
2231,
3980,
1415,
62,
16,
33411,
8464,
796,
366,
40313,
9281,
12,
38,
7780,
391,
1
] |
what is the total number of players who tied for fourth , seventh , and tenth combined ? | SELECT COUNT("player") FROM table_203_134 WHERE "place" IN (4, 7, 10) | [
10919,
318,
262,
2472,
1271,
286,
1938,
508,
8165,
329,
5544,
837,
14024,
837,
290,
24395,
5929,
5633,
46506,
327,
28270,
7203,
7829,
4943,
16034,
3084,
62,
22416,
62,
19880,
33411,
366,
5372,
1,
3268,
357,
19,
11,
767,
11,
838,
8
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
1271,
286,
1938,
508,
8165,
329,
5544,
837,
14024,
837,
290,
24395,
5929,
5633,
46506,
327,
28270,
7203,
7829,
4943,
16034,
3084,
62,
22416,
62,
19880,
33411,
366,
5372,
1,
3268,
357,
19,
11,
767,
11,
838,
8
] |
What is Place, when Player is 'Arnold Palmer'? | SELECT "Place" FROM table_9812 WHERE "Player" = 'arnold palmer' | [
2061,
318,
8474,
11,
618,
7853,
318,
705,
3163,
77,
727,
18918,
30960,
46506,
366,
27271,
1,
16034,
3084,
62,
4089,
1065,
33411,
366,
14140,
1,
796,
705,
1501,
727,
6340,
647,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
8474,
11,
618,
7853,
318,
705,
3163,
77,
727,
18918,
30960,
46506,
366,
27271,
1,
16034,
3084,
62,
4089,
1065,
33411,
366,
14140,
1,
796,
705,
1501,
727,
6340,
647,
6
] |
GT Force of no, and a Driving Force Pro of no, and a G27 Racing Wheel of no has what driving force gt? | SELECT driving_force_gt FROM table_name_2 WHERE gt_force = "no" AND driving_force_pro = "no" AND g27_racing_wheel = "no" | [
19555,
5221,
286,
645,
11,
290,
257,
32889,
5221,
1041,
286,
645,
11,
290,
257,
402,
1983,
14954,
15810,
286,
645,
468,
644,
5059,
2700,
308,
83,
30,
46506,
5059,
62,
3174,
62,
13655,
16034,
3084,
62,
3672,
62,
17,
33411,
308,
83,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19555,
5221,
286,
645,
11,
290,
257,
32889,
5221,
1041,
286,
645,
11,
290,
257,
402,
1983,
14954,
15810,
286,
645,
468,
644,
5059,
2700,
308,
83,
30,
46506,
5059,
62,
3174,
62,
13655,
16034,
3084,
62,
3672,
62,
17,
33411,
308,
83,
... |
What was the injured entry for the row with a killed entry of 29? | SELECT "Injured" FROM table_62170 WHERE "Killed" = '29' | [
2061,
373,
262,
6686,
5726,
329,
262,
5752,
351,
257,
2923,
5726,
286,
2808,
30,
46506,
366,
818,
38608,
1,
16034,
3084,
62,
5237,
17279,
33411,
366,
42,
2967,
1,
796,
705,
1959,
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
] | [
2061,
373,
262,
6686,
5726,
329,
262,
5752,
351,
257,
2923,
5726,
286,
2808,
30,
46506,
366,
818,
38608,
1,
16034,
3084,
62,
5237,
17279,
33411,
366,
42,
2967,
1,
796,
705,
1959,
6
] |
what was its best starting position ? | SELECT MIN("start") FROM table_204_609 | [
10919,
373,
663,
1266,
3599,
2292,
5633,
46506,
20625,
7203,
9688,
4943,
16034,
3084,
62,
18638,
62,
31751
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
663,
1266,
3599,
2292,
5633,
46506,
20625,
7203,
9688,
4943,
16034,
3084,
62,
18638,
62,
31751
] |
oh what is the maximum value of bedside glucose on patient 022-6959 in this hospital encounter? | SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-6959' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'bedside g... | [
1219,
644,
318,
262,
5415,
1988,
286,
3996,
1589,
15701,
319,
5827,
657,
1828,
12,
3388,
3270,
287,
428,
4436,
8791,
30,
46506,
25882,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1219,
644,
318,
262,
5415,
1988,
286,
3996,
1589,
15701,
319,
5827,
657,
1828,
12,
3388,
3270,
287,
428,
4436,
8791,
30,
46506,
25882,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
4... |
What's the network in Pachuca, Hidalgo? | SELECT "Network" FROM table_63403 WHERE "City of License" = 'pachuca, hidalgo' | [
2061,
338,
262,
3127,
287,
350,
620,
43120,
11,
367,
11624,
2188,
30,
46506,
366,
26245,
1,
16034,
3084,
62,
5066,
31552,
33411,
366,
14941,
286,
13789,
1,
796,
705,
79,
620,
43120,
11,
289,
11624,
2188,
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,
3127,
287,
350,
620,
43120,
11,
367,
11624,
2188,
30,
46506,
366,
26245,
1,
16034,
3084,
62,
5066,
31552,
33411,
366,
14941,
286,
13789,
1,
796,
705,
79,
620,
43120,
11,
289,
11624,
2188,
6
] |
What is the total amount of products purchased before 2018-03-17 07:13:53? | SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < "2018-03-17 07:13:53" | [
2061,
318,
262,
2472,
2033,
286,
3186,
8155,
878,
2864,
12,
3070,
12,
1558,
8753,
25,
1485,
25,
4310,
30,
46506,
35683,
7,
83,
17,
13,
2875,
62,
40972,
414,
8,
16034,
6491,
62,
6361,
7054,
256,
16,
32357,
1268,
1502,
62,
23814,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2472,
2033,
286,
3186,
8155,
878,
2864,
12,
3070,
12,
1558,
8753,
25,
1485,
25,
4310,
30,
46506,
35683,
7,
83,
17,
13,
2875,
62,
40972,
414,
8,
16034,
6491,
62,
6361,
7054,
256,
16,
32357,
1268,
1502,
62,
23814,
70... |
provide the number of patients whose admission year is less than 2176? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admityear < "2176" | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
24096,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
24096,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24096,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
24096,
1... |
how many patients whose gender is m and procedure icd9 code is 5732? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.icd9_code = "5732" | [
4919,
867,
3871,
3025,
5279,
318,
285,
290,
8771,
14158,
67,
24,
2438,
318,
7632,
2624,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
5279,
318,
285,
290,
8771,
14158,
67,
24,
2438,
318,
7632,
2624,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108... |
Which event was against Pat Barry? | SELECT event FROM table_name_87 WHERE opponent = "pat barry" | [
13828,
1785,
373,
1028,
3208,
14488,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
5774,
33411,
6125,
796,
366,
8071,
2318,
563,
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,
1028,
3208,
14488,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
5774,
33411,
6125,
796,
366,
8071,
2318,
563,
1
] |
Show the party and the number of drivers in each party. | SELECT party, COUNT(*) FROM driver GROUP BY party | [
15307,
262,
2151,
290,
262,
1271,
286,
6643,
287,
1123,
2151,
13,
46506,
2151,
11,
327,
28270,
7,
28104,
16034,
4639,
44441,
11050,
2151
] | [
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,
2151,
290,
262,
1271,
286,
6643,
287,
1123,
2151,
13,
46506,
2151,
11,
327,
28270,
7,
28104,
16034,
4639,
44441,
11050,
2151
] |
Find the number of students in each major. | SELECT COUNT(*), major FROM student GROUP BY major | [
16742,
262,
1271,
286,
2444,
287,
1123,
1688,
13,
46506,
327,
28270,
46491,
828,
1688,
16034,
3710,
44441,
11050,
1688
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1271,
286,
2444,
287,
1123,
1688,
13,
46506,
327,
28270,
46491,
828,
1688,
16034,
3710,
44441,
11050,
1688
] |
Find the names and average salaries of all departments whose average salary is greater than 42000, sort total number in desc order. | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC | [
16742,
262,
3891,
290,
2811,
17058,
286,
477,
13346,
3025,
2811,
9588,
318,
3744,
621,
5433,
830,
11,
3297,
2472,
1271,
287,
1715,
1502,
13,
46506,
390,
457,
62,
3672,
11,
35224,
7,
21680,
560,
8,
16034,
21187,
44441,
11050,
390,
457,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
290,
2811,
17058,
286,
477,
13346,
3025,
2811,
9588,
318,
3744,
621,
5433,
830,
11,
3297,
2472,
1271,
287,
1715,
1502,
13,
46506,
390,
457,
62,
3672,
11,
35224,
7,
21680,
560,
8,
16034,
21187,
44441,
11050,
390,
457,... |
What position has a spread greater than -319, and United States as the country, a win loss of 11-13, and gabriel, marty as the name? | SELECT "Position" FROM table_33898 WHERE "Spread" > '-319' AND "Country" = 'united states' AND "Win-Loss" = '11-13' AND "Name" = 'gabriel, marty' | [
2061,
2292,
468,
257,
4104,
3744,
621,
532,
35175,
11,
290,
1578,
1829,
355,
262,
1499,
11,
257,
1592,
2994,
286,
1367,
12,
1485,
11,
290,
308,
397,
11719,
11,
11277,
88,
355,
262,
1438,
30,
46506,
366,
26545,
1,
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,
2292,
468,
257,
4104,
3744,
621,
532,
35175,
11,
290,
1578,
1829,
355,
262,
1499,
11,
257,
1592,
2994,
286,
1367,
12,
1485,
11,
290,
308,
397,
11719,
11,
11277,
88,
355,
262,
1438,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
... |
What position did eric norri play who was the overall pick less than 322 on a round larger than 3? | SELECT position FROM table_name_33 WHERE overall < 322 AND round > 3 AND name = "eric norri" | [
2061,
2292,
750,
1931,
291,
4249,
380,
711,
508,
373,
262,
4045,
2298,
1342,
621,
38831,
319,
257,
2835,
4025,
621,
513,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2091,
33411,
4045,
1279,
38831,
5357,
2835,
1875,
513,
5357,
1438,
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
] | [
2061,
2292,
750,
1931,
291,
4249,
380,
711,
508,
373,
262,
4045,
2298,
1342,
621,
38831,
319,
257,
2835,
4025,
621,
513,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2091,
33411,
4045,
1279,
38831,
5357,
2835,
1875,
513,
5357,
1438,
79... |
Which competition had an opponent of Police at the Selayang Stadium? | SELECT "Competition" FROM table_5808 WHERE "Opponent" = 'police' AND "Venue" = 'selayang stadium' | [
13828,
5449,
550,
281,
6125,
286,
4287,
379,
262,
15300,
323,
648,
10499,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
20,
28362,
33411,
366,
27524,
3471,
1,
796,
705,
38191,
6,
5357,
366,
37522,
518,
1,
796,
705,
741,
323,
648,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5449,
550,
281,
6125,
286,
4287,
379,
262,
15300,
323,
648,
10499,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
20,
28362,
33411,
366,
27524,
3471,
1,
796,
705,
38191,
6,
5357,
366,
37522,
518,
1,
796,
705,
741,
323,
648,... |
What was the date of the game with a decision of Lehtonen and attended by more than 17,731 people? | SELECT "Date" FROM table_58338 WHERE "Decision" = 'lehtonen' AND "Attendance" > '17,731' | [
2061,
373,
262,
3128,
286,
262,
983,
351,
257,
2551,
286,
29921,
1122,
268,
290,
9141,
416,
517,
621,
1596,
11,
22,
3132,
661,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3365,
28460,
33411,
366,
10707,
1166,
1,
796,
705,
293,
71,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
286,
262,
983,
351,
257,
2551,
286,
29921,
1122,
268,
290,
9141,
416,
517,
621,
1596,
11,
22,
3132,
661,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3365,
28460,
33411,
366,
10707,
1166,
1,
796,
705,
293,
71,
... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the average of revenue , and group by attribute name, I want to sort Y in descending order. | SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Revenue DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
11,
314,
765,
284,
3297,
575,
287,
31491,
1502,
13,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
11,
314,
765,
284,
3297,
575,
287,
31491,
1502,
13,
465... |
Find the total population of the top 3 districts with the largest area. | SELECT SUM(city_population) FROM district ORDER BY city_area DESC LIMIT 3 | [
16742,
262,
2472,
3265,
286,
262,
1353,
513,
12815,
351,
262,
4387,
1989,
13,
46506,
35683,
7,
19205,
62,
39748,
8,
16034,
4783,
38678,
11050,
1748,
62,
20337,
22196,
34,
27564,
2043,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
3265,
286,
262,
1353,
513,
12815,
351,
262,
4387,
1989,
13,
46506,
35683,
7,
19205,
62,
39748,
8,
16034,
4783,
38678,
11050,
1748,
62,
20337,
22196,
34,
27564,
2043,
513
] |
How many registered voters were there when 36.32% of people voted yes? | SELECT MIN("Registered voters") FROM table_29389 WHERE "Yes (%)" = '36.32' | [
2437,
867,
6823,
4446,
547,
612,
618,
4570,
13,
2624,
4,
286,
661,
7052,
3763,
30,
46506,
20625,
7203,
47473,
4446,
4943,
16034,
3084,
62,
1959,
29769,
33411,
366,
5297,
11509,
1,
796,
705,
2623,
13,
2624,
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
] | [
2437,
867,
6823,
4446,
547,
612,
618,
4570,
13,
2624,
4,
286,
661,
7052,
3763,
30,
46506,
20625,
7203,
47473,
4446,
4943,
16034,
3084,
62,
1959,
29769,
33411,
366,
5297,
11509,
1,
796,
705,
2623,
13,
2624,
6
] |
tell me the yearly maximum amount of volume expanders in patient 016-27397's body since 05/09/2103? | SELECT MAX(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-27397')) AND intakeoutput.celllabel = 'volum... | [
33331,
502,
262,
24169,
5415,
2033,
286,
6115,
4292,
364,
287,
5827,
5534,
21,
12,
1983,
33372,
338,
1767,
1201,
8870,
14,
2931,
14,
17,
15197,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
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... | [
33331,
502,
262,
24169,
5415,
2033,
286,
6115,
4292,
364,
287,
5827,
5534,
21,
12,
1983,
33372,
338,
1767,
1201,
8870,
14,
2931,
14,
17,
15197,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
2... |
what was the daily maximum amount of total out given to patient 006-172277 since 09/01/2105? | SELECT MAX(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-172277')) AND intakeoutput.celllabel = 'tota... | [
10919,
373,
262,
4445,
5415,
2033,
286,
2472,
503,
1813,
284,
5827,
3571,
21,
12,
1558,
1828,
3324,
1201,
7769,
14,
486,
14,
17,
13348,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
4445,
5415,
2033,
286,
2472,
503,
1813,
284,
5827,
3571,
21,
12,
1558,
1828,
3324,
1201,
7769,
14,
486,
14,
17,
13348,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.