NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What high assists has the high points of andrew bynum (23)? | CREATE TABLE table_44416 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_44416 WHERE "High points" = 'andrew bynum (23)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3628,
2938,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21417,
13041,
121,
21680,
953,
834,
591,
3628,
2938,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
232,
60,
210,
57,
5525,
4743,
5268,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the result if Coba is the song choice? | CREATE TABLE table_22736523_1 (result VARCHAR, song_choice VARCHAR) | SELECT result FROM table_22736523_1 WHERE song_choice = "Coba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2555,
10402,
2773,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2324,
834,
3995,
867,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
357,
2555,
10402,
2773,
834,
536,
549,
17444,
427,
2324,
834,
3995,
867,
3274,
96,
3881,
115,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What district is incumbent jack hightower from? | CREATE TABLE table_18284 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_18284 WHERE "Incumbent" = 'Jack Hightower' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
357,
4608,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
308,
23,
20066,
121,
21680,
953,
834,
2606,
357,
4608,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
683,
4365,
1592,
235,
3321,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the most laps for driver jackie stewart? | CREATE TABLE table_55693 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT MAX("Laps") FROM table_55693 WHERE "Driver" = 'jackie stewart' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3951,
519,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
3769,
3951,
519,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
9325,
23,
15,
21786,
1408,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Among patients who had icd9 code 5771, how many of them were a divorcee? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.icd9_code = "5771" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the date of the series premiere whose TV network was TV3? | CREATE TABLE table_31350 (
"Country" text,
"Alternante title" text,
"TV Network(s)" text,
"Series premiere" text,
"Series finale" text
) | SELECT "Series premiere" FROM table_31350 WHERE "TV Network(s)" = 'TV3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
16975,
41,
96,
10628,
651,
121,
1499,
6,
96,
188,
40,
2947,
1841,
2233,
121,
1499,
6,
96,
4562,
3426,
599,
7,
61,
121,
1499,
6,
96,
12106,
7,
13539,
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,
12106,
7,
13539,
121,
21680,
953,
834,
3341,
16975,
549,
17444,
427,
96,
4562,
3426,
599,
7,
61,
121,
3274,
3,
31,
4562,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which competition took place after the game in egypt ? | CREATE TABLE table_203_504 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT "competition" FROM table_203_504 WHERE "date" > (SELECT "date" FROM table_203_504 WHERE "opponent" = 'egypt') ORDER BY "date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
591,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
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,
287,
4995,
4749,
121,
21680,
953,
834,
23330,
834,
1752,
591,
549,
17444,
427,
96,
5522,
121,
2490,
41,
23143,
14196,
96,
5522,
121,
21680,
953,
834,
23330,
834,
1752,
591,
549,
17444,
427,
96,
32,
102,
9977,
12... |
What is the Coach with a Big Ten that is 2nd (79)? | CREATE TABLE table_name_72 (coach VARCHAR, big_ten VARCHAR) | SELECT coach FROM table_name_72 WHERE big_ten = "2nd (79)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
509,
1836,
584,
4280,
28027,
6,
600,
834,
324,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9493,
28,
3,
9,
2734,
4738,
24,
19,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3763,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
600,
834,
324,
3274,
96,
357,
727,
41,
4440,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which owner has the frequency of 103.3 FM? | CREATE TABLE table_name_51 (
owner VARCHAR,
frequency VARCHAR
) | SELECT owner FROM table_name_51 WHERE frequency = "103.3 fm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
2527,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2527,
65,
8,
7321,
13,
335,
19660,
13409,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2527,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
7321,
3274,
96,
1714,
19660,
3,
89,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the grid when the driver is mario andretti and the laps is less than 54? | CREATE TABLE table_name_39 (
grid INTEGER,
driver VARCHAR,
laps VARCHAR
) | SELECT MAX(grid) FROM table_name_39 WHERE driver = "mario andretti" AND laps < 54 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
8634,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
8634,
116,
8,
2535,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2535,
3274,
96,
17289,
32,
11,
52,
10652,
121,
3430,
14941,
7,
3,
2,
10630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is IATA, when City is 'Alexandria'? | CREATE TABLE table_name_62 (
iata VARCHAR,
city VARCHAR
) | SELECT iata FROM table_name_62 WHERE city = "alexandria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
3,
17221,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
27,
19282,
6,
116,
896,
19,
3,
31,
27280,
232,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17221,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
690,
3274,
96,
138,
994,
232,
52,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was Alberta's skip when the shot pct was 88? | CREATE TABLE table_21223 (
"Province" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT "Skip" FROM table_21223 WHERE "Shot Pct." = '88' AND "Province" = 'Alberta' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
2773,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
12017,
121,
490,
6,
96,
3965,
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,
2168,
102,
121,
21680,
953,
834,
24837,
2773,
549,
17444,
427,
96,
134,
10718,
276,
75,
17,
535,
3274,
3,
31,
4060,
31,
3430,
96,
3174,
2494,
565,
121,
3274,
3,
31,
25691,
49,
17,
9,
31,
1,
-100,
-100,
... |
What was the Maple Leafs' record on game 52? | CREATE TABLE table_name_51 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_51 WHERE game = 52 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
60,
7621,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
23153,
19407,
7,
31,
1368,
30,
467,
9065,
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,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
467,
3274,
9065,
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... |
Which organisation hired the most number of research staff? List the organisation id, type and detail. | CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE Research_Staff (employer_organisation_id VARCHAR) | SELECT T1.organisation_id, T1.organisation_type, T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11033,
7,
41,
10832,
834,
23,
26,
584,
4280,
28027,
6,
5102,
834,
6137,
584,
4280,
28027,
6,
5102,
834,
221,
5756,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
10832,
834,
23,
26,
6,
332,
5411,
10832,
834,
6137,
6,
332,
5411,
10832,
834,
221,
5756,
7,
21680,
11033,
7,
6157,
332,
536,
3,
15355,
3162,
2200,
834,
134,
17,
4127,
6157,
332,
357,
9191,
332,
5411,
10... |
If the 2011 population is 3685681, what is the name of the headquarters? | CREATE TABLE table_2168295_1 (headquarters VARCHAR, population__2011_ VARCHAR) | SELECT headquarters FROM table_2168295_1 WHERE population__2011_ = 3685681 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
4613,
3301,
834,
536,
41,
3313,
19973,
7,
584,
4280,
28027,
6,
2074,
834,
834,
13907,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
2722,
2074,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13767,
21680,
953,
834,
27184,
4613,
3301,
834,
536,
549,
17444,
427,
2074,
834,
834,
13907,
834,
3274,
220,
3651,
4834,
4959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest number of losses for teams that lost 52 ends? | CREATE TABLE table_20836 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot %" text
) | SELECT MIN("L") FROM table_20836 WHERE "Ends Lost" = '52' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
3420,
41,
96,
434,
32,
1489,
15,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
12017,
121,
490,
6,
96,
3965,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8512,
21680,
953,
834,
23946,
3420,
549,
17444,
427,
96,
8532,
26,
7,
19576,
121,
3274,
3,
31,
5373,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date of the match with sheffield wednesday as the away team? | CREATE TABLE table_name_62 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_62 WHERE away_team = "sheffield wednesday" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
1588,
28,
255,
89,
1846,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
88,
89,
1846,
62,
26,
1496,
1135,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Population of the subdivision with the English Name of nanbin farm? | CREATE TABLE table_name_73 (
population INTEGER,
english_name VARCHAR
) | SELECT MIN(population) FROM table_name_73 WHERE english_name = "nanbin farm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2074,
3,
21342,
17966,
6,
22269,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
29659,
13,
8,
27444,
28,
8,
1566,
5570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
22269,
834,
4350,
3274,
96,
29,
152,
4517,
3797,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the crowd size when geelong played home? | CREATE TABLE table_name_98 (crowd VARCHAR, home_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_98 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
75,
3623,
26,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4374,
812,
116,
873,
15,
2961,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the nationality of the player in round 4? | CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR) | SELECT nationality FROM table_name_11 WHERE round = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
16557,
485,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1157,
485,
13,
8,
1959,
16,
1751,
314,
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,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
1751,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the lowest Laps with a time/retired of +2 Laps and Grid of 20 | CREATE TABLE table_name_46 (
laps INTEGER,
time_retired VARCHAR,
grid VARCHAR
) | SELECT MIN(laps) FROM table_name_46 WHERE time_retired = "+2 laps" AND grid = 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
14941,
7,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
357,
14941,
7,
121,
3430,
8634,
3274,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the score when the tie number is 4? | CREATE TABLE table_10034 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_10034 WHERE "Tie no" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
3710,
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,
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,
134,
9022,
121,
21680,
953,
834,
2915,
3710,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many hours have passed since patient 022-6959 had an admission to the hospital? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartr... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '022-6959' AND patient.hospitaldischargetime IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
997,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
20466,
17,
715,
61,
61,
216... |
Name the resolution for dish of 5270 | CREATE TABLE table_79813 (
"Dish" text,
"Callsign" text,
"Network" text,
"Resolution" text,
"City of License" text,
"Official Website" text
) | SELECT "Resolution" FROM table_79813 WHERE "Dish" = '5270' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3916,
2368,
41,
96,
308,
1273,
121,
1499,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
9688,
1981,
121,
1499,
6,
96,
1649,
14913,
121,
1499,
6,
96,
254,
485,
13,
16452,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
14913,
121,
21680,
953,
834,
940,
3916,
2368,
549,
17444,
427,
96,
308,
1273,
121,
3274,
3,
31,
5373,
2518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which laps has a grid of 8? | CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR) | SELECT laps FROM table_name_25 WHERE grid = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
8478,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14941,
7,
65,
3,
9,
8634,
13,
505,
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,
14941,
7,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
8634,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Average annual output for Culligran power station with an Installed capacity less than 19? | CREATE TABLE table_name_12 (average_annual_output__million_kwh_ INTEGER, name VARCHAR, installed_capacity__megawatts_ VARCHAR) | SELECT AVG(average_annual_output__million_kwh_) FROM table_name_12 WHERE name = "culligran" AND installed_capacity__megawatts_ < 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
28951,
834,
30627,
834,
670,
2562,
834,
834,
17030,
834,
157,
210,
107,
834,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
3029,
834,
4010,
9,
6726,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
28951,
834,
30627,
834,
670,
2562,
834,
834,
17030,
834,
157,
210,
107,
834,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
564,
3274,
96,
1497,
2825,
2002,
121,
3430,
3029,
834,
4010,
9,
672... |
What metric value has a jyutping of lei4? | CREATE TABLE table_name_11 (
metric_value VARCHAR,
jyutping VARCHAR
) | SELECT metric_value FROM table_name_11 WHERE jyutping = "lei4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
3,
7959,
834,
12097,
584,
4280,
28027,
6,
3,
354,
63,
76,
17,
2462,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
7959,
701,
65,
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,
3,
7959,
834,
12097,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
3,
354,
63,
76,
17,
2462,
3274,
96,
4460,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which County has a Number of households larger than 17,741, and a Median family income of $37,072? | CREATE TABLE table_13015 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) | SELECT "County" FROM table_13015 WHERE "Number of households" > '17,741' AND "Median family income" = '$37,072' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
1808,
41,
96,
10628,
63,
121,
1499,
6,
96,
12988,
23219,
2055,
121,
1499,
6,
96,
24607,
29,
5699,
2055,
121,
1499,
6,
96,
24607,
29,
384,
2055,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
21448,
1808,
549,
17444,
427,
96,
567,
5937,
49,
13,
15802,
121,
2490,
3,
31,
2517,
6,
4581,
536,
31,
3430,
96,
24607,
29,
384,
2055,
121,
3274,
3,
31,
3229,
4118,
6,
4560,
3... |
What country parred E and scored 71-73-70-74=288? | CREATE TABLE table_name_19 (country VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT country FROM table_name_19 WHERE to_par = "e" AND score = 71 - 73 - 70 - 74 = 288 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
17529,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
260,
1271,
262,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
12,
834,
1893,
3274,
96,
15,
121,
3430,
2604,
3274,
3,
4450,
3,
18,
3,
4552,
3,
18,
2861,
3,
18,
3,
4581,
3274,
204,
4060,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the Location when the team was seve ballesteros & manuel pi ero? | CREATE TABLE table_41785 (
"Year" real,
"Country" text,
"Team" text,
"Individual" text,
"Location" text
) | SELECT "Location" FROM table_41785 WHERE "Team" = 'seve ballesteros & manuel piñero' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2517,
4433,
41,
96,
476,
2741,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
1570,
26,
23,
6961,
3471,
121,
1499,
6,
96,
434,
32,
75,
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,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
591,
2517,
4433,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
7,
15,
162,
1996,
2613,
1859,
3,
184,
19901,
2816,
2,
49,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
A bar chart for what are the number of the enrollment dates of all the tests that have result 'Pass'?, I want to show by the the number of date of enrolment in descending. | CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Student... | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" ORDER BY COUNT(date_of_enrolment) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
834,
23602,
127,
7,
834,
232,
834,
28676,
7,
41,
2291,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
17,
76,
17,
127,
834,
5767,
279,
584,
4280,
28027,
17867,
6,
11255,
834,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
35,
3491,
297,
6,
2847,
17161,
599,
5522,
834,
858,
834,
35,
3491,
297,
61,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
382,
222,
7,
834,
... |
Name the number of season for team bruichladdich | CREATE TABLE table_20398823_1 (season VARCHAR, team VARCHAR) | SELECT COUNT(season) FROM table_20398823_1 WHERE team = "team Bruichladdich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3288,
4060,
2773,
834,
536,
41,
9476,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
774,
21,
372,
3,
9052,
362,
40,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9476,
61,
21680,
953,
834,
1755,
3288,
4060,
2773,
834,
536,
549,
17444,
427,
372,
3274,
96,
11650,
3,
9465,
362,
40,
13039,
362,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Did Microsoft Game Studios release Amped: Freestyle Snowboarding? | CREATE TABLE table_37288 (
"Title" text,
"Publisher" text,
"Developer" text,
"Release date" text,
"ESRB" text
) | SELECT "Release date" FROM table_37288 WHERE "Publisher" = 'microsoft game studios' AND "Title" = 'amped: freestyle snowboarding' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
357,
4060,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
31009,
49,
121,
1499,
6,
96,
2962,
162,
8745,
49,
121,
1499,
6,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
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,
96,
1649,
40,
14608,
833,
121,
21680,
953,
834,
4118,
357,
4060,
549,
17444,
427,
96,
31009,
49,
121,
3274,
3,
31,
30574,
467,
3100,
7,
31,
3430,
96,
382,
155,
109,
121,
3274,
3,
31,
9,
18109,
10,
339,
4084,
271... |
What is the Name of the Special Stage with a 2.40km length and S. Loeb as Winner? | CREATE TABLE table_name_45 (
name VARCHAR,
length VARCHAR,
winner VARCHAR
) | SELECT name FROM table_name_45 WHERE length = "2.40km" AND winner = "s. loeb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
564,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5570,
13,
8,
3608,
13578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2475,
3274,
96,
4416,
2445,
5848,
121,
3430,
4668,
3274,
96,
7,
5,
6899,
15,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT IS THE ROUND FOR JAMIE ARNIEL? | CREATE TABLE table_43696 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/junior/club team (league)" text
) | SELECT COUNT("Round") FROM table_43696 WHERE "Player" = 'jamie arniel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3420,
4314,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
32,
1106,
8512,
21680,
953,
834,
591,
3420,
4314,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
1191,
2720,
3,
9,
23752,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those records from the products and each product's manufacturer, visualize the relationship between price and revenue , and group by attribute name. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Price, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
345,
4920,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
55... |
what is the number of patients still living who had one vascular stent insertion? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.long_title = "Insertion of one vascular stent" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the film Falling up nominated for? | CREATE TABLE table_10236830_6 (nomination VARCHAR, film_name VARCHAR) | SELECT nomination FROM table_10236830_6 WHERE film_name = "Falling Up" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2773,
3651,
1458,
834,
948,
41,
29,
32,
14484,
584,
4280,
28027,
6,
814,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
814,
2589,
53,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13588,
21680,
953,
834,
1714,
2773,
3651,
1458,
834,
948,
549,
17444,
427,
814,
834,
4350,
3274,
96,
371,
9,
12013,
3234,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What average goals have matches less than 228? | CREATE TABLE table_name_68 (goals INTEGER, matches INTEGER) | SELECT AVG(goals) FROM table_name_68 WHERE matches < 228 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
839,
5405,
3,
21342,
17966,
6,
6407,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
1348,
1766,
43,
6407,
705,
145,
204,
2577,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
6407,
3,
2,
204,
2577,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Thursday does big brother 13 air? | CREATE TABLE table_name_59 (
thursday VARCHAR,
series VARCHAR
) | SELECT thursday FROM table_name_59 WHERE series = "big brother 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
3,
189,
3589,
1135,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2721,
405,
600,
4284,
1179,
799,
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,
3,
189,
3589,
1135,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
939,
3274,
96,
12911,
4284,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average number of million viewers that watched an episode before episode 11 with a share of 4? | CREATE TABLE table_name_28 (viewers__millions_ INTEGER, episode__number VARCHAR, share VARCHAR) | SELECT AVG(viewers__millions_) FROM table_name_28 WHERE episode__number < 11 AND share = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
4576,
277,
834,
834,
17030,
7,
834,
3,
21342,
17966,
6,
5640,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
698,
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,
4576,
277,
834,
834,
17030,
7,
834,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
5640,
834,
834,
5525,
1152,
3,
2,
850,
3430,
698,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What school that has a IHSAA Class of AA, in Butler? | CREATE TABLE table_63311 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text
) | SELECT "School" FROM table_63311 WHERE "IHSAA Class" = 'aa' AND "Location" = 'butler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
519,
2596,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29364,
121,
21680,
953,
834,
3891,
519,
2596,
549,
17444,
427,
96,
196,
4950,
5498,
4501,
121,
3274,
3,
31,
9,
9,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
2780,
1171,
31,
1,
-100,
-100,
-100,
-100,
... |
What was the surface of the tournament where Anna Benzon was the opponent in the final? | CREATE TABLE table_name_59 (
surface VARCHAR,
opponent_in_the_final VARCHAR
) | SELECT surface FROM table_name_59 WHERE opponent_in_the_final = "anna benzon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
1774,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1774,
13,
8,
5892,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
10878,
3,
19738,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many items are listed under viewers column when the bbd three weekly ranking was 1? | CREATE TABLE table_24399615_4 (viewers VARCHAR, bbc_three_weekly_ranking VARCHAR) | SELECT COUNT(viewers) FROM table_24399615_4 WHERE bbc_three_weekly_ranking = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3288,
4314,
1808,
834,
591,
41,
4576,
277,
584,
4280,
28027,
6,
3,
115,
115,
75,
834,
21182,
834,
8041,
120,
834,
6254,
53,
584,
4280,
28027,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4576,
277,
61,
21680,
953,
834,
2266,
3288,
4314,
1808,
834,
591,
549,
17444,
427,
3,
115,
115,
75,
834,
21182,
834,
8041,
120,
834,
6254,
53,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
what is the team with the best of 1:43.134? | CREATE TABLE table_name_75 (team VARCHAR, best VARCHAR) | SELECT team FROM table_name_75 WHERE best = "1:43.134" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
11650,
584,
4280,
28027,
6,
200,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
372,
28,
8,
200,
13,
209,
10,
4906,
5,
23747,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
200,
3274,
96,
536,
10,
4906,
5,
23747,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the David Norris with a Michael D. Higgins that is 46.2%? | CREATE TABLE table_name_92 (
david_norris VARCHAR,
michael_d_higgins VARCHAR
) | SELECT david_norris FROM table_name_92 WHERE michael_d_higgins = "46.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
836,
6961,
834,
29,
127,
52,
159,
584,
4280,
28027,
6,
2278,
9,
15,
40,
834,
26,
834,
107,
23,
122,
19655,
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,
836,
6961,
834,
29,
127,
52,
159,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2278,
9,
15,
40,
834,
26,
834,
107,
23,
122,
19655,
3274,
96,
4448,
5,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest goal for a goal against 37 and less than 15 victories? | CREATE TABLE table_name_43 (
goals_for INTEGER,
goals_against VARCHAR,
victories VARCHAR
) | SELECT MIN(goals_for) FROM table_name_43 WHERE goals_against = 37 AND victories < 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1766,
834,
1161,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
19900,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
839,
5405,
834,
1161,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
3274,
6862,
3430,
19900,
7,
3,
2,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is High Assists, when Team is '@ Milwaukee'? | CREATE TABLE table_50005 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_50005 WHERE "Team" = '@ milwaukee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2560,
3076,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21417,
13041,
121,
21680,
953,
834,
2560,
3076,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
1741,
15533,
210,
402,
1050,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Entrant of stp march engineering scored the lowest points? | CREATE TABLE table_name_78 (points INTEGER, entrant VARCHAR) | SELECT MIN(points) FROM table_name_78 WHERE entrant = "stp march engineering" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
2700,
7,
3,
21342,
17966,
6,
3,
295,
3569,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4443,
3569,
13,
3,
7,
17,
102,
10556,
3867,
5799,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
3,
295,
3569,
3274,
96,
7,
17,
102,
10556,
3867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Italy's UNWTO region? | CREATE TABLE table_name_24 (
unwto_region VARCHAR,
country VARCHAR
) | SELECT unwto_region FROM table_name_24 WHERE country = "italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
73,
210,
235,
834,
18145,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5308,
31,
7,
4417,
518,
5647,
1719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
73,
210,
235,
834,
18145,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
684,
3274,
96,
9538,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many total bridges are in copiah county ? | CREATE TABLE table_204_799 (
id number,
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text,
"type" text
) | SELECT COUNT(DISTINCT "name") FROM table_204_799 WHERE "county" = 'copiah' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
3264,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
16152,
121,
1499,
6,
96,
19279,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
13362,
63,
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,
15438,
25424,
6227,
96,
4350,
8512,
21680,
953,
834,
26363,
834,
940,
3264,
549,
17444,
427,
96,
13362,
63,
121,
3274,
3,
31,
75,
18916,
107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many seasons has UPS sponsored a car with a number larger than 17? | CREATE TABLE table_name_9 (season VARCHAR, car__number VARCHAR, sponsor VARCHAR) | SELECT COUNT(season) FROM table_name_9 WHERE car__number > 17 AND sponsor = "ups" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
9476,
584,
4280,
28027,
6,
443,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
9037,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9385,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
9476,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
443,
834,
834,
5525,
1152,
2490,
1003,
3430,
9037,
3274,
96,
413,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who directed the production code 2t5710? | CREATE TABLE table_24582 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT "Directed by" FROM table_24582 WHERE "Production code" = '2T5710' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3449,
357,
41,
96,
4168,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,
10270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23620,
15,
26,
57,
121,
21680,
953,
834,
2266,
3449,
357,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
357,
382,
3436,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which opponent had 73,428 in attendance? | CREATE TABLE table_77446 (
"Game" text,
"Date" text,
"Opponent" text,
"Result" text,
"Dolphins' points" text,
"Opponents' Points" text,
"Record" text,
"Streak" text,
"Attendance" text
) | SELECT "Opponent" FROM table_77446 WHERE "Attendance" = '73,428' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
591,
4448,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
308,
23589,
77,
7,
31,
979,
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,
667,
102,
9977,
121,
21680,
953,
834,
4013,
591,
4448,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
4552,
6,
591,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On which date was Essendon the home team? | CREATE TABLE table_name_13 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_13 WHERE home_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
5522,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
84,
833,
47,
11722,
2029,
8,
234,
372,
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,
833,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
234,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Gold does the Nation in Rank 12 with less than 2 Total medals have? | CREATE TABLE table_name_45 (gold INTEGER, rank VARCHAR, total VARCHAR) | SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
14910,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2540,
405,
8,
11046,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
11003,
3274,
96,
2122,
121,
3430,
792,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the names of technicians who have not been assigned to repair machines. | CREATE TABLE repair_assignment (
technician_id number,
repair_id number,
machine_id number
)
CREATE TABLE machine (
machine_id number,
making_year number,
class text,
team text,
machine_series text,
value_points number,
quality_rank number
)
CREATE TABLE technician (
techni... | SELECT name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2096,
834,
9,
7,
6732,
297,
41,
17730,
834,
23,
26,
381,
6,
2096,
834,
23,
26,
381,
6,
1437,
834,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1437,
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,
564,
21680,
17730,
549,
17444,
427,
4486,
17730,
834,
23,
26,
3388,
41,
23143,
14196,
17730,
834,
23,
26,
21680,
2096,
834,
9,
7,
6732,
297,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the population (1991) where population (2002) was 14250? | CREATE TABLE table_2562572_7 (
population__1991_ VARCHAR,
population__2002_ VARCHAR
) | SELECT COUNT(population__1991_) FROM table_2562572_7 WHERE population__2002_ = 14250 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
940,
41,
2074,
834,
834,
2294,
4729,
834,
584,
4280,
28027,
6,
2074,
834,
834,
24898,
834,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9791,
7830,
834,
834,
2294,
4729,
834,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
940,
549,
17444,
427,
2074,
834,
834,
24898,
834,
3274,
968,
11434,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the height of the delegate whose hometown is Renton, WA? | CREATE TABLE table_15727 (
"State" text,
"Name" text,
"Hometown" text,
"Age 1" real,
"Height" text
) | SELECT "Height" FROM table_15727 WHERE "Hometown" = 'renton, wa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
2555,
41,
96,
134,
4748,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
188,
397,
209,
121,
490,
6,
96,
3845,
2632,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
2632,
121,
21680,
953,
834,
27452,
2555,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
60,
6992,
6,
8036,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the least year when men's singles is Raju Rai? | CREATE TABLE table_73418 (
"Year" real,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text,
"A Mixed Doubles" text,
"B Mixed Doubles" text
) | SELECT MIN("Year") FROM table_73418 WHERE "Mens Singles" = 'Raju Rai' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
591,
2606,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
7,
7871,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
7871,
7,
121,
1499,
6,
96,
329,
35,
7,
8405,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4552,
591,
2606,
549,
17444,
427,
96,
329,
35,
7,
7871,
7,
121,
3274,
3,
31,
448,
9,
2047,
13016,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent in the 2011 event with less than 113 players? | CREATE TABLE table_name_72 (opponent VARCHAR, player VARCHAR, event VARCHAR) | SELECT opponent FROM table_name_72 WHERE player < 113 AND event = 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
16,
8,
272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1959,
3,
2,
3,
20522,
3430,
605,
3274,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List all FTE middle school teachers in Sunnyvale. | CREATE TABLE table_1414743_1 (
fte_teachers VARCHAR,
school_level VARCHAR,
city VARCHAR
) | SELECT fte_teachers FROM table_1414743_1 WHERE school_level = "Middle" AND city = "Sunnyvale" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
24719,
4906,
834,
536,
41,
3,
89,
17,
15,
834,
30215,
7,
584,
4280,
28027,
6,
496,
834,
4563,
584,
4280,
28027,
6,
690,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
89,
17,
15,
834,
30215,
7,
21680,
953,
834,
2534,
24719,
4906,
834,
536,
549,
17444,
427,
496,
834,
4563,
3274,
96,
329,
23,
8437,
121,
3430,
690,
3274,
96,
134,
202,
29,
63,
2165,
15,
121,
1,
-100,
-100,
-10... |
What is the name of the building at the Jewellery quarter? | CREATE TABLE table_7882 (
"Name" text,
"Location" text,
"Years as tallest" text,
"Height metres / ft" text,
"Floors" text
) | SELECT "Name" FROM table_7882 WHERE "Location" = 'jewellery quarter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4613,
41,
96,
23954,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
476,
2741,
7,
38,
5065,
222,
121,
1499,
6,
96,
3845,
2632,
14604,
3,
87,
3,
89,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3940,
4613,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
1924,
2091,
4203,
2893,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the record was 7-2, what was the score for the game? | CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_94 WHERE record = "7-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
7,
9022,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
1368,
47,
489,
4949,
6,
125,
47,
8,
2604,
21,
8,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4240,
549,
17444,
427,
1368,
3274,
96,
940,
4949,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Engine has Points of 3? | CREATE TABLE table_name_30 (engine VARCHAR, points VARCHAR) | SELECT engine FROM table_name_30 WHERE points = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
20165,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
10612,
65,
4564,
7,
13,
220,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
979,
3274,
220,
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,... |
When the score was 76-73-67-69=285 what was the To par? | CREATE TABLE table_name_31 (
to_par VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_31 WHERE score = 76 - 73 - 67 - 69 = 285 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
2604,
47,
489,
25302,
25342,
940,
18,
3951,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
2604,
3274,
3,
3959,
3,
18,
3,
4552,
3,
18,
3,
3708,
3,
18,
3,
3951,
3274,
204,
4433,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average base price of different bed type? List bed type and average base price. Plot them as bar chart. | CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
4181,
196,
26,
3,
3463,
4,
382,
6,
562,
23954,
3,
3463,
4,
382,
6,
8326,
3,
21342,
17966,
6,
1953,
25160,
3,
3463,
4,
382,
6,
9858,
667,
75,
4658,
6833,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1953,
25160,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the home team of the game with manu gin bili (34) as the leading scorer? | CREATE TABLE table_name_74 (
home VARCHAR,
leading_scorer VARCHAR
) | SELECT home FROM table_name_74 WHERE leading_scorer = "manu ginóbili (34)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
234,
584,
4280,
28027,
6,
1374,
834,
7,
5715,
49,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
13,
8,
467,
28,
388,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1374,
834,
7,
5715,
49,
3274,
96,
348,
76,
3,
122,
77,
4922,
3727,
23,
6918,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Game, when Opponent is 'Cleveland Barons', and when March is less than 8? | CREATE TABLE table_name_58 (
game INTEGER,
opponent VARCHAR,
march VARCHAR
) | SELECT SUM(game) FROM table_name_58 WHERE opponent = "cleveland barons" AND march < 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
467,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
10556,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
4435,
6,
116,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
15264,
3274,
96,
75,
4563,
232,
1207,
106,
7,
121,
3430,
10556,
3,
2,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the mountain peak of 49 rank | CREATE TABLE table_name_67 (
mountain_peak VARCHAR,
rank VARCHAR
) | SELECT mountain_peak FROM table_name_67 WHERE rank = 49 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
4180,
834,
14661,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4180,
6734,
13,
9526,
11003,
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,
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,
4180,
834,
14661,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
11003,
3274,
9526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In what round was Kelsey Tessier drafted? | CREATE TABLE table_name_16 (
round VARCHAR,
player VARCHAR
) | SELECT round FROM table_name_16 WHERE player = "kelsey tessier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1751,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
1751,
47,
13329,
7,
15,
63,
2255,
7,
7,
972,
3,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1959,
3274,
96,
5768,
7,
15,
63,
3,
1422,
7,
972,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest number of votes for the French Professor? | CREATE TABLE table_name_20 (votes INTEGER, occupation VARCHAR) | SELECT MAX(votes) FROM table_name_20 WHERE occupation = "french professor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
1621,
1422,
3,
21342,
17966,
6,
13792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
11839,
21,
8,
2379,
5589,
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,
0... | [
3,
23143,
14196,
4800,
4,
599,
1621,
1422,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
13792,
3274,
96,
89,
60,
5457,
5812,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many appearances did Gary Depalma make when he scored less than 30 goals? | CREATE TABLE table_name_75 (appearances VARCHAR, goals VARCHAR, name VARCHAR) | SELECT appearances FROM table_name_75 WHERE goals < 30 AND name = "gary depalma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
3096,
2741,
663,
7,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3179,
7,
410,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3179,
7,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1766,
3,
2,
604,
3430,
564,
3274,
96,
1478,
63,
20,
6459,
51,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Purse listed for the Year of 1998? | CREATE TABLE table_name_10 (purse VARCHAR, year VARCHAR) | SELECT purse FROM table_name_10 WHERE year = "1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
3791,
7,
15,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7333,
7,
15,
2616,
21,
8,
2929,
13,
6260,
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,
20717,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
215,
3274,
96,
2294,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the positions of Damon Jones? | CREATE TABLE table_47207 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | SELECT "Position" FROM table_47207 WHERE "Player" = 'damon jones' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
26426,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
3,
13313,
5271,
4664,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
4177,
26426,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
7812,
106,
3,
1927,
1496,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose age is less than 85 and item id is 51274? | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "85" AND lab.itemid = "51274" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
In which location did he win the Superbrawl 16 event? | CREATE TABLE table_name_57 (location VARCHAR, res VARCHAR, event VARCHAR) | SELECT location FROM table_name_57 WHERE res = "win" AND event = "superbrawl 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
14836,
584,
4280,
28027,
6,
3,
60,
7,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
1128,
410,
3,
88,
1369,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
3,
60,
7,
3274,
96,
3757,
121,
3430,
605,
3274,
96,
21771,
1939,
210,
40,
898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many different classes are there? | CREATE TABLE CLASS (
class_code VARCHAR
) | SELECT COUNT(DISTINCT class_code) FROM CLASS | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
31598,
41,
853,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
2287,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
853,
834,
4978,
61,
21680,
3,
31598,
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... |
Who is the Cincinnati College player? | CREATE TABLE table_name_71 (
player VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_71 WHERE college = "cincinnati" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1959,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
20862,
1888,
1959,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1900,
3274,
96,
75,
11542,
29,
18530,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis booking end date y axis the number of booking end date, list y axis in desc order. | CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE Apartments ... | SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings ORDER BY COUNT(booking_end_date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4197,
834,
5110,
155,
834,
134,
17,
144,
302,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
2567,
53,
834,
23,
26,
3,
21342,
17966,
6,
2637,
834,
5522,
309,
6048,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5038,
834,
989,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
989,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
4674,
11300,
272,
476,
2847,
17161,
599,
2567,
53,
834,
989,
834,
5522,
61,
309,
25067,
1,
-100,
... |
What were the highest laps for glenn seton gregg hansford? | CREATE TABLE table_61708 (
"Pos." text,
"Class" text,
"Entrant" text,
"Drivers" text,
"Laps" real
) | SELECT MAX("Laps") FROM table_61708 WHERE "Drivers" = 'glenn seton gregg hansford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2517,
4018,
41,
96,
345,
32,
7,
535,
1499,
6,
96,
21486,
121,
1499,
6,
96,
16924,
3569,
121,
1499,
6,
96,
20982,
52,
7,
121,
1499,
6,
96,
3612,
102,
7,
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,
4800,
4,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
948,
2517,
4018,
549,
17444,
427,
96,
20982,
52,
7,
121,
3274,
3,
31,
3537,
29,
29,
356,
106,
3,
18301,
122,
3,
2618,
7,
2590,
31,
1,
-100,
-100,
-100,
-... |
What is the home team against the away team Norwich City? | CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_39 WHERE away_team = "norwich city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
581,
8,
550,
372,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
550,
834,
11650,
3274,
96,
29,
127,
210,
362,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose procedure long title is hemodialysis? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Hemodialysis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
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,
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,... |
Which category has a team of Cannondale Vredestein? | CREATE TABLE table_name_28 (category VARCHAR, team VARCHAR) | SELECT category FROM table_name_28 WHERE team = "cannondale vredestein" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
8367,
839,
651,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3295,
65,
3,
9,
372,
13,
205,
17805,
5437,
584,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3295,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
372,
3274,
96,
75,
17805,
5437,
3,
10859,
221,
4008,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For all employees who have the letters D or S in their first name, find job_id and the average of manager_id , and group by attribute job_id, and visualize them by a bar chart, could you order by the bar in desc please? | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
3... |
What is the team 1 with cementarnica as team 2? | CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_20 WHERE team_2 = "cementarnica" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
11650,
834,
536,
584,
4280,
28027,
6,
372,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
372,
209,
28,
12965,
291,
12878,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
536,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
372,
834,
357,
3274,
96,
75,
1194,
291,
12878,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What dates was the falken tasmania challenge race that had triple eight race engineering as the team? | CREATE TABLE table_2371 (
"Rd." real,
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text,
"Report" text
) | SELECT "Date" FROM table_2371 WHERE "Team" = 'Triple Eight Race Engineering' AND "Race Title" = 'Falken Tasmania Challenge' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4450,
41,
96,
448,
26,
535,
490,
6,
96,
448,
3302,
11029,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
254,
485,
3,
87,
1015,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2773,
4450,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
19310,
4788,
18516,
10949,
5623,
31,
3430,
96,
448,
3302,
11029,
121,
3274,
3,
31,
371,
138,
2217,
28020,
7729,
31,
1,
... |
What is the average number of years associated with 51 games tied and over 1184 total games? | CREATE TABLE table_name_60 (years INTEGER, tied VARCHAR, total_games VARCHAR) | SELECT AVG(years) FROM table_name_60 WHERE tied = 51 AND total_games > 1184 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
1201,
7,
3,
21342,
17966,
6,
10422,
584,
4280,
28027,
6,
792,
834,
7261,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
7,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
10422,
3274,
11696,
3430,
792,
834,
7261,
7,
2490,
850,
4608,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Plot how many minister by grouped by minister as a bar graph, and rank by the bar from high to low. | CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int... | SELECT Minister, COUNT(Minister) FROM party GROUP BY Minister ORDER BY Minister DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
6163,
834,
4309,
16,
17,
6,
6163,
834,
4350,
1499,
6,
7678,
1499,
6,
16229,
1499,
6,
12439,
1499,
6,
22424,
76,
15,
1499,
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,
3271,
6,
2847,
17161,
599,
12858,
5805,
61,
21680,
1088,
350,
4630,
6880,
272,
476,
3271,
4674,
11300,
272,
476,
3271,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of points for october 11 | CREATE TABLE table_15607589_2 (points_for INTEGER, date VARCHAR) | SELECT MAX(points_for) FROM table_15607589_2 WHERE date = "October 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3328,
3072,
3914,
834,
357,
41,
2700,
7,
834,
1161,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
979,
21,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
834,
1161,
61,
21680,
953,
834,
1808,
3328,
3072,
3914,
834,
357,
549,
17444,
427,
833,
3274,
96,
28680,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the location when began is before 1990 and the country is france? | CREATE TABLE table_name_87 (location VARCHAR, began VARCHAR, country VARCHAR) | SELECT location FROM table_name_87 WHERE began < 1990 AND country = "france" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
14836,
584,
4280,
28027,
6,
1553,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1128,
116,
1553,
19,
274,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1553,
3,
2,
5541,
3430,
684,
3274,
96,
89,
5219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What day did Glentoran play at Windsor Park, Belfast? | CREATE TABLE table_name_34 (date VARCHAR, team VARCHAR, venue VARCHAR) | SELECT date FROM table_name_34 WHERE team = "glentoran" AND venue = "windsor park, belfast" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
5522,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
410,
8300,
235,
2002,
577,
44,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
372,
3274,
96,
122,
6987,
127,
152,
121,
3430,
5669,
3274,
96,
5165,
7,
127,
2447,
6,
36,
40,
11584,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, find hire_date and the average of salary bin hire_date by weekday, and visualize them by a bar chart, list in ascending by the total number please. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLO... | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
145... |
Who was the opponent on May 20? | CREATE TABLE table_71209 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Opponent" FROM table_71209 WHERE "Date" = 'may 20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
357,
4198,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
4450,
357,
4198,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
460,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the batting style of the player born on 14 November 1971? | CREATE TABLE table_name_77 (
batting_style VARCHAR,
date_of_birth VARCHAR
) | SELECT batting_style FROM table_name_77 WHERE date_of_birth = "14 november 1971" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
3,
27759,
834,
4084,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
27759,
869,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27759,
834,
4084,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
833,
834,
858,
834,
20663,
3274,
96,
2534,
3,
5326,
18247,
17961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Display a bar chart for how many climbers are from each country?, and list from low to high by the the total number please. | CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
) | SELECT Country, COUNT(*) FROM climber GROUP BY Country ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8147,
49,
41,
205,
9577,
49,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
2900,
1499,
6,
4564,
7,
490,
6,
5617,
834,
4309,
16,
17,
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,
6993,
6,
2847,
17161,
599,
1935,
61,
21680,
8147,
49,
350,
4630,
6880,
272,
476,
6993,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many laps was the driver jacques villeneuve and the grid more than 7? | CREATE TABLE table_name_55 (
laps VARCHAR,
driver VARCHAR,
grid VARCHAR
) | SELECT COUNT(laps) FROM table_name_55 WHERE driver = "jacques villeneuve" AND grid > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
14941,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
14941,
7,
47,
8,
2535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2535,
3274,
96,
1191,
75,
7771,
3,
1420,
26445,
121,
3430,
8634,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who wrote the episode with 18.07 million viewers? | CREATE TABLE table_26198709_1 (
written_by VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT written_by FROM table_26198709_1 WHERE us_viewers__million_ = "18.07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2294,
4225,
4198,
834,
536,
41,
1545,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2688,
2294,
4225,
4198,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
2606,
5,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the opponent at the game at Madison Square Garden? | CREATE TABLE table_name_19 (
opponent VARCHAR,
location_attendance VARCHAR
) | SELECT opponent FROM table_name_19 WHERE location_attendance = "madison square garden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
15264,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
44,
8,
467,
44,
16168,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
11374,
23,
739,
2812,
2004,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average? | CREATE TABLE table_16502 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
) | SELECT MIN("Average") FROM table_16502 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
4305,
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,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
624,
545,
8512,
21680,
953,
834,
22823,
4305,
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,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.