NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the average draw for Desi Dobreva, was it less than 6? | CREATE TABLE table_41374 (
"Draw" real,
"Artist" text,
"Song" text,
"Televote" text,
"Place" real
) | SELECT AVG("Draw") FROM table_41374 WHERE "Artist" = 'desi dobreva' AND "Place" < '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2368,
4581,
41,
96,
308,
10936,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
382,
400,
1621,
17,
15,
121,
1499,
6,
96,
345,
11706,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
308,
10936,
8512,
21680,
953,
834,
591,
2368,
4581,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
1395,
23,
103,
1999,
900,
31,
3430,
96,
345,
11706,
121,
3,
2,
3,
31,
948,
31,
1,
-100,
... |
What is the match report from the game played on 25 april 2009? | CREATE TABLE table_name_4 (match_report VARCHAR, date VARCHAR) | SELECT match_report FROM table_name_4 WHERE date = "25 april 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
19515,
834,
60,
1493,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1588,
934,
45,
8,
467,
1944,
30,
944,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1588,
834,
60,
1493,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
833,
3274,
96,
1828,
3,
9,
2246,
40,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List all payment methods and number of payments using each payment methods Plot them as bar chart, sort by the Y in descending. | CREATE TABLE Staff (
staff_id INTEGER,
staff_address_id INTEGER,
nickname VARCHAR(80),
first_name VARCHAR(80),
middle_name VARCHAR(80),
last_name VARCHAR(80),
date_of_birth DATETIME,
date_joined_staff DATETIME,
date_left_staff DATETIME
)
CREATE TABLE Customer_Payments (
customer... | SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10071,
41,
871,
834,
23,
26,
3,
21342,
17966,
6,
871,
834,
9,
26,
12039,
834,
23,
26,
3,
21342,
17966,
6,
24649,
584,
4280,
28027,
599,
2079,
201,
166,
834,
4350,
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,
1942,
834,
23152,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
7327,
834,
19702,
4128,
350,
4630,
6880,
272,
476,
1942,
834,
23152,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100... |
Name the lowest Year Joined which has a Mascot of pioneers? | CREATE TABLE table_name_93 (year_joined INTEGER, mascot VARCHAR) | SELECT MIN(year_joined) FROM table_name_93 WHERE mascot = "pioneers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
1201,
834,
1927,
630,
26,
3,
21342,
17966,
6,
3,
2754,
4310,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
7402,
2929,
5279,
15,
26,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
1201,
834,
1927,
630,
26,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
3,
2754,
4310,
3274,
96,
12364,
15,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what circuit is in italy | CREATE TABLE table_name_25 (
circuit VARCHAR,
round VARCHAR
) | SELECT circuit FROM table_name_25 WHERE round = "italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
4558,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
4558,
19,
16,
34,
9,
120,
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,
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,
4558,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1751,
3274,
96,
9538,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the total attendance for H/A of A and opponents of wolverhampton wanderers? | CREATE TABLE table_name_42 (
attendance VARCHAR,
h___a VARCHAR,
opponents VARCHAR
) | SELECT COUNT(attendance) FROM table_name_42 WHERE h___a = "a" AND opponents = "wolverhampton wanderers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
11364,
584,
4280,
28027,
6,
3,
107,
834,
834,
834,
9,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
3,
107,
834,
834,
834,
9,
3274,
96,
9,
121,
3430,
16383,
3274,
96,
210,
32,
40,
624,
1483,
11632,
10735,
277,
121,
1,
-100,
-100... |
Which Mac OSX had no haiku and a client that was dc++? | CREATE TABLE table_name_98 (mac_os_x VARCHAR, haiku VARCHAR, client VARCHAR) | SELECT mac_os_x FROM table_name_98 WHERE haiku = "no" AND client = "dc++" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
11101,
834,
32,
7,
834,
226,
584,
4280,
28027,
6,
4244,
23,
2729,
584,
4280,
28027,
6,
1188,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11486,
834,
32,
7,
834,
226,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
4244,
23,
2729,
3274,
96,
29,
32,
121,
3430,
1188,
3274,
96,
26,
75,
16702,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Frequency has an Owner of rogers communications rogers radio, and a Call sign of cikz-fm? | CREATE TABLE table_name_77 (frequency VARCHAR, owner VARCHAR, call_sign VARCHAR) | SELECT frequency FROM table_name_77 WHERE owner = "rogers communications rogers radio" AND call_sign = "cikz-fm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
30989,
584,
4280,
28027,
6,
2527,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5532,
835,
11298,
65,
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,
7321,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2527,
3274,
96,
3822,
277,
5030,
3,
3822,
277,
2252,
121,
3430,
580,
834,
6732,
3274,
96,
75,
23,
157,
172,
18,
89,
51,
121,
1,
-100,
-100,
-100,
-100,
-100... |
Which Athlete has a Place of 1, and a Year smaller than 1988, and a Country of gre, and a Time of 21:57:00? | CREATE TABLE table_name_97 (
athlete VARCHAR,
time VARCHAR,
country VARCHAR,
place VARCHAR,
year VARCHAR
) | SELECT athlete FROM table_name_97 WHERE place = 1 AND year < 1988 AND country = "gre" AND time = "21:57:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
17893,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
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,
1... | [
3,
23143,
14196,
17893,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
286,
3274,
209,
3430,
215,
3,
2,
10414,
3430,
684,
3274,
96,
3584,
121,
3430,
97,
3274,
96,
2658,
10,
755,
18735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which award was won by Gloria Stuart after 1984? | CREATE TABLE table_name_92 (
superlative VARCHAR,
year VARCHAR,
actress VARCHAR
) | SELECT superlative FROM table_name_92 WHERE year > 1984 AND actress = "gloria stuart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
1355,
40,
1528,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
15676,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2760,
47,
751,
57,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1355,
40,
1528,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
215,
2490,
13480,
3430,
15676,
3274,
96,
122,
322,
23,
9,
21341,
1408,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Home of kings had what score? | CREATE TABLE table_name_64 (score VARCHAR, home VARCHAR) | SELECT score FROM table_name_64 WHERE home = "kings" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
7,
9022,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1210,
13,
3,
1765,
7,
141,
125,
2604,
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,
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,
2604,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
234,
3274,
96,
1765,
7,
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 is the date that is Away team is Honduras? | CREATE TABLE table_43150 (
"Date" text,
"Tournament" text,
"Location" text,
"Home team" text,
"Score" text,
"Away team" text
) | SELECT "Date" FROM table_43150 WHERE "Away team" = 'honduras' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
12278,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
342,
121,
21680,
953,
834,
4906,
12278,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
107,
106,
26,
2414,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What player is 2.01 m tall? | CREATE TABLE table_12962773_2 (player VARCHAR, height VARCHAR) | SELECT player FROM table_12962773_2 WHERE height = "2.01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4314,
2555,
4552,
834,
357,
41,
20846,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
19,
6864,
536,
3,
51,
5065,
58,
1,
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,
1959,
21680,
953,
834,
2122,
4314,
2555,
4552,
834,
357,
549,
17444,
427,
3902,
3274,
96,
24273,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT DATE HAD A SCORE OF 71-64? | CREATE TABLE table_name_46 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_46 WHERE score = "71-64" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
309,
6048,
454,
6762,
71,
6508,
20888,
3347,
3,
4450,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4448,
549,
17444,
427,
2604,
3274,
96,
4450,
18,
4389,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the loss for 48-37 | CREATE TABLE table_name_54 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_54 WHERE record = "48-37" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
2298,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1453,
21,
4678,
18,
4118,
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,
1453,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1368,
3274,
96,
3707,
18,
4118,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score of the game with a tie no of 6? | CREATE TABLE table_59580 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_59580 WHERE "Tie no" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3301,
2079,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
134,
9022,
121,
21680,
953,
834,
755,
3301,
2079,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients below 82 years of age have undergone the procedure with short title extracorporeal circulat? | 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 INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "82" AND procedures.short_title = "Extracorporeal circulat" | [
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,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5? | CREATE TABLE table_name_1 (points INTEGER, games VARCHAR, pts_game VARCHAR, nation VARCHAR) | SELECT AVG(points) FROM table_name_1 WHERE pts_game > 4 AND nation = "england" AND games < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
2700,
7,
3,
21342,
17966,
6,
1031,
584,
4280,
28027,
6,
3,
102,
17,
7,
834,
7261,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2700,
7,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
3,
102,
17,
7,
834,
7261,
2490,
314,
3430,
2982,
3274,
96,
4606,
40,
232,
121,
3430,
1031,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-10... |
What's the number of wins when the flags were less than 8 and 52.11% of wins? | CREATE TABLE table_64136 (
"Club" text,
"Active" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Percentage wins" text,
"Flags" real
) | SELECT COUNT("Wins") FROM table_64136 WHERE "Percentage wins" = '52.11%' AND "Flags" < '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
23459,
41,
96,
254,
11158,
121,
1499,
6,
96,
13035,
15,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
18455,
7,
8512,
21680,
953,
834,
4389,
23459,
549,
17444,
427,
96,
12988,
3728,
545,
9204,
121,
3274,
3,
31,
755,
14489,
4704,
31,
3430,
96,
371,
5430,
7,
121,
3,
2,
3,
31,
927,
31,
1,
-10... |
What is the intergiro classification of stage 21? | CREATE TABLE table_12261926_2 (intergiro_classification VARCHAR, stage VARCHAR) | SELECT intergiro_classification FROM table_12261926_2 WHERE stage = 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2688,
2294,
2688,
834,
357,
41,
3870,
9427,
32,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1413,
9427,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1413,
9427,
32,
834,
4057,
2420,
21680,
953,
834,
2122,
2688,
2294,
2688,
834,
357,
549,
17444,
427,
1726,
3274,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player is from scotland? | CREATE TABLE table_61463 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Player" FROM table_61463 WHERE "Country" = 'scotland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2534,
3891,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
49,
121,
21680,
953,
834,
948,
2534,
3891,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
7,
4310,
40,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Among patients who died in or before the year 2115, how many had congestive heart failure as primary disease? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CONGESTIVE HEART FAILURE" AND demographic.dod_year <= "2115.0" | [
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,
25930,
4844,
159,
3274,
96,
254,
15628,
6038,
8087,
3,
6021,
8241,
377,
22862,
18290,
121,
3430,
1... |
What league played in 2011? | CREATE TABLE table_name_65 (league VARCHAR, year VARCHAR) | SELECT league FROM table_name_65 WHERE year = 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
29512,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5533,
1944,
16,
2722,
58,
1,
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,
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... | [
3,
23143,
14196,
5533,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
215,
3274,
2722,
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... |
type ii diabetes mellitus with hba1c > 7 % | CREATE TABLE table_train_244 (
"id" int,
"fasting_venous_plasma_glucose" int,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"capillary_glycated_hemoglobin" float,
"fasting_capillary_glucose" int,
"borderline_fasting_capillary_glucose_level" int,
"body_mass_index_bmi" float,
"fasti... | SELECT * FROM table_train_244 WHERE diabetic = 'ii' AND hemoglobin_a1c_hba1c > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
3628,
41,
96,
23,
26,
121,
16,
17,
6,
96,
11584,
53,
834,
162,
10529,
834,
21178,
9,
834,
13492,
509,
7,
15,
121,
16,
17,
6,
96,
6015,
32,
14063,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1429,
21680,
953,
834,
9719,
834,
357,
3628,
549,
17444,
427,
17496,
447,
3274,
3,
31,
23,
23,
31,
3430,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the location of the ivy club? | CREATE TABLE table_name_82 (location VARCHAR, name VARCHAR) | SELECT location FROM table_name_82 WHERE name = "the ivy club" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
14836,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
3,
23,
208,
63,
1886,
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,
1128,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
564,
3274,
96,
532,
3,
23,
208,
63,
1886,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the ids of all distinct orders ordered by placed date. | CREATE TABLE orders (
order_id VARCHAR,
date_order_placed VARCHAR
) | SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5022,
41,
455,
834,
23,
26,
584,
4280,
28027,
6,
833,
834,
9397,
834,
4687,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
3,
23,
26,
7,
13,
66,
6746,
5022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
15438,
25424,
6227,
455,
834,
23,
26,
21680,
5022,
4674,
11300,
272,
476,
833,
834,
9397,
834,
4687,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What year had a date of TBA where the Oakland raiders were the home team? | CREATE TABLE table_name_80 (year INTEGER, date VARCHAR, designated_home VARCHAR) | SELECT AVG(year) FROM table_name_80 WHERE date = "tba" AND designated_home = "oakland raiders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1201,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
6,
9943,
834,
5515,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
141,
3,
9,
833,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
833,
3274,
96,
17,
115,
9,
121,
3430,
9943,
834,
5515,
3274,
96,
32,
1639,
40,
232,
15941,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the queens where richmond staten is 42%? | CREATE TABLE table_1108394_24 (queens VARCHAR, richmond_ VARCHAR, staten_is VARCHAR) | SELECT queens FROM table_1108394_24 WHERE richmond_[staten_is] = "42_percentage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
4591,
4240,
834,
2266,
41,
835,
35,
7,
584,
4280,
28027,
6,
2354,
6764,
834,
584,
4280,
28027,
6,
538,
29,
834,
159,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14915,
7,
21680,
953,
834,
19277,
4591,
4240,
834,
2266,
549,
17444,
427,
2354,
6764,
834,
6306,
5540,
29,
834,
159,
908,
3274,
96,
4165,
834,
883,
3728,
545,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen? | CREATE TABLE table_25599 (
"No." real,
"Season" real,
"Bowler" text,
"Batsmen" text,
"For" text,
"Against" text,
"Ground" text,
"Scorecard" text
) | SELECT COUNT("Bowler") FROM table_25599 WHERE "Batsmen" = 'David Hussey Azhar Mahmood Gurkeerat Singh' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
3264,
41,
96,
4168,
535,
490,
6,
96,
134,
15,
9,
739,
121,
490,
6,
96,
279,
2381,
1171,
121,
1499,
6,
96,
279,
144,
7,
904,
121,
1499,
6,
96,
3809,
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,
2847,
17161,
599,
121,
279,
2381,
1171,
8512,
21680,
953,
834,
25502,
3264,
549,
17444,
427,
96,
279,
144,
7,
904,
121,
3274,
3,
31,
308,
9,
6961,
13674,
7,
15,
63,
12611,
3272,
8555,
51,
32,
32,
26,
20402,
1050,
... |
How many total points were in 1992? | CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR) | SELECT COUNT(points) FROM table_name_74 WHERE year = 1992 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
2700,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
979,
130,
16,
9047,
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,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
215,
3274,
9047,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the opponent of the New Orleans Saints? | CREATE TABLE table_32742 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_32742 WHERE "Opponent" = 'new orleans saints' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
4581,
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,
96,
20119,
121,
21680,
953,
834,
2668,
4581,
357,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
5534,
42,
109,
3247,
15528,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Larry Nelson's final score? | CREATE TABLE table_name_39 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_39 WHERE player = "larry nelson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
17129,
14448,
31,
7,
804,
2604,
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,
2604,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1959,
3274,
96,
40,
291,
651,
3,
29,
3573,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those products with a price between 60 and 120, draw a scatter chart about the correlation between code and manufacturer . | 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 Code, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 | [
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,
3636,
6,
15248,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average rating for a Flyde that has a Burnley less than 0? | CREATE TABLE table_name_57 (fylde INTEGER, burnley INTEGER) | SELECT AVG(fylde) FROM table_name_57 WHERE burnley < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
89,
63,
40,
221,
3,
21342,
17966,
6,
5958,
1306,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
5773,
21,
3,
9,
8223,
221,
24,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
89,
63,
40,
221,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
5958,
1306,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission year is less than 2173 and lab test name is alanine aminotransferase (alt)? | CREATE TABLE procedures (
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2173" AND lab.label = "Alanine Aminotransferase (ALT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
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,
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,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
when was the loan ended when the loan club is spartak moscow? | CREATE TABLE table_46419 (
"Name" text,
"Country" text,
"Loan Club" text,
"Started" text,
"Ended" text,
"Start Source" text,
"End Source" text
) | SELECT "Ended" FROM table_46419 WHERE "Loan Club" = 'spartak moscow' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4389,
2294,
41,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
434,
32,
152,
1949,
121,
1499,
6,
96,
7681,
1054,
121,
1499,
6,
96,
8532,
221,
26,
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,
8532,
221,
26,
121,
21680,
953,
834,
591,
4389,
2294,
549,
17444,
427,
96,
434,
32,
152,
1949,
121,
3274,
3,
31,
7,
2274,
1639,
2288,
3523,
210,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where did the Oakland Raiders play in week 12 of their 1976 season? | CREATE TABLE table_70403 (
"Week" real,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
) | SELECT "Game site" FROM table_70403 WHERE "Week" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2445,
519,
41,
96,
518,
10266,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
353,
121,
21680,
953,
834,
2518,
2445,
519,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What college/junior/club team did dmitri gorenko play for? | CREATE TABLE table_2781227_9 (
college_junior_club_team VARCHAR,
player VARCHAR
) | SELECT college_junior_club_team FROM table_2781227_9 WHERE player = "Dmitri Gorenko" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3940,
2122,
2555,
834,
1298,
41,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
21680,
953,
834,
357,
3940,
2122,
2555,
834,
1298,
549,
17444,
427,
1959,
3274,
96,
308,
1538,
52,
23,
9826,
18994,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the Composer of ' peace will come '? | CREATE TABLE table_59853 (
"Year" real,
"Song" text,
"Artist" text,
"Place" text,
"Points" text,
"Composer" text
) | SELECT "Composer" FROM table_59853 WHERE "Song" = ' peace will come ' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4433,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
134,
2444,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
345,
11706,
121,
1499,
6,
96,
22512,
7,
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,
5890,
2748,
49,
121,
21680,
953,
834,
3390,
4433,
519,
549,
17444,
427,
96,
134,
2444,
121,
3274,
3,
31,
3065,
56,
369,
3,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Visualize a bar chart about the distribution of meter_400 and ID , sort in asc by the y axis. | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE... | SELECT meter_400, ID FROM swimmer ORDER BY ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
5548,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
4699,
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,
... |
How many companies that are not headquartered in the United States for each main industry? Show me a bar chart. | CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
... | SELECT Main_Industry, COUNT(Main_Industry) FROM company WHERE Headquarters <> 'USA' GROUP BY Main_Industry | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
834,
29179,
41,
5939,
834,
4309,
16,
17,
6,
1958,
834,
4309,
16,
17,
6,
3,
22557,
834,
858,
834,
532,
834,
476,
2741,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5140,
834,
1570,
8655,
8224,
6,
2847,
17161,
599,
21978,
29,
834,
1570,
8655,
8224,
61,
21680,
349,
549,
17444,
427,
31282,
3,
2,
3155,
3,
31,
17663,
31,
350,
4630,
6880,
272,
476,
5140,
834,
1570,
8655,
8224,
1,
... |
Where is the German Grand Prix? | CREATE TABLE table_1140082_2 (location VARCHAR, race VARCHAR) | SELECT location FROM table_1140082_2 WHERE race = "German Grand Prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
5548,
4613,
834,
357,
41,
14836,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
2968,
2698,
12942,
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,
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,
1128,
21680,
953,
834,
2596,
5548,
4613,
834,
357,
549,
17444,
427,
1964,
3274,
96,
24518,
2698,
12942,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who's the captain of the team whose head coach is Alistair Edwards? | CREATE TABLE table_17915 (
"Team" text,
"Location" text,
"Stadium" text,
"Founded" real,
"Joined" real,
"Head Coach" text,
"Captain" text
) | SELECT "Captain" FROM table_17915 WHERE "Head Coach" = 'Alistair Edwards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
1808,
41,
96,
18699,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
683,
32,
630,
26,
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,
19566,
17,
9,
77,
121,
21680,
953,
834,
26593,
1808,
549,
17444,
427,
96,
3845,
9,
26,
9493,
121,
3274,
3,
31,
188,
3350,
2256,
8200,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the winning pitcher on june 25? | CREATE TABLE table_12125069_2 (
winning_pitcher VARCHAR,
date VARCHAR
) | SELECT winning_pitcher FROM table_12125069_2 WHERE date = "June 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22011,
11434,
3951,
834,
357,
41,
3447,
834,
5230,
1703,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3447,
20034,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
5230,
1703,
21680,
953,
834,
22011,
11434,
3951,
834,
357,
549,
17444,
427,
833,
3274,
96,
683,
444,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the yield for a blast that was in nts area 3s? | CREATE TABLE table_name_39 (yield VARCHAR, location VARCHAR) | SELECT yield FROM table_name_39 WHERE location = "nts area 3s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
63,
23,
8804,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6339,
21,
3,
9,
11925,
24,
47,
16,
3,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6339,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1128,
3274,
96,
29,
17,
7,
616,
220,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the average of department_id bin hire_date by weekday in a bar chart, I want to show in desc by the y-axis. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(DEPARTMENT_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
4674,
11300,
272,
476,
71,
17217,
... |
what is the minimum lowest with highest being 2363 | CREATE TABLE table_903 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
) | SELECT MIN("Lowest") FROM table_903 WHERE "Highest" = '2363' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2394,
519,
41,
96,
18699,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
19566,
9,
6726,
121,
490,
6,
96,
21417,
222,
121,
490,
6,
96,
434,
32,
12425,
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,
3,
17684,
599,
121,
434,
32,
12425,
8512,
21680,
953,
834,
2394,
519,
549,
17444,
427,
96,
21417,
222,
121,
3274,
3,
31,
2773,
3891,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the total number of elementary schools for 31851 | CREATE TABLE table_26254 (
"Year" text,
"District-wide" real,
"High schools" real,
"Middle schools" real,
"Elementary schools" real,
"Other programs & adjustments" real
) | SELECT COUNT("Elementary schools") FROM table_26254 WHERE "District-wide" = '31851' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1828,
591,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
23,
20066,
18,
6728,
121,
490,
6,
96,
21417,
2061,
121,
490,
6,
96,
329,
23,
8437,
2061,
121,
490,
6,
96,
427... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
427,
3335,
1208,
2061,
8512,
21680,
953,
834,
2688,
1828,
591,
549,
17444,
427,
96,
308,
23,
20066,
18,
6728,
121,
3274,
3,
31,
519,
2606,
5553,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Constructor has Rounds, All and Driver, Bruno Giacomelli? | CREATE TABLE table_55292 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Driver" text,
"Rounds" text
) | SELECT "Constructor" FROM table_55292 WHERE "Rounds" = 'all' AND "Driver" = 'bruno giacomelli' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3166,
357,
41,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
7,
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,
4302,
7593,
127,
121,
21680,
953,
834,
3769,
3166,
357,
549,
17444,
427,
96,
448,
32,
1106,
7,
121,
3274,
3,
31,
1748,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
9052,
29,
32,
3,
122,
23,
9,
287,
7999,
31,... |
Find the number of rooms with more than 50 capacity for each building Show bar chart, and could you sort by the the total number in desc? | CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min... | SELECT building, COUNT(*) FROM classroom WHERE capacity > 50 GROUP BY building ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1217,
41,
4699,
3,
4331,
4059,
15757,
6,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
4220,
834,
23,
26,
3,
4331,
4059,
28007,
6,
10542,
3,
4331,
4059,
18669,
6,
215,
206,
17552,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
740,
6,
2847,
17161,
599,
1935,
61,
21680,
4858,
549,
17444,
427,
2614,
2490,
943,
350,
4630,
6880,
272,
476,
740,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Sub-Parish (Sogn) was built after 1894 in the Parish (Prestegjeld) of jostedal parish? | CREATE TABLE table_59786 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sogn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
) | SELECT "Sub-Parish (Sogn)" FROM table_59786 WHERE "Year Built" > '1894' AND "Parish (Prestegjeld)" = 'jostedal parish' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
940,
3840,
41,
96,
13212,
1273,
41,
10572,
849,
122,
354,
8804,
61,
121,
1499,
6,
96,
25252,
18,
13212,
1273,
41,
5231,
122,
29,
61,
121,
1499,
6,
96,
3541,
450,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25252,
18,
13212,
1273,
41,
5231,
122,
29,
61,
121,
21680,
953,
834,
3390,
940,
3840,
549,
17444,
427,
96,
476,
2741,
14862,
121,
2490,
3,
31,
2606,
4240,
31,
3430,
96,
13212,
1273,
41,
10572,
849,
122,
354,
8... |
give me the number of patients whose ethnicity is asian and diagnoses icd9 code is 30501? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "ASIAN" AND diagnoses.icd9_code = "30501" | [
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,
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... |
Return a bar chart about the distribution of Days and the amount of Days , and group by attribute Days. | CREATE TABLE Member_of (
FacID INTEGER,
DNO INTEGER,
Appt_Type VARCHAR(15)
)
CREATE TABLE Course (
CID VARCHAR(7),
CName VARCHAR(40),
Credits INTEGER,
Instructor INTEGER,
Days VARCHAR(5),
Hours VARCHAR(11),
DNO INTEGER
)
CREATE TABLE Minor_in (
StuID INTEGER,
DNO INTEGE... | SELECT Days, COUNT(Days) FROM Course GROUP BY Days ORDER BY Credits | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8541,
834,
858,
41,
1699,
75,
4309,
3,
21342,
17966,
6,
309,
7400,
3,
21342,
17966,
6,
2276,
17,
834,
25160,
584,
4280,
28027,
599,
1808,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13992,
6,
2847,
17161,
599,
16803,
7,
61,
21680,
8670,
350,
4630,
6880,
272,
476,
13992,
4674,
11300,
272,
476,
6529,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's amount of L2 Cache on a device that has a Frequency of 1500mhz? | CREATE TABLE table_name_78 (l2_cache VARCHAR, frequency VARCHAR) | SELECT l2_cache FROM table_name_78 WHERE frequency = "1500mhz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
40,
357,
834,
75,
4933,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
866,
13,
301,
357,
205,
4933,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
40,
357,
834,
75,
4933,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
7321,
3274,
96,
536,
2560,
51,
107,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the fastest lap in the Belgian Grand Prix? | CREATE TABLE table_72173 (
"Round" real,
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | SELECT "Fastest Lap" FROM table_72173 WHERE "Grand Prix" = 'Belgian Grand Prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
2517,
519,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4377,
325,
102,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
5865,
2517,
519,
549,
17444,
427,
96,
4744,
727,
12942,
121,
3274,
3,
31,
2703,
40,
22898,
2698,
12942,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the train 2053 built? | CREATE TABLE table_1057316_1 (build_date VARCHAR, serial_number VARCHAR) | SELECT build_date FROM table_1057316_1 WHERE serial_number = "2053" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
4552,
2938,
834,
536,
41,
16422,
834,
5522,
584,
4280,
28027,
6,
10501,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
2412,
460,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
834,
5522,
21680,
953,
834,
12869,
4552,
2938,
834,
536,
549,
17444,
427,
10501,
834,
5525,
1152,
3274,
96,
1755,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is writtenand directed by shannon flynn? | CREATE TABLE table_24018430_3 (written_by VARCHAR, directed_by VARCHAR) | SELECT written_by FROM table_24018430_3 WHERE directed_by = "Shannon Flynn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
25987,
1458,
834,
519,
41,
14973,
834,
969,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
1545,
232,
6640,
57,
666... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11944,
25987,
1458,
834,
519,
549,
17444,
427,
6640,
834,
969,
3274,
96,
10499,
17805,
8223,
29,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When is the most recent year with more than 27 points and more than 5 wins? | CREATE TABLE table_35200 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT MAX("Year") FROM table_35200 WHERE "Points" > '27' AND "Wins" > '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3632,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
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,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
2469,
3632,
549,
17444,
427,
96,
22512,
7,
121,
2490,
3,
31,
2555,
31,
3430,
96,
18455,
7,
121,
2490,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those records from the products and each product's manufacturer, a scatter chart shows the correlation between code and manufacturer . | 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.Code, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code | [
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,
22737,
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,
1,
-100,
-100,
-100,
... |
what is the name of the episode directed by james bobin | CREATE TABLE table_29803475_3 (
title VARCHAR,
directed_by VARCHAR
) | SELECT title FROM table_29803475_3 WHERE directed_by = "James Bobin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2079,
3710,
3072,
834,
519,
41,
2233,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
564,
13,
8,
5640,
6640,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
3166,
2079,
3710,
3072,
834,
519,
549,
17444,
427,
6640,
834,
969,
3274,
96,
683,
9,
2687,
5762,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the car number that has less than 369 laps for a Dodge with more than 49 points? | CREATE TABLE table_name_62 (
car__number INTEGER,
points VARCHAR,
laps VARCHAR,
make VARCHAR
) | SELECT SUM(car__number) FROM table_name_62 WHERE laps < 369 AND make = "dodge" AND points > 49 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
443,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
143,
584,
4280,
28027,
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,
1... | [
3,
23143,
14196,
180,
6122,
599,
1720,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
14941,
7,
3,
2,
220,
3951,
3430,
143,
3274,
96,
26,
32,
26,
397,
121,
3430,
979,
2490,
9526,
1,
-100,
-100,
-100,
... |
Who was the driver with 29 laps? | CREATE TABLE table_51462 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) | SELECT "Driver" FROM table_51462 WHERE "Laps" = '29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2534,
4056,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
1499,
6,
96,
13368,
87,
1649,
11809,
26,
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,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
755,
2534,
4056,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest New Zealand value with a Hong Kong value less than 0? | CREATE TABLE table_34858 (
"New Zealand" real,
"Hong Kong" real,
"Singapore" real,
"London" real,
"Brisbane" real,
"Cardiff" real,
"Durban" real,
"Santiago" real,
"Mar Del Plata" real,
"Beijing" real,
"Kuala Lumpur" real,
"Points" real
) | SELECT MAX("New Zealand") FROM table_34858 WHERE "Hong Kong" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3707,
3449,
41,
96,
6861,
5725,
121,
490,
6,
96,
566,
2444,
7807,
121,
490,
6,
96,
134,
53,
9,
21642,
121,
490,
6,
96,
29712,
121,
490,
6,
96,
279,
52,
159,
3478,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6861,
5725,
8512,
21680,
953,
834,
519,
3707,
3449,
549,
17444,
427,
96,
566,
2444,
7807,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the number of points against when the tries against was 53? | CREATE TABLE table_name_19 (
points_against VARCHAR,
tries_against VARCHAR
) | SELECT points_against FROM table_name_19 WHERE tries_against = "53" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
3,
9000,
834,
9,
16720,
7,
17,
3274,
96,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what number of patients who underwent hemodialysis were discharged at home health care? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.short_title = "Hemodialysis" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many episodes was Jimmy Mulville performer 4? | CREATE TABLE table_14934885_1 (episode VARCHAR, performer_4 VARCHAR) | SELECT COUNT(episode) FROM table_14934885_1 WHERE performer_4 = "Jimmy Mulville" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4271,
3707,
4433,
834,
536,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
1912,
49,
834,
591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
15,
102,
159,
32,
221,
61,
21680,
953,
834,
2534,
4271,
3707,
4433,
834,
536,
549,
17444,
427,
1912,
49,
834,
591,
3274,
96,
683,
603,
2258,
10094,
1420,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average Founded for chicopee, massachusetts? | CREATE TABLE table_name_59 (
founded INTEGER,
location VARCHAR
) | SELECT AVG(founded) FROM table_name_59 WHERE location = "chicopee, massachusetts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
5710,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
3,
20100,
21,
8780,
32,
855,
15,
6,
3294,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
23329,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1128,
3274,
96,
1436,
10845,
15,
15,
6,
3294,
1836,
1074,
17,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the number of courthouses located in aberdeen ? | CREATE TABLE table_204_87 (
id number,
"courthouse" text,
"city" text,
"street address" text,
"jurisdiction" text,
"dates of use" text,
"named for" text
) | SELECT COUNT("courthouse") FROM table_204_87 WHERE "city" = 'aberdeen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4225,
41,
3,
23,
26,
381,
6,
96,
14492,
1840,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
22967,
1115,
121,
1499,
6,
96,
20868,
7,
12472,
121,
1499,
6,
96,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14492,
1840,
8512,
21680,
953,
834,
26363,
834,
4225,
549,
17444,
427,
96,
6726,
121,
3274,
3,
31,
9,
1152,
221,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Candidate of kimmo kiljunen belongs to which municipality? | CREATE TABLE table_name_88 (
municipality VARCHAR,
candidate VARCHAR
) | SELECT municipality FROM table_name_88 WHERE candidate = "kimmo kiljunen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
27597,
584,
4280,
28027,
6,
4775,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
25833,
17,
15,
13,
3,
19754,
51,
32,
3,
157,
173,
6959,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
27597,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
4775,
3274,
96,
19754,
51,
32,
3,
157,
173,
6959,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many male patients are diagnosed with icd9 code 5845? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.icd9_code = "5845" | [
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... |
what is the last nationality listed in the table ? | CREATE TABLE table_204_173 (
id number,
"rank" number,
"group" text,
"name" text,
"nationality" text,
"2.05" text,
"2.15" text,
"2.19" text,
"2.23" text,
"2.26" text,
"result" text,
"notes" text
) | SELECT "nationality" FROM table_204_173 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2517,
519,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
10739,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
24273,
17395,
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,
16557,
485,
121,
21680,
953,
834,
26363,
834,
2517,
519,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the percentage of total votes in 1997? | CREATE TABLE table_28819393_1 (
_percentage_of_total_vote VARCHAR,
year VARCHAR
) | SELECT _percentage_of_total_vote FROM table_28819393_1 WHERE year = "1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4959,
4271,
4271,
834,
536,
41,
3,
834,
883,
3728,
545,
834,
858,
834,
235,
1947,
834,
1621,
17,
15,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
834,
883,
3728,
545,
834,
858,
834,
235,
1947,
834,
1621,
17,
15,
21680,
953,
834,
2577,
4959,
4271,
4271,
834,
536,
549,
17444,
427,
215,
3274,
96,
2294,
4327,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
platelets > 100 | CREATE TABLE table_train_257 (
"id" int,
"serum_bicarbonate" int,
"plasma_glucose_concentration" int,
"hemoglobin_a1c_hba1c" float,
"platelets" int,
"visual_impairment" bool,
"NOUSE" float
) | SELECT * FROM table_train_257 WHERE platelets > 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
3436,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
49,
440,
834,
115,
23,
17089,
342,
121,
16,
17,
6,
96,
21178,
9,
834,
13492,
509,
7,
15,
834,
11928,
257,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1429,
21680,
953,
834,
9719,
834,
357,
3436,
549,
17444,
427,
3829,
7677,
2490,
910,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many drivers drove 300 laps at average speed of 103.594? | CREATE TABLE table_24592 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT COUNT("Driver") FROM table_24592 WHERE "Laps" = '300' AND "Average Speed (mph)" = '103.594' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3390,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20982,
52,
8512,
21680,
953,
834,
2266,
3390,
357,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
5426,
31,
3430,
96,
188,
624,
545,
9913,
41,
7656,
61,
121,
3274,
3,
31,
1714,
9285,
... |
how many times is the rank less than 6, certification 2x platinum and the peak position 2? | CREATE TABLE table_14042 (
"Rank" real,
"Artist" text,
"Album" text,
"Peak position" text,
"Sales" real,
"Certification" text
) | SELECT COUNT("Sales") FROM table_14042 WHERE "Rank" < '6' AND "Certification" = '2x platinum' AND "Peak position" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
4165,
41,
96,
22557,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
345,
15,
1639,
1102,
121,
1499,
6,
96,
134,
4529,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
4529,
8512,
21680,
953,
834,
22012,
4165,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
948,
31,
3430,
96,
254,
49,
17,
2420,
121,
3274,
3,
31,
357,
226,
26325,
31,
3430,
96,
345,
15,... |
how many songs reached position 1 at their highest point ? | CREATE TABLE table_203_249 (
id number,
"position" number,
"song title" text,
"artist" text,
"sales" number,
"highest position" number
) | SELECT COUNT("song title") FROM table_203_249 WHERE "highest position" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
3647,
41,
3,
23,
26,
381,
6,
96,
4718,
121,
381,
6,
96,
7,
2444,
2233,
121,
1499,
6,
96,
1408,
343,
121,
1499,
6,
96,
7,
4529,
121,
381,
6,
96,
6739,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
2444,
2233,
8512,
21680,
953,
834,
23330,
834,
357,
3647,
549,
17444,
427,
96,
6739,
222,
1102,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Score, when Player is "Deane Beman"? | CREATE TABLE table_name_20 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_20 WHERE player = "deane beman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
7,
9022,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
12387,
19,
96,
2962,
152,
15,
493,
348... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
1959,
3274,
96,
221,
152,
15,
36,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the stages for 1981 | CREATE TABLE table_name_42 (
stages VARCHAR,
year VARCHAR
) | SELECT stages FROM table_name_42 WHERE year = 1981 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
6518,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
6518,
21,
15465,
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,
6518,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
215,
3274,
15465,
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... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about commission_pct over the job_id , and could you rank Y-axis in descending order? | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
42... |
How many instructors are in each department? Show me a bar chart, and sort by the x axis from high to low. | CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_... | SELECT T1.dept_name, COUNT(DISTINCT T3.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name ORDER BY T1.dept_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
2233,
3,
4331,
4059,
599,
1752,
201,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
11893,
206,
17552,
599,
4482,
632,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
26,
6707,
834,
4350,
6,
2847,
17161,
599,
15438,
25424,
6227,
332,
5787,
4309,
61,
21680,
3066,
6157,
332,
536,
3,
15355,
3162,
1236,
6157,
332,
357,
9191,
332,
5411,
26,
6707,
834,
4350,
3274,
332,
4416,
... |
What is the name of the project that has a scientist assigned to it whose name contains 'Smith', and count them by a bar chart | CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
) | SELECT T2.Name, COUNT(T2.Name) FROM AssignedTo AS T1 JOIN Projects AS T2 ON T1.Project = T2.Code JOIN Scientists AS T3 ON T1.Scientist = T3.SSN WHERE T3.Name LIKE '%Smith%' GROUP BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21166,
7,
41,
180,
8544,
16,
17,
6,
5570,
7435,
599,
1458,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2786,
7,
41,
3636,
7435,
10820,
6,
5570,
7435,
599,
1752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6,
2847,
17161,
599,
382,
4416,
23954,
61,
21680,
282,
15532,
3696,
6157,
332,
536,
3,
15355,
3162,
2786,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
11827,
3274,
332,
4416,
22737,
3,
15355,
3162,
2116... |
What was the airdate of the episode with a UK viewership of 6.02 million? | CREATE TABLE table_29063233_1 (original_air_date VARCHAR, uk_viewers__million_ VARCHAR) | SELECT original_air_date FROM table_29063233_1 WHERE uk_viewers__million_ = "6.02" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
3891,
20879,
834,
536,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
3,
1598,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
23838,
3891,
20879,
834,
536,
549,
17444,
427,
3,
1598,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
22642,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the championship for hard surface 7 5, 6 4 | CREATE TABLE table_24638867_6 (
championship VARCHAR,
score VARCHAR,
surface VARCHAR
) | SELECT championship FROM table_24638867_6 WHERE score = "7–5, 6–4" AND surface = "Hard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3891,
4060,
3708,
834,
948,
41,
10183,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
10183,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10183,
21680,
953,
834,
2266,
3891,
4060,
3708,
834,
948,
549,
17444,
427,
2604,
3274,
96,
940,
104,
11116,
431,
104,
20364,
3430,
1774,
3274,
96,
15537,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
If the player is Marcelo, what is the position? | CREATE TABLE table (position VARCHAR, player VARCHAR, Marcelo VARCHAR) | SELECT position FROM table WHERE player = Marcelo | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
19560,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1959,
19,
19560,
32,
6,
125,
19,
8,
1102,
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,
0,
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,
549,
17444,
427,
1959,
3274,
19560,
32,
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,
-100,
-100,
-1... |
what is the name of the first competition listed ? | CREATE TABLE table_204_885 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"agg." text,
"bye" text
) | SELECT "competition" FROM table_204_885 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4060,
755,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
7775,
121,
1499,
6,
96,
32,
102,
9977,
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,
287,
4995,
4749,
121,
21680,
953,
834,
26363,
834,
4060,
755,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the points against for 51 points | CREATE TABLE table_72331 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points against" FROM table_72331 WHERE "Points" = '51' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2773,
3341,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
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,
22512,
7,
581,
121,
21680,
953,
834,
940,
2773,
3341,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
5553,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the assembled date of the parliament dissolved on 9 February 1611 and elected in 1606? | CREATE TABLE table_13151 (
"Elected" text,
"Assembled" text,
"Dissolved" text,
"1st member" text,
"2nd member" text
) | SELECT "Assembled" FROM table_13151 WHERE "Dissolved" = '9 february 1611' AND "Elected" = '1606' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
26578,
41,
96,
21543,
15,
26,
121,
1499,
6,
96,
188,
7,
7,
8312,
15,
26,
121,
1499,
6,
96,
308,
159,
6065,
15,
26,
121,
1499,
6,
96,
536,
7,
17,
1144,
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,
188,
7,
7,
8312,
15,
26,
121,
21680,
953,
834,
2368,
26578,
549,
17444,
427,
96,
308,
159,
6065,
15,
26,
121,
3274,
3,
31,
1298,
29976,
76,
1208,
898,
2596,
31,
3430,
96,
21543,
15,
26,
121,
3274,
3,
31,
2... |
What is the time/retired for the rider with the manufacturuer yamaha, grod of 1 and 21 total laps? | CREATE TABLE table_name_74 (
time_retired VARCHAR,
grid VARCHAR,
laps VARCHAR,
manufacturer VARCHAR
) | SELECT time_retired FROM table_name_74 WHERE laps = "21" AND manufacturer = "yamaha" AND grid = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
4818,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
14941,
7,
3274,
96,
2658,
121,
3430,
4818,
3274,
96,
22990,
1024,
121,
3430,
8634,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Name of the racer with a heat higher than 2 and a lane less than 5, with a time of 1:01.53? | CREATE TABLE table_name_96 (name VARCHAR, time VARCHAR, heat VARCHAR, lane VARCHAR) | SELECT name FROM table_name_96 WHERE heat > 2 AND lane < 5 AND time = "1:01.53" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
4350,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
564,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1678,
2490,
204,
3430,
3,
8102,
3,
2,
305,
3430,
97,
3274,
96,
536,
10,
10068,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the screen size for pixels of model s6400 | CREATE TABLE table_32148 (
"Model" text,
"Sensor res., size" text,
"Lens(35mmequiv.) zoom, aperture" text,
"Screen size,pixels" text,
"Dimensions W\u00d7H\u00d7D (mm)" text,
"Weight" text
) | SELECT "Screen size,pixels" FROM table_32148 WHERE "Model" = 's6400' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
24748,
41,
96,
24663,
121,
1499,
6,
96,
134,
35,
7,
127,
3,
60,
7,
5,
6,
812,
121,
1499,
6,
96,
434,
35,
7,
599,
2469,
635,
15,
1169,
208,
5,
61,
15305,
6,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5045,
35,
812,
6,
14251,
7,
121,
21680,
953,
834,
2668,
24748,
549,
17444,
427,
96,
24663,
121,
3274,
3,
31,
7,
4389,
1206,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many production codes did the episode number in series 46b have? | CREATE TABLE table_2701851_5 (
production_code VARCHAR,
no_in_series VARCHAR
) | SELECT COUNT(production_code) FROM table_2701851_5 WHERE no_in_series = "46b" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
2606,
5553,
834,
755,
41,
999,
834,
4978,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
999,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
20762,
834,
4978,
61,
21680,
953,
834,
17485,
2606,
5553,
834,
755,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
96,
4448,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the third who has Barbora Vojtusova as Skip? | CREATE TABLE table_name_47 (
third VARCHAR,
skip VARCHAR
) | SELECT third FROM table_name_47 WHERE skip = "barbora vojtusova" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1025,
584,
4280,
28027,
6,
11202,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1025,
113,
65,
11038,
127,
9,
3152,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1025,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
11202,
3274,
96,
1047,
6693,
9,
3,
1621,
354,
17,
302,
6194,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What engine did Dick Simon Racing use? | CREATE TABLE table_name_21 (
engine VARCHAR,
team VARCHAR
) | SELECT engine FROM table_name_21 WHERE team = "dick simon racing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
1948,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1948,
410,
21269,
6308,
16046,
169,
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,
1948,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
372,
3274,
96,
26,
3142,
108,
2157,
8191,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many authors or editors are there for the book title elf child? | CREATE TABLE table_23612 (
"Year" real,
"Author(s) or Editor(s)" text,
"Book Title" text,
"Publisher" text,
"Category" text,
"Result" text
) | SELECT COUNT("Author(s) or Editor(s)") FROM table_23612 WHERE "Book Title" = 'Elf Child' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
2122,
41,
96,
476,
2741,
121,
490,
6,
96,
23602,
127,
599,
7,
61,
42,
11953,
599,
7,
61,
121,
1499,
6,
96,
13355,
11029,
121,
1499,
6,
96,
31009,
49,
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,
2847,
17161,
599,
121,
23602,
127,
599,
7,
61,
42,
11953,
599,
7,
61,
8512,
21680,
953,
834,
357,
3420,
2122,
549,
17444,
427,
96,
13355,
11029,
121,
3274,
3,
31,
10991,
89,
9364,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What is the lowest game number on February 20? | CREATE TABLE table_name_69 (
game INTEGER,
date VARCHAR
) | SELECT MIN(game) FROM table_name_69 WHERE date = "february 20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
467,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
467,
381,
30,
2083,
460,
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,
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,
3,
17684,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
460,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What nationality is the la salle team? | CREATE TABLE table_name_28 (
nationality VARCHAR,
school_club_team VARCHAR
) | SELECT nationality FROM table_name_28 WHERE school_club_team = "la salle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
1157,
485,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1157,
485,
19,
8,
50,
4762,
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... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
521,
4762,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Round has a Pick of 174? | CREATE TABLE table_name_47 (round VARCHAR, pick VARCHAR) | SELECT round FROM table_name_47 WHERE pick = 174 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
7775,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
65,
3,
9,
8356,
13,
3,
27693,
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,
1751,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1432,
3274,
3,
27693,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What novelty has USA as the location, and coryloides as the name? | CREATE TABLE table_name_70 (novelty VARCHAR, location VARCHAR, name VARCHAR) | SELECT novelty FROM table_name_70 WHERE location = "usa" AND name = "coryloides" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
5326,
15,
40,
17,
63,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
30372,
65,
2312,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
30372,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1128,
3274,
96,
302,
9,
121,
3430,
564,
3274,
96,
509,
12973,
32,
9361,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many points for the navy team that lost over 11? | CREATE TABLE table_name_4 (points INTEGER, team VARCHAR, lost VARCHAR) | SELECT SUM(points) FROM table_name_4 WHERE team = "navy" AND lost > 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
2700,
7,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
21,
8,
23118,
372,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
372,
3274,
96,
29,
19649,
121,
3430,
1513,
2490,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score of the game where the record was 2-2? | CREATE TABLE table_name_76 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_76 WHERE record = "2-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
213,
8,
1368,
47,
3,
22451,
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... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1368,
3274,
96,
22451,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.