NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many distinct artists do the volumes associate to? | CREATE TABLE volume (Artist_ID VARCHAR) | SELECT COUNT(DISTINCT Artist_ID) FROM volume | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2908,
41,
7754,
343,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6746,
3153,
103,
8,
13548,
7573,
12,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
9152,
834,
4309,
61,
21680,
2908,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
At which tournament did william renshaw begin his lead when he had won 7 titles? | CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR, titles_won_at_point_of_lead VARCHAR) | SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "William Renshaw" AND titles_won_at_point_of_lead = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2445,
2079,
4240,
834,
2534,
41,
17,
1211,
20205,
17,
834,
144,
834,
3339,
834,
109,
9,
26,
834,
346,
2565,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
8342,
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,
5892,
834,
144,
834,
3339,
834,
109,
9,
26,
834,
346,
2565,
21680,
953,
834,
2773,
2445,
2079,
4240,
834,
2534,
549,
17444,
427,
1959,
3274,
96,
518,
1092,
23,
265,
4965,
15622,
121,
3430,
8342,
834,
210,
106,
834,
... |
What is the total number of wins for riders with fewer than 56 races and more than 0 titles? | CREATE TABLE table_name_45 (wins VARCHAR, races VARCHAR, titles VARCHAR) | SELECT COUNT(wins) FROM table_name_45 WHERE races < 56 AND titles > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
3757,
7,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
6,
8342,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
9204,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
10879,
3,
2,
11526,
3430,
8342,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Time has Ad Freq of 15 minutes, and a Show Name of country today? | CREATE TABLE table_78993 (
"Time" text,
"Show Name" text,
"Local/Networked" text,
"Ad Freq" text,
"News Freq" text
) | SELECT "Time" FROM table_78993 WHERE "Ad Freq" = '15 minutes' AND "Show Name" = 'country today' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
3264,
519,
41,
96,
13368,
121,
1499,
6,
96,
134,
4067,
5570,
121,
1499,
6,
96,
434,
32,
1489,
87,
9688,
1981,
15,
26,
121,
1499,
6,
96,
188,
26,
5532,
1824,
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,
13368,
121,
21680,
953,
834,
3940,
3264,
519,
549,
17444,
427,
96,
188,
26,
5532,
1824,
121,
3274,
3,
31,
1808,
676,
31,
3430,
96,
134,
4067,
5570,
121,
3274,
3,
31,
17529,
469,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the home for league 3rd liga, and an away of 4-0? | CREATE TABLE table_60697 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | SELECT "Home" FROM table_60697 WHERE "League" = '3rd liga' AND "Away" = '4-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3951,
940,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18699,
7,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
3328,
3951,
940,
549,
17444,
427,
96,
2796,
9,
5398,
121,
3274,
3,
31,
519,
52,
26,
3,
17140,
31,
3430,
96,
188,
1343,
121,
3274,
3,
31,
26814,
31,
1,
-100,
-100,
-100,
-100,
-10... |
What did the away team score when they were playing collingwood? | CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_47 WHERE home_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
8,
550,
372,
2604,
116,
79,
130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which score has t3 as the place? | CREATE TABLE table_name_27 (score VARCHAR, place VARCHAR) | SELECT score FROM table_name_27 WHERE place = "t3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
7,
9022,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2604,
65,
3,
17,
519,
38,
8,
286,
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,
2555,
549,
17444,
427,
286,
3274,
96,
17,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the surface for the game that was played on 12-Apr-2005? | CREATE TABLE table_name_50 (
surface VARCHAR,
date VARCHAR
) | SELECT surface FROM table_name_50 WHERE date = "12-apr-2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
1774,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1774,
21,
8,
467,
24,
47,
1944,
30,
13364,
188,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
833,
3274,
96,
2122,
18,
9,
102,
52,
18,
22594,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the production code for episode 6 in the season? | CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR) | SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25828,
3651,
1828,
834,
519,
41,
20762,
834,
4978,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
999,
1081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
999,
834,
4978,
21680,
953,
834,
25828,
3651,
1828,
834,
519,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients were diagnosed with an unspecified disorder of kidney and ureter and treated with a main drug type? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Unspecified disorder of kidney and ureter" AND prescriptions.drug_type = "MAIN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What are the countries for applications with at most 3 wines? Return the result in a bar chart. | CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TE... | SELECT County, COUNT(County) FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation GROUP BY County | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
465,
3,
21342,
17966,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1334,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5690,
3,
3463,
4,
382,
6,
19,
6968,
188,
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,
1334,
6,
2847,
17161,
599,
10628,
63,
61,
21680,
8319,
6105,
7,
6157,
332,
536,
3,
15355,
3162,
2013,
6157,
332,
357,
9191,
332,
5411,
27794,
257,
3274,
332,
4416,
27794,
257,
350,
4630,
6880,
272,
476,
1334,
1,
-10... |
What is the average percent for the coach from 1905 and more than 7 losses? | CREATE TABLE table_name_97 (pct INTEGER, years VARCHAR, lost VARCHAR) | SELECT AVG(pct) FROM table_name_97 WHERE years = "1905" AND lost > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
102,
75,
17,
3,
21342,
17966,
6,
203,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1093,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
102,
75,
17,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
203,
3274,
96,
11776,
17395,
3430,
1513,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0? | CREATE TABLE table_name_68 (date VARCHAR, result VARCHAR, location VARCHAR, year VARCHAR, loser VARCHAR) | SELECT date FROM table_name_68 WHERE year < 1988 AND loser = "philadelphia eagles" AND location = "giants stadium" AND result = "21-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
5522,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2615,
52,
584,
4280,
28027,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
215,
3,
2,
10414,
3430,
2615,
52,
3274,
96,
18118,
15311,
11692,
9,
3,
15,
9,
3537,
7,
121,
3430,
1128,
3274,
96,
22898,
17,
7,
14939,
121,
3430,
741,
3274,
... |
Find the average hours for the students whose tryout decision is no. | CREATE TABLE player (
HS INTEGER,
pID VARCHAR
)
CREATE TABLE tryout (
pID VARCHAR,
decision VARCHAR
) | SELECT AVG(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
3,
4950,
3,
21342,
17966,
6,
3,
102,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
3,
102,
4309,
584,
4280,
28027,
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,
382,
5411,
4950,
61,
21680,
1959,
6157,
332,
536,
3,
15355,
3162,
653,
670,
6157,
332,
357,
9191,
332,
5411,
102,
4309,
3274,
332,
4416,
102,
4309,
549,
17444,
427,
332,
4416,
221,
18901,
3274,
3,
31... |
What is the silver when the Total is 1, and Gold is 1? | CREATE TABLE table_name_64 (
silver INTEGER,
total VARCHAR,
gold VARCHAR
) | SELECT AVG(silver) FROM table_name_64 WHERE total = 1 AND gold = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
4294,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4294,
116,
8,
9273,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
792,
3274,
209,
3430,
2045,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85? | CREATE TABLE table_56374 (
"State" text,
"Swimsuit" real,
"Evening gown" real,
"Interview" real,
"Average" real
) | SELECT SUM("Interview") FROM table_56374 WHERE "Evening gown" < '8.82' AND "State" = 'kentucky' AND "Average" > '8.85' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
519,
4581,
41,
96,
134,
4748,
121,
1499,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1926,
53,
19879,
121,
490,
6,
96,
17555,
4576,
121,
490,
6,
96,
188,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
17555,
4576,
8512,
21680,
953,
834,
4834,
519,
4581,
549,
17444,
427,
96,
427,
1926,
53,
19879,
121,
3,
2,
3,
31,
927,
5,
4613,
31,
3430,
96,
134,
4748,
121,
3274,
3,
31,
2217,
17,
4636,
63,... |
Who were the opponents on a hard surface with a score of 6-4, 7-6(2)? | CREATE TABLE table_name_23 (opponents_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) | SELECT opponents_in_the_final FROM table_name_23 WHERE surface = "hard" AND score = "6-4, 7-6(2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
32,
102,
9977,
7,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16383,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
2604,
3274,
96,
25618,
6,
489,
5783,
16426,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which report is for Townsville Entertainment Centre? | CREATE TABLE table_name_6 (
report VARCHAR,
venue VARCHAR
) | SELECT report FROM table_name_6 WHERE venue = "townsville entertainment centre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
934,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
934,
19,
21,
4463,
9727,
12694,
2969,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
5669,
3274,
96,
3540,
9727,
4527,
2050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which province includes Axel Heiberg Island? | CREATE TABLE table_name_25 (province VARCHAR, mountain_range VARCHAR) | SELECT province FROM table_name_25 WHERE mountain_range = "axel heiberg island" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
1409,
2494,
565,
584,
4280,
28027,
6,
4180,
834,
5517,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7985,
963,
71,
226,
15,
40,
216,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7985,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
4180,
834,
5517,
3274,
96,
11579,
40,
3,
88,
23,
2235,
3368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest number of tds scored for a player? | CREATE TABLE table_18064020_21 (
td INTEGER
) | SELECT MAX(td) FROM table_18064020_21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
23714,
1755,
834,
2658,
41,
3,
17,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
381,
13,
3,
17,
26,
7,
5799,
21,
3,
9,
1959,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17,
26,
61,
21680,
953,
834,
20829,
23714,
1755,
834,
2658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
who owned the last locomotive to be built ? | CREATE TABLE table_204_30 (
id number,
"year built" text,
"works number" number,
"wheel arr." text,
"gauge" text,
"original owner" text,
"name" text,
"current location" text,
"notes" text
) | SELECT "original owner" FROM table_204_30 ORDER BY "year built" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1458,
41,
3,
23,
26,
381,
6,
96,
1201,
1192,
121,
1499,
6,
96,
13631,
381,
121,
381,
6,
96,
14074,
1584,
52,
535,
1499,
6,
96,
20038,
397,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21878,
2527,
121,
21680,
953,
834,
26363,
834,
1458,
4674,
11300,
272,
476,
96,
1201,
1192,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the episode for year more than 1999 | CREATE TABLE table_54377 (
"Year" real,
"Category" text,
"Nominee(s)" text,
"Episode" text,
"Result" text
) | SELECT "Episode" FROM table_54377 WHERE "Year" > '1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
519,
4013,
41,
96,
476,
2741,
121,
490,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
8695,
15,
599,
7,
61,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
102,
159,
32,
221,
121,
21680,
953,
834,
5062,
519,
4013,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
3264,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many match values have points under 14 and 0 draws? | CREATE TABLE table_name_23 (match VARCHAR, points VARCHAR, draw VARCHAR) | SELECT COUNT(match) FROM table_name_23 WHERE points < 14 AND draw < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
19515,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
3314,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1588,
2620,
43,
979,
365,
968,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
19515,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
979,
3,
2,
968,
3430,
3314,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of the workshop groups that have bookings with status code "stop"? | CREATE TABLE Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR) | SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = "stop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21056,
7,
41,
12492,
6921,
834,
27247,
834,
4309,
584,
4280,
28027,
6,
19318,
834,
22737,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
20052,
834,
12492,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28719,
834,
23954,
21680,
21056,
7,
6157,
332,
536,
3,
15355,
3162,
20052,
834,
12492,
6921,
834,
27247,
7,
6157,
332,
357,
9191,
332,
5411,
12492,
6921,
834,
27247,
834,
4309,
3274,
332,
4416,
12492,
6921,
... |
What band performed when Samantha Mumba presented? | CREATE TABLE table_name_80 (
band VARCHAR,
female VARCHAR
) | SELECT band FROM table_name_80 WHERE female = "samantha mumba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1928,
584,
4280,
28027,
6,
3955,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1928,
3032,
116,
29298,
4159,
18015,
2569,
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,
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,
1928,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3955,
3274,
96,
7,
9,
348,
189,
9,
4035,
18015,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the location when the school is muncie burris? | CREATE TABLE table_name_71 (location VARCHAR, school VARCHAR) | SELECT location FROM table_name_71 WHERE school = "muncie burris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
14836,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1128,
116,
8,
496,
19,
16199,
15,
7018,
52,
159,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
496,
3274,
96,
51,
15254,
15,
7018,
52,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest production code of an episode written by Tim Loane? | CREATE TABLE table_73008 (
"No. overall" real,
"Title" text,
"Director" text,
"Writer" text,
"Original air date" text,
"Production code" real
) | SELECT MAX("Production code") FROM table_73008 WHERE "Writer" = 'Tim Loane' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
5426,
927,
41,
96,
4168,
5,
1879,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
667,
3380,
10270,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3174,
8291,
1081,
8512,
21680,
953,
834,
940,
5426,
927,
549,
17444,
427,
96,
24965,
49,
121,
3274,
3,
31,
382,
603,
12183,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest capacity for the venue of the club, vihren? | CREATE TABLE table_name_19 (
capacity INTEGER,
club VARCHAR
) | SELECT MAX(capacity) FROM table_name_19 WHERE club = "vihren" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
2614,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
2614,
21,
8,
5669,
13,
8,
1886,
6,
5931,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
4010,
9,
6726,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1886,
3274,
96,
2099,
10655,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the TV Station of the episode with a Romaji Title of Tokkyuu Tanaka Sangou? | CREATE TABLE table_name_84 (tv_station VARCHAR, romaji_title VARCHAR) | SELECT tv_station FROM table_name_84 WHERE romaji_title = "tokkyuu tanaka sangou" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
17,
208,
834,
6682,
584,
4280,
28027,
6,
3,
3522,
17815,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1424,
5939,
13,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17,
208,
834,
6682,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
3,
3522,
17815,
834,
21869,
3274,
96,
17,
1825,
3781,
76,
76,
3,
17,
152,
5667,
9965,
1063,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the record of the game with Rudy Gay (20) as the leading scorer? | CREATE TABLE table_name_14 (record VARCHAR, leading_scorer VARCHAR) | SELECT record FROM table_name_14 WHERE leading_scorer = "rudy gay (20)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
60,
7621,
584,
4280,
28027,
6,
1374,
834,
7,
5715,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
13,
8,
467,
28,
17806,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1374,
834,
7,
5715,
49,
3274,
96,
17237,
63,
16998,
17543,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Away, when Home is Guelph Gargoyles? | CREATE TABLE table_name_24 (
away VARCHAR,
home VARCHAR
) | SELECT away FROM table_name_24 WHERE home = "guelph gargoyles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
550,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
71,
1343,
6,
116,
1210,
19,
2846,
15,
40,
102,
107,
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,
550,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
234,
3274,
96,
5398,
40,
102,
107,
5260,
839,
63,
965,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the position in 2012-13 and number of seasons in leigue 1 of 30 with ligue 1 titles of 1 | CREATE TABLE table_name_69 (
position_in_2012_13 VARCHAR,
number_of_seasons_in_ligue_1 VARCHAR,
ligue_1_titles VARCHAR
) | SELECT position_in_2012_13 FROM table_name_69 WHERE number_of_seasons_in_ligue_1 = 30 AND ligue_1_titles = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
1102,
834,
77,
834,
12172,
834,
2368,
584,
4280,
28027,
6,
381,
834,
858,
834,
9476,
7,
834,
77,
834,
40,
15795,
834,
536,
584,
4280,
28027,
6,
3,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1102,
834,
77,
834,
12172,
834,
2368,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
381,
834,
858,
834,
9476,
7,
834,
77,
834,
40,
15795,
834,
536,
3274,
604,
3430,
3,
40,
15795,
834,
536,
834,
21869,
7,
3274... |
Name the total number of high asists for 34-27 | CREATE TABLE table_30081 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("High assists") FROM table_30081 WHERE "Record" = '34-27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
4959,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
21417,
13041,
8512,
21680,
953,
834,
5426,
4959,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
3710,
18,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In what county is the Canyon Padre Bridge? | CREATE TABLE table_name_33 (
county VARCHAR,
name VARCHAR
) | SELECT county FROM table_name_33 WHERE name = "canyon padre bridge" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
5435,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
5435,
19,
8,
16078,
10683,
60,
6132,
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,
5435,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
564,
3274,
96,
1608,
63,
106,
8950,
60,
4716,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
who was the top ranked player in a single game ? | CREATE TABLE table_204_952 (
id number,
"rank" number,
"player" text,
"county" text,
"tally" text,
"total" number,
"opposition" text
) | SELECT "player" FROM table_204_952 WHERE "rank" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3301,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
13362,
63,
121,
1499,
6,
96,
17,
1427,
121,
1499,
6,
96,
235,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20846,
121,
21680,
953,
834,
26363,
834,
3301,
357,
549,
17444,
427,
96,
6254,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps? | CREATE TABLE table_52883 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT SUM("Grid") FROM table_52883 WHERE "Time/Retired" = 'engine' AND "Driver" = 'teo fabi' AND "Laps" < '39' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2577,
4591,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
13313,
26,
8512,
21680,
953,
834,
755,
2577,
4591,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
20165,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
17,
15,
32,
3,
12644,
... |
Show me about the distribution of All_Neutral and Team_ID in a bar chart, and sort in descending by the Team_ID. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Neutral, Team_ID FROM basketball_match ORDER BY Team_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
26288,
8792,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
2271,
834,
4309,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date recorded for I Want to Be Free with a length of 2:12? | CREATE TABLE table_name_63 (recorded VARCHAR, time VARCHAR, song_title VARCHAR) | SELECT recorded FROM table_name_63 WHERE time = "2:12" AND song_title = "i want to be free" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
60,
7621,
15,
26,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
2324,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4381,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
97,
3274,
96,
357,
10,
2122,
121,
3430,
2324,
834,
21869,
3274,
96,
23,
241,
12,
36,
339,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the second of the North America team from Edmonton, Canada? | CREATE TABLE table_name_58 (second VARCHAR, home VARCHAR, team VARCHAR, country VARCHAR) | SELECT second FROM table_name_58 WHERE team = "north america" AND country = "canada" AND home = "edmonton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
12091,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
511,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
372,
3274,
96,
29,
127,
189,
3,
23064,
121,
3430,
684,
3274,
96,
658,
18089,
121,
3430,
234,
3274,
96,
15,
26,
4662,
106,
121,
1,
-100,
-100,
-100,
-100,
-10... |
find out the procedure icd9 code and drug name of patient with patient id 10317. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT procedures.icd9_code, prescriptions.drug FROM procedures INNER JOIN prescriptions ON procedures.hadm_id = prescriptions.hadm_id WHERE procedures.subject_id = "10317" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4293,
5,
447,
26,
1298,
834,
4978,
6,
7744,
7,
5,
26,
13534,
21680,
4293,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
4293,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
4... |
provide the number of patients whose year of death is less than or equal to 2174 and item id is 51360? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2174.0" AND lab.itemid = "51360" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Result F–A of 5–0 had what group position? | CREATE TABLE table_name_93 (group_position VARCHAR, result_f_a VARCHAR) | SELECT group_position FROM table_name_93 WHERE result_f_a = "5–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
10739,
834,
4718,
584,
4280,
28027,
6,
741,
834,
89,
834,
9,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
20119,
377,
104,
188,
13,
305,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
563,
834,
4718,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
741,
834,
89,
834,
9,
3274,
96,
755,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the english translation of the sanskrit word varsha? | CREATE TABLE table_name_81 (
english_translation VARCHAR,
season_in_sanskrit VARCHAR
) | SELECT english_translation FROM table_name_81 WHERE season_in_sanskrit = "varsha" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
22269,
834,
7031,
6105,
584,
4280,
28027,
6,
774,
834,
77,
834,
7,
3247,
10648,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22269,
834,
7031,
6105,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
774,
834,
77,
834,
7,
3247,
10648,
17,
3274,
96,
4331,
7,
1024,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the home team's score when south melbourne is away? | CREATE TABLE table_name_23 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team AS score FROM table_name_23 WHERE away_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
31,
7,
2604,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which circuit did Peter Whitehead win? | CREATE TABLE table_name_43 (
circuit VARCHAR,
winning_driver VARCHAR
) | SELECT circuit FROM table_name_43 WHERE winning_driver = "peter whitehead" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
4558,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4558,
410,
2737,
1945,
3313,
1369,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4558,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
4995,
49,
872,
3313,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the local/networked value for the show with an ad frequency of N/A? | CREATE TABLE table_62806 (
"Time" text,
"Show Name" text,
"Local/Networked" text,
"Ad Freq" text,
"News Freq" text
) | SELECT "Local/Networked" FROM table_62806 WHERE "Ad Freq" = 'n/a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
2079,
948,
41,
96,
13368,
121,
1499,
6,
96,
134,
4067,
5570,
121,
1499,
6,
96,
434,
32,
1489,
87,
9688,
1981,
15,
26,
121,
1499,
6,
96,
188,
26,
5532,
1824,
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,
434,
32,
1489,
87,
9688,
1981,
15,
26,
121,
21680,
953,
834,
4056,
2079,
948,
549,
17444,
427,
96,
188,
26,
5532,
1824,
121,
3274,
3,
31,
29,
87,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the Surface in the match with a Score of 7–5, 6–7, 4–6? | CREATE TABLE table_name_40 (surface VARCHAR, score VARCHAR) | SELECT surface FROM table_name_40 WHERE score = "7–5, 6–7, 4–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
26899,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
18884,
16,
8,
1588,
28,
3,
9,
17763,
13,
489,
104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2604,
3274,
96,
940,
104,
11116,
431,
104,
940,
6,
314,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the number of patients whose ethnicity is black/african american and had procedure under procedure icd9 code 3806. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND procedures.icd9_code = "3806" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
For those employees who did not have any job in the past, visualize the relationship between salary and commission_pct . | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID ... | SELECT SALARY, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4090,
24721,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613,
834... |
What college/junior/club team had a player selected in round 6? | CREATE TABLE table_45704 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT "College/Junior/Club Team (League)" FROM table_45704 WHERE "Round" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
2518,
591,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9939,
7883,
87,
683,
202,
23,
127,
87,
254,
11158,
2271,
41,
2796,
9,
5398,
61,
121,
21680,
953,
834,
2128,
2518,
591,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100... |
If length is ft (m) with numbers of 6600-6684 (84 buses) for 2003, what is the engine type? | CREATE TABLE table_name_77 (
engine_type VARCHAR,
numbers VARCHAR,
length VARCHAR,
year VARCHAR
) | SELECT engine_type FROM table_name_77 WHERE length = "ft (m)" AND year = "2003" AND numbers = "6600-6684 (84 buses)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
1948,
834,
6137,
584,
4280,
28027,
6,
2302,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1948,
834,
6137,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2475,
3274,
96,
89,
17,
41,
51,
61,
121,
3430,
215,
3274,
96,
23948,
121,
3430,
2302,
3274,
96,
27720,
9498,
3539,
4608,
41,
4608,
14264,
61,
121,
... |
What was the date of appointment for incoming manager Roy Hodgson and the team is Liverpool? | CREATE TABLE table_24172157_3 (date_of_appointment VARCHAR, team VARCHAR, incoming_manager VARCHAR) | SELECT date_of_appointment FROM table_24172157_3 WHERE team = "Liverpool" AND incoming_manager = "Roy Hodgson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
27156,
27452,
834,
519,
41,
5522,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
3,
19583,
834,
24185,
584,
4280,
28027,
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,
833,
834,
858,
834,
9,
102,
2700,
297,
21680,
953,
834,
2266,
27156,
27452,
834,
519,
549,
17444,
427,
372,
3274,
96,
24179,
52,
13194,
121,
3430,
3,
19583,
834,
24185,
3274,
96,
448,
32,
63,
1546,
26,
122,
739,
1... |
what is maximum age of patients whose marital status is married and admission type is emergency? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admission_type = "EMERGENCY" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
1706... |
Which constructor was there for the race with 25 laps? | CREATE TABLE table_52306 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Constructor" FROM table_52306 WHERE "Laps" = '25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
1458,
948,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
7593,
127,
121,
21680,
953,
834,
5373,
1458,
948,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the 1990 value with a 24 in 1995? | CREATE TABLE table_46229 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text
) | SELECT "1990" FROM table_46229 WHERE "1995" = '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
357,
3166,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
2394,
121,
1499,
6,
96,
2294,
4729,
121,
1499,
6,
96,
19479,
357,
121,
1499,
6,
96,
2294,
4271,
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,
2294,
2394,
121,
21680,
953,
834,
4448,
357,
3166,
549,
17444,
427,
96,
19479,
17395,
3274,
3,
31,
2266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the date and mean humidity for the top 3 days with the largest max gust speeds? Return me a bar chart. | CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE weather (
date TEX... | SELECT date, mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
3,
23,
26,
3,
21342,
17966,
6,
8659,
3,
21342,
17966,
6,
456,
834,
5522,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
4350,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
23,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
6,
1243,
834,
4884,
23,
26,
485,
21680,
1969,
4674,
11300,
272,
476,
9858,
834,
17198,
834,
9993,
834,
7656,
309,
25067,
8729,
12604,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score of the match that took place in the playoff round? | CREATE TABLE table_58510 (
"Round" text,
"Date" text,
"Home Team" text,
"Score" text,
"Away Team" text,
"Crowd" real,
"Stadium" text,
"Match Details" text
) | SELECT "Score" FROM table_58510 WHERE "Round" = 'playoff' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
25926,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
2271,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3449,
25926,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
4895,
1647,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the name of amenity that is most common in all dorms. | CREATE TABLE dorm_amenity (
amenity_name VARCHAR,
amenid VARCHAR
)
CREATE TABLE has_amenity (
amenid VARCHAR
) | SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
103,
52,
51,
834,
9,
904,
485,
41,
183,
35,
485,
834,
4350,
584,
4280,
28027,
6,
183,
35,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
9,
904,
485,
834,
4350,
21680,
103,
52,
51,
834,
9,
904,
485,
6157,
332,
536,
3,
15355,
3162,
65,
834,
9,
904,
485,
6157,
332,
357,
9191,
332,
5411,
9,
904,
23,
26,
3274,
332,
4416,
9,
904,
23,
26,
... |
What are the titles of segment c when segment d is motorcycle brake locks? | CREATE TABLE table_15187735_21 (
segment_c VARCHAR,
segment_d VARCHAR
) | SELECT segment_c FROM table_15187735_21 WHERE segment_d = "Motorcycle Brake Locks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26578,
27697,
2469,
834,
2658,
41,
5508,
834,
75,
584,
4280,
28027,
6,
5508,
834,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
8342,
13,
5508,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5508,
834,
75,
21680,
953,
834,
26578,
27697,
2469,
834,
2658,
549,
17444,
427,
5508,
834,
26,
3274,
96,
329,
32,
17,
127,
10136,
3497,
1050,
10039,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the country for johannesburg | CREATE TABLE table_38639 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "Country" FROM table_38639 WHERE "City" = 'johannesburg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3840,
3288,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
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,
10628,
651,
121,
21680,
953,
834,
519,
3840,
3288,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
1927,
107,
4515,
7289,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which GDP per capita (US$) (2004) has a Literacy (2003) of 90%, and an Area (km ) of 1247689.5? | CREATE TABLE table_48075 (
"State" text,
"Abbreviation" text,
"Capital" text,
"Area (km\u00b2)" real,
"Population (2005)" real,
"Density (2005)" real,
"GDP (% total) (2004)" text,
"GDP per capita (US$) (2004)" real,
"HDI (2005)" real,
"Literacy (2003)" text,
"Infant Mortality... | SELECT AVG("GDP per capita (US$) (2004)") FROM table_48075 WHERE "Literacy (2003)" = '90%' AND "Area (km\u00b2)" = '1247689.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20579,
3072,
41,
96,
134,
4748,
121,
1499,
6,
96,
8952,
1999,
2099,
257,
121,
1499,
6,
96,
19566,
9538,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
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,
71,
17217,
599,
121,
517,
7410,
399,
23219,
41,
3063,
3229,
61,
29428,
8512,
21680,
953,
834,
20579,
3072,
549,
17444,
427,
96,
16278,
52,
4710,
3,
31210,
121,
3274,
3,
31,
2394,
1454,
31,
3430,
96,
188,
864,
41,
... |
What's the format of the single, I Can't Stay? | CREATE TABLE table_name_6 (
format VARCHAR,
single VARCHAR
) | SELECT format FROM table_name_6 WHERE single = "i can't stay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
1910,
584,
4280,
28027,
6,
712,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1910,
13,
8,
712,
6,
27,
1072,
31,
17,
8026,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1910,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
712,
3274,
96,
23,
54,
31,
17,
1049,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is 2011 when the rank is less than 8 and the water park is ocean world? | CREATE TABLE table_name_58 (
rank VARCHAR,
water_park VARCHAR
) | SELECT SUM(2011) FROM table_name_58 WHERE rank < 8 AND water_park = "ocean world" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
11003,
584,
4280,
28027,
6,
387,
834,
6334,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
2722,
116,
8,
11003,
19,
705,
145,
505,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
13907,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
11003,
3,
2,
505,
3430,
387,
834,
6334,
3274,
96,
32,
565,
152,
296,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the format of 105.5 fm? | CREATE TABLE table_2709_4 (
format VARCHAR,
frequency VARCHAR
) | SELECT format FROM table_2709_4 WHERE frequency = "105.5 FM" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4198,
834,
591,
41,
1910,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1910,
13,
335,
15938,
3,
89,
51,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1910,
21680,
953,
834,
2555,
4198,
834,
591,
549,
17444,
427,
7321,
3274,
96,
1714,
15938,
13409,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of patients who were discharged from the hospital until 2104? | 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 COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) <= '2104' | [
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,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
4486,
1868,
5,
31386,
26,
159,
7993,
715,
6827,
13046,
10376,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
... |
What is the part 2 entry for class 3a? | CREATE TABLE table_47019 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
) | SELECT "Part 2" FROM table_47019 WHERE "Class" = '3a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27760,
2294,
41,
96,
21486,
121,
1499,
6,
96,
13725,
209,
121,
1499,
6,
96,
13725,
204,
121,
1499,
6,
96,
13725,
220,
121,
1499,
6,
96,
13725,
3,
20364,
1499,
6,
96,
5000... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13725,
204,
121,
21680,
953,
834,
27760,
2294,
549,
17444,
427,
96,
21486,
121,
3274,
3,
31,
519,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Jimmy Smith's opponent's record? | CREATE TABLE table_68580 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
) | SELECT "Record" FROM table_68580 WHERE "Opponent" = 'jimmy smith' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
755,
2079,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
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,
1649,
7621,
121,
21680,
953,
834,
3651,
755,
2079,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
354,
603,
2258,
3,
16331,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many routes have below 100 km total ? | CREATE TABLE table_203_475 (
id number,
"stage" number,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
) | SELECT COUNT("route") FROM table_203_475 WHERE "length" < 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
3072,
41,
3,
23,
26,
381,
6,
96,
10705,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
20300,
121,
1499,
6,
96,
12829,
77,
121,
1499,
6,
96,
19457,
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,
20300,
8512,
21680,
953,
834,
23330,
834,
591,
3072,
549,
17444,
427,
96,
19457,
121,
3,
2,
910,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the size of the crowd when Essendon was the away team? | CREATE TABLE table_32678 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_32678 WHERE "Away team" = 'essendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2688,
3940,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
3623,
26,
121,
21680,
953,
834,
519,
2688,
3940,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
8185,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the statuses of the districts whose successor is Wiltshire? | CREATE TABLE table_30218 (
"District" text,
"Status" text,
"Date abolished" text,
"Former county" text,
"Successor" text
) | SELECT "Status" FROM table_30218 WHERE "Successor" = 'Wiltshire' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
357,
2606,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
308,
342,
31226,
15,
26,
121,
1499,
6,
96,
3809,
935,
5435,
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,
134,
17,
144,
302,
121,
21680,
953,
834,
1458,
357,
2606,
549,
17444,
427,
96,
134,
17431,
24901,
121,
3274,
3,
31,
518,
173,
17,
5718,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What event type had BODY CMAS in 1980 and underwater hockey? | CREATE TABLE table_66467 (
"Sport" text,
"Body" text,
"Year" text,
"Event type" text,
"Location" text,
"Nations" text
) | SELECT "Event type" FROM table_66467 WHERE "Body" = 'cmas' AND "Year" = '1980' AND "Sport" = 'underwater hockey' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
591,
3708,
41,
96,
17682,
121,
1499,
6,
96,
279,
9666,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
427,
2169,
686,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
427,
2169,
686,
121,
21680,
953,
834,
3539,
591,
3708,
549,
17444,
427,
96,
279,
9666,
121,
3274,
3,
31,
75,
2754,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2294,
2079,
31,
3430,
96,
17682,
121,
3274,
3,
31... |
Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5? | CREATE TABLE table_name_6 (
pocona_municipality___percentage_ INTEGER,
puerto_villarroel_municipality___percentage_ VARCHAR,
pojo_municipality___percentage_ VARCHAR
) | SELECT SUM(pocona_municipality___percentage_) FROM table_name_6 WHERE puerto_villarroel_municipality___percentage_ > 14.6 AND pojo_municipality___percentage_ < 88.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
1977,
1018,
9,
834,
11760,
3389,
10355,
834,
834,
834,
883,
3728,
545,
834,
3,
21342,
17966,
6,
4353,
49,
235,
834,
6372,
40,
19996,
15,
40,
834,
11760,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10496,
106,
9,
834,
11760,
3389,
10355,
834,
834,
834,
883,
3728,
545,
834,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
4353,
49,
235,
834,
6372,
40,
19996,
15,
40,
834,
11760,
3389,
10355,... |
What is Away Team, when Home Team is "Sheffield Wednesday"? | CREATE TABLE table_name_65 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_65 WHERE home_team = "sheffield wednesday" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
71,
1343,
2271,
6,
116,
1210,
2271,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
88,
89,
1846,
62,
26,
1496,
1135,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the release date in the 1.1.10 release? | CREATE TABLE table_28540539_2 (release VARCHAR) | SELECT release AS date FROM table_28540539_2 WHERE release = "1.1.10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
5062,
3076,
3288,
834,
357,
41,
21019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1576,
833,
16,
8,
3,
11039,
5,
1714,
1576,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1576,
6157,
833,
21680,
953,
834,
2577,
5062,
3076,
3288,
834,
357,
549,
17444,
427,
1576,
3274,
96,
11039,
5,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the name of the ships that have more than one captain. | CREATE TABLE captain (ship_id VARCHAR); CREATE TABLE ship (name VARCHAR, ship_id VARCHAR) | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING COUNT(*) > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
2009,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
4350,
584,
4280,
28027,
6,
4383,
834,
23,
26,
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,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
5411,
4350,
21680,
4383,
6157,
3,
17,
536,
3,
15355,
3162,
14268,
6157,
3,
17,
357,
9191,
3,
17,
5411,
2009,
834,
23,
26,
3274,
3,
17,
4416,
2009,
834,
23,
26,
350,
4630,
6880,
272,
476,
3,
17,
4416,
20... |
What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours? | CREATE TABLE table_name_13 (class VARCHAR, race VARCHAR, length VARCHAR) | SELECT class FROM table_name_13 WHERE race = "budweiser grand prix of miami" AND length = "3 hours" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
4057,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
853,
13,
8,
16440,
11299,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1964,
3274,
96,
11073,
11299,
52,
1907,
3407,
13,
1337,
3690,
121,
3430,
2475,
3274,
96,
519,
716,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many goals against were scored when the points were smaller than 13, the wins were smaller than 3, and the goals for were smaller than 15? | CREATE TABLE table_name_73 (goals_against INTEGER, goals_for VARCHAR, points VARCHAR, wins VARCHAR) | SELECT SUM(goals_against) FROM table_name_73 WHERE points < 13 AND wins < 3 AND goals_for < 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
839,
5405,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
1766,
834,
1161,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
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,
180,
6122,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
979,
3,
2,
1179,
3430,
9204,
3,
2,
220,
3430,
1766,
834,
1161,
3,
2,
627,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest value for SP+FS for Miljan Begovic with a greater than 189 place? | CREATE TABLE table_name_64 (
fs VARCHAR,
sp INTEGER,
name VARCHAR,
placings VARCHAR
) | SELECT MIN(sp) + fs FROM table_name_64 WHERE name = "miljan begovic" AND placings > 189 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
3,
89,
7,
584,
4280,
28027,
6,
3,
7,
102,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
9308,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
17684,
599,
7,
102,
61,
1768,
3,
89,
7,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
564,
3274,
96,
51,
173,
7066,
36,
122,
13388,
121,
3430,
9308,
7,
2490,
3,
25312,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area? | CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR) | SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = "state" AND area = "macraes flat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
4046,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
6,
7908,
109,
584,
4280,
28027,
6,
5015,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
4046,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
7908,
109,
3274,
489,
3430,
5015,
3274,
96,
5540,
121,
3430,
616,
3274,
96,
51,
9,
2935,
15,
7,
2667,
121,
1,
-100,
-100,
-100,
-100,
... |
How many years did he have an average start of 20.7? | CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR) | SELECT COUNT(avg_finish) FROM table_2169966_2 WHERE avg_start = "20.7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
3264,
3539,
834,
357,
41,
9,
208,
122,
834,
25535,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
10208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9,
208,
122,
834,
25535,
61,
21680,
953,
834,
27184,
3264,
3539,
834,
357,
549,
17444,
427,
3,
9,
208,
122,
834,
10208,
3274,
96,
357,
22426,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which 1990-1991 is the average one that has Played of 38, and Points of 40? | CREATE TABLE table_name_26 (
played VARCHAR,
points VARCHAR
) | SELECT AVG(1990 AS _1991) FROM table_name_26 WHERE played = 38 AND points = 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
1944,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5541,
4481,
4729,
19,
8,
1348,
80,
24,
65,
2911,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2294,
2394,
6157,
3,
834,
19479,
6982,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1944,
3274,
6654,
3430,
979,
3274,
1283,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was Menato Boffa's grid? | CREATE TABLE table_48563 (
"Driver" text,
"Entrant" text,
"Constructor" text,
"Time/Retired" text,
"Grid" text,
"Heat 1/2" text
) | SELECT "Grid" FROM table_48563 WHERE "Driver" = 'menato boffa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
4834,
519,
41,
96,
20982,
52,
121,
1499,
6,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
1331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13313,
26,
121,
21680,
953,
834,
3707,
4834,
519,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
904,
9,
235,
3,
115,
1647,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Scatterplot of acc_percent vs team id by ACC_Home | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY ACC_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the parties listed for Pennsylvania 8? | CREATE TABLE table_2668401_12 (party VARCHAR, district VARCHAR) | SELECT party FROM table_2668401_12 WHERE district = "Pennsylvania 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
20016,
834,
2122,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
2251,
2616,
21,
8913,
505,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
2688,
3651,
20016,
834,
2122,
549,
17444,
427,
3939,
3274,
96,
345,
35,
29,
7,
63,
40,
16658,
9,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose drug route is both eyes? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "BOTH EYES" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Which species has 3,441 genes? | CREATE TABLE table_name_58 (species VARCHAR, genes VARCHAR) | SELECT species FROM table_name_58 WHERE genes = "3,441" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
7576,
725,
584,
4280,
28027,
6,
13485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3244,
65,
6180,
3628,
536,
13485,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3244,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
13485,
3274,
96,
6355,
3628,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the lowest number of draws when the wins are less than 15, and against is 1228? | CREATE TABLE table_name_98 (draws INTEGER, wins VARCHAR, against VARCHAR) | SELECT MIN(draws) FROM table_name_98 WHERE wins < 15 AND against = 1228 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
19489,
7,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
7402,
381,
13,
14924,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
9204,
3,
2,
627,
3430,
581,
3274,
586,
2577,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many days has it been since patient 006-172277 was admitted to the hospital? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagn... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '006-172277' AND patient.hospitaldischargetime IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
209,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
20466,
17,
715,
61,
61,
216... |
What is the lowest GEO ID for the longitude of -102.158045 and the water in square miles larger than 0.979? | CREATE TABLE table_name_29 (geo_id INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR) | SELECT MIN(geo_id) FROM table_name_29 WHERE longitude = -102.158045 AND water__sqmi_ > 0.979 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
397,
32,
834,
23,
26,
3,
21342,
17966,
6,
307,
20341,
584,
4280,
28027,
6,
387,
834,
834,
7,
1824,
51,
23,
834,
584,
4280,
28027,
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,
3,
17684,
599,
397,
32,
834,
23,
26,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
307,
20341,
3274,
3,
18,
14388,
5,
1808,
2079,
2128,
3430,
387,
834,
834,
7,
1824,
51,
23,
834,
2490,
3,
23758,
4440,
1... |
how many patients admitted before 2187 had the drug route tp? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2187" AND prescriptions.route = "TP" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Which building has 26 storeys? | CREATE TABLE table_name_42 (
building VARCHAR,
storeys VARCHAR
) | SELECT building FROM table_name_42 WHERE storeys = 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
740,
584,
4280,
28027,
6,
1078,
63,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
740,
65,
2208,
1078,
63,
7,
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,
740,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1078,
63,
7,
3274,
2208,
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 total listed when the average is 0.667 and the category is 3-pt field goal percentage? | CREATE TABLE table_28628309_9 (totals VARCHAR, average VARCHAR, category VARCHAR) | SELECT totals FROM table_28628309_9 WHERE average = "0.667" AND category = "3-pt field goal percentage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4056,
4591,
4198,
834,
1298,
41,
235,
1947,
7,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
792,
7,
21680,
953,
834,
2577,
4056,
4591,
4198,
834,
1298,
549,
17444,
427,
1348,
3274,
96,
22787,
3708,
121,
3430,
3295,
3274,
96,
519,
18,
102,
17,
1057,
1288,
5294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the broadcast date for run timke of 25:04 | CREATE TABLE table_24054 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
) | SELECT "Broadcast date" FROM table_24054 WHERE "Run time" = '25:04' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
5062,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
279,
8635,
5254,
833,
121,
1499,
6,
96,
448,
202,
97,
121,
1499,
6,
96,
15270,
277,
41,
77,
4040,
61,
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,
279,
8635,
5254,
833,
121,
21680,
953,
834,
11944,
5062,
549,
17444,
427,
96,
448,
202,
97,
121,
3274,
3,
31,
1828,
10,
6348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the production cost for the film directed by 2004? | CREATE TABLE table_name_39 (production_cost VARCHAR, director VARCHAR) | SELECT production_cost FROM table_name_39 WHERE director = "2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
20762,
834,
11290,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
999,
583,
21,
8,
814,
6640,
57,
4406,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
999,
834,
11290,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2090,
3274,
96,
21653,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who lost the game with a record of 20-13? | CREATE TABLE table_name_41 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_41 WHERE record = "20-13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
2298,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1513,
8,
467,
28,
3,
9,
1368,
13,
460,
13056,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1453,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1368,
3274,
96,
1755,
13056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What day did the person who finished in 12th place leave on? | CREATE TABLE table_6104 (
"Celebrity" text,
"Known for" text,
"Entered" text,
"Exited" text,
"Finished" text
) | SELECT "Exited" FROM table_6104 WHERE "Finished" = '12th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
15442,
41,
96,
254,
400,
2160,
17,
63,
121,
1499,
6,
96,
26176,
21,
121,
1499,
6,
96,
16924,
3737,
121,
1499,
6,
96,
5420,
23,
1054,
121,
1499,
6,
96,
31135,
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,
5420,
23,
1054,
121,
21680,
953,
834,
948,
15442,
549,
17444,
427,
96,
31135,
121,
3274,
3,
31,
2122,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What label is 'weather bird' under? | CREATE TABLE table_59655 (
"Year recorded" text,
"Title" text,
"Genre" text,
"Label" text,
"Year inducted" text
) | SELECT "Label" FROM table_59655 WHERE "Title" = 'weather bird' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
4122,
755,
41,
96,
476,
2741,
4381,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
476,
2741,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
10333,
121,
21680,
953,
834,
3390,
4122,
755,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
26809,
5963,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In the Ohio 4 district, that is the first elected date that has a result of re-elected? | CREATE TABLE table_name_66 (
first_elected INTEGER,
result VARCHAR,
district VARCHAR
) | SELECT SUM(first_elected) FROM table_name_66 WHERE result = "re-elected" AND district = "ohio 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
166,
834,
19971,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
6167,
314,
3939,
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,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
14672,
834,
19971,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
741,
3274,
96,
60,
18,
19971,
121,
3430,
3939,
3274,
96,
32,
107,
23,
32,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many awards did this actor receive for his role in challenge ? | CREATE TABLE table_204_948 (
id number,
"year" number,
"award" text,
"category" text,
"film" text,
"result" text
) | SELECT COUNT("award") FROM table_204_948 WHERE "film" = 'challenge' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4240,
927,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9,
2239,
121,
1499,
6,
96,
8367,
839,
651,
121,
1499,
6,
96,
9988,
121,
1499,
6,
96,
60,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
9,
2239,
8512,
21680,
953,
834,
26363,
834,
4240,
927,
549,
17444,
427,
96,
9988,
121,
3274,
3,
31,
12654,
40,
35,
397,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result of the game prior to week 9 with an attendance of 49,970? | CREATE TABLE table_name_23 (
result VARCHAR,
week VARCHAR,
attendance VARCHAR
) | SELECT result FROM table_name_23 WHERE week < 9 AND attendance = "49,970" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
741,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
1884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
471,
3,
2,
668,
3430,
11364,
3274,
96,
3647,
6,
4327,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.