NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the hometown for the player that is defensive back and went to alabama? | CREATE TABLE table_name_20 (hometown VARCHAR, position VARCHAR, college VARCHAR) | SELECT hometown FROM table_name_20 WHERE position = "defensive back" AND college = "alabama" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
5515,
3540,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22295,
21,
8,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22295,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
1102,
3274,
96,
221,
23039,
15,
223,
121,
3430,
1900,
3274,
96,
9,
9339,
265,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the number of the episode directed by Whitney Ransick? | CREATE TABLE table_2877 (
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production Code" text,
"U.S. viewers (millions)" text
) | SELECT "#" FROM table_2877 WHERE "Director" = 'Whitney Ransick' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4013,
41,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
599,
7,
61,
121,
1499,
6,
96,
667,
3380,
10270,
799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4663,
121,
21680,
953,
834,
2577,
4013,
549,
17444,
427,
96,
23620,
127,
121,
3274,
3,
31,
518,
10536,
3186,
15039,
7,
3142,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the last names for all scholarship students? | CREATE TABLE plays_games (
stuid number,
gameid number,
hours_played number
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TAB... | SELECT T2.lname FROM sportsinfo AS T1 JOIN student AS T2 ON T1.stuid = T2.stuid WHERE T1.onscholarship = 'Y' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4805,
834,
7261,
7,
41,
21341,
23,
26,
381,
6,
467,
23,
26,
381,
6,
716,
834,
4895,
15,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2100,
9583,
41,
21341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
40,
4350,
21680,
2100,
9583,
6157,
332,
536,
3,
15355,
3162,
1236,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
7,
17,
76,
23,
26,
549,
17444,
427,
332,
5411,
106,
860,
17401,
... |
How many tournaments ended with a score of 204 (-12)? | CREATE TABLE table_16950 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
) | SELECT COUNT("Tournament") FROM table_16950 WHERE "Score" = '204 (-12)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
1752,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
345,
3589,
15,
599,
1514,
3,
61,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
382,
1211,
20205,
17,
8512,
21680,
953,
834,
27096,
1752,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
26363,
41,
5947,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2 | CREATE TABLE table_name_82 (
mountains_classification VARCHAR,
stage VARCHAR,
young_rider_classification VARCHAR,
intergiro_classification VARCHAR
) | SELECT mountains_classification FROM table_name_82 WHERE young_rider_classification = "francesco casagrande" AND intergiro_classification = "not awarded" AND stage = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
8022,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
6,
1021,
834,
4055,
49,
834,
4057,
2420,
584,
4280,
28027,
6,
1413,
9427,
32,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8022,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1021,
834,
4055,
49,
834,
4057,
2420,
3274,
96,
89,
5219,
3523,
9366,
15448,
15,
121,
3430,
1413,
9427,
32,
834,
4057,
2420,
3274,
96,
2264,
... |
What's the Time for the Competition of european cup and has a Venue of Moscow? | CREATE TABLE table_45036 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Time" text
) | SELECT "Time" FROM table_45036 WHERE "Competition" = 'european cup' AND "Venue" = 'moscow' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10593,
3420,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
427,
2169,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
10593,
3420,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
28188,
152,
4119,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
3972,
509,
210,
31,
1,
-100,
-100,
-100,
... |
what is the record when marc gasol (8) had the high rebounds? | CREATE TABLE table_name_23 (record VARCHAR, high_rebounds VARCHAR) | SELECT record FROM table_name_23 WHERE high_rebounds = "marc gasol (8)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
60,
7621,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1368,
116,
14124,
1807,
32,
40,
3,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
306,
834,
23768,
3274,
96,
1635,
75,
1807,
32,
40,
3,
28007,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many incumbents come from alvin bush's district? | CREATE TABLE table_1341930_38 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1341930_38 WHERE incumbent = "Alvin Bush" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2294,
1458,
834,
3747,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
28406,
7,
369,
45,
491,
2494,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1608,
12416,
6203,
61,
21680,
953,
834,
23747,
2294,
1458,
834,
3747,
549,
17444,
427,
28406,
3274,
96,
188,
40,
2494,
8905,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which season had a better winning record , 1970 or 1975 ? | CREATE TABLE table_204_24 (
id number,
"year" number,
"league" text,
"record" text,
"finish" text,
"manager" text,
"playoffs" text,
"notes" text
) | SELECT "year" FROM table_204_24 WHERE "year" IN (1970, 1975) ORDER BY "finish" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2266,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
29512,
121,
1499,
6,
96,
60,
7621,
121,
1499,
6,
96,
25535,
121,
1499,
6,
96,
24185,
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,
1201,
121,
21680,
953,
834,
26363,
834,
2266,
549,
17444,
427,
96,
1201,
121,
3388,
2863,
2518,
6,
16312,
61,
4674,
11300,
272,
476,
96,
25535,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the D 42 figure when D 46 is r 6? | CREATE TABLE table_53546 (
"D 50 \u221a" text,
"D 49 \u221a" text,
"D 48 \u221a" text,
"D 47 \u221a" text,
"D 46 \u221a" text,
"D 45 \u221a" text,
"D 44 \u221a" text,
"D 43 \u221a" text,
"D 42 \u221a" text,
"D 41 \u221a" text
) | SELECT "D 42 \u221a" FROM table_53546 WHERE "D 46 \u221a" = 'r 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2469,
4448,
41,
96,
308,
943,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
9526,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
4678,
3,
2,
76,
357,
2658,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
6426,
3,
2,
76,
357,
2658,
9,
121,
21680,
953,
834,
755,
2469,
4448,
549,
17444,
427,
96,
308,
9668,
3,
2,
76,
357,
2658,
9,
121,
3274,
3,
31,
52,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the branding for the station located in san jose del monte? | CREATE TABLE table_27588823_2 (branding VARCHAR, location VARCHAR) | SELECT branding FROM table_27588823_2 WHERE location = "San Jose Del Monte" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
10927,
2773,
834,
357,
41,
12164,
53,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14282,
21,
8,
2478,
1069,
16,
3,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14282,
21680,
953,
834,
25988,
10927,
2773,
834,
357,
549,
17444,
427,
1128,
3274,
96,
134,
152,
10854,
6236,
13789,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which season was on 30 October 1977? | CREATE TABLE table_52243 (
"Season" text,
"Match" text,
"Result" text,
"League" text,
"Date" text
) | SELECT "Season" FROM table_52243 WHERE "Date" = '30 october 1977' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
27730,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
329,
14547,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
308,
342,
121,
1499,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
5373,
27730,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
1458,
3,
32,
75,
235,
1152,
16433,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose admission type is elective and insurance is private? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.insurance = "Private" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
29441,
3274,
96,
7855,
... |
What is the visitor team of the game with Rudy Gay (18) as the leading scorer? | CREATE TABLE table_name_96 (visitor VARCHAR, leading_scorer VARCHAR) | SELECT visitor FROM table_name_96 WHERE leading_scorer = "rudy gay (18)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
3466,
155,
127,
584,
4280,
28027,
6,
1374,
834,
7,
5715,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7019,
372,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1374,
834,
7,
5715,
49,
3274,
96,
17237,
63,
16998,
9323,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the ICAO for Air Busan? | CREATE TABLE table_40826 (
"AIRLINE" text,
"ICAO" text,
"IATA" text,
"CALLSIGN" text,
"COMMENCED OPERATIONS" text
) | SELECT "ICAO" FROM table_40826 WHERE "CALLSIGN" = 'air busan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
927,
2688,
41,
96,
18375,
20006,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
21605,
7600,
196,
13738,
121,
1499,
6,
96,
6657,
329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15038,
667,
121,
21680,
953,
834,
2445,
927,
2688,
549,
17444,
427,
96,
21605,
7600,
196,
13738,
121,
3274,
3,
31,
2256,
2601,
152,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the elimination number for the time 13:43? | CREATE TABLE table_name_74 (elimination VARCHAR, time VARCHAR) | SELECT elimination FROM table_name_74 WHERE time = "13:43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
15,
40,
23,
14484,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
23458,
381,
21,
8,
97,
1179,
10,
4906,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
23458,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
97,
3274,
96,
2368,
10,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the team 2 with turnovo as team 1? | CREATE TABLE table_name_6 (team_2 VARCHAR, team_1 VARCHAR) | SELECT team_2 FROM table_name_6 WHERE team_1 = "turnovo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
11650,
834,
357,
584,
4280,
28027,
6,
372,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
372,
204,
28,
919,
32,
1621,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
357,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
372,
834,
536,
3274,
96,
7535,
32,
1621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest crowd for an Away team of st kilda? | CREATE TABLE table_56253 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MAX("Crowd") FROM table_56253 WHERE "Away team" = 'st kilda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
1828,
519,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
4834,
1828,
519,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
7,
17,
3,
157,
173,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What venue is on the date of 8/6/03 | CREATE TABLE table_54200 (
"Date" text,
"Competition" text,
"Venue" text,
"Result" text,
"Score" text
) | SELECT "Venue" FROM table_54200 WHERE "Date" = '8/6/03' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
3632,
41,
96,
308,
342,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
5062,
3632,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
927,
18656,
87,
4928,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the minimum D (max) when the Morse Taper number is less than 0? | CREATE TABLE table_9641 (
"Morse Taper number" real,
"Taper" text,
"B (max)" real,
"C (max)" real,
"D (max)" real
) | SELECT MIN("D (max)") FROM table_9641 WHERE "Morse Taper number" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
4853,
41,
96,
329,
127,
7,
15,
9627,
49,
381,
121,
490,
6,
96,
382,
9,
883,
121,
1499,
6,
96,
279,
41,
9128,
61,
121,
490,
6,
96,
254,
41,
9128,
61,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
41,
9128,
61,
8512,
21680,
953,
834,
4314,
4853,
549,
17444,
427,
96,
329,
127,
7,
15,
9627,
49,
381,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of courses provided in each year with a group line chart that groups by semester. | CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE takes (
ID varchar(... | SELECT year, COUNT(*) FROM section GROUP BY semester, year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
11749,
41,
4699,
3,
4331,
4059,
15757,
6,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
4220,
834,
23,
26,
3,
4331,
4059,
28007,
6,
10542,
3,
4331,
4059,
18669,
6,
215,
206,
17552,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
215,
6,
2847,
17161,
599,
1935,
61,
21680,
1375,
350,
4630,
6880,
272,
476,
10542,
6,
215,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many points categories are there when the losing bonus is 2 and points for are 642? | CREATE TABLE table_21850 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT COUNT("Points") FROM table_21850 WHERE "Losing bonus" = '2' AND "Points for" = '642' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
17246,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22512,
7,
8512,
21680,
953,
834,
2658,
17246,
549,
17444,
427,
96,
434,
32,
7,
53,
4023,
121,
3274,
3,
31,
357,
31,
3430,
96,
22512,
7,
21,
121,
3274,
3,
31,
4389,
357,
31,
1,
-100,
-100,
... |
Show total number of id from each nationality, order by the bar from low to high. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
... | SELECT Nationality, SUM(ID) FROM swimmer GROUP BY Nationality ORDER BY Nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
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... | [
3,
23143,
14196,
868,
485,
6,
180,
6122,
599,
4309,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
868,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won in 1965? | CREATE TABLE table_name_42 (winner VARCHAR, year VARCHAR) | SELECT winner FROM table_name_42 WHERE year = "1965" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
3757,
687,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
16,
19201,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
215,
3274,
96,
26937,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the Result at Strathclyde Homes Stadium? | CREATE TABLE table_59293 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"St. Mirren Scorer(s)" text
) | SELECT "Result" FROM table_59293 WHERE "Venue" = 'strathclyde homes stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
357,
4271,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
17,
5,
8208,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3390,
357,
4271,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
3109,
189,
75,
120,
221,
2503,
14939,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Regular Season Champion(s) has a Tournament Champion of west virginia in 1955–56? | CREATE TABLE table_name_4 (regular_season_champion_s_ VARCHAR, tournament_champion VARCHAR, year VARCHAR) | SELECT regular_season_champion_s_ FROM table_name_4 WHERE tournament_champion = "west virginia" AND year = "1955–56" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
60,
122,
4885,
834,
9476,
834,
17788,
12364,
834,
7,
834,
584,
4280,
28027,
6,
5892,
834,
17788,
12364,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
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,
1646,
834,
9476,
834,
17788,
12364,
834,
7,
834,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
5892,
834,
17788,
12364,
3274,
96,
12425,
24556,
23,
9,
121,
3430,
215,
3274,
96,
2294,
3769,
104,
4834,
121,
1,
-10... |
What is the lowest Total, when Second is '55'? | CREATE TABLE table_name_2 (
total INTEGER,
second VARCHAR
) | SELECT MIN(total) FROM table_name_2 WHERE second = 55 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
792,
3,
21342,
17966,
6,
511,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
9273,
6,
116,
5212,
19,
3,
31,
3769,
31,
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,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
511,
3274,
6897,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total average with 54 total points and a rank less than 10? | CREATE TABLE table_name_34 (average VARCHAR, total_points VARCHAR, rank_by_average VARCHAR) | SELECT COUNT(average) FROM table_name_34 WHERE total_points = 54 AND rank_by_average < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
28951,
584,
4280,
28027,
6,
792,
834,
2700,
7,
584,
4280,
28027,
6,
11003,
834,
969,
834,
28951,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
28951,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
792,
834,
2700,
7,
3274,
10630,
3430,
11003,
834,
969,
834,
28951,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the enrollment of the school whose mascot is hot dogs? | CREATE TABLE table_13447 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text,
"Year Joined" real
) | SELECT SUM("Enrollment") FROM table_13447 WHERE "Mascot" = 'hot dogs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
4177,
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,
5498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
8532,
4046,
297,
8512,
21680,
953,
834,
23747,
4177,
549,
17444,
427,
96,
329,
9,
7,
4310,
121,
3274,
3,
31,
10718,
3887,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Fourth place with a Year that is 1966? | CREATE TABLE table_name_11 (fourth_place VARCHAR, year VARCHAR) | SELECT fourth_place FROM table_name_11 WHERE year = 1966 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
12521,
189,
834,
4687,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
21670,
286,
28,
3,
9,
2929,
24,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4509,
834,
4687,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
215,
3274,
20658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What driver has more than 39 laps on gird 15? | CREATE TABLE table_name_67 (
driver VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT driver FROM table_name_67 WHERE laps > 39 AND grid = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2535,
65,
72,
145,
6352,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
14941,
7,
2490,
6352,
3430,
8634,
3274,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the class with rank of 89th | CREATE TABLE table_name_12 (class VARCHAR, rank VARCHAR) | SELECT class FROM table_name_12 WHERE rank = "89th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
4057,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
853,
28,
11003,
13,
3,
3914,
189,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
11003,
3274,
96,
3914,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the points scored were 93.45%, what's the lowest amount of games lost? | CREATE TABLE table_44118 (
"Team" text,
"Lost" real,
"Last 5" text,
"Streak" text,
"Home" text,
"Away" text,
"% Pts" real,
"% Won" real
) | SELECT MIN("Lost") FROM table_44118 WHERE "% Pts" = '93.45' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
20056,
41,
96,
18699,
121,
1499,
6,
96,
434,
3481,
121,
490,
6,
96,
3612,
7,
17,
3,
17395,
1499,
6,
96,
11500,
15,
1639,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
434,
3481,
8512,
21680,
953,
834,
3628,
20056,
549,
17444,
427,
96,
1454,
276,
17,
7,
121,
3274,
3,
31,
4271,
5,
2128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Social Democratic Party has a Green smaller than 0? | CREATE TABLE table_39090 (
"Election" real,
"Labour" real,
"Conservative" real,
"Liberal" real,
"Social Democratic Party" real,
"Social and Liberal Democrats/ Liberal Democrats" real,
"Independent" real,
"Green" real,
"Other" text,
"Control" text
) | SELECT AVG("Social Democratic Party") FROM table_39090 WHERE "Green" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2394,
2394,
41,
96,
427,
12252,
121,
490,
6,
96,
18506,
1211,
121,
490,
6,
96,
4302,
3473,
1528,
121,
490,
6,
96,
14615,
49,
138,
121,
490,
6,
96,
5231,
4703,
10021,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
5231,
4703,
10021,
3450,
8512,
21680,
953,
834,
519,
2394,
2394,
549,
17444,
427,
96,
22918,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the number of routes with destination airports in Italy. | CREATE TABLE routes (
dst_apid VARCHAR
)
CREATE TABLE airports (
apid VARCHAR,
country VARCHAR
) | SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9729,
41,
3,
26,
7,
17,
834,
9,
12417,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
7,
41,
3,
9,
12417,
584,
4280,
28027,
6,
684,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
9729,
6157,
332,
536,
3,
15355,
3162,
3761,
7,
6157,
332,
357,
9191,
332,
5411,
26,
7,
17,
834,
9,
12417,
3274,
332,
4416,
9,
12417,
549,
17444,
427,
332,
4416,
17529,
3274,
3,
3... |
What was the Queens number when Brooklyn was 201,866? | CREATE TABLE table_name_57 (queens VARCHAR, brooklyn VARCHAR) | SELECT queens FROM table_name_57 WHERE brooklyn = "201,866" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
835,
35,
7,
584,
4280,
28027,
6,
3,
14370,
120,
29,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5286,
7,
381,
116,
12805,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14915,
7,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
3,
14370,
120,
29,
3274,
96,
22772,
6,
26750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor? | CREATE TABLE table_65590 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
) | SELECT "Soap Opera" FROM table_65590 WHERE "Duration" = '13 years' AND "Actor" = 'marina giulia cavalli' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
755,
2394,
41,
96,
188,
5317,
121,
1499,
6,
96,
18947,
2708,
49,
121,
1499,
6,
96,
5231,
9,
102,
6411,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
12998,
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,
5231,
9,
102,
6411,
121,
21680,
953,
834,
4122,
755,
2394,
549,
17444,
427,
96,
12998,
2661,
121,
3274,
3,
31,
2368,
203,
31,
3430,
96,
188,
5317,
121,
3274,
3,
31,
12181,
9,
3,
24930,
40,
23,
9,
212,
2165,
... |
What is Metro's win percentage? | CREATE TABLE table_31633 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" text,
"Round of 32" text,
"Elite Eight" text,
"Final Four" text,
"Championship Game" text
) | SELECT "Win %" FROM table_31633 WHERE "Conference" = 'metro' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25946,
4201,
41,
96,
4302,
11788,
121,
1499,
6,
96,
4663,
13,
2106,
26,
7,
121,
490,
6,
96,
1649,
7621,
121,
1499,
6,
96,
18455,
3,
1454,
121,
1499,
6,
96,
448,
32,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
3,
1454,
121,
21680,
953,
834,
25946,
4201,
549,
17444,
427,
96,
4302,
11788,
121,
3274,
3,
31,
51,
15252,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's Yotam Halperin's position? | CREATE TABLE table_593 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
) | SELECT "Position" FROM table_593 WHERE "Player" = 'Yotam Halperin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
519,
41,
96,
4168,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
2170,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
3390,
519,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
476,
32,
17,
265,
5648,
883,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the game that had a final score of 30-20? | CREATE TABLE table_53308 (
"Date" text,
"Competition" text,
"Venue" text,
"Result" text,
"Score" text,
"Goals" text
) | SELECT "Venue" FROM table_53308 WHERE "Score" = '30-20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
1458,
927,
41,
96,
308,
342,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
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,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
4867,
1458,
927,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
1458,
7988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the M939 series with M809 series of m817 and M39 series of m51 | CREATE TABLE table_name_54 (
m939_series VARCHAR,
m809_series VARCHAR,
m39_series VARCHAR
) | SELECT m939_series FROM table_name_54 WHERE m809_series = "m817" AND m39_series = "m51" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
3,
51,
1298,
3288,
834,
10833,
7,
584,
4280,
28027,
6,
3,
51,
2079,
1298,
834,
10833,
7,
584,
4280,
28027,
6,
3,
51,
3288,
834,
10833,
7,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
51,
1298,
3288,
834,
10833,
7,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
3,
51,
2079,
1298,
834,
10833,
7,
3274,
96,
51,
927,
2517,
121,
3430,
3,
51,
3288,
834,
10833,
7,
3274,
96,
51,
5553,
121,
1,
... |
What is the highest attendance for December 3, 1972 after week 12? | CREATE TABLE table_13172 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT MAX("Attendance") FROM table_13172 WHERE "Date" = 'december 3, 1972' AND "Week" > '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
27156,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
2368,
27156,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
6180,
16583,
31,
3430,
96,
518,
10266,
121,
2490,
3,
31,
2122,
31,
1... |
what are the top four most frequent lab tests since 2 years ago? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
9339,
4350,
21680,
41,
23143,
14196,
7690,
5,
9339,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
75,
536,
2... |
count the number of cases of pulmonary resection - tumor. | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TAB... | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'pulmonary resection - tumor' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1058,
549,
17444,
427,
1058,
5,
26889,
4350,
3274,
3,
31,
26836,
3,
60,
14309,
3,
18,
8985,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the round when Grand Slam was the Davis Cup? | CREATE TABLE table_62129 (
"Year" real,
"Grand Slam" text,
"Round" text,
"Winner" text,
"Loser" text
) | SELECT "Round" FROM table_62129 WHERE "Grand Slam" = 'davis cup' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
22174,
41,
96,
476,
2741,
121,
490,
6,
96,
4744,
727,
29291,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
434,
32,
7,
49,
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,
448,
32,
1106,
121,
21680,
953,
834,
4056,
22174,
549,
17444,
427,
96,
4744,
727,
29291,
121,
3274,
3,
31,
26,
2960,
7,
4119,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the Denomination listed for the Date of Issue 12 April 2005? | CREATE TABLE table_name_88 (
denomination VARCHAR,
date_of_issue VARCHAR
) | SELECT denomination FROM table_name_88 WHERE date_of_issue = "12 april 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
28730,
584,
4280,
28027,
6,
833,
834,
858,
834,
13159,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3128,
32,
14484,
2616,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
28730,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
833,
834,
858,
834,
13159,
3274,
96,
2122,
3,
9,
2246,
40,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date has a Race Title of dhl turkish grand prix? | CREATE TABLE table_name_40 (date VARCHAR, race_title VARCHAR) | SELECT date FROM table_name_40 WHERE race_title = "dhl turkish grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
5522,
584,
4280,
28027,
6,
1964,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
3,
9,
10949,
11029,
13,
3,
26,
107,
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,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1964,
834,
21869,
3274,
96,
26,
107,
40,
3,
2905,
157,
1273,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which payment method is used by most customers? | CREATE TABLE customers (payment_method VARCHAR) | SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
21752,
834,
23152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1942,
1573,
19,
261,
57,
167,
722,
58,
1,
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,
1942,
834,
23152,
21680,
722,
350,
4630,
6880,
272,
476,
1942,
834,
23152,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What king has an S. number over 1 and a number of villages of 600? | CREATE TABLE table_name_54 (name_of_king VARCHAR, sno VARCHAR, no_of_villages VARCHAR) | SELECT name_of_king FROM table_name_54 WHERE sno > 1 AND no_of_villages = 600 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
4350,
834,
858,
834,
1765,
584,
4280,
28027,
6,
3,
7,
29,
32,
584,
4280,
28027,
6,
150,
834,
858,
834,
24887,
2897,
584,
4280,
28027,
61,
3,
32102,
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,
564,
834,
858,
834,
1765,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
3,
7,
29,
32,
2490,
209,
3430,
150,
834,
858,
834,
24887,
2897,
3274,
7366,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the names of races held between 2009 and 2011? | CREATE TABLE races (
name VARCHAR,
YEAR INTEGER
) | SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10879,
41,
564,
584,
4280,
28027,
6,
30431,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3056,
13,
10879,
1213,
344,
2464,
11,
2722,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
10879,
549,
17444,
427,
30431,
272,
7969,
518,
23394,
2464,
3430,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the English name given to the city of St. John's? | CREATE TABLE table_1008653_1 (capital___exonym__ VARCHAR, capital___endonym__ VARCHAR) | SELECT capital___exonym__ FROM table_1008653_1 WHERE capital___endonym__ = "St. John's" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
3840,
4867,
834,
536,
41,
4010,
9538,
834,
834,
834,
994,
19140,
834,
834,
584,
4280,
28027,
6,
1784,
834,
834,
834,
989,
19140,
834,
834,
584,
4280,
28027,
61,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
1784,
834,
834,
834,
994,
19140,
834,
834,
21680,
953,
834,
2915,
3840,
4867,
834,
536,
549,
17444,
427,
1784,
834,
834,
834,
989,
19140,
834,
834,
3274,
96,
134,
17,
5,
1079,
31,
7,
121,
1,
-100,
-100,
-100,
-100... |
what's the fuel delivery where power is hp (kw) @6500 rpm | CREATE TABLE table_11167610_1 (
fuel_delivery VARCHAR,
power VARCHAR
) | SELECT fuel_delivery FROM table_11167610_1 WHERE power = "hp (kW) @6500 rpm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
3708,
27097,
834,
536,
41,
2914,
834,
12460,
8461,
584,
4280,
28027,
6,
579,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
2914,
1929,
213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2914,
834,
12460,
8461,
21680,
953,
834,
15866,
3708,
27097,
834,
536,
549,
17444,
427,
579,
3274,
96,
107,
102,
41,
21729,
61,
3320,
948,
2560,
3,
52,
2028,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the first game played against the Chicago Black Hawks? | CREATE TABLE table_name_92 (game INTEGER, opponent VARCHAR) | SELECT MIN(game) FROM table_name_92 WHERE opponent = "chicago black hawks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
7261,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
166,
467,
1944,
581,
8,
3715,
1589,
12833,
7,
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,
3,
17684,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
15264,
3274,
96,
1436,
658,
839,
1001,
3,
14400,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
whats the last height of patient 015-12842 until 12 months ago? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-12842') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-12 month') ORDER BY patient.unita... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
1868,
5,
9,
26,
5451,
88,
2632,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
20... |
Name the highest laps for time/retired of engine and grid of 5 | CREATE TABLE table_10171 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT MAX("Laps") FROM table_10171 WHERE "Time/Retired" = 'engine' AND "Grid" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19621,
4450,
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,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19621,
4450,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
20165,
31,
3430,
96,
13313,
26,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-... |
give me the number of patients whose days of hospital stay is greater than 2 and lab test fluid is pleural? | 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.days_stay > "2" AND lab.fluid = "Pleural" | [
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,... |
What's the record of the game where Lebron James (16) was the leading scorer? | CREATE TABLE table_name_69 (record VARCHAR, leading_scorer VARCHAR) | SELECT record FROM table_name_69 WHERE leading_scorer = "lebron james (16)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
60,
7621,
584,
4280,
28027,
6,
1374,
834,
7,
5715,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1368,
13,
8,
467,
213,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1374,
834,
7,
5715,
49,
3274,
96,
109,
13711,
7620,
15,
7,
19198,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUND BIGGER THAN 10? | CREATE TABLE table_name_23 (overall INTEGER, round VARCHAR, pick VARCHAR, college VARCHAR) | SELECT AVG(overall) FROM table_name_23 WHERE pick = 22 AND college = "rice" AND round > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1890,
1748,
3,
21342,
17966,
6,
1751,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
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,
71,
17217,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1432,
3274,
1630,
3430,
1900,
3274,
96,
4920,
121,
3430,
1751,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many people wrote the episode directed by Arvin Brown? | CREATE TABLE table_30030227_1 (written_by VARCHAR, directed_by VARCHAR) | SELECT COUNT(written_by) FROM table_30030227_1 WHERE directed_by = "Arvin Brown" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
1458,
357,
2555,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
2832,
8,
5640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
14973,
834,
969,
61,
21680,
953,
834,
5426,
1458,
357,
2555,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
188,
52,
2494,
3899,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score with lost as the result? | CREATE TABLE table_name_80 (
score VARCHAR,
result VARCHAR
) | SELECT score FROM table_name_80 WHERE result = "lost" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
2604,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
28,
1513,
38,
8,
741,
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,
2604,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
741,
3274,
96,
2298,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which club has 275 points? | CREATE TABLE table_name_16 (club VARCHAR, points_for VARCHAR) | SELECT club FROM table_name_16 WHERE points_for = "275" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
13442,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1886,
65,
3,
25988,
979,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1886,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
979,
834,
1161,
3274,
96,
25988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Team has 19 Carries, and a Week larger than 13? | CREATE TABLE table_name_18 (
team VARCHAR,
carries VARCHAR,
week VARCHAR
) | SELECT team FROM table_name_18 WHERE carries = 19 AND week > 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
372,
584,
4280,
28027,
6,
3,
11078,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2271,
65,
957,
1184,
2593,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
3,
11078,
3274,
957,
3430,
471,
2490,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the total of 1988-89 that has a 1986-87 of 38, and Points that's smaller than 109? | CREATE TABLE table_34034 (
"Team" text,
"Average" real,
"Points" real,
"Played" real,
"1986-87" text,
"1987-88" text,
"1988-89" real
) | SELECT SUM("1988-89") FROM table_34034 WHERE "1986-87" = '38' AND "Points" < '109' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21129,
3710,
41,
96,
18699,
121,
1499,
6,
96,
188,
624,
545,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
2294,
3840,
18,
4225,
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,
180,
6122,
599,
121,
2294,
4060,
18,
3914,
8512,
21680,
953,
834,
21129,
3710,
549,
17444,
427,
96,
2294,
3840,
18,
4225,
121,
3274,
3,
31,
3747,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
17304,
31,
1,
-100,
-10... |
How many wrestlers were born in nara, and have a completed 'career and other notes' section? | CREATE TABLE table_1557974_1 (career_and_other_notes VARCHAR, birthplace VARCHAR) | SELECT COUNT(career_and_other_notes) FROM table_1557974_1 WHERE birthplace = "Nara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
4440,
4581,
834,
536,
41,
2864,
49,
834,
232,
834,
9269,
834,
7977,
7,
584,
4280,
28027,
6,
3879,
4687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2864,
49,
834,
232,
834,
9269,
834,
7977,
7,
61,
21680,
953,
834,
20896,
4440,
4581,
834,
536,
549,
17444,
427,
3879,
4687,
3274,
96,
567,
2551,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the original air date(s) for episodes with 8.63 million viewers? | CREATE TABLE table_2501754_2 (
original_airdate VARCHAR,
viewing_figures_millions VARCHAR
) | SELECT original_airdate FROM table_2501754_2 WHERE viewing_figures_millions = "8.63" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
2517,
5062,
834,
357,
41,
926,
834,
2256,
5522,
584,
4280,
28027,
6,
7426,
834,
9178,
15,
7,
834,
17030,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
5522,
21680,
953,
834,
11434,
2517,
5062,
834,
357,
549,
17444,
427,
7426,
834,
9178,
15,
7,
834,
17030,
7,
3274,
96,
927,
5,
3891,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which papers did the author 'Olin Shivers' write? Give me the paper titles. | CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE authors (
authid number,
lname text,
fname text
) | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Olin" AND t1.lname = "Shivers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5778,
41,
1040,
23,
26,
381,
6,
2233,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
2009,
41,
185,
17,
11740,
381,
6,
16,
2248,
26,
381,
6,
1040,
23,
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,
3,
17,
5787,
21869,
21680,
5921,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
402,
17,
11740,
3274,
3,
17,
4416,
402,
17,
11740,
3,
15355,
3162,
5778,
6157,
3,
17,
519,
9191... |
Which champion was from the location of Morrisville, NC, and whose SemiFinalist #2 of Clemson? | CREATE TABLE table_name_47 (
champion VARCHAR,
location VARCHAR,
semi_finalist__number2 VARCHAR
) | SELECT champion FROM table_name_47 WHERE location = "morrisville, nc" AND semi_finalist__number2 = "clemson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
6336,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
4772,
834,
12406,
343,
834,
834,
5525,
1152,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6336,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1128,
3274,
96,
2528,
52,
23,
9727,
6,
3,
29,
75,
121,
3430,
4772,
834,
12406,
343,
834,
834,
5525,
1152,
357,
3274,
96,
2482,
51,
739,
121,
1,
-100,
-100,
... |
Which celebrity who was famous for being the ex busted member and TV presenter exited on day 19? | CREATE TABLE table_6581 (
"Celebrity" text,
"Famous for" text,
"Entered" text,
"Exited" text,
"Finished" text
) | SELECT "Celebrity" FROM table_6581 WHERE "Exited" = 'day 19' AND "Famous for" = 'ex busted member and tv presenter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
4959,
41,
96,
254,
400,
2160,
17,
63,
121,
1499,
6,
96,
371,
265,
1162,
21,
121,
1499,
6,
96,
16924,
3737,
121,
1499,
6,
96,
5420,
23,
1054,
121,
1499,
6,
96,
311... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
400,
2160,
17,
63,
121,
21680,
953,
834,
4122,
4959,
549,
17444,
427,
96,
5420,
23,
1054,
121,
3274,
3,
31,
1135,
957,
31,
3430,
96,
371,
265,
1162,
21,
121,
3274,
3,
31,
994,
2601,
1054,
1144,
11,
3,
... |
How many dominant religions are in ala? | CREATE TABLE table_2562572_30 (
dominant_religion__2002_ VARCHAR,
settlement VARCHAR
) | SELECT COUNT(dominant_religion__2002_) FROM table_2562572_30 WHERE settlement = "Đala" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
1458,
41,
12613,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
584,
4280,
28027,
6,
7025,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
5012,
77,
288,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
1458,
549,
17444,
427,
7025,
3274,
96,
2,
138,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
When 9 games (28,002 avg.) is the results of the games what is the date/year? | CREATE TABLE table_21436373_7 (
date_year VARCHAR,
result_games VARCHAR
) | SELECT date_year FROM table_21436373_7 WHERE result_games = "9 games (28,002 avg.)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4906,
3891,
4552,
834,
940,
41,
833,
834,
1201,
584,
4280,
28027,
6,
741,
834,
7261,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
668,
1031,
41,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
21680,
953,
834,
2658,
4906,
3891,
4552,
834,
940,
549,
17444,
427,
741,
834,
7261,
7,
3274,
96,
1298,
1031,
41,
2577,
6,
1206,
357,
3,
9,
208,
122,
5,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Nielsen ranking for Season 8? | CREATE TABLE table_name_99 (nielsen_ranking VARCHAR, season VARCHAR) | SELECT nielsen_ranking FROM table_name_99 WHERE season = "season 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
29,
23,
3573,
35,
834,
6254,
53,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
30298,
11592,
21,
7960,
505... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6691,
40,
7,
35,
834,
6254,
53,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
774,
3274,
96,
9476,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose diagnoses icd9 code is 25002 and lab test abnormal status is delta? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "25002" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
How many tries against did the club with 1 drawn and 41 points have? | CREATE TABLE table_name_19 (
tries_against VARCHAR,
drawn VARCHAR,
points VARCHAR
) | SELECT tries_against FROM table_name_19 WHERE drawn = "1" AND points = "41" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9000,
834,
9,
16720,
7,
17,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
6796,
3274,
96,
536,
121,
3430,
979,
3274,
96,
4853,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
get me the top four most frequent treatments since 2101? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE STRFTIME('%y', treatment.treatmenttime) >= '2101' GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
26889,
4350,
21680,
41,
23143,
14196,
1058,
5,
26889,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
75,
536,
... |
Which team lost 0-3 and 0-5? | CREATE TABLE table_79785 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team 1" FROM table_79785 WHERE "2nd leg" = '0-3' AND "1st leg" = '0-5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
3940,
755,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
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,
18699,
209,
121,
21680,
953,
834,
4440,
3940,
755,
549,
17444,
427,
96,
357,
727,
4553,
121,
3274,
3,
31,
632,
3486,
31,
3430,
96,
536,
7,
17,
4553,
121,
3274,
3,
31,
632,
4525,
31,
1,
-100,
-100,
-100,
-100... |
Which tyre was before 1995 with 142 laps? | CREATE TABLE table_name_14 (
tyres VARCHAR,
year VARCHAR,
laps VARCHAR
) | SELECT tyres FROM table_name_14 WHERE year < 1995 AND laps = 142 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
3,
17,
63,
60,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
17,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17,
63,
60,
7,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
215,
3,
2,
7273,
3430,
14941,
7,
3274,
3,
24978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many winners did I Dessau Autobahnspinne have? | CREATE TABLE table_1140116_6 (
winning_driver VARCHAR,
race_name VARCHAR
) | SELECT COUNT(winning_driver) FROM table_1140116_6 WHERE race_name = "I Dessau Autobahnspinne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2445,
20159,
834,
948,
41,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8969,
410,
27,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
8163,
834,
13739,
52,
61,
21680,
953,
834,
2596,
2445,
20159,
834,
948,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
196,
2973,
7348,
2040,
9849,
7,
102,
14029,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
what is june 10-11 when march 27-29 is 149? | CREATE TABLE table_27586 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
) | SELECT "June 10-11" FROM table_27586 WHERE "March 27-29" = '149' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
3840,
41,
96,
683,
444,
335,
9169,
121,
1499,
6,
96,
25019,
2307,
18,
3166,
121,
1499,
6,
96,
30404,
627,
10892,
121,
1499,
6,
96,
28635,
220,
121,
1499,
6,
96,
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,
683,
444,
335,
9169,
121,
21680,
953,
834,
25988,
3840,
549,
17444,
427,
96,
25019,
2307,
18,
3166,
121,
3274,
3,
31,
24816,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the least pick # for doug gibson | CREATE TABLE table_1965650_3 (pick__number INTEGER, player VARCHAR) | SELECT MIN(pick__number) FROM table_1965650_3 WHERE player = "Doug Gibson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4122,
15348,
834,
519,
41,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
1432,
1713,
21,
103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2294,
4122,
15348,
834,
519,
549,
17444,
427,
1959,
3274,
96,
4135,
76,
122,
24723,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, show me about the distribution of name and the sum of revenue , and group by attribute name in a bar chart, and could you list in ascending by the X-axis? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
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,
332,
5... |
What was the Attendance high on August 28? | CREATE TABLE table_name_26 (
attendance INTEGER,
date VARCHAR
) | SELECT MAX(attendance) FROM table_name_26 WHERE date = "august 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
22497,
663,
306,
30,
1660,
2059,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
833,
3274,
96,
402,
17198,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When Centerfold model is on 3-04? | CREATE TABLE table_40538 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
) | SELECT "Centerfold model" FROM table_40538 WHERE "Date" = '3-04' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3076,
3747,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
24382,
10533,
825,
121,
21680,
953,
834,
591,
3076,
3747,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
519,
18083,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Type has a Fleet numbers of 2 8, 91 92, 97 100? | CREATE TABLE table_name_90 (
type VARCHAR,
fleet_numbers VARCHAR
) | SELECT type FROM table_name_90 WHERE fleet_numbers = "2–8, 91–92, 97–100" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
686,
584,
4280,
28027,
6,
9111,
834,
5525,
1152,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6632,
65,
3,
9,
23705,
2302,
13,
204,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
686,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
9111,
834,
5525,
1152,
7,
3274,
96,
357,
104,
11864,
3,
4729,
104,
4508,
6,
3,
4327,
104,
2915,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What college has a pick of 11? | CREATE TABLE table_56972 (
"Round" real,
"Pick" real,
"Player drafted or Traded for" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_56972 WHERE "Pick" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
4327,
357,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
3,
23505,
42,
6550,
26,
21,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9939,
7883,
121,
21680,
953,
834,
4834,
4327,
357,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many vehicle theft data were recorded for a year with a population of 4465430? | CREATE TABLE table_26060884_2 (vehicle_theft VARCHAR, population VARCHAR) | SELECT COUNT(vehicle_theft) FROM table_26060884_2 WHERE population = 4465430 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
3328,
4060,
591,
834,
357,
41,
162,
107,
23,
2482,
834,
17,
20250,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1689,
1480... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
162,
107,
23,
2482,
834,
17,
20250,
61,
21680,
953,
834,
18365,
3328,
4060,
591,
834,
357,
549,
17444,
427,
2074,
3274,
8537,
4122,
25449,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who had the high assists when the high rebounds were from Nick Collison (15)? | CREATE TABLE table_11964154_11 (high_assists VARCHAR, high_rebounds VARCHAR) | SELECT high_assists FROM table_11964154_11 WHERE high_rebounds = "Nick Collison (15)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
4389,
27308,
834,
2596,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
19993,
4389,
27308,
834,
2596,
549,
17444,
427,
306,
834,
23768,
3274,
96,
567,
3142,
9919,
23,
739,
17251,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients were born before the year 2047 with a diagnosis short title chronic diastolic heart failure? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2047" AND diagnoses.short_title = "Chr diastolic hrt fail" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which Silver has a Nation of china, and a Bronze smaller than 7? | CREATE TABLE table_name_2 (
silver INTEGER,
nation VARCHAR,
bronze VARCHAR
) | SELECT SUM(silver) FROM table_name_2 WHERE nation = "china" AND bronze < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
4294,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5642,
65,
3,
9,
11046,
13,
205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
2982,
3274,
96,
5675,
9,
121,
3430,
13467,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the name of each county along with the corresponding number of delegates from that county with a pie chart. | CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
A... | SELECT County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_Id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
19488,
834,
4309,
16,
17,
6,
3,
10628,
725,
834,
1649,
12640,
15,
26,
1499,
6,
3570,
16,
17,
6,
374,
8791,
1499,
6,
3450,
16,
17,
6,
1485,
834,
21543,
15,
26,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1334,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
5435,
6157,
332,
536,
3,
15355,
3162,
4356,
6157,
332,
357,
9191,
332,
5411,
10628,
63,
834,
196,
26,
3274,
332,
4416,
308,
23,
20066,
350,
4630,
6880,
272,
476... |
What is the highest number of goals for robbie findley ranked above 10? | CREATE TABLE table_32630 (
"Rank" real,
"Player" text,
"Nation" text,
"Games" real,
"Goals" real,
"Years" text
) | SELECT MAX("Goals") FROM table_32630 WHERE "Player" = 'robbie findley' AND "Rank" < '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
26106,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
6,
96,
476,
2741,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6221,
5405,
8512,
21680,
953,
834,
2668,
26106,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
5840,
4232,
253,
1306,
31,
3430,
96,
22557,
121,
3,
2,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-... |
What was the latest round with a running back from a California college? | CREATE TABLE table_name_55 (round INTEGER, position VARCHAR, college VARCHAR) | SELECT MAX(round) FROM table_name_55 WHERE position = "running back" AND college = "california" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
7775,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1251,
1751,
28,
3,
9,
1180,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1102,
3274,
96,
24549,
223,
121,
3430,
1900,
3274,
96,
15534,
1161,
29,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who did the Jets play in their pre-week 9 game at the Robert F. Kennedy memorial stadium? | CREATE TABLE table_name_32 (opponent VARCHAR, week VARCHAR, game_site VARCHAR) | SELECT opponent FROM table_name_32 WHERE week < 9 AND game_site = "robert f. kennedy memorial stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
32,
102,
9977,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
8,
12434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
471,
3,
2,
668,
3430,
467,
834,
3585,
3274,
96,
5840,
49,
17,
3,
89,
5,
3,
9376,
15,
26,
63,
15827,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
15.03 million u.s viewers seen what episode? | CREATE TABLE table_19609 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production Code" real,
"U.S. viewers (millions)" text
) | SELECT "Title" FROM table_19609 WHERE "U.S. viewers (millions)" = '15.03' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
4198,
41,
96,
12106,
7,
1713,
121,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
26937,
4198,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
1808,
5,
4928,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of silver when rank was 5, and a bronze was smaller than 14? | CREATE TABLE table_name_69 (
silver INTEGER,
rank VARCHAR,
bronze VARCHAR
) | SELECT SUM(silver) FROM table_name_69 WHERE rank = "5" AND bronze < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
4294,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
4294,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
11003,
3274,
96,
17395,
3430,
13467,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What cart has a serpent shield animal? | CREATE TABLE table_60415 (
"Knight" text,
"Weapon/item" text,
"External weapon" text,
"Shield animal" text,
"Cart" text
) | SELECT "Cart" FROM table_60415 WHERE "Shield animal" = 'serpent' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
591,
1808,
41,
96,
439,
7602,
121,
1499,
6,
96,
1326,
9,
5041,
87,
23,
3524,
121,
1499,
6,
96,
5420,
2947,
138,
10931,
121,
1499,
6,
96,
134,
16219,
26,
2586,
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,
6936,
17,
121,
21680,
953,
834,
3328,
591,
1808,
549,
17444,
427,
96,
134,
16219,
26,
2586,
121,
3274,
3,
31,
7,
49,
102,
295,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When 43.048° n is the latitude what is the magnitude? | CREATE TABLE table_24192190_1 (magnitude VARCHAR, latitude VARCHAR) | SELECT magnitude FROM table_24192190_1 WHERE latitude = "43.048° N" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
19978,
11776,
834,
536,
41,
7493,
29,
20341,
584,
4280,
28027,
6,
50,
6592,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8838,
5,
632,
3707,
1956,
3,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
20722,
21680,
953,
834,
2266,
19978,
11776,
834,
536,
549,
17444,
427,
50,
6592,
3274,
96,
4906,
5,
632,
3707,
1956,
445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find distinct cities of address of students? | CREATE TABLE students (
student_id VARCHAR
)
CREATE TABLE addresses (
city VARCHAR,
address_id VARCHAR
)
CREATE TABLE people_addresses (
address_id VARCHAR,
person_id VARCHAR
) | SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
481,
41,
1236,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7181,
41,
690,
584,
4280,
28027,
6,
1115,
834,
23,
26,
584,
4280,
28027,
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,
3,
15438,
25424,
6227,
332,
5411,
6726,
21680,
7181,
6157,
332,
536,
3,
15355,
3162,
151,
834,
9,
26,
12039,
15,
7,
6157,
332,
357,
9191,
332,
5411,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
9,
26,
12039,
834,
... |
What was the total number of weeks where the game played Ivor Wynne Stadium? | CREATE TABLE table_21761882_4 (week VARCHAR, location VARCHAR) | SELECT COUNT(week) FROM table_21761882_4 WHERE location = "Ivor Wynne Stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3959,
2606,
4613,
834,
591,
41,
8041,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
381,
13,
1274,
213,
8,
467,
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,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8041,
61,
21680,
953,
834,
2658,
3959,
2606,
4613,
834,
591,
549,
17444,
427,
1128,
3274,
96,
196,
1967,
11314,
29,
29,
15,
12750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the maximum height for yury berezhko | CREATE TABLE table_14363116_1 (height INTEGER, player VARCHAR) | SELECT MAX(height) FROM table_14363116_1 WHERE player = "Yury Berezhko" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
3891,
20159,
834,
536,
41,
88,
2632,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2411,
3902,
21,
3,
63,
450,
63,
36,
2638... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
88,
2632,
61,
21680,
953,
834,
25133,
3891,
20159,
834,
536,
549,
17444,
427,
1959,
3274,
96,
476,
450,
63,
493,
2638,
107,
157,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Rank larger than 3, and a 6th Runner-up larger than 0, and a 5th Runner-up smaller than 1 has which lowest 1st Runner-up? | CREATE TABLE table_39336 (
"Rank" real,
"Country/Territory" text,
"Miss World" real,
"1st Runner-up" real,
"2nd Runner-up" real,
"3rd Runner-up" real,
"4th Runner-up" real,
"5th Runner-up" real,
"6th Runner-up" real,
"Semifinalists" real,
"Total" real
) | SELECT MIN("1st Runner-up") FROM table_39336 WHERE "Rank" > '3' AND "6th Runner-up" > '0' AND "5th Runner-up" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
519,
3420,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
87,
382,
21301,
10972,
121,
1499,
6,
96,
329,
159,
7,
1150,
121,
490,
6,
96,
536,
7,
17,
3,
23572,
18,
413,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
536,
7,
17,
3,
23572,
18,
413,
8512,
21680,
953,
834,
3288,
519,
3420,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
519,
31,
3430,
96,
948,
189,
3,
23572,
18,
413,
121,
2490,
3,
31,
632,
3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.