NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m? | CREATE TABLE table_name_70 (name VARCHAR, college VARCHAR, aafc_team VARCHAR, position VARCHAR) | SELECT name FROM table_name_70 WHERE aafc_team = "los angeles dons" AND position = "fb" AND college = "oklahoma a&m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
4350,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
6,
3,
9,
9,
89,
75,
834,
11650,
584,
4280,
28027,
6,
1102,
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,
564,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3,
9,
9,
89,
75,
834,
11650,
3274,
96,
2298,
11831,
15,
7,
278,
7,
121,
3430,
1102,
3274,
96,
89,
115,
121,
3430,
1900,
3274,
96,
32,
8142,
10207,
9,
3,
... |
in which year were the least amount of jamaicans granted british citizenship ? | CREATE TABLE table_203_467 (
id number,
"year" number,
"numer of jamaicans\ngranted british\ncitizenship" number,
"naturalisation\nby residence" number,
"naturalisation\nby marriage" number,
"registration\nof a minor child" number,
"registration\nby other means" number
) | SELECT "year" FROM table_203_467 ORDER BY "numer of jamaicans\ngranted british\ncitizenship" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
3708,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
5525,
49,
13,
7620,
9,
23,
1608,
7,
2,
29,
7662,
1054,
3,
2160,
17,
1273,
2,
29,
75,
155,
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,
1201,
121,
21680,
953,
834,
23330,
834,
591,
3708,
4674,
11300,
272,
476,
96,
5525,
49,
13,
7620,
9,
23,
1608,
7,
2,
29,
7662,
1054,
3,
2160,
17,
1273,
2,
29,
75,
155,
23,
1847,
2009,
121,
8729,
12604,
209,
... |
What is the Republican seat plurality of North Carolina? | CREATE TABLE table_67121 (
"State ranked in partisan order" text,
"Percentage Republicans" text,
"Percentage Democrats" text,
"Republican/ Democratic" text,
"Republican seat plurality" text
) | SELECT "Republican seat plurality" FROM table_67121 WHERE "State ranked in partisan order" = 'north carolina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
22011,
41,
96,
134,
4748,
3,
8232,
16,
3,
18237,
455,
121,
1499,
6,
96,
12988,
3728,
545,
15623,
121,
1499,
6,
96,
12988,
3728,
545,
11882,
121,
1499,
6,
96,
1649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15727,
152,
3143,
29101,
63,
121,
21680,
953,
834,
3708,
22011,
549,
17444,
427,
96,
134,
4748,
3,
8232,
16,
3,
18237,
455,
121,
3274,
3,
31,
29,
127,
189,
443,
12057,
9,
31,
1,
-100,
-100,
-100,
-100,
... |
How many platforms have nanaly fletch as the character? | CREATE TABLE table_30346 (
"Character" text,
"Game" text,
"Platform" text,
"Status" text,
"Mystic Arte" text,
"Character Voice" text
) | SELECT COUNT("Platform") FROM table_30346 WHERE "Character" = 'Nanaly Fletch' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23335,
4448,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
23055,
121,
1499,
6,
96,
10146,
2032,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
7008,
7,
1225,
1261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10146,
2032,
8512,
21680,
953,
834,
23335,
4448,
549,
17444,
427,
96,
18947,
2708,
49,
121,
3274,
3,
31,
567,
152,
9,
120,
5766,
24335,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Draw a scatter chart about the correlation between ACC_Percent and All_Games_Percent , and group by attribute 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_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT ACC_Percent, All_Games_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,
3,
14775,
834,
12988,
3728,
6,
432,
834,
23055,
7,
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,... |
Which enzyme names have the substring 'ALA'? | CREATE TABLE medicine (
id number,
name text,
trade_name text,
fda_approved text
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_id number,
medicine_id number,
interaction_type text
)
CREATE TABLE enzyme (
id number,
name text,
location text,
product text,
chromosome text,
omim number,
porphyria text
) | SELECT name FROM enzyme WHERE name LIKE "%ALA%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
1668,
834,
4350,
1499,
6,
3,
89,
26,
9,
834,
24496,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
834,
35,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
15735,
549,
17444,
427,
564,
8729,
9914,
96,
1454,
23634,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of March, when Score is '2 - 2', and when Game is greater than 67? | CREATE TABLE table_name_56 (
march INTEGER,
score VARCHAR,
game VARCHAR
) | SELECT SUM(march) FROM table_name_56 WHERE score = "2 - 2" AND game > 67 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
10556,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
1332,
6,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
180,
6122,
599,
51,
7064,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
2604,
3274,
96,
357,
3,
18,
204,
121,
3430,
467,
2490,
3,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is average age of patients whose insurance is medicare and year of death is less than 2111? | 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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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 AVG(demographic.age) FROM demographic WHERE demographic.insurance = "Medicare" AND demographic.dod_year < "2111.0" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
15789,
355,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
96,
27278,
12734,
121,
1,
-100,
-100,
-100,
-100,
-1... |
Name the call sign with frequency of 89.5 | CREATE TABLE table_79768 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" text,
"Class" text,
"FCC info" text
) | SELECT "Call sign" FROM table_79768 WHERE "Frequency MHz" = '89.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4327,
3651,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
1748,
1320,
121,
21680,
953,
834,
940,
4327,
3651,
549,
17444,
427,
96,
371,
60,
835,
11298,
3,
20210,
121,
3274,
3,
31,
927,
22321,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
The Cardinal-Priest of S. Prassede order and title has who as the elevator? | CREATE TABLE table_name_30 (
elevator VARCHAR,
order_and_title VARCHAR
) | SELECT elevator FROM table_name_30 WHERE order_and_title = "cardinal-priest of s. prassede" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
19967,
584,
4280,
28027,
6,
455,
834,
232,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
21967,
18,
7855,
222,
13,
180,
5,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19967,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
455,
834,
232,
834,
21869,
3274,
96,
6043,
10270,
18,
2246,
222,
13,
3,
7,
5,
4880,
3974,
221,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the distinct nominees of the musicals with the award that is not 'Tony Award'? | CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
)
CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
) | SELECT DISTINCT nominee FROM musical WHERE award <> "Tony Award" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
7556,
834,
23,
26,
381,
6,
564,
1499,
6,
4183,
834,
23,
26,
381,
6,
1848,
1499,
6,
8659,
1499,
6,
1246,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
21077,
21680,
4183,
549,
17444,
427,
2760,
3,
2,
3155,
96,
382,
106,
63,
3677,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many people attended the North Melbourne game? | CREATE TABLE table_51894 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_51894 WHERE "Home team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2606,
4240,
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,
71,
17217,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
755,
2606,
4240,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many votes does Carlos Ferrer Eai have? | CREATE TABLE table_23294 (
"Draw" real,
"Artist" text,
"Song" text,
"Jury votes" text,
"Televotes" real,
"Total votes" real,
"Result" text
) | SELECT "Total votes" FROM table_23294 WHERE "Artist" = 'Carlos Ferrer EAI' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
4240,
41,
96,
308,
10936,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
683,
450,
63,
11839,
121,
1499,
6,
96,
382,
400,
1621,
1422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
11839,
121,
21680,
953,
834,
23188,
4240,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
6936,
2298,
12762,
49,
262,
9822,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the grid of driver joão urbano? | CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR) | SELECT SUM(grid) FROM table_name_75 WHERE driver = "joão urbano" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
3496,
26,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8634,
13,
2535,
3,
1927,
2,
32,
4150,
32,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2535,
3274,
96,
1927,
2,
32,
4150,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How much international freight has a change of +0,2% with more than 0 international mail? | CREATE TABLE table_45337 (
"Year" real,
"Domestic freight" real,
"Domestic mail" real,
"International freight" real,
"International mail" real,
"Total freight and mail" real,
"Change" text
) | SELECT COUNT("International freight") FROM table_45337 WHERE "Change" = '+0,2%' AND "International mail" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
519,
4118,
41,
96,
476,
2741,
121,
490,
6,
96,
4135,
2687,
1225,
17746,
121,
490,
6,
96,
4135,
2687,
1225,
4842,
121,
490,
6,
96,
27490,
17746,
121,
490,
6,
96,
274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
27490,
17746,
8512,
21680,
953,
834,
2128,
519,
4118,
549,
17444,
427,
96,
3541,
3280,
121,
3274,
3,
31,
1220,
632,
6,
5406,
31,
3430,
96,
27490,
4842,
121,
2490,
3,
31,
632,
31,
1,
-100,
-1... |
What song has a length of 3:05? | CREATE TABLE table_10848177_1 (song VARCHAR, length VARCHAR) | SELECT song FROM table_10848177_1 WHERE length = "3:05" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
3707,
26793,
834,
536,
41,
7,
2444,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2324,
65,
3,
9,
2475,
13,
220,
10,
3076,
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,
2324,
21680,
953,
834,
16169,
3707,
26793,
834,
536,
549,
17444,
427,
2475,
3274,
96,
519,
10,
3076,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has the score 70-76-68-214? | CREATE TABLE table_67573 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_67573 WHERE "Score" = '70-76-68-214' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3436,
519,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3708,
3436,
519,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
2518,
18,
3959,
18,
3651,
18,
27357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who directed the episode with production code 177605? | CREATE TABLE table_26561506_1 (
directed_by VARCHAR,
production_code VARCHAR
) | SELECT directed_by FROM table_26561506_1 WHERE production_code = 177605 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4834,
1808,
5176,
834,
536,
41,
6640,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
8,
5640,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
2688,
4834,
1808,
5176,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
1003,
3959,
3076,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent during the competition in which the bowling figures were 5-33 (10)? | CREATE TABLE table_name_82 (versus VARCHAR, bowling_figures_wickets_runs__overs_ VARCHAR) | SELECT versus FROM table_name_82 WHERE bowling_figures_wickets_runs__overs_ = "5-33 (10)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
8911,
584,
4280,
28027,
6,
3047,
53,
834,
9178,
15,
7,
834,
5981,
15,
17,
7,
834,
4312,
7,
834,
834,
1890,
7,
834,
584,
4280,
28027,
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,
3,
8911,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
3047,
53,
834,
9178,
15,
7,
834,
5981,
15,
17,
7,
834,
4312,
7,
834,
834,
1890,
7,
834,
3274,
96,
755,
18,
4201,
41,
16968,
121,
1,
-100,
-100,
-100,
... |
Who took third place in 2012? | CREATE TABLE table_48323 (
"Year" real,
"Venue" text,
"Winner" text,
"Runner Up" text,
"Third Place" text
) | SELECT "Third Place" FROM table_48323 WHERE "Year" = '2012' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
2668,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
3234,
121,
1499,
6,
96,
382,
9288,
26,
3399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
382,
9288,
26,
3399,
121,
21680,
953,
834,
3707,
2668,
519,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
12172,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who ihad the highest points and what was the number when the record was 11-40? | CREATE TABLE table_13619053_7 (
high_points VARCHAR,
record VARCHAR
) | SELECT high_points FROM table_13619053_7 WHERE record = "11-40" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
11776,
4867,
834,
940,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
3,
23,
8399,
8,
2030,
979,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
23459,
11776,
4867,
834,
940,
549,
17444,
427,
1368,
3274,
96,
2596,
15862,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the surface when the partner was Robert Haybittel? | CREATE TABLE table_name_42 (surface VARCHAR, partner VARCHAR) | SELECT surface FROM table_name_42 WHERE partner = "robert haybittel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
26899,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1774,
116,
8,
2397,
47,
2715,
8567,
2360,
1625,
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... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
2397,
3274,
96,
5840,
49,
17,
3,
12687,
2360,
1625,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Bar chart x axis date y axis the number of date, could you display by the total number from high to low? | CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
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 TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pressure_inches NUMERIC,
mean_sea_level_pressure_inches NUMERIC,
min_sea_level_pressure_inches NUMERIC,
max_visibility_miles INTEGER,
mean_visibility_miles INTEGER,
min_visibility_miles INTEGER,
max_wind_Speed_mph INTEGER,
mean_wind_speed_mph INTEGER,
max_gust_speed_mph INTEGER,
precipitation_inches INTEGER,
cloud_cover INTEGER,
events TEXT,
wind_dir_degrees INTEGER,
zip_code INTEGER
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
) | SELECT date, COUNT(date) FROM weather ORDER BY COUNT(date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2637,
41,
2478,
834,
23,
26,
3,
21342,
17966,
6,
13490,
834,
28843,
3,
21342,
17966,
6,
12908,
7,
834,
28843,
3,
21342,
17966,
6,
97,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
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,
833,
6,
2847,
17161,
599,
5522,
61,
21680,
1969,
4674,
11300,
272,
476,
2847,
17161,
599,
5522,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the school in Philadelphia, Pennsylvania founded? | CREATE TABLE table_1969577_3 (founded VARCHAR, location VARCHAR) | SELECT founded FROM table_1969577_3 WHERE location = "Philadelphia, Pennsylvania" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
3301,
4013,
834,
519,
41,
23329,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
496,
16,
9511,
6,
8913,
5710,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5710,
21680,
953,
834,
26937,
3301,
4013,
834,
519,
549,
17444,
427,
1128,
3274,
96,
23305,
15311,
11692,
9,
6,
8913,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which School has an Enrollment larger than 264, and a County of 46 la porte? | CREATE TABLE table_66613 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text
) | SELECT "School" FROM table_66613 WHERE "Enrollment" > '264' AND "County" = '46 la porte' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4241,
519,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
3539,
4241,
519,
549,
17444,
427,
96,
8532,
4046,
297,
121,
2490,
3,
31,
26755,
31,
3430,
96,
10628,
63,
121,
3274,
3,
31,
4448,
50,
5137,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
How many entries are shown for school colors for the location of naga , camarines sur? | CREATE TABLE table_24827 (
"Institution" text,
"Location" text,
"Enrollment" text,
"Athletic nickname" text,
"School Colors" text,
"Founded" real
) | SELECT COUNT("School Colors") FROM table_24827 WHERE "Location" = 'Naga , Camarines Sur' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3707,
2555,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8532,
4046,
297,
121,
1499,
6,
96,
188,
189,
109,
1225,
24649,
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,
2847,
17161,
599,
121,
29364,
6088,
7,
8512,
21680,
953,
834,
357,
3707,
2555,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
567,
4711,
3,
6,
5184,
291,
4477,
3705,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who were the candidates in the Kentucky 4 voting district? | CREATE TABLE table_1342218_17 (
candidates VARCHAR,
district VARCHAR
) | SELECT candidates FROM table_1342218_17 WHERE district = "Kentucky 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2884,
2606,
834,
2517,
41,
4341,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
16,
8,
13401,
314,
10601,
3939,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4341,
21680,
953,
834,
23747,
2884,
2606,
834,
2517,
549,
17444,
427,
3939,
3274,
96,
439,
295,
4636,
63,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show all member names and registered branch names sorted by register year. | CREATE TABLE purchase (
member_id number,
branch_id text,
year text,
total_pounds number
)
CREATE TABLE membership_register_branch (
member_id number,
branch_id text,
register_year text
)
CREATE TABLE member (
member_id number,
card_number text,
name text,
hometown text,
level number
)
CREATE TABLE branch (
branch_id number,
name text,
open_year text,
address_road text,
city text,
membership_amount text
) | SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1242,
41,
1144,
834,
23,
26,
381,
6,
6421,
834,
23,
26,
1499,
6,
215,
1499,
6,
792,
834,
8861,
7,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4757,
834,
22149,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5787,
4350,
6,
332,
4416,
4350,
21680,
4757,
834,
22149,
834,
1939,
5457,
6157,
332,
536,
3,
15355,
3162,
6421,
6157,
332,
357,
9191,
332,
5411,
1939,
5457,
834,
23,
26,
3274,
332,
4416,
1939,
5457,
834,
23,
26... |
How much Total has a Nation of kazakhstan (kaz), and a Gold larger than 0? | CREATE TABLE table_name_16 (total VARCHAR, nation VARCHAR, gold VARCHAR) | SELECT COUNT(total) FROM table_name_16 WHERE nation = "kazakhstan (kaz)" AND gold > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
235,
1947,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
9273,
65,
3,
9,
11046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
2982,
3274,
96,
1258,
172,
18965,
5627,
41,
1258,
172,
61,
121,
3430,
2045,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Count the number of programs broadcast for each time section of a day. Show bar chart. | CREATE TABLE broadcast_share (
Channel_ID int,
Program_ID int,
Date text,
Share_in_percent real
)
CREATE TABLE program (
Program_ID int,
Name text,
Origin text,
Launch real,
Owner text
)
CREATE TABLE channel (
Channel_ID int,
Name text,
Owner text,
Share_in_percent real,
Rating_in_percent real
)
CREATE TABLE broadcast (
Channel_ID int,
Program_ID int,
Time_of_day text
) | SELECT Time_of_day, COUNT(*) FROM broadcast GROUP BY Time_of_day | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6878,
834,
12484,
41,
9916,
834,
4309,
16,
17,
6,
2350,
834,
4309,
16,
17,
6,
7678,
1499,
6,
7105,
834,
77,
834,
883,
3728,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2900,
834,
858,
834,
1135,
6,
2847,
17161,
599,
1935,
61,
21680,
6878,
350,
4630,
6880,
272,
476,
2900,
834,
858,
834,
1135,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the main color(s) for marlboro? | CREATE TABLE table_name_36 (main_colour_s_ VARCHAR, main_sponsor_s_ VARCHAR) | SELECT main_colour_s_ FROM table_name_36 WHERE main_sponsor_s_ = "marlboro" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
7484,
834,
24814,
834,
7,
834,
584,
4280,
28027,
6,
711,
834,
7,
5041,
7,
127,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
711,
834,
24814,
834,
7,
834,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
711,
834,
7,
5041,
7,
127,
834,
7,
834,
3274,
96,
1635,
40,
14901,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What home team has 8 ties? | CREATE TABLE table_42474 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text,
"Attendance" real
) | SELECT "Home team" FROM table_42474 WHERE "Tie no" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2266,
4581,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
591,
2266,
4581,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Namethe score for july 16 | CREATE TABLE table_17103729_8 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_17103729_8 WHERE date = "July 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1714,
4118,
3166,
834,
927,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
532,
2604,
21,
3,
2047,
120,
898,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2517,
1714,
4118,
3166,
834,
927,
549,
17444,
427,
833,
3274,
96,
683,
83,
63,
898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the Opponent in Week 7? | CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_37 WHERE week = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
32,
102,
9977,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4495,
9977,
16,
6551,
489,
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,
15264,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
471,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the enrollment at Lanesville? | CREATE TABLE table_name_21 (enrollment INTEGER, school VARCHAR) | SELECT AVG(enrollment) FROM table_name_21 WHERE school = "lanesville" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
35,
4046,
297,
3,
21342,
17966,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17938,
44,
11834,
9727,
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,
71,
17217,
599,
35,
4046,
297,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
496,
3274,
96,
8102,
9727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the finish of player Hale Irwin? | CREATE TABLE table_50515 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) | SELECT "Finish" FROM table_50515 WHERE "Player" = 'hale irwin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
755,
1808,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
77,
1273,
121,
21680,
953,
834,
1752,
755,
1808,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3828,
15,
3,
23,
52,
3757,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What week did the Jets play in the meadowlands with and attendance of 78,161? | CREATE TABLE table_32660 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
) | SELECT SUM("Week") FROM table_32660 WHERE "Game site" = 'the meadowlands' AND "Attendance" = '78,161' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
27720,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
518,
10266,
8512,
21680,
953,
834,
2668,
27720,
549,
17444,
427,
96,
23055,
353,
121,
3274,
3,
31,
532,
140,
9,
15198,
6347,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
3940,
6,
2... |
Who is the Winning Applicant of Ensemble Name Muxco Lincolnshire in Block 10D? | CREATE TABLE table_name_45 (
winning_applicant VARCHAR,
block VARCHAR,
ensemble_name VARCHAR
) | SELECT winning_applicant FROM table_name_45 WHERE block = "10d" AND ensemble_name = "muxco lincolnshire" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
3447,
834,
27515,
1608,
17,
584,
4280,
28027,
6,
2463,
584,
4280,
28027,
6,
8784,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
27515,
1608,
17,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2463,
3274,
96,
1714,
26,
121,
3430,
8784,
834,
4350,
3274,
96,
51,
3090,
509,
3,
40,
77,
3297,
29,
5718,
121,
1,
-100,
-100,
-100,
-1... |
How many values of total top 3 placements does Taiwan have? | CREATE TABLE table_2876467_3 (total_top_3_placements VARCHAR, region_represented VARCHAR) | SELECT COUNT(total_top_3_placements) FROM table_2876467_3 WHERE region_represented = "Taiwan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3959,
591,
3708,
834,
519,
41,
235,
1947,
834,
2916,
834,
519,
834,
4687,
4128,
584,
4280,
28027,
6,
1719,
834,
29845,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
834,
2916,
834,
519,
834,
4687,
4128,
61,
21680,
953,
834,
2577,
3959,
591,
3708,
834,
519,
549,
17444,
427,
1719,
834,
29845,
3274,
96,
382,
9,
23,
3877,
121,
1,
-100,
-100,
-100,
-100,... |
In the district called Tennessee 6, how many in total of first elected are there? | CREATE TABLE table_1341577_43 (first_elected VARCHAR, district VARCHAR) | SELECT COUNT(first_elected) FROM table_1341577_43 WHERE district = "Tennessee 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
4013,
834,
4906,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
3939,
718,
12976,
8580,
149,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
1808,
4013,
834,
4906,
549,
17444,
427,
3939,
3274,
96,
382,
35,
655,
15,
15,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is listed as the Highest Played and that has a Place that is larger than 10? | CREATE TABLE table_72006 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
) | SELECT MAX("Played") FROM table_72006 WHERE "Place" > '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
21196,
41,
96,
345,
11706,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
6221,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
15,
26,
8512,
21680,
953,
834,
940,
21196,
549,
17444,
427,
96,
345,
11706,
121,
2490,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Visualize a bar chart about the distribution of All_Home and School_ID , and group by attribute ACC_Road, order in asc by the y axis. | 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_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY School_ID | [
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,
19040,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
6,
432,
834,
19040,
4674,
11300,
272,
476,
1121,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
... |
Location of ebbets field, and a Time of 2:56, and a Game larger than 6 has what sum of attendance? | CREATE TABLE table_name_49 (attendance INTEGER, game VARCHAR, location VARCHAR, time VARCHAR) | SELECT SUM(attendance) FROM table_name_49 WHERE location = "ebbets field" AND time = "2:56" AND game > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
15116,
663,
3,
21342,
17966,
6,
467,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
10450,
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,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
1128,
3274,
96,
15,
115,
346,
17,
7,
1057,
121,
3430,
97,
3274,
96,
357,
10,
4834,
121,
3430,
467,
2490,
431,
1,
-100,
-100,
-100,... |
What is the highest pick of the player from texas a&i with an overall less than 28? | CREATE TABLE table_77151 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Pick") FROM table_77151 WHERE "College" = 'texas a&i' AND "Overall" < '28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
26578,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
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,
4800,
4,
599,
121,
345,
3142,
8512,
21680,
953,
834,
4013,
26578,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
10354,
9,
7,
3,
9,
184,
23,
31,
3430,
96,
23847,
1748,
121,
3,
2,
3,
31,
2577,
31,
1,
-100,
... |
Who drove 53 laps? | CREATE TABLE table_name_66 (
driver VARCHAR,
laps VARCHAR
) | SELECT driver FROM table_name_66 WHERE laps = 53 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
10719,
12210,
14941,
7,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
14941,
7,
3274,
12210,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the original Release date of the Track written by Dallas Frazier? | CREATE TABLE table_name_27 (original_release VARCHAR, writer_s_ VARCHAR) | SELECT original_release FROM table_name_27 WHERE writer_s_ = "dallas frazier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
21878,
834,
21019,
584,
4280,
28027,
6,
4346,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
926,
13048,
833,
13,
8,
879... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
21019,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
4346,
834,
7,
834,
3274,
96,
26,
1748,
9,
7,
8072,
14567,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What operator has a ship costa pacifica? | CREATE TABLE table_name_8 (
operator VARCHAR,
ship VARCHAR
) | SELECT operator FROM table_name_8 WHERE ship = "costa pacifica" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
7221,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7221,
65,
3,
9,
4383,
583,
9,
3,
5379,
3286,
9,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7221,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
4383,
3274,
96,
11290,
9,
3,
5379,
3286,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
did alan prost have mclaren honda or ferrari as the constructor in 1988 ? | CREATE TABLE table_203_367 (
id number,
"year" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
) | SELECT "constructor" FROM table_203_367 WHERE "year" = 1988 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3708,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
13739,
52,
121,
1499,
6,
96,
15982,
5317,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
60,
1493,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15982,
5317,
121,
21680,
953,
834,
23330,
834,
519,
3708,
549,
17444,
427,
96,
1201,
121,
3274,
10414,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Among patients admitted to emergency room, how many of them were born before 2184? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.dob_year < "2184" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
18464,
17063,
3,
30270,
8502,
12604,
121,
3430,
147... |
On what date was the record with catalog ALCA-275 released? | CREATE TABLE table_name_3 (date VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_3 WHERE catalog = "alca-275" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
5522,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
1368,
28,
10173,
8761,
4490,
18,
25988,
1883,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
10173,
3274,
96,
138,
658,
18,
25988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the visitor team of the game with Andrew Bogut (21) as the leading scorer? | CREATE TABLE table_name_97 (visitor VARCHAR, leading_scorer VARCHAR) | SELECT visitor FROM table_name_97 WHERE leading_scorer = "andrew bogut (21)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
3466,
155,
127,
584,
4280,
28027,
6,
1374,
834,
7,
5715,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
7019,
372,
13,
8,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1374,
834,
7,
5715,
49,
3274,
96,
232,
60,
210,
3005,
11221,
4743,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the minimum introduced value for the Departmental region? | CREATE TABLE table_16324 (
"Number Range" text,
"Builder" text,
"Introduced" real,
"No. Built" real,
"Region" text,
"Withdrawn" real
) | SELECT MIN("Introduced") FROM table_16324 WHERE "Region" = 'Departmental' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
519,
2266,
41,
96,
567,
5937,
49,
10971,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
1570,
17,
52,
32,
12160,
26,
121,
490,
6,
96,
4168,
5,
14862,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
1570,
17,
52,
32,
12160,
26,
8512,
21680,
953,
834,
2938,
519,
2266,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
2962,
2274,
13974,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the least against number for Cobden with draws more than 0? | CREATE TABLE table_name_50 (against INTEGER, club VARCHAR, draws VARCHAR) | SELECT MIN(against) FROM table_name_50 WHERE club = "cobden" AND draws > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
9,
16720,
7,
17,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
709,
581,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1886,
3274,
96,
509,
115,
537,
121,
3430,
14924,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Plot a scatter chart, count(*) by classroom. | CREATE TABLE list (
LastName TEXT,
FirstName TEXT,
Grade INTEGER,
Classroom INTEGER
)
CREATE TABLE teachers (
LastName TEXT,
FirstName TEXT,
Classroom INTEGER
) | SELECT COUNT(*), Classroom FROM list GROUP BY Classroom | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
570,
41,
2506,
23954,
3,
3463,
4,
382,
6,
1485,
23954,
3,
3463,
4,
382,
6,
13027,
3,
21342,
17966,
6,
29546,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
29546,
21680,
570,
350,
4630,
6880,
272,
476,
29546,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the povery rate of the county with market income per capita of $20,518? | CREATE TABLE table_25337 (
"County" text,
"Population" real,
"Unemployment Rate" text,
"Market Income Per Capita" text,
"Poverty Rate" text,
"Status" text
) | SELECT "Poverty Rate" FROM table_25337 WHERE "Market Income Per Capita" = '$20,518' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
519,
4118,
41,
96,
10628,
63,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
5110,
29056,
13002,
121,
1499,
6,
96,
22572,
20110,
1915,
4000,
155,
9,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
1890,
17,
63,
13002,
121,
21680,
953,
834,
1828,
519,
4118,
549,
17444,
427,
96,
22572,
20110,
1915,
4000,
155,
9,
121,
3274,
3,
31,
3229,
1755,
6,
755,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What Chinese Title Ranking #7 has an Average of 32 and Peak less than 38? | CREATE TABLE table_57309 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
) | SELECT "Chinese title" FROM table_57309 WHERE "Average" = '32' AND "Peak" < '38' AND "Rank" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
1458,
1298,
41,
96,
22557,
121,
490,
6,
96,
26749,
2233,
121,
1499,
6,
96,
3541,
4477,
15,
2233,
121,
1499,
6,
96,
188,
624,
545,
121,
490,
6,
96,
345,
15,
1639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3541,
4477,
15,
2233,
121,
21680,
953,
834,
3436,
1458,
1298,
549,
17444,
427,
96,
188,
624,
545,
121,
3274,
3,
31,
2668,
31,
3430,
96,
345,
15,
1639,
121,
3,
2,
3,
31,
3747,
31,
3430,
96,
22557,
121,
3274,
... |
Is the count rectified for single opponents, either positional or automatic, and no material or non-material? | CREATE TABLE table_33187 (
"Positional or Automatic" text,
"Opponents" text,
"Suits" text,
"Material or Non-material" text,
"Count Rectified" text
) | SELECT "Count Rectified" FROM table_33187 WHERE "Opponents" = 'single' AND "Positional or Automatic" = 'either' AND "Material or Non-material" = 'no' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
25828,
41,
96,
345,
32,
7,
4749,
138,
42,
19148,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
134,
76,
7085,
121,
1499,
6,
96,
329,
342,
12042,
42,
5388... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
7136,
17,
3676,
121,
21680,
953,
834,
4201,
25828,
549,
17444,
427,
96,
667,
102,
9977,
7,
121,
3274,
3,
31,
7,
53,
109,
31,
3430,
96,
345,
32,
7,
4749,
138,
42,
19148,
121,
3274,
3,
31,
15,
9732,
3... |
Display the proportion of the job title for all those jobs in department 80 using a pie chart. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
) | SELECT JOB_TITLE, COUNT(JOB_TITLE) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID WHERE T1.DEPARTMENT_ID = 80 GROUP BY JOB_TITLE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
382,
3177,
3765,
6,
2847,
17161,
599,
15355,
279,
834,
382,
3177,
3765,
61,
21680,
1652,
6157,
332,
536,
3,
15355,
3162,
2476,
6157,
332,
357,
9191,
332,
5411,
15355,
279,
834,
4309,
3274,
332,
4416,
... |
What is the frequency with 900w power? | CREATE TABLE table_15580 (
"Transmitter Site" text,
"Frequency" text,
"Power" text,
"RDS Name" text,
"PI Code" text,
"Area" text
) | SELECT "Frequency" FROM table_15580 WHERE "Power" = '900w' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
2079,
41,
96,
18474,
1538,
449,
3238,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
23553,
121,
1499,
6,
96,
10255,
134,
5570,
121,
1499,
6,
96,
4111,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
60,
835,
11298,
121,
21680,
953,
834,
20896,
2079,
549,
17444,
427,
96,
23553,
121,
3274,
3,
31,
7015,
210,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the average Value ($M) when the Country was England, the Operating income($m) was greater than -5, and the Revenue ($M) was smaller than 103? | CREATE TABLE table_name_95 (value__ INTEGER, revenue__$m_ VARCHAR, country VARCHAR, operating_income_$m_ VARCHAR) | SELECT AVG(value__) AS $m_ FROM table_name_95 WHERE country = "england" AND operating_income_$m_ > -5 AND revenue__$m_ < 103 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
12097,
834,
834,
3,
21342,
17966,
6,
3751,
834,
834,
3229,
51,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
2699,
834,
15759,
834,
3229,
51,
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,
71,
17217,
599,
12097,
834,
834,
61,
6157,
1514,
51,
834,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
684,
3274,
96,
4606,
40,
232,
121,
3430,
2699,
834,
15759,
834,
3229,
51,
834,
2490,
3,
4525,
3430,
3751,
... |
What is the number of people in attendance at Oakland-Alameda County Coliseum, and game is 2? | CREATE TABLE table_name_83 (
attendance INTEGER,
location VARCHAR,
game VARCHAR
) | SELECT SUM(attendance) FROM table_name_83 WHERE location = "oakland-alameda county coliseum" AND game = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
11364,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
151,
16,
11364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
1128,
3274,
96,
32,
1639,
40,
232,
18,
138,
9,
2726,
9,
5435,
3,
9044,
7,
15,
440,
121,
3430,
467,
3274,
204,
1,
-100,
-100,
-10... |
Name th margin of victory when date is 10 jul 2011 | CREATE TABLE table_20412 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Margin of victory" FROM table_20412 WHERE "Date" = '10 Jul 2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
2122,
41,
96,
4168,
535,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
3696,
260,
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,
7286,
122,
77,
13,
6224,
121,
21680,
953,
834,
26363,
2122,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
1714,
17829,
2722,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest after when the player is adam scott? | CREATE TABLE table_28498999_3 (after INTEGER, player VARCHAR) | SELECT MIN(after) FROM table_28498999_3 WHERE player = "Adam Scott" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3647,
3914,
3264,
834,
519,
41,
10245,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
227,
116,
8,
1959,
19,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
10245,
61,
21680,
953,
834,
2577,
3647,
3914,
3264,
834,
519,
549,
17444,
427,
1959,
3274,
96,
188,
7812,
4972,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the dates of the outgoing manager colin hendry does appointments? | CREATE TABLE table_11207040_6 (
date_of_appointment VARCHAR,
outgoing_manager VARCHAR
) | SELECT date_of_appointment FROM table_11207040_6 WHERE outgoing_manager = "Colin Hendry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
1755,
2518,
2445,
834,
948,
41,
833,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
6,
91,
9545,
834,
24185,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
9,
102,
2700,
297,
21680,
953,
834,
2596,
1755,
2518,
2445,
834,
948,
549,
17444,
427,
91,
9545,
834,
24185,
3274,
96,
9939,
77,
216,
29,
16502,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the normal temperature of Abbotsford, British Columbia? | CREATE TABLE table_14388 (
"City" text,
"Highest temperature recorded or forecast" text,
"Date achieved or projected" text,
"Normal temperature" text,
"Deviation from normal" text
) | SELECT "Normal temperature" FROM table_14388 WHERE "City" = 'abbotsford, british columbia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4060,
41,
96,
254,
485,
121,
1499,
6,
96,
21417,
222,
2912,
4381,
42,
7555,
121,
1499,
6,
96,
308,
342,
5153,
42,
16037,
121,
1499,
6,
96,
19383,
138,
2912,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19383,
138,
2912,
121,
21680,
953,
834,
25133,
4060,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
9,
115,
4045,
7,
2590,
6,
3,
2160,
17,
1273,
7632,
5937,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What frequency is First Nations Community? | CREATE TABLE table_66601 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) | SELECT "Frequency" FROM table_66601 WHERE "Format" = 'first nations community' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3328,
536,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
371,
60,
835,
11298,
121,
21680,
953,
834,
3539,
3328,
536,
549,
17444,
427,
96,
3809,
3357,
121,
3274,
3,
31,
14672,
9352,
573,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who were the candidates in the district of South Carolina 5? | CREATE TABLE table_1346137_4 (
candidates VARCHAR,
district VARCHAR
) | SELECT candidates FROM table_1346137_4 WHERE district = "South Carolina 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4448,
24636,
834,
591,
41,
4341,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
16,
8,
3939,
13,
1013,
5089,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
2368,
4448,
24636,
834,
591,
549,
17444,
427,
3939,
3274,
96,
22081,
5089,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest year for the game called The Elder Scrolls v: Skyrim? | CREATE TABLE table_63240 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT MIN("Year") FROM table_63240 WHERE "Game" = 'the elder scrolls v: skyrim' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
11944,
41,
96,
476,
2741,
121,
490,
6,
96,
23055,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
10146,
2032,
599,
7,
61,
121,
1499,
6,
96,
2962,
162,
8745,
49,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3891,
11944,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
532,
17813,
11930,
7,
3,
208,
10,
5796,
5397,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many locations have a school that is nicknamed the Panthers? | CREATE TABLE table_262560_2 (
location VARCHAR,
nickname VARCHAR
) | SELECT COUNT(location) FROM table_262560_2 WHERE nickname = "Panthers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1828,
3328,
834,
357,
41,
1128,
584,
4280,
28027,
6,
24649,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3248,
43,
3,
9,
496,
24,
19,
24649,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14836,
61,
21680,
953,
834,
2688,
1828,
3328,
834,
357,
549,
17444,
427,
24649,
3274,
96,
345,
288,
760,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Formula has a Prefix of alkyl-? | CREATE TABLE table_name_72 (formula VARCHAR, prefix VARCHAR) | SELECT formula FROM table_name_72 WHERE prefix = "alkyl-" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
2032,
83,
9,
584,
4280,
28027,
6,
554,
12304,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13786,
65,
3,
9,
1266,
12304,
13,
491,
3781,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5403,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
554,
12304,
3274,
96,
138,
3781,
40,
18,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which 2006/ 07 has a 2011/ 12 of tournament not held, a 2005/ 06 of tournament not held, and a 2002/ 03 of 1r? | CREATE TABLE table_62375 (
"1999/ 00" text,
"2000/ 01" text,
"2001/ 02" text,
"2002/ 03" text,
"2003/ 04" text,
"2004/ 05" text,
"2005/ 06" text,
"2006/ 07" text,
"2007/ 08" text,
"2008/ 09" text,
"2009/ 10" text,
"2010/ 11" text,
"2011/ 12" text,
"2012/ 13" text
) | SELECT "2006/ 07" FROM table_62375 WHERE "2011/ 12" = 'tournament not held' AND "2005/ 06" = 'tournament not held' AND "2002/ 03" = '1r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
22954,
41,
96,
2294,
3264,
87,
3,
1206,
121,
1499,
6,
96,
13527,
87,
7088,
121,
1499,
6,
96,
23658,
87,
11270,
121,
1499,
6,
96,
24898,
87,
12811,
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,
21196,
87,
10668,
121,
21680,
953,
834,
4056,
22954,
549,
17444,
427,
96,
13907,
87,
586,
121,
3274,
3,
31,
17,
1211,
20205,
17,
59,
1213,
31,
3430,
96,
22594,
87,
13574,
121,
3274,
3,
31,
17,
1211,
20205,
17,... |
What is the mecha with a condor bird uniform? | CREATE TABLE table_name_33 (
mecha VARCHAR,
bird_uniform VARCHAR
) | SELECT mecha FROM table_name_33 WHERE bird_uniform = "condor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
140,
3441,
584,
4280,
28027,
6,
5963,
834,
202,
23,
2032,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
140,
3441,
28,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
140,
3441,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
5963,
834,
202,
23,
2032,
3274,
96,
1018,
26,
127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the score of Tie number 11? | CREATE TABLE table_name_48 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_48 WHERE tie_no = "11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
7,
9022,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2604,
13,
2262,
15,
381,
850,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the title when the catalog number is cal01 / 0091037137319? | CREATE TABLE table_29431 (
"Year" real,
"Title" text,
"Format" text,
"Studio" text,
"Release Date" text,
"Copyright Information" text,
"Catalog Number" text
) | SELECT "Title" FROM table_29431 WHERE "Catalog Number" = 'CAL01 / 0091037137319' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4240,
3341,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
1649,
40,
14608... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
357,
4240,
3341,
549,
17444,
427,
96,
18610,
9,
2152,
7720,
121,
3274,
3,
31,
21605,
4542,
3,
87,
3,
1206,
1298,
1714,
4118,
2368,
4552,
2294,
31,
1,
-100,
-100,
-100,
-100... |
A bar chart for what are the number of the dates of birth of entrepreneurs with investor 'Simon Woodroffe' or 'Peter Jones'?, and I want to rank total number in ascending order. | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
) | SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones" ORDER BY COUNT(Date_of_Birth) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
14230,
490,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
2847,
17161,
599,
308,
342,
834,
858,
834,
279,
23,
52,
189,
61,
21680,
3,
12290,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
24337,
834,
4309,
... |
how many teams are from morwell ? | CREATE TABLE table_203_664 (
id number,
"club" text,
"town" text,
"founded" number,
"nickname" text,
"colours" text,
"home ground" text,
"titles" number,
"website" text
) | SELECT COUNT("club") FROM table_203_664 WHERE "town" = 'morwell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3539,
591,
41,
3,
23,
26,
381,
6,
96,
13442,
121,
1499,
6,
96,
3540,
121,
1499,
6,
96,
23329,
121,
381,
6,
96,
11191,
4350,
121,
1499,
6,
96,
24814,
7,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
13442,
8512,
21680,
953,
834,
23330,
834,
3539,
591,
549,
17444,
427,
96,
3540,
121,
3274,
3,
31,
2528,
2091,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is 2008 when 2007 is a, 2011 is a, 2010 is a and tournament is china? | CREATE TABLE table_name_53 (tournament VARCHAR) | SELECT 2008 FROM table_name_53 WHERE 2007 = "a" AND 2011 = "a" AND 2010 = "a" AND tournament = "china" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
2628,
116,
4101,
19,
3,
9,
6,
2722,
19,
3,
9,
6,
2735,
19,
3,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2628,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
4101,
3274,
96,
9,
121,
3430,
2722,
3274,
96,
9,
121,
3430,
2735,
3274,
96,
9,
121,
3430,
5892,
3274,
96,
5675,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the animals name when the genus/species is rattus norvegicus? | CREATE TABLE table_15417439_1 (
common_name VARCHAR,
genus_species VARCHAR
) | SELECT common_name FROM table_15417439_1 WHERE genus_species = "Rattus norvegicus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
27693,
3288,
834,
536,
41,
1017,
834,
4350,
584,
4280,
28027,
6,
3,
729,
302,
834,
7576,
725,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1017,
834,
4350,
21680,
953,
834,
27308,
27693,
3288,
834,
536,
549,
17444,
427,
3,
729,
302,
834,
7576,
725,
3274,
96,
448,
144,
17,
302,
3701,
162,
122,
447,
302,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is nominated for the film Rugrats Go Wild? | CREATE TABLE table_name_44 (winner_nominee_s_ VARCHAR, result VARCHAR, film VARCHAR) | SELECT winner_nominee_s_ FROM table_name_44 WHERE result = "nominated" AND film = "rugrats go wild" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
3757,
687,
834,
3114,
630,
15,
834,
7,
834,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
814,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
834,
3114,
630,
15,
834,
7,
834,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
741,
3274,
96,
3114,
77,
920,
121,
3430,
814,
3274,
96,
13534,
1795,
7,
281,
3645,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
In what year was Xavier Malisse the runner-up with scores of 4 6, 6 4, [8 10]? | CREATE TABLE table_name_65 (
year VARCHAR,
outcome VARCHAR,
score VARCHAR
) | SELECT year FROM table_name_65 WHERE outcome = "runner-up" AND score = "4–6, 6–4, [8–10]" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
215,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
47,
3,
4,
9,
5144,
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,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
2604,
3274,
96,
591,
104,
11071,
431,
104,
8525,
784,
927,
104,
1714,
908,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What rank was the country with no bronze but at least 1 silver medals? | CREATE TABLE table_name_57 (
rank INTEGER,
bronze VARCHAR,
silver VARCHAR
) | SELECT AVG(rank) FROM table_name_57 WHERE bronze < 1 AND silver > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
11003,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11003,
47,
8,
684,
28,
150,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
13467,
3,
2,
209,
3430,
4294,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When olympikus is the main sponsor who is the secondary sponsor? | CREATE TABLE table_1946 (
"Period" text,
"Kit manufacturer" text,
"Main sponsor" text,
"Secondary sponsor" text,
"Minor sponsors" text
) | SELECT "Secondary sponsor" FROM table_1946 WHERE "Main sponsor" = 'Olympikus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4448,
41,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
439,
155,
4818,
121,
1499,
6,
96,
21978,
29,
9037,
121,
1499,
6,
96,
134,
15,
1018,
26,
1208,
9037,
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,
15,
1018,
26,
1208,
9037,
121,
21680,
953,
834,
2294,
4448,
549,
17444,
427,
96,
21978,
29,
9037,
121,
3274,
3,
31,
667,
120,
1167,
23,
2729,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the game is listed as 2, what is the score? | CREATE TABLE table_name_81 (
score VARCHAR,
game VARCHAR
) | SELECT score FROM table_name_81 WHERE game = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
2604,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
467,
19,
2616,
38,
3547,
125,
19,
8,
2604,
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,
2604,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
467,
3274,
204,
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,... |
Find the last name and hire date of the professor who is in office DRE 102. | CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE employee (
emp_num number,
emp_lname text,
emp_fname text,
emp_initial text,
emp_jobcode text,
emp_hiredate time,
emp_dob time
)
CREATE TABLE enroll (
class_code text,
stu_num number,
enroll_grade text
)
CREATE TABLE course (
crs_code text,
dept_code text,
crs_description text,
crs_credit number
)
CREATE TABLE class (
class_code text,
crs_code text,
class_section text,
class_time text,
class_room text,
prof_num number
)
CREATE TABLE professor (
emp_num number,
dept_code text,
prof_office text,
prof_extension text,
prof_high_degree text
)
CREATE TABLE student (
stu_num number,
stu_lname text,
stu_fname text,
stu_init text,
stu_dob time,
stu_hrs number,
stu_class text,
stu_gpa number,
stu_transfer number,
dept_code text,
stu_phone text,
prof_num number
) | SELECT T1.emp_lname, T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4978,
1499,
6,
20,
102,
17,
834,
4350,
1499,
6,
496,
834,
4978,
1499,
6,
8943,
834,
5525,
381,
6,
20,
102,
17,
834,
9,
26,
12039,
1499,
6,
20,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15,
1167,
834,
40,
4350,
6,
332,
5411,
15,
1167,
834,
9288,
15,
5522,
21680,
3490,
6157,
332,
536,
3,
15355,
3162,
5812,
6157,
332,
357,
9191,
332,
5411,
15,
1167,
834,
5525,
3274,
332,
4416,
15,
1167,
... |
What type of song is larger than 8 and named ? | CREATE TABLE table_68209 (
"Number" real,
"Name of the song" text,
"Singer" text,
"Drama" text,
"Kind of the song" text
) | SELECT "Kind of the song" FROM table_68209 WHERE "Number" > '8' AND "Name of the song" = '實情' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
357,
4198,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
13,
8,
2324,
121,
1499,
6,
96,
134,
9963,
121,
1499,
6,
96,
308,
10819,
121,
1499,
6,
96,
439,
77,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
439,
77,
26,
13,
8,
2324,
121,
21680,
953,
834,
3651,
357,
4198,
549,
17444,
427,
96,
567,
5937,
49,
121,
2490,
3,
31,
927,
31,
3430,
96,
23954,
13,
8,
2324,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
... |
What are the remarks for 8 October 2008? | CREATE TABLE table_2015453_1 (remarks VARCHAR, date VARCHAR) | SELECT remarks FROM table_2015453_1 WHERE date = "8 October 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8651,
2128,
519,
834,
536,
41,
60,
3920,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
21029,
21,
505,
1797,
2628,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
21029,
21680,
953,
834,
8651,
2128,
519,
834,
536,
549,
17444,
427,
833,
3274,
96,
927,
1797,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the name of the first club listed on this chart ? | CREATE TABLE table_204_26 (
id number,
"name" text,
"position" text,
"birth date/age at start of campaign" text,
"games in campaign" text,
"club" text
) | SELECT "club" FROM table_204_26 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2688,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
20663,
833,
87,
545,
44,
456,
13,
2066,
121,
1499,
6,
96,
7261,
7,
16,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13442,
121,
21680,
953,
834,
26363,
834,
2688,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What Upper stage has Launches to date of 0, and Version of 532? | CREATE TABLE table_name_86 (
upper_stage VARCHAR,
launches_to_date VARCHAR,
version VARCHAR
) | SELECT upper_stage FROM table_name_86 WHERE launches_to_date = 0 AND version = "532" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
4548,
834,
10705,
584,
4280,
28027,
6,
22506,
834,
235,
834,
5522,
584,
4280,
28027,
6,
988,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4548,
834,
10705,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
22506,
834,
235,
834,
5522,
3274,
3,
632,
3430,
988,
3274,
96,
4867,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many party classifications are there for the incumbent Mac Collins? | CREATE TABLE table_26336739_1 (party VARCHAR, incumbent VARCHAR) | SELECT COUNT(party) FROM table_26336739_1 WHERE incumbent = "Mac Collins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4201,
3708,
3288,
834,
536,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
1088,
13774,
7,
33,
132,
21,
8,
28406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8071,
61,
21680,
953,
834,
2688,
4201,
3708,
3288,
834,
536,
549,
17444,
427,
28406,
3274,
96,
17772,
16517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was the winner the new york jets and a Result of 30–28? | CREATE TABLE table_name_67 (date VARCHAR, winner VARCHAR, result VARCHAR) | SELECT date FROM table_name_67 WHERE winner = "new york jets" AND result = "30–28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
5522,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
4668,
8,
126,
25453,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
4668,
3274,
96,
5534,
25453,
8757,
7,
121,
3430,
741,
3274,
96,
1458,
104,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest points with g Tyres and Minardi m187? | CREATE TABLE table_name_30 (points INTEGER, tyres VARCHAR, chassis VARCHAR) | SELECT MAX(points) FROM table_name_30 WHERE tyres = "g" AND chassis = "minardi m187" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
2700,
7,
3,
21342,
17966,
6,
3,
17,
63,
60,
7,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
3,
17,
63,
60,
7,
3274,
96,
122,
121,
3430,
22836,
3274,
96,
1109,
986,
23,
3,
51,
25828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the time of the 5th ranked swimmer who swam after heat 3 and was in a lane under 5? | CREATE TABLE table_63122 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Time" FROM table_63122 WHERE "Heat" > '3' AND "Lane" < '5' AND "Rank" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
20889,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
3891,
20889,
549,
17444,
427,
96,
3845,
144,
121,
2490,
3,
31,
519,
31,
3430,
96,
434,
152,
15,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
22557,
121,
3274,
3,
31,
755,
31,
1,
-100,
... |
How many times was player brian currie picked? | CREATE TABLE table_26996293_7 (pick__number VARCHAR, player VARCHAR) | SELECT COUNT(pick__number) FROM table_26996293_7 WHERE player = "Brian Currie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3264,
4056,
4271,
834,
940,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
1959,
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,
2847,
17161,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2688,
3264,
4056,
4271,
834,
940,
549,
17444,
427,
1959,
3274,
96,
279,
5288,
4116,
1753,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find all the female actors in the movie ' Saving Private Ryan | CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE tags (
id int,
msid int,
kid int
)
CREATE TABLE classification (
id int,
msid int,
gid int
)
CREATE TABLE made_by (
id int,
msid int,
pid int
)
CREATE TABLE company (
id int,
name text,
country_code varchar
)
CREATE TABLE director (
did int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE producer (
pid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE directed_by (
id int,
msid int,
did int
)
CREATE TABLE keyword (
id int,
keyword text
)
CREATE TABLE movie (
mid int,
title text,
release_year int,
title_aka text,
budget text
)
CREATE TABLE writer (
wid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE copyright (
id int,
msid int,
cid int
)
CREATE TABLE cast (
id int,
msid int,
aid int,
role text
)
CREATE TABLE genre (
gid int,
genre text
)
CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE tv_series (
sid int,
title text,
release_year int,
num_of_seasons int,
num_of_episodes int,
title_aka text,
budget text
) | SELECT actor.name FROM actor, cast, movie WHERE actor.gender = 'female' AND cast.aid = actor.aid AND movie.mid = cast.msid AND movie.title = 'Saving Private Ryan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
3052,
16,
17,
6,
7285,
1499,
6,
564,
1499,
6,
1157,
485,
1499,
6,
3879,
834,
6726,
1499,
6,
3879,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7556,
5,
4350,
21680,
7556,
6,
4061,
6,
1974,
549,
17444,
427,
7556,
5,
122,
3868,
3274,
3,
31,
89,
15,
13513,
31,
3430,
4061,
5,
6146,
3274,
7556,
5,
6146,
3430,
1974,
5,
6983,
3274,
4061,
5,
51,
7,
23,
26,
3... |
number of patients who are less than 82 years old with a glucose test done. | 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 (
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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "82" AND lab.label = "Glucose" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which of the titles have a duration time of 4:57? | CREATE TABLE table_34765 (
"Title" text,
"Translation" text,
"Lyricist" text,
"Composer" text,
"Duration" text
) | SELECT "Title" FROM table_34765 WHERE "Duration" = '4:57' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4177,
4122,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
18474,
6105,
121,
1499,
6,
96,
434,
63,
2234,
343,
121,
1499,
6,
96,
5890,
2748,
49,
121,
1499,
6,
96,
12998,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
519,
4177,
4122,
549,
17444,
427,
96,
12998,
2661,
121,
3274,
3,
31,
591,
10,
3436,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
mention the admission type and death status of the patient with patient id 2560. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.admission_type, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "2560" | [
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,
14798,
5,
9,
26,
5451,
834,
6137,
6,
14798,
5,
994,
2388,
15,
834,
89,
5430,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the titles of albums by the artist 'AC/DC'? | CREATE TABLE genre (
genreid number,
name text
)
CREATE TABLE employee (
employeeid number,
lastname text,
firstname text,
title text,
reportsto number,
birthdate time,
hiredate time,
address text,
city text,
state text,
country text,
postalcode text,
phone text,
fax text,
email text
)
CREATE TABLE playlist (
playlistid number,
name text
)
CREATE TABLE track (
trackid number,
name text,
albumid number,
mediatypeid number,
genreid number,
composer text,
milliseconds number,
bytes number,
unitprice number
)
CREATE TABLE customer (
customerid number,
firstname text,
lastname text,
company text,
address text,
city text,
state text,
country text,
postalcode text,
phone text,
fax text,
email text,
supportrepid number
)
CREATE TABLE invoice (
invoiceid number,
customerid number,
invoicedate time,
billingaddress text,
billingcity text,
billingstate text,
billingcountry text,
billingpostalcode text,
total number
)
CREATE TABLE album (
albumid number,
title text,
artistid number
)
CREATE TABLE artist (
artistid number,
name text
)
CREATE TABLE mediatype (
mediatypeid number,
name text
)
CREATE TABLE playlisttrack (
playlistid number,
trackid number
)
CREATE TABLE invoiceline (
invoicelineid number,
invoiceid number,
trackid number,
unitprice number,
quantity number
) | SELECT title FROM album AS T1 JOIN artist AS T2 ON T1.artistid = T2.artistid WHERE T2.name = "AC/DC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5349,
41,
5349,
23,
26,
381,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
3490,
23,
26,
381,
6,
336,
4350,
1499,
6,
166,
4350,
1499,
6,
2233,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
2306,
6157,
332,
536,
3,
15355,
3162,
2377,
6157,
332,
357,
9191,
332,
5411,
1408,
343,
23,
26,
3274,
332,
4416,
1408,
343,
23,
26,
549,
17444,
427,
332,
4416,
4350,
3274,
96,
5173,
87,
6338,
121,
1,
... |
what is maximum age of patients whose days of hospital stay is 11 and year of death is less than 2154? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MAX(demographic.age) FROM demographic WHERE demographic.days_stay = "11" AND demographic.dod_year < "2154.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
2596,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
96,
357,
1808,
15021,
121,
1,
-100,
-100,
-1... |
Name the distance from north | CREATE TABLE table_197286_4 (distance VARCHAR, direction VARCHAR) | SELECT distance FROM table_197286_4 WHERE direction = "North" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
5865,
3840,
834,
591,
41,
26,
23,
8389,
584,
4280,
28027,
6,
2212,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2357,
45,
3457,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2357,
21680,
953,
834,
2294,
5865,
3840,
834,
591,
549,
17444,
427,
2212,
3274,
96,
22969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.