NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
When the Away team of essendon was playing, what was the Home team's score? | CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_62 WHERE away_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
71,
1343,
372,
13,
3,
8185,
2029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the genre for Portal 2? | CREATE TABLE table_name_32 (genre VARCHAR, game VARCHAR) | SELECT genre FROM table_name_32 WHERE game = "portal 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
729,
60,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5349,
21,
16290,
204,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5349,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
467,
3274,
96,
1493,
138,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the visiting team in the game sometime after number 29 that had 18,584 atttendees? | CREATE TABLE table_name_28 (visitor VARCHAR, game VARCHAR, attendance VARCHAR) | SELECT visitor FROM table_name_28 WHERE game > 29 AND attendance > 18 OFFSET 584 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
3466,
155,
127,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3644,
372,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
467,
2490,
2838,
3430,
11364,
2490,
507,
3,
15316,
20788,
305,
4608,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which race has a position of 3rd and a speed of 123.628? | CREATE TABLE table_name_90 (race VARCHAR, position VARCHAR, speed VARCHAR) | SELECT race FROM table_name_90 WHERE position = "3rd" AND speed = "123.628" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
12614,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1964,
65,
3,
9,
1102,
13,
220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1964,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1102,
3274,
96,
519,
52,
26,
121,
3430,
1634,
3274,
96,
2122,
23074,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What player is picked 302 in round 11? | CREATE TABLE table_name_27 (player VARCHAR, round VARCHAR, pick VARCHAR) | SELECT player FROM table_name_27 WHERE round = 11 AND pick = 302 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
20846,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
19,
4758,
604,
357,
16,
1751... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1751,
3274,
850,
3430,
1432,
3274,
604,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the year that the issue price (bu) is $26.95? | CREATE TABLE table_11916083_1 (year VARCHAR, issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR) | SELECT year FROM table_11916083_1 WHERE issue_price__bu_[_clarification_needed_] = "$26.95" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
19129,
4591,
834,
536,
41,
1201,
584,
4280,
28027,
6,
962,
834,
102,
4920,
834,
834,
3007,
834,
584,
4280,
28027,
6,
3,
834,
23982,
2420,
834,
25797,
834,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
215,
21680,
953,
834,
19993,
19129,
4591,
834,
536,
549,
17444,
427,
962,
834,
102,
4920,
834,
834,
3007,
834,
6306,
834,
23982,
2420,
834,
25797,
834,
908,
3274,
96,
3229,
2688,
5,
3301,
121,
1,
-100,
-100,
-100,
-... |
What is the time/retired of the one with grid of 16? | CREATE TABLE table_45611 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_45611 WHERE "Grid" = '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
4241,
536,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
2128,
4241,
536,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which region in Saint-Simon-Les-Mines has a population smaller than 458? | CREATE TABLE table_name_9 (region INTEGER, name VARCHAR, population VARCHAR) | SELECT MAX(region) FROM table_name_9 WHERE name = "saint-simon-les-mines" AND population < 458 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
18145,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1719,
16,
2788,
18,
134,
23,
2157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
18145,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
564,
3274,
96,
7,
9,
77,
17,
18,
28348,
29,
18,
965,
18,
8695,
7,
121,
3430,
2074,
3,
2,
314,
3449,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest elevation value whose highest point is Mont Raimeux? | CREATE TABLE table_name_62 (
lowest_elevation VARCHAR,
highest_point VARCHAR
) | SELECT lowest_elevation FROM table_name_62 WHERE highest_point = "mont raimeux" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
7402,
834,
15,
10912,
257,
584,
4280,
28027,
6,
2030,
834,
2700,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
16417,
701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7402,
834,
15,
10912,
257,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
2030,
834,
2700,
3274,
96,
4662,
3,
7253,
51,
2623,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20? | CREATE TABLE table_42836 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT COUNT("Lost") FROM table_42836 WHERE "Against" < '37' AND "Drawn" > '2' AND "Played" > '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2577,
3420,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
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... | [
3,
23143,
14196,
2847,
17161,
599,
121,
434,
3481,
8512,
21680,
953,
834,
591,
2577,
3420,
549,
17444,
427,
96,
20749,
121,
3,
2,
3,
31,
4118,
31,
3430,
96,
308,
10936,
29,
121,
2490,
3,
31,
357,
31,
3430,
96,
15800,
15,
26,
121... |
What was the greatest number of wins for a team that had 7 losses and more than 0 draws? | CREATE TABLE table_name_17 (wins INTEGER, losses VARCHAR, draws VARCHAR) | SELECT MAX(wins) FROM table_name_17 WHERE losses = 7 AND draws > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
3757,
7,
3,
21342,
17966,
6,
8467,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4016,
381,
13,
9204,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
8467,
3274,
489,
3430,
14924,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of wins for Quambatook when Against is less than 1129? | CREATE TABLE table_name_83 (
wins INTEGER,
golden_rivers VARCHAR,
against VARCHAR
) | SELECT MAX(wins) FROM table_name_83 WHERE golden_rivers = "quambatook" AND against < 1129 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
9204,
3,
21342,
17966,
6,
7069,
834,
5927,
277,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
7069,
834,
5927,
277,
3274,
96,
2436,
14303,
235,
1825,
121,
3430,
581,
3,
2,
850,
3166,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many points have 41 assists? | CREATE TABLE table_name_28 (points INTEGER, assists VARCHAR) | SELECT SUM(points) FROM table_name_28 WHERE assists = 41 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
2700,
7,
3,
21342,
17966,
6,
13041,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
43,
8798,
13041,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
13041,
3274,
8798,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Byes have an Against smaller than 1466, and Losses smaller than 6? | CREATE TABLE table_name_91 (
byes VARCHAR,
against VARCHAR,
losses VARCHAR
) | SELECT byes FROM table_name_91 WHERE against < 1466 AND losses < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
57,
15,
7,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
938,
15,
7,
43,
46,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
57,
15,
7,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
581,
3,
2,
968,
3539,
3430,
8467,
3,
2,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the result for Wisconsin? | CREATE TABLE table_22603701_1 (result VARCHAR, college VARCHAR) | SELECT result FROM table_22603701_1 WHERE college = "Wisconsin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
18365,
22520,
536,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
21,
10212,
58,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
357,
18365,
22520,
536,
834,
536,
549,
17444,
427,
1900,
3274,
96,
518,
159,
8056,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many seasons was the losing team Adelaide City? | CREATE TABLE table_12028543_3 (season VARCHAR, losingteam VARCHAR) | SELECT COUNT(season) FROM table_12028543_3 WHERE losingteam = "Adelaide City" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
2577,
5062,
519,
834,
519,
41,
9476,
584,
4280,
28027,
6,
5489,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9385,
47,
8,
5489,
372,
24272,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9476,
61,
21680,
953,
834,
15518,
2577,
5062,
519,
834,
519,
549,
17444,
427,
5489,
11650,
3274,
96,
188,
221,
40,
5385,
896,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
find the number of female patients who were born before 2184. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.dob_year < "2184" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
3,
2,
96,
2658,
4608,
1... |
Where was the third bridge over panama canal? | CREATE TABLE table_name_83 (location VARCHAR, name VARCHAR) | SELECT location FROM table_name_83 WHERE name = "third bridge over panama canal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
14836,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
1025,
4716,
147,
3418,
51,
9,
10130,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
564,
3274,
96,
14965,
4716,
147,
3418,
51,
9,
10130,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the total number of frequency Mhz with class of d and call sign of k201bm and ERP W less than 74 | CREATE TABLE table_name_54 (
frequency_mhz VARCHAR,
erp_w VARCHAR,
class VARCHAR,
call_sign VARCHAR
) | SELECT COUNT(frequency_mhz) FROM table_name_54 WHERE class = "d" AND call_sign = "k201bm" AND erp_w < 74 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
7321,
834,
51,
107,
172,
584,
4280,
28027,
6,
3,
49,
102,
834,
210,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
30989,
834,
51,
107,
172,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
853,
3274,
96,
26,
121,
3430,
580,
834,
6732,
3274,
96,
157,
22772,
115,
51,
121,
3430,
3,
49,
102,
834,
210,
3,
... |
What prize amount was awarded at the event with 453 entrants? | CREATE TABLE table_38764 (
"Entrants" real,
"Winner" text,
"Prize" text,
"Runner-up" text,
"Results" text
) | SELECT "Prize" FROM table_38764 WHERE "Entrants" = '453' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3959,
591,
41,
96,
16924,
3569,
7,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
7855,
776,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
20119,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7855,
776,
121,
21680,
953,
834,
3747,
3959,
591,
549,
17444,
427,
96,
16924,
3569,
7,
121,
3274,
3,
31,
2128,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average react for a rank more than 8? | CREATE TABLE table_name_36 (
react INTEGER,
rank INTEGER
) | SELECT AVG(react) FROM table_name_36 WHERE rank > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
8922,
3,
21342,
17966,
6,
11003,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
8922,
21,
3,
9,
11003,
72,
145,
505,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
60,
2708,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
11003,
2490,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want to know the number of districts of markets they are on. | CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stoc... | SELECT District, COUNT(District) FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID GROUP BY District | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
41,
5570,
1499,
6,
8924,
834,
4309,
16,
17,
6,
19159,
834,
77,
834,
517,
16,
17,
6,
1184,
6711,
1499,
6,
5312,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3570,
6,
2847,
17161,
599,
308,
23,
20066,
61,
21680,
951,
834,
8809,
6157,
332,
536,
3,
15355,
3162,
512,
6157,
332,
357,
9191,
332,
5411,
22572,
834,
4309,
3274,
332,
4416,
22572,
834,
4309,
3,
15355,
3162,
951,
6... |
What is the GP winner for the Race winners valentin giraud / nicolas musset, and a place genk? | CREATE TABLE table_name_2 (
gp_winner VARCHAR,
race_winners VARCHAR,
place VARCHAR
) | SELECT gp_winner FROM table_name_2 WHERE race_winners = "valentin giraud / nicolas musset" AND place = "genk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
3,
122,
102,
834,
3757,
687,
584,
4280,
28027,
6,
1964,
834,
3757,
687,
7,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
122,
102,
834,
3757,
687,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1964,
834,
3757,
687,
7,
3274,
96,
15592,
77,
3,
9427,
402,
26,
3,
87,
3,
29,
23,
12600,
7,
2171,
15,
17,
121,
3430,
286,
3274,
96... |
Which college has a pick less than 25, an overall greater than 159, a round less than 10, and wr as the position? | CREATE TABLE table_76921 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_76921 WHERE "Pick" < '25' AND "Overall" > '159' AND "Round" < '10' AND "Position" = 'wr' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4508,
536,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9939,
7883,
121,
21680,
953,
834,
3959,
4508,
536,
549,
17444,
427,
96,
345,
3142,
121,
3,
2,
3,
31,
1828,
31,
3430,
96,
23847,
1748,
121,
2490,
3,
31,
27904,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,... |
Which 2009 year has a total of 1, and 2004 year of 7th? | CREATE TABLE table_68542 (
"2001" text,
"2004" text,
"2009" text,
"2013" text,
"Total" real
) | SELECT "2009" FROM table_68542 WHERE "Total" = '1' AND "2004" = '7th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
5062,
357,
41,
96,
23658,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
11138,
121,
1499,
6,
96,
3696,
1947,
121,
490,
3,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
16660,
121,
21680,
953,
834,
3651,
5062,
357,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
536,
31,
3430,
96,
21653,
121,
3274,
3,
31,
940,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average Lost, when Games is less than 82, when Points is less than 95, and when Pct % is less than 0.506? | CREATE TABLE table_name_14 (
lost INTEGER,
pct__percentage VARCHAR,
games VARCHAR,
points VARCHAR
) | SELECT AVG(lost) FROM table_name_14 WHERE games < 82 AND points < 95 AND pct__percentage < 0.506 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
1513,
3,
21342,
17966,
6,
3,
102,
75,
17,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1031,
3,
2,
3,
4613,
3430,
979,
3,
2,
11923,
3430,
3,
102,
75,
17,
834,
834,
883,
3728,
545,
3,
2,
3,
12100,
5176,
1,
-100,
-100... |
Who wrote the episode with production code 57376? | CREATE TABLE table_29583441_1 (written_by VARCHAR, production_code VARCHAR) | SELECT written_by FROM table_29583441_1 WHERE production_code = 57376 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3449,
3710,
4853,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
5640,
28,
999,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
3166,
3449,
3710,
4853,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
305,
4552,
3959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those records from the products and each product's manufacturer, give me the comparison about code over the name , and group by attribute headquarter by a bar chart. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3642,
19973,
... |
Who was picked for the draft by St. Louis Blues? | CREATE TABLE table_2886617_9 (player VARCHAR, nhl_team VARCHAR) | SELECT player FROM table_2886617_9 WHERE nhl_team = "St. Louis Blues" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
26750,
2517,
834,
1298,
41,
20846,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
4758,
21,
8,
6488,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
2577,
26750,
2517,
834,
1298,
549,
17444,
427,
3,
29,
107,
40,
834,
11650,
3274,
96,
134,
17,
5,
5181,
2419,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the manner of departure for 3 january date of appointment | CREATE TABLE table_name_1 (
manner_of_departure VARCHAR,
date_of_appointment VARCHAR
) | SELECT manner_of_departure FROM table_name_1 WHERE date_of_appointment = "3 january" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3107,
834,
858,
834,
221,
2274,
1462,
584,
4280,
28027,
6,
833,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3107,
834,
858,
834,
221,
2274,
1462,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
833,
834,
858,
834,
9,
102,
2700,
297,
3274,
96,
519,
3,
7066,
76,
1208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the ratings for episode 11? | CREATE TABLE table_28798 (
"Episode" real,
"Title" text,
"Writer" text,
"Director" text,
"Original airdate" text,
"Ratings (Kanto)" text,
"Ratings (Kansai)" text
) | SELECT "Ratings (Kanto)" FROM table_28798 WHERE "Episode" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4225,
3916,
41,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
667,
3380,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
1014,
7,
41,
439,
288,
32,
61,
121,
21680,
953,
834,
357,
4225,
3916,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the original air date of the episode that was directed by Bruce Seth Green? | CREATE TABLE table_29584044_1 (
original_air_date VARCHAR,
directed_by VARCHAR
) | SELECT original_air_date FROM table_29584044_1 WHERE directed_by = "Bruce Seth Green" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3449,
2445,
3628,
834,
536,
41,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
92... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
3166,
3449,
2445,
3628,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
9465,
565,
679,
189,
1862,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the score for international friendly 17 august 2013 | CREATE TABLE table_31846 (
"Date" text,
"Result" text,
"Score" text,
"Type" text,
"Venue" text
) | SELECT "Score" FROM table_31846 WHERE "Type" = 'international friendly' AND "Date" = '17 august 2013' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2606,
4448,
41,
96,
308,
342,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
519,
2606,
4448,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
27817,
2609,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2517,
14663,
2038,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
How tall is the contestant from Ecuador? | CREATE TABLE table_20669355_2 (
height__ft_ VARCHAR,
country VARCHAR
) | SELECT height__ft_ FROM table_20669355_2 WHERE country = "Ecuador" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3539,
4271,
3769,
834,
357,
41,
3902,
834,
834,
89,
17,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
5065,
19,
8,
4233,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3902,
834,
834,
89,
17,
834,
21680,
953,
834,
1755,
3539,
4271,
3769,
834,
357,
549,
17444,
427,
684,
3274,
96,
427,
1071,
7923,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the % of wt 2nd for bp 3rd comp of 98.4 | CREATE TABLE table_name_77 (
_percentage_wt_2nd VARCHAR,
bp_3rd_comp__˚c_ VARCHAR
) | SELECT _percentage_wt_2nd FROM table_name_77 WHERE bp_3rd_comp__˚c_ = "98.4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
3,
834,
883,
3728,
545,
834,
210,
17,
834,
357,
727,
584,
4280,
28027,
6,
3,
115,
102,
834,
519,
52,
26,
834,
7699,
834,
834,
3,
2,
75,
834,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
834,
883,
3728,
545,
834,
210,
17,
834,
357,
727,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
3,
115,
102,
834,
519,
52,
26,
834,
7699,
834,
834,
3,
2,
75,
834,
3274,
96,
3916,
5,
20364,
1,
-100,
-10... |
Find all Bistros in Pittsburgh | CREATE TABLE tip (
tip_id int,
business_id varchar,
text longtext,
user_id varchar,
likes int,
year int,
month varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address... | SELECT business.name FROM business, category WHERE business.city = 'Pittsburgh' AND category.business_id = business.business_id AND category.category_name = 'Bistros' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2226,
41,
2226,
834,
23,
26,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
1499,
307,
6327,
6,
1139,
834,
23,
26,
3,
4331,
4059,
6,
114,
7,
16,
17,
6,
215,
16,
17,
6,
847,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
268,
5,
4350,
21680,
268,
6,
3295,
549,
17444,
427,
268,
5,
6726,
3274,
3,
31,
345,
155,
17,
7289,
107,
31,
3430,
3295,
5,
16394,
834,
23,
26,
3274,
268,
5,
16394,
834,
23,
26,
3430,
3295,
5,
8367,
839,
651,
8... |
Who is the visitor on december 3? | CREATE TABLE table_74987 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Visitor" FROM table_74987 WHERE "Date" = 'december 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3647,
4225,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
553,
159,
155,
127,
121,
21680,
953,
834,
940,
3647,
4225,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
220,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the album released immediately before the one that had boku wa do kana on it ? | CREATE TABLE table_204_643 (
id number,
"release" number,
"artist" text,
"title" text,
"notes" text,
"album" text
) | SELECT "album" FROM table_204_643 WHERE id = (SELECT id FROM table_204_643 WHERE "title" = 'boku wa do kana (僕はとうかな what should i do?)') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4389,
519,
41,
3,
23,
26,
381,
6,
96,
21019,
121,
381,
6,
96,
1408,
343,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
7977,
7,
121,
1499,
6,
96,
23703,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23703,
121,
21680,
953,
834,
26363,
834,
4389,
519,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
4389,
519,
549,
17444,
427,
96,
21869,
121,
3274,
3,
31,
22483,
7... |
What is the payload for Class MRBM, and a range of 1,930km? | CREATE TABLE table_8749 (
"Name/Designation" text,
"Class" text,
"Range (varies with payload weight)" text,
"Payload" text,
"Status" text
) | SELECT "Payload" FROM table_8749 WHERE "Class" = 'mrbm' AND "Range (varies with payload weight)" = '1,930km' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4225,
3647,
41,
96,
23954,
87,
19103,
257,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
448,
3280,
41,
15550,
28,
726,
7134,
1293,
61,
121,
1499,
6,
96,
19702,
7134,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19702,
7134,
121,
21680,
953,
834,
4225,
3647,
549,
17444,
427,
96,
21486,
121,
3274,
3,
31,
51,
52,
115,
51,
31,
3430,
96,
448,
3280,
41,
15550,
28,
726,
7134,
1293,
61,
121,
3274,
3,
31,
4347,
1298,
1458,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about manager_id over the last_name , and could you order y-axis in ascending order? | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT LAST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
12510,
834,
567,
17683,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
... |
What is T7 Place Player Justin Leonard's Score? | CREATE TABLE table_name_31 (score VARCHAR, place VARCHAR, player VARCHAR) | SELECT score FROM table_name_31 WHERE place = "t7" AND player = "justin leonard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
7,
9022,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
332,
940,
3399,
12387,
12446,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
286,
3274,
96,
17,
940,
121,
3430,
1959,
3274,
96,
4998,
77,
90,
106,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who left a seat open for the district of connecticut at-large | CREATE TABLE table_224844_4 (vacator VARCHAR, district VARCHAR) | SELECT vacator FROM table_224844_4 WHERE district = "Connecticut At-large" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3707,
3628,
834,
591,
41,
8938,
1016,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
646,
3,
9,
3143,
539,
21,
8,
3939,
13,
197... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
8938,
1016,
21680,
953,
834,
2884,
3707,
3628,
834,
591,
549,
17444,
427,
3939,
3274,
96,
25772,
23,
3044,
486,
18,
15599,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is days of hospital stay and death status of subject name elizabeth bateman? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT demographic.days_stay, demographic.expire_flag FROM demographic WHERE demographic.name = "Elizabeth Bateman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1135,
7,
834,
21545,
6,
14798,
5,
994,
2388,
15,
834,
89,
5430,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
10991,
5584,
346,
189,
8897,
15,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the location for a year later than 2012? | CREATE TABLE table_name_82 (location VARCHAR, year INTEGER) | SELECT location FROM table_name_82 WHERE year > 2012 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
14836,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1128,
21,
3,
9,
215,
865,
145,
1673,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
215,
2490,
1673,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest round where a back named Ed Cody can be found? | CREATE TABLE table_33967 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT MAX("Round") FROM table_33967 WHERE "Position" = 'back' AND "Player" = 'ed cody' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3288,
3708,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
87,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
519,
3288,
3708,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
1549,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
15,
26,
10763,
63,
31,
1,
-10... |
what's the position with team being skilled racing team | CREATE TABLE table_14139408_1 (
position VARCHAR,
team VARCHAR
) | SELECT position FROM table_14139408_1 WHERE team = "Skilled Racing team" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2368,
4240,
4018,
834,
536,
41,
1102,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
1102,
28,
372,
271,
6847,
8191,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
2534,
2368,
4240,
4018,
834,
536,
549,
17444,
427,
372,
3274,
96,
134,
10824,
15,
26,
16046,
372,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of ends when the transfer fee was dkk 14m? | CREATE TABLE table_name_80 (ends VARCHAR, transfer_fee VARCHAR) | SELECT COUNT(ends) FROM table_name_80 WHERE transfer_fee = "dkk 14m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
989,
7,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
5542,
116,
8,
2025... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
989,
7,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
26,
8511,
968,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What day did the Diamondbacks go 2-7? | CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR, score VARCHAR) | SELECT date FROM table_name_92 WHERE opponent = "diamondbacks" AND score = "2-7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
410,
8,
10834,
1549,
7,
281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
15264,
3274,
96,
26,
23,
9,
6764,
1549,
7,
121,
3430,
2604,
3274,
96,
357,
6832,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the general classification for mauricio soler | CREATE TABLE table_29077342_19 (general_classification VARCHAR, winner VARCHAR) | SELECT general_classification FROM table_29077342_19 WHERE winner = "Mauricio Soler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
4013,
3710,
357,
834,
2294,
41,
27369,
834,
4057,
2420,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
879,
13774,
21,
954,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
879,
834,
4057,
2420,
21680,
953,
834,
23838,
4013,
3710,
357,
834,
2294,
549,
17444,
427,
4668,
3274,
96,
19059,
1294,
32,
5175,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees who was hired before 2002-06-21, find hire_date and the average of manager_id bin hire_date by time, and visualize them by a bar chart, and show in descending by the y-axis please. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(MANAGER_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
71,
17217,
... |
Which engine has a torgue of lb·ft (n·m)? | CREATE TABLE table_name_67 (engine VARCHAR, torque VARCHAR) | SELECT engine FROM table_name_67 WHERE torque = "lb·ft (n·m)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
20165,
584,
4280,
28027,
6,
19527,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1948,
65,
3,
9,
12,
52,
5398,
13,
3,
40,
115,
2,
89,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
19527,
3274,
96,
40,
115,
2,
89,
17,
41,
29,
2,
51,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose year of death is less than or equal to 2154 and diagnoses icd9 code is 70715? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2154.0" AND diagnoses.icd9_code = "70715" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Who wrote episode 6 in season 3? | CREATE TABLE table_2602958_4 (writer_s_ VARCHAR, _number VARCHAR) | SELECT writer_s_ FROM table_2602958_4 WHERE _number = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
3166,
3449,
834,
591,
41,
12756,
834,
7,
834,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
5640,
431,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4346,
834,
7,
834,
21680,
953,
834,
18365,
3166,
3449,
834,
591,
549,
17444,
427,
3,
834,
5525,
1152,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Director has an Episode of 13? | CREATE TABLE table_name_17 (
director VARCHAR,
episode VARCHAR
) | SELECT director FROM table_name_17 WHERE episode = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
2090,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2578,
65,
46,
16112,
13,
1179,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
5640,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many points total for san lorenzo? | CREATE TABLE table_14460085_3 (points VARCHAR, team VARCHAR) | SELECT COUNT(points) FROM table_14460085_3 WHERE team = "San Lorenzo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
6007,
4433,
834,
519,
41,
2700,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
792,
21,
3,
7,
152,
3,
322,
15,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
20885,
6007,
4433,
834,
519,
549,
17444,
427,
372,
3274,
96,
134,
152,
1815,
20276,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Total, when Year(s) Won is '1966 , 1970 , 1978', and when To par is less than 4? | CREATE TABLE table_name_81 (
total INTEGER,
year_s__won VARCHAR,
to_par VARCHAR
) | SELECT SUM(total) FROM table_name_81 WHERE year_s__won = "1966 , 1970 , 1978" AND to_par < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
792,
3,
21342,
17966,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
3539,
3,
6,
7434,
3,
6,
14834,
121,
3430,
12,
834,
1893,
3,
2,
314,
1,
-100,
-... |
Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider? | CREATE TABLE table_29332810_14 (general_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR) | SELECT general_classification FROM table_29332810_14 WHERE winner = "Ben Swift" AND young_rider_classification = "Cameron Meyer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4201,
2577,
1714,
834,
2534,
41,
27369,
834,
4057,
2420,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
1021,
834,
4055,
49,
834,
4057,
2420,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
879,
834,
4057,
2420,
21680,
953,
834,
3166,
4201,
2577,
1714,
834,
2534,
549,
17444,
427,
4668,
3274,
96,
279,
35,
20477,
121,
3430,
1021,
834,
4055,
49,
834,
4057,
2420,
3274,
96,
254,
9,
935,
106,
19191,
121,
1,
... |
How many ranks on the money list had a best finish of t10? | CREATE TABLE table_29499399_2 (
money_list_rank VARCHAR,
best_finish VARCHAR
) | SELECT COUNT(money_list_rank) FROM table_29499399_2 WHERE best_finish = "T10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3647,
4271,
3264,
834,
357,
41,
540,
834,
3350,
834,
6254,
584,
4280,
28027,
6,
200,
834,
25535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
28442,
834,
3350,
834,
6254,
61,
21680,
953,
834,
3166,
3647,
4271,
3264,
834,
357,
549,
17444,
427,
200,
834,
25535,
3274,
96,
382,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many heads of the departments are older than 56 ? | CREATE TABLE head (
age INTEGER
) | SELECT COUNT(*) FROM head WHERE age > 56 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
819,
41,
1246,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7701,
13,
8,
10521,
33,
2749,
145,
11526,
3,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
819,
549,
17444,
427,
1246,
2490,
11526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In which tournament was Gil Morgan the runner-up? | CREATE TABLE table_name_64 (
tournament VARCHAR,
runner_s__up VARCHAR
) | SELECT tournament FROM table_name_64 WHERE runner_s__up = "gil morgan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
5892,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
5892,
47,
12798,
11147,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
122,
173,
3,
51,
11127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Competition when the Club was costa rica u-20? | CREATE TABLE table_41202 (
"Year" real,
"Competition" text,
"Club" text,
"Nation" text,
"Result" text
) | SELECT "Competition" FROM table_41202 WHERE "Club" = 'costa rica u-20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
19818,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
20119,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
4853,
19818,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
11290,
9,
3,
2234,
9,
3,
76,
7988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the record for may 31 | CREATE TABLE table_name_64 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_64 WHERE date = "may 31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1368,
21,
164,
2664,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
833,
3274,
96,
13726,
2664,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the roll of Bishop Viard College (An Integrated College), which has a decile larger than 1? | CREATE TABLE table_80224 (
"Name" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT COUNT("Roll") FROM table_80224 WHERE "Decile" > '1' AND "Authority" = 'integrated' AND "Name" = 'bishop viard college' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
24622,
41,
96,
23954,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
121,
1499,
6,
96,
2962,
75,
699,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
29807,
8512,
21680,
953,
834,
2079,
24622,
549,
17444,
427,
96,
2962,
75,
699,
121,
2490,
3,
31,
536,
31,
3430,
96,
23602,
127,
485,
121,
3274,
3,
31,
8576,
920,
31,
3430,
96,
23954,
121,
32... |
For those records from the products and each product's manufacturer, find name and code , and group by attribute founder, and visualize them by a bar chart, and show Y in descending order. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | 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 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3,
19145,
6,... |
What is the total number of Points 1, when Lost is less than 20, and when Goals For is greater than 92? | CREATE TABLE table_47530 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" real
) | SELECT COUNT("Points 1") FROM table_47530 WHERE "Lost" < '20' AND "Goals For" > '92' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
26918,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22512,
7,
209,
8512,
21680,
953,
834,
4177,
26918,
549,
17444,
427,
96,
434,
3481,
121,
3,
2,
3,
31,
1755,
31,
3430,
96,
6221,
5405,
242,
121,
2490,
3,
31,
4508,
31,
1,
-100,
-100,
-100,
-... |
What's the total losses when there are 8 wins and less than 2 byes? | CREATE TABLE table_name_91 (
losses INTEGER,
wins VARCHAR,
byes VARCHAR
) | SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
8467,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
792,
8467,
116... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
9204,
3274,
505,
3430,
57,
15,
7,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, give me the comparison about the average of department_id over the job_id , and group by attribute job_id by a bar chart, display in desc by the Y. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0... | SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(DEPARTMENT_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
446,
10539,
... |
What is the airdate when the story is listed as hugh leonard? | CREATE TABLE table_15739098_2 (
airdate VARCHAR,
story VARCHAR
) | SELECT airdate FROM table_15739098_2 WHERE story = "Hugh Leonard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4552,
2394,
3916,
834,
357,
41,
799,
5522,
584,
4280,
28027,
6,
733,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
799,
5522,
116,
8,
733,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
799,
5522,
21680,
953,
834,
1808,
4552,
2394,
3916,
834,
357,
549,
17444,
427,
733,
3274,
96,
566,
14439,
17342,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Score has a Place of t2? | CREATE TABLE table_name_95 (score VARCHAR, place VARCHAR) | SELECT score FROM table_name_95 WHERE place = "t2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
7,
9022,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
3399,
13,
3,
17,
357,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
286,
3274,
96,
17,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score in the final when Mats Wilander was the opponent in the Australian Open? | CREATE TABLE table_25744 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Score in the final" FROM table_25744 WHERE "Championship" = 'Australian Open' AND "Opponent in the final" = 'Mats Wilander' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
3628,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
16,
8,
804,
121,
21680,
953,
834,
357,
3436,
3628,
549,
17444,
427,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
31971,
29,
2384,
31,
3430,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
329,
... |
what is the grid when the rider is mika kallio? | CREATE TABLE table_44331 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT MAX("Grid") FROM table_44331 WHERE "Rider" = 'mika kallio' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
519,
3341,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
13313,
26,
8512,
21680,
953,
834,
3628,
519,
3341,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
20068,
9,
3,
4766,
40,
23,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When 20 is the rank and north west is the region/province what is the county? | CREATE TABLE table_25792 (
"Rank" real,
"City/Town" text,
"County" text,
"Region/Province" text,
"Population" real,
"Country" text
) | SELECT "County" FROM table_25792 WHERE "Region/Province" = 'North West' AND "Rank" = '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4440,
357,
41,
96,
22557,
121,
490,
6,
96,
254,
485,
87,
382,
9197,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
17748,
23,
106,
87,
3174,
2494,
565,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
1828,
4440,
357,
549,
17444,
427,
96,
17748,
23,
106,
87,
3174,
2494,
565,
121,
3274,
3,
31,
22969,
1244,
31,
3430,
96,
22557,
121,
3274,
3,
31,
1755,
31,
1,
-100,
-100,
-100,
... |
What is the lowest pole with a Flap larger than 5, and a before race 155? | CREATE TABLE table_name_49 (pole INTEGER, flap VARCHAR, race VARCHAR) | SELECT MIN(pole) FROM table_name_49 WHERE flap > 5 AND race < 155 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
14332,
3,
21342,
17966,
6,
23050,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
11148,
28,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14332,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
23050,
2490,
305,
3430,
1964,
3,
2,
3,
20896,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the total against in uefa champions league/european cup with more than 1 draw? | CREATE TABLE table_name_75 (against INTEGER, competition VARCHAR, draw VARCHAR) | SELECT SUM(against) FROM table_name_75 WHERE competition = "uefa champions league/european cup" AND draw > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
9,
16720,
7,
17,
3,
21342,
17966,
6,
2259,
584,
4280,
28027,
6,
3314,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
581,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2259,
3274,
96,
76,
15,
89,
9,
6336,
7,
5533,
87,
28188,
152,
4119,
121,
3430,
3314,
2490,
209,
1,
-100,
-100,
-100,
-100,
... |
Name the attendance for time of 1:31 | CREATE TABLE table_name_21 (
attendance VARCHAR,
time VARCHAR
) | SELECT attendance FROM table_name_21 WHERE time = "1:31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
11364,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
11364,
21,
97,
13,
209,
10,
3341,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
97,
3274,
96,
536,
10,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the tourist attraction that is associated with the photo "game1"? | CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE PHOTOS (Tourist_Attraction_ID VARCHAR, Name VARCHAR) | SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = "game1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
332,
9131,
13582,
834,
24642,
448,
30518,
134,
41,
23954,
584,
4280,
28027,
6,
21375,
834,
188,
17,
10559,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
21680,
3,
8023,
22262,
134,
6157,
332,
536,
3,
15355,
3162,
332,
9131,
13582,
834,
24642,
448,
30518,
134,
6157,
332,
357,
9191,
332,
5411,
382,
1211,
343,
834,
188,
17,
10559,
834,
4309,
3274,
332,
... |
For those records from the products and each product's manufacturer, give me the comparison about the average of manufacturer over the name , and group by attribute name by a bar chart, and order by the y axis in desc. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Manufacturer DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
7296,
76,
8717,
450,
49,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
What is Title, when Developer is '2Play Mobile', and when Genre is 'Action'? | CREATE TABLE table_58998 (
"Title" text,
"Developer" text,
"Genre" text,
"Release date" text,
"Version" real
) | SELECT "Title" FROM table_58998 WHERE "Developer" = '2play mobile' AND "Genre" = 'action' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
3264,
927,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
2962,
162,
8745,
49,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
3449,
3264,
927,
549,
17444,
427,
96,
2962,
162,
8745,
49,
121,
3274,
3,
31,
357,
4895,
1156,
31,
3430,
96,
13714,
60,
121,
3274,
3,
31,
4787,
31,
1,
-100,
-100,
-100,
-1... |
Which county built a bridge in 1934? | CREATE TABLE table_name_59 (
county VARCHAR,
built VARCHAR
) | SELECT county FROM table_name_59 WHERE built = "1934" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
5435,
584,
4280,
28027,
6,
1192,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5435,
1192,
3,
9,
4716,
16,
28828,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1192,
3274,
96,
2294,
3710,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are all the production codes of episodes written by Michael G. Moye? | CREATE TABLE table_24879 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT "Production code" FROM table_24879 WHERE "Written by" = 'Michael G. Moye' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3707,
4440,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3174,
8291,
1081,
121,
21680,
953,
834,
357,
3707,
4440,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
329,
362,
9,
15,
40,
350,
5,
1290,
63,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What place had a ribbon below 9.8 and a 19.2 total? | CREATE TABLE table_name_23 (place INTEGER, ribbon VARCHAR, total VARCHAR) | SELECT MAX(place) FROM table_name_23 WHERE ribbon < 9.8 AND total = 19.2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
4687,
3,
21342,
17966,
6,
13356,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
141,
3,
9,
13356,
666,
5835,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4687,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
13356,
3,
2,
5835,
927,
3430,
792,
3274,
9997,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many unknown/not specified ethnic background patients have been diagnosed with mitral valve insufficiency and aortic valve insufficiency? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "UNKNOWN/NOT SPECIFIED" AND diagnoses.long_title = "Mitral valve insufficiency and aortic valve insufficiency" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the date of the Red Wings home game against Anaheim? | CREATE TABLE table_name_30 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_30 WHERE visitor = "anaheim" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
5522,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
1624,
15753,
7,
234,
467,
581,
5331,
3254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
7019,
3274,
96,
152,
9,
3254,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who had the high assists against charlotte? | CREATE TABLE table_13557843_3 (high_assists VARCHAR, team VARCHAR) | SELECT high_assists FROM table_13557843_3 WHERE team = "Charlotte" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3769,
3940,
4906,
834,
519,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
13041,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2368,
3769,
3940,
4906,
834,
519,
549,
17444,
427,
372,
3274,
96,
18947,
21538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which games saw a record set in the long jump event? | CREATE TABLE table_13474 (
"Event" text,
"Record" text,
"Nationality" text,
"Date" text,
"Games" text
) | SELECT "Games" FROM table_13474 WHERE "Event" = 'long jump' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
4581,
41,
96,
427,
2169,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
23055,
7,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
23055,
7,
121,
21680,
953,
834,
23747,
4581,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
2961,
4418,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which nation had a time of 48.38? | CREATE TABLE table_name_9 (nation VARCHAR, time__sec_ VARCHAR) | SELECT nation FROM table_name_9 WHERE time__sec_ = 48.38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
29,
257,
584,
4280,
28027,
6,
97,
834,
834,
7549,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2982,
141,
3,
9,
97,
13,
4678,
5,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
97,
834,
834,
7549,
834,
3274,
4678,
5,
3747,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What wheel arrangement was made in 1910? | CREATE TABLE table_66436 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Serial numbers" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text,
"Year(s) retired" text
) | SELECT "Wheel arrangement" FROM table_66436 WHERE "Year made" = '1910' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
591,
3420,
41,
96,
21486,
121,
1499,
6,
96,
518,
88,
15,
40,
8641,
121,
1499,
6,
96,
371,
109,
15,
17,
381,
599,
7,
61,
121,
1499,
6,
96,
7296,
76,
8717,
450,
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... | [
3,
23143,
14196,
96,
518,
88,
15,
40,
8641,
121,
21680,
953,
834,
3539,
591,
3420,
549,
17444,
427,
96,
476,
2741,
263,
121,
3274,
3,
31,
2294,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which team had a second qualifying time of 58.539? | CREATE TABLE table_name_71 (team VARCHAR, qual_2 VARCHAR) | SELECT team FROM table_name_71 WHERE qual_2 = "58.539" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
11650,
584,
4280,
28027,
6,
3,
11433,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
141,
3,
9,
511,
18002,
97,
13,
305,
192... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
3,
11433,
834,
357,
3274,
96,
755,
19253,
3288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many films for each type? Return a bar chart, and sort x axis in asc order. | CREATE TABLE film (
Film_ID int,
Title text,
Studio text,
Director text,
Gross_in_dollar int
)
CREATE TABLE film_market_estimation (
Estimation_ID int,
Low_Estimate real,
High_Estimate real,
Film_ID int,
Type text,
Market_ID int,
Year int
)
CREATE TABLE market (
Mar... | SELECT Type, COUNT(Type) FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID GROUP BY Type ORDER BY Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
41,
3417,
834,
4309,
16,
17,
6,
11029,
1499,
6,
5929,
1499,
6,
2578,
1499,
6,
17969,
834,
77,
834,
26748,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
2847,
17161,
599,
25160,
61,
21680,
814,
6157,
332,
536,
3,
15355,
3162,
814,
834,
8809,
834,
3340,
51,
257,
6157,
332,
357,
9191,
332,
5411,
371,
173,
51,
834,
4309,
3274,
332,
4416,
371,
173,
51,
834,
4... |
How many points did the Away team from Geelong score? | CREATE TABLE table_32405 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_32405 WHERE "Away team" = 'geelong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2266,
3076,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
519,
2266,
3076,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
397,
15,
2961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many countries did not win any gold medals ? | CREATE TABLE table_204_761 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_204_761 WHERE "gold" = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3959,
536,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
29,
257,
8512,
21680,
953,
834,
26363,
834,
3959,
536,
549,
17444,
427,
96,
14910,
121,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT GOAL HAS A TIME OF 39:37? | CREATE TABLE table_48201 (
"Period" text,
"Team" text,
"Goal" text,
"Time" text,
"Score" text
) | SELECT "Goal" FROM table_48201 WHERE "Time" = '39:37' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
22772,
41,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
6221,
138,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
134,
9022,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6221,
138,
121,
21680,
953,
834,
3707,
22772,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
3288,
10,
4118,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many weeks have w 51-29 as the result/score? | CREATE TABLE table_name_34 (
week INTEGER,
result_score VARCHAR
) | SELECT SUM(week) FROM table_name_34 WHERE result_score = "w 51-29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
471,
3,
21342,
17966,
6,
741,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1274,
43,
3,
210,
11696,
18,
3166,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
741,
834,
7,
9022,
3274,
96,
210,
11696,
18,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the dry density is 800, what is the drying shrinkage %? | CREATE TABLE table_24969173_1 (
drying_shrinkage___percentage_ VARCHAR,
dry_density__kg_m3_ VARCHAR
) | SELECT drying_shrinkage___percentage_ FROM table_24969173_1 WHERE dry_density__kg_m3_ = 800 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4314,
4729,
4552,
834,
536,
41,
16773,
834,
7,
107,
13419,
545,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
6,
2192,
834,
537,
7,
485,
834,
834,
8711,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16773,
834,
7,
107,
13419,
545,
834,
834,
834,
883,
3728,
545,
834,
21680,
953,
834,
2266,
4314,
4729,
4552,
834,
536,
549,
17444,
427,
2192,
834,
537,
7,
485,
834,
834,
8711,
834,
51,
519,
834,
3274,
8640,
1,
-10... |
what is the lowest week when the attendance is 54,714? | CREATE TABLE table_63822 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT MIN("Week") FROM table_63822 WHERE "Attendance" = '54,714' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
4613,
357,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3891,
4613,
357,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
5062,
6,
940,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the number in series for number 38 | CREATE TABLE table_18335117_5 (
no_in_series INTEGER,
no_overall VARCHAR
) | SELECT MIN(no_in_series) FROM table_18335117_5 WHERE no_overall = 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24361,
2469,
20275,
834,
755,
41,
150,
834,
77,
834,
10833,
7,
3,
21342,
17966,
6,
150,
834,
1890,
1748,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
24361,
2469,
20275,
834,
755,
549,
17444,
427,
150,
834,
1890,
1748,
3274,
6654,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What did the away team score when the home team scored 23.13 (151)? | CREATE TABLE table_12035 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_12035 WHERE "Home team score" = '23.13 (151)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
2469,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
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... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
15518,
2469,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
2773,
5,
2368,
17251,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which arena was founded in 2000? | CREATE TABLE table_40893 (
"Club" text,
"Home town" text,
"Arena" text,
"Founded" real,
"Rank" text
) | SELECT "Arena" FROM table_40893 WHERE "Founded" = '2000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3914,
519,
41,
96,
254,
11158,
121,
1499,
6,
96,
19040,
1511,
121,
1499,
6,
96,
188,
1536,
9,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
22557,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
188,
1536,
9,
121,
21680,
953,
834,
2445,
3914,
519,
549,
17444,
427,
96,
20100,
121,
3274,
3,
31,
13527,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When was the attendance 65,806? | CREATE TABLE table_name_40 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_40 WHERE attendance = "65,806" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
5522,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
11364,
7123,
6,
2079,
948,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
11364,
3274,
96,
4122,
6,
2079,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the rating/share for 18-49 for the episode that had 5.90 million viewers? | CREATE TABLE table_26305 (
"No." real,
"Episode" text,
"Rating" text,
"Share" real,
"Rating/share (18-49)" text,
"Viewers (millions)" text,
"Rank (timeslot)" real,
"Rank (night)" real
) | SELECT "Rating/share (18-49)" FROM table_26305 WHERE "Viewers (millions)" = '5.90' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
26724,
41,
96,
4168,
535,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
448,
1014,
121,
1499,
6,
96,
24501,
121,
490,
6,
96,
448,
1014,
87,
12484,
9323,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
1014,
87,
12484,
9323,
18,
3647,
61,
121,
21680,
953,
834,
2688,
26724,
549,
17444,
427,
96,
15270,
277,
41,
17030,
7,
61,
121,
3274,
3,
31,
9125,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.