NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the date of the game when Richmond was the home team? | CREATE TABLE table_32747 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_32747 WHERE "Home team" = 'richmond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2555,
4177,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
2555,
4177,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
3723,
6764,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the departed date that the HMS Leith of the Royal Navy? | CREATE TABLE table_47079 (
"Name" text,
"Class" text,
"Navy" text,
"Date joined" text,
"Date departed" text
) | SELECT "Date departed" FROM table_47079 WHERE "Navy" = 'royal navy' AND "Name" = 'hms leith' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27760,
4440,
41,
96,
23954,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
22192,
63,
121,
1499,
6,
96,
308,
342,
3311,
121,
1499,
6,
96,
308,
342,
3,
31779,
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,
308,
342,
3,
31779,
121,
21680,
953,
834,
27760,
4440,
549,
17444,
427,
96,
22192,
63,
121,
3274,
3,
31,
8170,
138,
23118,
31,
3430,
96,
23954,
121,
3274,
3,
31,
107,
51,
7,
4628,
189,
31,
1,
-100,
-100,
-10... |
Among patients with cerebral aneurysm/sda as their primary disease, calculate the total number of those born before the year 2173. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CEREBRAL ANEURYSM/SDA" AND demographic.admityear < "2173" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
4770,
4386,
279,
21415,
3,
5033,
26296,
476,
4212,
87,
134,
4296,
121,... |
What was the total attendance on December 14, 1975 after week 13? | CREATE TABLE table_name_41 (attendance VARCHAR, date VARCHAR, week VARCHAR) | SELECT COUNT(attendance) FROM table_name_41 WHERE date = "december 14, 1975" AND week > 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
11364,
30,
1882,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
11363,
16312,
121,
3430,
471,
2490,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which average money has a To par larger than 12? | CREATE TABLE table_61032 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT AVG("Money ( $ )") FROM table_61032 WHERE "To par" > '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
2668,
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,
490,
6,
96,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
9168,
15,
63,
41,
1514,
3,
61,
8512,
21680,
953,
834,
27097,
2668,
549,
17444,
427,
96,
3696,
260,
121,
2490,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the production code of the episode originally aired on February 21, 1985? | CREATE TABLE table_2818164_2 (
production_code INTEGER,
original_air_date VARCHAR
) | SELECT MIN(production_code) FROM table_2818164_2 WHERE original_air_date = "February 21, 1985" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2606,
26987,
834,
357,
41,
999,
834,
4978,
3,
21342,
17966,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
20762,
834,
4978,
61,
21680,
953,
834,
2577,
2606,
26987,
834,
357,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
31122,
12026,
13200,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score when the home team was goole town? | CREATE TABLE table_name_84 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_84 WHERE home_team = "goole town" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
7,
9022,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
8,
234,
372,
47,
281,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4608,
549,
17444,
427,
234,
834,
11650,
3274,
96,
839,
32,
109,
1511,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What tournament was Thomas Enqvist runner up? | CREATE TABLE table_name_15 (tournament VARCHAR, runner_up VARCHAR) | SELECT tournament FROM table_name_15 WHERE runner_up = "thomas enqvist" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5892,
47,
3576,
695,
1824,
3466,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
189,
32,
2754,
3,
35,
1824,
3466,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What team had Pick 2? | CREATE TABLE table_name_27 (
team VARCHAR,
pick VARCHAR
) | SELECT team FROM table_name_27 WHERE pick = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
372,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
141,
8356,
204,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1432,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose year of birth is less than 2056 and lab test fluid is ascites? | 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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2056" AND lab.fluid = "Ascites" | [
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,... |
how many patients whose primary disease is guillain barre syndrome and procedure short title is adm inhal nitric oxide? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "GUILLAIN BARRE SYNDROME" AND procedures.short_title = "Adm inhal nitric oxide" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What game has 2 points? | CREATE TABLE table_name_58 (
games INTEGER,
points VARCHAR
) | SELECT MAX(games) FROM table_name_58 WHERE points = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
1031,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
65,
204,
979,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
979,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the tie with a win of 0? | CREATE TABLE table_name_38 (ties VARCHAR, wins VARCHAR) | SELECT ties FROM table_name_38 WHERE wins = "0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
3010,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6177,
28,
3,
9,
1369,
13,
3,
632,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
3010,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
9204,
3274,
96,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the record is 5-8, what is the team name? | CREATE TABLE table_23285805_4 (team VARCHAR, record VARCHAR) | SELECT team FROM table_23285805_4 WHERE record = "5-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
3449,
3076,
834,
591,
41,
11650,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1368,
19,
3,
27698,
6,
125,
19,
8,
372,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
2773,
2577,
3449,
3076,
834,
591,
549,
17444,
427,
1368,
3274,
96,
27698,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Country, when Place is "Torino"? | CREATE TABLE table_name_72 (country VARCHAR, place VARCHAR) | SELECT country FROM table_name_72 WHERE place = "torino" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
17529,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
3399,
19,
96,
382,
127,
77,
32,
121,
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,
684,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
286,
3274,
96,
3600,
29,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What match had 8 points? | CREATE TABLE table_name_91 (
match VARCHAR,
points VARCHAR
) | SELECT match FROM table_name_91 WHERE points = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
1588,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1588,
141,
505,
979,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1588,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
979,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which tournament had a winning score of 67-61-68-67=263? | CREATE TABLE table_40990 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text
) | SELECT "Tournament" FROM table_40990 WHERE "Winning score" = '67-61-68-67=263' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
26901,
41,
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,
6,
96,
7286,
122,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
2445,
26901,
549,
17444,
427,
96,
518,
10503,
2604,
121,
3274,
3,
31,
3708,
18,
4241,
18,
3651,
18,
3708,
2423,
357,
3891,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name and city of the airport which is the source for the most number of flight routes. | CREATE TABLE airports (name VARCHAR, city VARCHAR, apid VARCHAR); CREATE TABLE routes (src_apid VARCHAR) | SELECT T1.name, T1.city, T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
7,
41,
4350,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
6,
3,
9,
12417,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
9729,
41,
7,
52,
75,
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,
332,
5411,
4350,
6,
332,
5411,
6726,
6,
332,
4416,
7,
52,
75,
834,
9,
12417,
21680,
3761,
7,
6157,
332,
536,
3,
15355,
3162,
9729,
6157,
332,
357,
9191,
332,
5411,
9,
12417,
3274,
332,
4416,
7,
52,
75,
834,
9,
... |
what is the time/retired when the constructor is maserati and the laps is 90? | CREATE TABLE table_name_74 (
time_retired VARCHAR,
constructor VARCHAR,
laps VARCHAR
) | SELECT time_retired FROM table_name_74 WHERE constructor = "maserati" AND laps = 90 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
6774,
127,
3274,
96,
2754,
15,
6850,
121,
3430,
14941,
7,
3274,
2777,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest total number of finals a club with more than 2 runners-up and fewer than 1 winner went to? | CREATE TABLE table_name_56 (
total_finals INTEGER,
runners_up VARCHAR,
winners VARCHAR
) | SELECT MAX(total_finals) FROM table_name_56 WHERE runners_up > 2 AND winners < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
792,
834,
12406,
7,
3,
21342,
17966,
6,
16448,
834,
413,
584,
4280,
28027,
6,
8969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
235,
1947,
834,
12406,
7,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
16448,
834,
413,
2490,
204,
3430,
8969,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many black/african american patients were born before the year 2052? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.dob_year < "2052" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
6282,
5593,
11425,
3,
17683,
5593,
11425,
121,
3430... |
What is the position for years under 1999? | CREATE TABLE table_name_2 (pos VARCHAR, year INTEGER) | SELECT pos FROM table_name_2 WHERE year < 1999 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
2748,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
21,
203,
365,
5247,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2748,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
215,
3,
2,
5247,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how was patient 035-166 admitted to hospital the last time in a year before? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '035-166' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
7928,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2469,
18,
26811,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
6,
3,
31,
10208,
... |
what's the cover date where character(s) is x-men ; magneto | CREATE TABLE table_1217448_1 (cover_date VARCHAR, character_s_ VARCHAR) | SELECT cover_date FROM table_1217448_1 WHERE character_s_ = "X-Men ; Magneto" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
27693,
3707,
834,
536,
41,
9817,
834,
5522,
584,
4280,
28027,
6,
1848,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
1189,
833,
213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1189,
834,
5522,
21680,
953,
834,
2122,
27693,
3707,
834,
536,
549,
17444,
427,
1848,
834,
7,
834,
3274,
96,
4,
18,
329,
35,
3,
117,
25787,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the lost for matches of 1 928 | CREATE TABLE table_name_66 (lost VARCHAR, matches VARCHAR) | SELECT lost FROM table_name_66 WHERE matches = "1 928" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
2298,
17,
584,
4280,
28027,
6,
6407,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1513,
21,
6407,
13,
209,
668,
2577,
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,
1513,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
6407,
3274,
96,
536,
668,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the duration with mission being sts-87 | CREATE TABLE table_14118521_1 (duration VARCHAR, mission VARCHAR) | SELECT duration FROM table_14118521_1 WHERE mission = "STS-87" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26059,
21594,
2658,
834,
536,
41,
1259,
2661,
584,
4280,
28027,
6,
2253,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
8659,
28,
2253,
271,
3,
7,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8659,
21680,
953,
834,
26059,
21594,
2658,
834,
536,
549,
17444,
427,
2253,
3274,
96,
4209,
134,
18,
4225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What other mozilla has January 2010 as the period? | CREATE TABLE table_64269 (
"Period" text,
"Internet Explorer" text,
"Chrome" text,
"Firefox" text,
"Safari" text,
"Opera" text,
"Other Mozilla" text
) | SELECT "Other Mozilla" FROM table_64269 WHERE "Period" = 'january 2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
357,
3951,
41,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
22912,
15762,
121,
1499,
6,
96,
3541,
11956,
121,
1499,
6,
96,
3183,
60,
20400,
121,
1499,
6,
96,
134,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
189,
49,
30699,
121,
21680,
953,
834,
4389,
357,
3951,
549,
17444,
427,
96,
12988,
23,
32,
26,
121,
3274,
3,
31,
7066,
76,
1208,
2735,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many of those who stayed in the southeast had 19,600 emigrated or forcibly removed? | CREATE TABLE table_name_58 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR) | SELECT number_stayed_in_southeast FROM table_name_58 WHERE total_number_emigrated_or_forcibly_removed = "19,600" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
5525,
1152,
834,
8070,
834,
77,
834,
7,
670,
107,
11535,
584,
4280,
28027,
6,
792,
834,
5525,
1152,
834,
15,
27467,
834,
127,
834,
1161,
75,
15596,
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,
381,
834,
8070,
834,
77,
834,
7,
670,
107,
11535,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
792,
834,
5525,
1152,
834,
15,
27467,
834,
127,
834,
1161,
75,
15596,
834,
60,
7168,
15,
26,
3274,
96,
2294,
6,
... |
What is the name with a death in 2001? | CREATE TABLE table_13033 (
"Rank" real,
"Name" text,
"Country" text,
"Birth" real,
"Death" text
) | SELECT "Name" FROM table_13033 WHERE "Death" = '2001' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
4201,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
279,
23,
52,
189,
121,
490,
6,
96,
2962,
9,
189,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
21448,
4201,
549,
17444,
427,
96,
2962,
9,
189,
121,
3274,
3,
31,
23658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, show me about the distribution of name and the average of code , and group by attribute name in a bar chart, and order total number in descending order please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5411,
2... |
What is the highest selection number for the saskatchewan roughriders team? | CREATE TABLE table_10960039_6 (pick__number INTEGER, cfl_team VARCHAR) | SELECT MAX(pick__number) FROM table_10960039_6 WHERE cfl_team = "Saskatchewan Roughriders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17304,
6007,
3288,
834,
948,
41,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
17304,
6007,
3288,
834,
948,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
134,
9,
7,
8682,
1033,
3877,
391,
4607,
4055,
277,
121,
1,
-100,
... |
what is the admission location of the patient michael witt? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT demographic.admission_location FROM demographic WHERE demographic.name = "Michael Witt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
329,
362,
9,
15,
40,
22632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the manufacturer in the year when the race lasted 2:30:28? | CREATE TABLE table_25216 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT "Manufacturer" FROM table_25216 WHERE "Race Time" = '2:30:28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
27184,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
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,
7296,
76,
8717,
450,
49,
121,
21680,
953,
834,
1828,
27184,
549,
17444,
427,
96,
448,
3302,
2900,
121,
3274,
3,
31,
21876,
10,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which title placed in rank 7? | CREATE TABLE table_name_7 (title VARCHAR, rank VARCHAR) | SELECT title FROM table_name_7 WHERE rank = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
21869,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2233,
2681,
16,
11003,
489,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
11003,
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... |
How many outcomes occur on the date of January 31, 2010? | CREATE TABLE table_26202940_6 (
outcome VARCHAR,
date VARCHAR
) | SELECT COUNT(outcome) FROM table_26202940_6 WHERE date = "January 31, 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1755,
3166,
2445,
834,
948,
41,
6138,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6353,
4093,
30,
8,
833,
13,
1762,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
670,
287,
15,
61,
21680,
953,
834,
2688,
1755,
3166,
2445,
834,
948,
549,
17444,
427,
833,
3274,
96,
30404,
12074,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the average year for janaprakal chandruang | CREATE TABLE table_name_53 (year INTEGER, performing_arts VARCHAR) | SELECT AVG(year) FROM table_name_53 WHERE performing_arts = "janaprakal chandruang" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
1201,
3,
21342,
17966,
6,
5505,
834,
1408,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
215,
21,
3,
7066,
9,
5319,
4766,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
5505,
834,
1408,
7,
3274,
96,
7066,
9,
5319,
4766,
3,
8694,
17548,
1468,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Rank with a Goal number smaller than 66? | CREATE TABLE table_name_29 (rank VARCHAR, goals INTEGER) | SELECT rank FROM table_name_29 WHERE goals < 66 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
6254,
584,
4280,
28027,
6,
1766,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
22557,
28,
3,
9,
17916,
381,
2755,
145,
3,
3539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1766,
3,
2,
3,
3539,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Position has a Venue of berlin, germany? | CREATE TABLE table_name_3 (
position VARCHAR,
venue VARCHAR
) | SELECT position FROM table_name_3 WHERE venue = "berlin, germany" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
1102,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
3,
9,
29940,
13,
3,
27995,
6,
13692,
63,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
5669,
3274,
96,
27995,
6,
13692,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the maximum memory of the model that has a standard memory of 16 mb? | CREATE TABLE table_32801 (
"Model" real,
"Introduction" text,
"Discontinued" text,
"CPU Speed" text,
"Print speed (PPM)" text,
"Standard memory" text,
"Maximum memory" text
) | SELECT "Maximum memory" FROM table_32801 WHERE "Standard memory" = '16 mb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28070,
4542,
41,
96,
24663,
121,
490,
6,
96,
1570,
17,
52,
32,
8291,
121,
1499,
6,
96,
308,
159,
14175,
15,
26,
121,
1499,
6,
96,
254,
10744,
9913,
121,
1499,
6,
96,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21298,
603,
440,
2594,
121,
21680,
953,
834,
28070,
4542,
549,
17444,
427,
96,
134,
17,
232,
986,
2594,
121,
3274,
3,
31,
2938,
3,
51,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the gold for the nation with a record of bronze 1, Syria nation with a grand total less than 1? | CREATE TABLE table_name_25 (gold INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT AVG(gold) FROM table_name_25 WHERE bronze = 1 AND nation = "syria" AND total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
14910,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
13467,
3274,
209,
3430,
2982,
3274,
96,
7,
63,
52,
23,
9,
121,
3430,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the position for pick of 146 | CREATE TABLE table_name_7 (
position VARCHAR,
pick VARCHAR
) | SELECT position FROM table_name_7 WHERE pick = "146" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1102,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1102,
21,
1432,
13,
3,
24300,
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,
1102,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1432,
3274,
96,
24300,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many losing bonus where there when points against is 439? | CREATE TABLE table_12828723_4 (
losing_bonus VARCHAR,
points_against VARCHAR
) | SELECT COUNT(losing_bonus) FROM table_12828723_4 WHERE points_against = "439" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4613,
4225,
2773,
834,
591,
41,
5489,
834,
5407,
302,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
53,
834,
5407,
302,
61,
21680,
953,
834,
2122,
4613,
4225,
2773,
834,
591,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
591,
3288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many 5wi with an average of 33.13? | CREATE TABLE table_28846752_5 (average VARCHAR) | SELECT COUNT(5 AS wi) FROM table_28846752_5 WHERE average = "33.13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4608,
3708,
5373,
834,
755,
41,
28951,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
305,
210,
23,
28,
46,
1348,
13,
5400,
5,
2368,
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,
2847,
17161,
599,
755,
6157,
11064,
61,
21680,
953,
834,
2577,
4608,
3708,
5373,
834,
755,
549,
17444,
427,
1348,
3274,
96,
4201,
5,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who does pregame analysts for TSN2 network when Taylor Twellman is the color commentator? | CREATE TABLE table_8587 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Color commentator" text,
"Sideline reporters" text,
"Pregame host" text,
"Pregame analysts" text
) | SELECT "Pregame analysts" FROM table_8587 WHERE "Color commentator" = 'taylor twellman' AND "Network" = 'tsn2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4433,
4225,
41,
96,
476,
2741,
121,
490,
6,
96,
9688,
1981,
121,
1499,
6,
96,
15800,
18,
969,
18,
4895,
121,
1499,
6,
96,
3881,
322,
1670,
1016,
121,
1499,
6,
96,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10572,
7261,
15639,
121,
21680,
953,
834,
4433,
4225,
549,
17444,
427,
96,
3881,
322,
1670,
1016,
121,
3274,
3,
31,
17,
9,
63,
322,
3,
17,
2091,
348,
31,
3430,
96,
9688,
1981,
121,
3274,
3,
31,
17,
7,
29,
... |
What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari? | CREATE TABLE table_name_30 (
miss_maja_pilipinas VARCHAR,
binibining_pilipinas_tourism VARCHAR,
binibining_pilipinas_universe VARCHAR
) | SELECT miss_maja_pilipinas FROM table_name_30 WHERE binibining_pilipinas_tourism = "not awarded" AND binibining_pilipinas_universe = "anjanette abayari" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
3041,
834,
16547,
9,
834,
102,
173,
23,
3180,
9,
7,
584,
4280,
28027,
6,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
30712,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3041,
834,
16547,
9,
834,
102,
173,
23,
3180,
9,
7,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
30712,
3274,
96,
2264,
5539,
121,
3430,
2701,
23,
45... |
What is the 2002 result where 2011 and 2000 are 1R? | CREATE TABLE table_name_22 (Id VARCHAR) | SELECT 2002 FROM table_name_22 WHERE 2011 = "1r" AND 2000 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4407,
741,
213,
2722,
11,
2766,
33,
209,
448,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4407,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
2722,
3274,
96,
536,
52,
121,
3430,
2766,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the high points for score being l 92 100 (ot) | CREATE TABLE table_21294 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_21294 WHERE "Score" = 'L 92–100 (OT)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
4240,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
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,
21417,
979,
121,
21680,
953,
834,
24837,
4240,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
434,
3,
4508,
104,
2915,
41,
6951,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000? | CREATE TABLE table_name_21 (director_s_ VARCHAR, prize VARCHAR, film VARCHAR) | SELECT director_s_ FROM table_name_21 WHERE prize = "¥300,000" AND film = "hanzubon no ojisan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
25982,
834,
7,
834,
584,
4280,
28027,
6,
6441,
584,
4280,
28027,
6,
814,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2578,
599,
7,
61,
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,
2090,
834,
7,
834,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
6441,
3274,
96,
2,
5426,
6,
2313,
121,
3430,
814,
3274,
96,
2618,
1000,
5407,
150,
3,
21892,
7,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the away team when Queensland Roar was the home team in the round less than 3? | CREATE TABLE table_79638 (
"Round" real,
"Date" text,
"Home Team" text,
"Away Team" text,
"Attendance" real,
"Stadium" text
) | SELECT "Away Team" FROM table_79638 WHERE "Round" < '3' AND "Home Team" = 'queensland roar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4314,
3747,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
188,
1343,
2271,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
2271,
121,
21680,
953,
834,
940,
4314,
3747,
549,
17444,
427,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
19040,
2271,
121,
3274,
3,
31,
835,
35,
7,
40,
232,
3,
25202,
31,
1,
-100,
... |
How many years have a longitude measure of 20.0e? | CREATE TABLE table_16799784_9 (year_named VARCHAR, longitude VARCHAR) | SELECT COUNT(year_named) FROM table_16799784_9 WHERE longitude = "20.0E" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4440,
21441,
591,
834,
1298,
41,
1201,
834,
4350,
26,
584,
4280,
28027,
6,
307,
20341,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
43,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
834,
4350,
26,
61,
21680,
953,
834,
2938,
4440,
21441,
591,
834,
1298,
549,
17444,
427,
307,
20341,
3274,
96,
357,
11739,
427,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the builder of Gannet from the United Kingdom? | CREATE TABLE table_name_60 (
builder VARCHAR,
country VARCHAR,
ship VARCHAR
) | SELECT builder FROM table_name_60 WHERE country = "united kingdom" AND ship = "gannet" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
918,
49,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
918,
49,
13,
17980,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
49,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
14740,
121,
3430,
4383,
3274,
96,
2565,
1582,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose marital status is divorced and procedure long title is other open incisional hernia repair with graft or prosthesis? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.long_title = "Other open incisional hernia repair with graft or prosthesis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the maximum pages per minute for the Xerox Travel Scanner 100? | CREATE TABLE table_16409745_1 (
pages_per_minute__color_ INTEGER,
product VARCHAR
) | SELECT MAX(pages_per_minute__color_) FROM table_16409745_1 WHERE product = "Xerox Travel Scanner 100" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2445,
4327,
2128,
834,
536,
41,
1688,
834,
883,
834,
6890,
834,
834,
9910,
834,
3,
21342,
17966,
6,
556,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6492,
7,
834,
883,
834,
6890,
834,
834,
9910,
834,
61,
21680,
953,
834,
2938,
2445,
4327,
2128,
834,
536,
549,
17444,
427,
556,
3274,
96,
4,
15,
12907,
4983,
180,
1608,
687,
910,
121,
1,
-100,
-100,
... |
what is maximum days of hospital stay of patients whose admission location is clinic referral/premature? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
254,
20931,
4666,
4083,
20805,
21415,
87,
5554,
20211,
25380,
121,
1,
-100,
-100,
-1... |
Which customer made the smallest amount of claim in one claim? Return the customer details. | CREATE TABLE staff (
staff_id number,
staff_details text
)
CREATE TABLE claims_processing_stages (
claim_stage_id number,
next_claim_stage_id number,
claim_status_name text,
claim_status_description text
)
CREATE TABLE claim_headers (
claim_header_id number,
claim_status_code text,
... | SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT MIN(amount_piad) FROM claim_headers) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
41,
871,
834,
23,
26,
381,
6,
871,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3213,
834,
15056,
53,
834,
10705,
7,
41,
1988,
834,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5787,
25697,
49,
834,
221,
5756,
7,
21680,
1988,
834,
3313,
277,
6157,
3,
17,
536,
3,
15355,
3162,
3101,
6157,
3,
17,
357,
9191,
3,
17,
5411,
3233,
17686,
834,
23,
26,
3274,
3,
17,
4416,
3233,
17686,
834,... |
When vp8 ( webm ) is 6.0, how much is the vp9 ( webm )? | CREATE TABLE table_26099252_1 (
vp9___webm__ VARCHAR,
vp8___webm__ VARCHAR
) | SELECT vp9___webm__ FROM table_26099252_1 WHERE vp8___webm__ = "6.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
3264,
1828,
357,
834,
536,
41,
3,
208,
102,
1298,
834,
834,
834,
8398,
51,
834,
834,
584,
4280,
28027,
6,
3,
208,
102,
927,
834,
834,
834,
8398,
51,
834,
834,
584,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
208,
102,
1298,
834,
834,
834,
8398,
51,
834,
834,
21680,
953,
834,
18365,
3264,
1828,
357,
834,
536,
549,
17444,
427,
3,
208,
102,
927,
834,
834,
834,
8398,
51,
834,
834,
3274,
96,
22642,
121,
1,
-100,
-100,
... |
What is the record when the Nuggets are the home team? | CREATE TABLE table_name_33 (record VARCHAR, home VARCHAR) | SELECT record FROM table_name_33 WHERE home = "nuggets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
60,
7621,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
116,
8,
1174,
122,
2782,
7,
33,
8,
234,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
234,
3274,
96,
29,
13917,
15,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the draft pick that went to college at Oral Roberts? | CREATE TABLE table_name_44 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_44 WHERE college = "oral roberts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
20846,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
6488,
1432,
24,
877,
12,
1900,
44,
955,
138,
2715,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1900,
3274,
96,
8563,
3,
5840,
49,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Winner has a Score of 1 0, and a Season of 2011 12? | CREATE TABLE table_name_30 (
winner VARCHAR,
score VARCHAR,
season VARCHAR
) | SELECT winner FROM table_name_30 WHERE score = "1 – 0" AND season = "2011–12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
4668,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
18125,
65,
3,
9,
17763,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
2604,
3274,
96,
536,
3,
104,
3,
632,
121,
3430,
774,
3274,
96,
13907,
104,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which week had the song choice ' empire state of mind (part ii) broken down '? | CREATE TABLE table_74420 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Week #" FROM table_74420 WHERE "Song choice" = ' Empire State of Mind (Part II) Broken Down ' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
21899,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10266,
1713,
121,
21680,
953,
834,
4581,
21899,
549,
17444,
427,
96,
134,
2444,
1160,
121,
3274,
3,
31,
12187,
1015,
13,
8477,
41,
13725,
2466,
61,
29770,
7309,
3,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who won the 250cc in 1927? | CREATE TABLE table_name_31 (year VARCHAR) | SELECT 250 AS _cc FROM table_name_31 WHERE year = "1927" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
8,
5986,
75,
75,
16,
957,
2555,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5986,
6157,
3,
834,
75,
75,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
215,
3274,
96,
2294,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the leading scorer of the Villa De Los Barrios visitor? | CREATE TABLE table_41351 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
) | SELECT "Leading scorer" FROM table_41351 WHERE "Visitor" = 'villa de los barrios' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
2469,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2796,
9,
26,
53,
2604,
52,
121,
21680,
953,
834,
4853,
2469,
536,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
24887,
20,
10381,
1207,
10305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the names of states that have some college students playing in goalie and mid positions. | CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) | SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
75,
23954,
584,
4280,
28027,
6,
3,
102,
345,
32,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
5540,
584,
4280,
28027,
6,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
5540,
21680,
1900,
6157,
332,
536,
3,
15355,
3162,
653,
670,
6157,
332,
357,
9191,
332,
5411,
75,
23954,
3274,
332,
4416,
75,
23954,
549,
17444,
427,
332,
4416,
102,
345,
32,
7,
3274,
3,
31,
839,
9,
189... |
What was the final score when the attendance was 25598? | CREATE TABLE table_24606 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
) | SELECT "Final Score" FROM table_24606 WHERE "Attendance" = '25598' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3328,
948,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
371,
10270,
1776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10270,
17763,
121,
21680,
953,
834,
2266,
3328,
948,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
25502,
3916,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients whose year of death is less than or equal to 2112 and procedure short title is coronar arteriogr-2 cath? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2112.0" AND procedures.short_title = "Coronar arteriogr-2 cath" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who danced the Samba on October 14, 2008? | CREATE TABLE table_62177 (
"Date" text,
"Round" real,
"Pair" text,
"Ages" text,
"Dance" text,
"Song" text
) | SELECT "Pair" FROM table_62177 WHERE "Date" = 'october 14, 2008' AND "Dance" = 'samba' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
26793,
41,
96,
308,
342,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
2256,
121,
1499,
6,
96,
188,
2897,
121,
1499,
6,
96,
308,
663,
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,
345,
2256,
121,
21680,
953,
834,
4056,
26793,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
11363,
2628,
31,
3430,
96,
308,
663,
121,
3274,
3,
31,
7,
14303,
31,
1,
-100,
-100,
-100,
-10... |
Name the date for raymond james stadium | CREATE TABLE table_24427210_1 (
date VARCHAR,
stadium VARCHAR
) | SELECT date FROM table_24427210_1 WHERE stadium = "Raymond James stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3628,
2555,
15239,
834,
536,
41,
833,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
3,
2866,
6764,
7620,
15,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
3628,
2555,
15239,
834,
536,
549,
17444,
427,
14939,
3274,
96,
25619,
6764,
2549,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the hometown of rachel muyot soriano? | CREATE TABLE table_name_67 (
hometown VARCHAR,
delegate VARCHAR
) | SELECT hometown FROM table_name_67 WHERE delegate = "rachel muyot soriano" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
22295,
584,
4280,
28027,
6,
20,
8791,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
22295,
13,
3,
52,
9,
8738,
4035,
63,
32,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22295,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
20,
8791,
3274,
96,
52,
9,
8738,
4035,
63,
32,
17,
78,
5288,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, give me the comparison about the average of manufacturer over the name , and group by attribute name, and could you order X from high to low order please? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
7296,
76,
8717,
450,
49,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
What is the number of wins when there are 14 matches, and the No Result was less than 0? | CREATE TABLE table_name_94 (wins INTEGER, matches VARCHAR, no_result VARCHAR) | SELECT AVG(wins) FROM table_name_94 WHERE matches = 14 AND no_result < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
3757,
7,
3,
21342,
17966,
6,
6407,
584,
4280,
28027,
6,
150,
834,
60,
7,
83,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
6407,
3274,
968,
3430,
150,
834,
60,
7,
83,
17,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Fred Couples' score? | CREATE TABLE table_name_15 (
score VARCHAR,
player VARCHAR
) | SELECT COUNT(score) FROM table_name_15 WHERE player = "fred couples" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
12264,
25185,
7,
31,
2604,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
9022,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1959,
3274,
96,
89,
1271,
11992,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the high points for score being l 92–100 (ot) | CREATE TABLE table_17102076_5 (high_points VARCHAR, score VARCHAR) | SELECT high_points FROM table_17102076_5 WHERE score = "L 92–100 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1714,
1755,
3959,
834,
755,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
306,
979,
21,
2604,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
2517,
1714,
1755,
3959,
834,
755,
549,
17444,
427,
2604,
3274,
96,
434,
3,
4508,
104,
2915,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Week 10 Nov 2 has a Week 14 Nov 30 of penn state (11-1)? | CREATE TABLE table_5690 (
"Week 6 Oct 5" text,
"Week 7 Oct 12" text,
"Week 9 Oct 26" text,
"Week 10 Nov 2" text,
"Week 11 Nov 9" text,
"Week 13 Nov 23" text,
"Week 14 Nov 30" text,
"Week 15 (Final) Dec 7" text
) | SELECT "Week 10 Nov 2" FROM table_5690 WHERE "Week 14 Nov 30" = 'penn state (11-1)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
2394,
41,
96,
518,
10266,
431,
6416,
3,
17395,
1499,
6,
96,
518,
10266,
489,
6416,
586,
121,
1499,
6,
96,
518,
10266,
668,
6416,
2208,
121,
1499,
6,
96,
518,
10266,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10266,
335,
5098,
204,
121,
21680,
953,
834,
4834,
2394,
549,
17444,
427,
96,
518,
10266,
968,
5098,
604,
121,
3274,
3,
31,
3208,
29,
538,
41,
2596,
18,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many times was the participation at omni coliseum 7,194? | CREATE TABLE table_805 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Game" FROM table_805 WHERE "Location Attendance" = 'Omni Coliseum 7,194' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
755,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
121,
21680,
953,
834,
2079,
755,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
667,
51,
29,
23,
3043,
159,
15,
440,
7973,
2294,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the distinct address type codes for all customer addresses? | CREATE TABLE mailshot_customers (
mailshot_id number,
customer_id number,
outcome_code text,
mailshot_customer_date time
)
CREATE TABLE premises (
premise_id number,
premises_type text,
premise_details text
)
CREATE TABLE products (
product_id number,
product_category text,
pro... | SELECT DISTINCT address_type_code FROM customer_addresses | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4842,
11159,
834,
25697,
277,
41,
4842,
11159,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
6138,
834,
4978,
1499,
6,
4842,
11159,
834,
25697,
49,
834,
5522,
97,
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,
3,
15438,
25424,
6227,
1115,
834,
6137,
834,
4978,
21680,
884,
834,
9,
26,
12039,
15,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Record has a Date of may 31? | CREATE TABLE table_name_55 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_55 WHERE date = "may 31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
11392,
65,
3,
9,
7678,
13,
164,
2664,
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,
1368,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
833,
3274,
96,
13726,
2664,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the language is only native, what is the percentage of the San Antonio de Lomerio municipality? | CREATE TABLE table_23467 (
"Language" text,
"Concepci\u00f3n Municipality (%)" real,
"San Javier Municipality (%)" real,
"San Ram\u00f3n Municipality (%)" real,
"San Juli\u00e1n Municipality (%)" real,
"San Antonio de Lomer\u00edo Municipality (%)" text,
"Cuatro Ca\u00f1adas Municipality (%)... | SELECT "San Antonio de Lomer\u00edo Municipality (%)" FROM table_23467 WHERE "Language" = 'Only native' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3710,
3708,
41,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
4302,
565,
102,
75,
23,
2,
76,
1206,
89,
519,
29,
16492,
485,
41,
6210,
121,
490,
6,
96,
134,
152,
2215,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
152,
12923,
20,
1815,
935,
2,
76,
1206,
15,
26,
32,
16492,
485,
41,
6210,
121,
21680,
953,
834,
357,
3710,
3708,
549,
17444,
427,
96,
434,
1468,
76,
545,
121,
3274,
3,
31,
7638,
120,
4262,
31,
1,
-100,
... |
Which Year(s) of manufacture has a Quantity of 2, and a Type of b n2t? | CREATE TABLE table_64345 (
"Class" text,
"Railway number(s)" text,
"Quantity" real,
"Year(s) of manufacture" text,
"Type" text
) | SELECT "Year(s) of manufacture" FROM table_64345 WHERE "Quantity" = '2' AND "Type" = 'b n2t' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
519,
2128,
41,
96,
21486,
121,
1499,
6,
96,
448,
9,
173,
1343,
381,
599,
7,
61,
121,
1499,
6,
96,
5991,
288,
485,
121,
490,
6,
96,
476,
2741,
599,
7,
61,
13,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
599,
7,
61,
13,
9421,
121,
21680,
953,
834,
4389,
519,
2128,
549,
17444,
427,
96,
5991,
288,
485,
121,
3274,
3,
31,
357,
31,
3430,
96,
25160,
121,
3274,
3,
31,
115,
3,
29,
357,
17,
31,
1,
-100,
... |
What is the team's record when vancouver was at home? | CREATE TABLE table_36588 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Record" FROM table_36588 WHERE "Home" = 'vancouver' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10402,
4060,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
1649,
7621,
121,
21680,
953,
834,
10402,
4060,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
2132,
3422,
624,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
From where did Train No. 15929/30 originate? | CREATE TABLE table_name_15 (
origin VARCHAR,
train_no VARCHAR
) | SELECT origin FROM table_name_15 WHERE train_no = "15929/30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
5233,
584,
4280,
28027,
6,
2412,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1029,
213,
410,
15059,
465,
5,
3,
27904,
3166,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5233,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
2412,
834,
29,
32,
3274,
96,
27904,
3166,
87,
1458,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the smallest crowd at a game when Richmond was the away team? | CREATE TABLE table_name_6 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MIN(crowd) FROM table_name_6 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
17924,
4374,
44,
3,
9,
467,
116,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the most races with less than 10 podiums and 1st position? | CREATE TABLE table_46540 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
) | SELECT MAX("Races") FROM table_46540 WHERE "Position" = '1st' AND "Podiums" < '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
25379,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
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,
4800,
4,
599,
121,
448,
9,
2319,
8512,
21680,
953,
834,
4448,
25379,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
536,
7,
17,
31,
3430,
96,
16665,
2552,
7,
121,
3,
2,
3,
31,
1714,
31,
1,
-100,
-1... |
What are the id and name of the mountains that have at least 2 photos? | CREATE TABLE camera_lens (
id number,
brand text,
name text,
focal_length_mm number,
max_aperture number
)
CREATE TABLE photos (
id number,
camera_lens_id number,
mountain_id number,
color text,
name text
)
CREATE TABLE mountain (
id number,
name text,
height number... | SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1861,
834,
40,
35,
7,
41,
3,
23,
26,
381,
6,
1056,
1499,
6,
564,
1499,
6,
15949,
834,
19457,
834,
635,
381,
6,
9858,
834,
9,
883,
2693,
381,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23,
26,
6,
332,
5411,
4350,
21680,
4180,
6157,
332,
536,
3,
15355,
3162,
1302,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
11231,
9,
77,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
5411,
... |
what is the number of patients whose age is less than 64 and procedure short title is open reduc-int fix femur? | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "64" AND procedures.short_title = "Open reduc-int fix femur" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many employees do we have? | CREATE TABLE Employee (Id VARCHAR) | SELECT COUNT(*) FROM Employee | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15871,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1652,
103,
62,
43,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
15871,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the save of the game on September 15? | CREATE TABLE table_39265 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | SELECT "Save" FROM table_39265 WHERE "Date" = 'september 15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
357,
4122,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
23163,
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,
23163,
121,
21680,
953,
834,
3288,
357,
4122,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
627,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the director of the series ' House of Cards ' produced by Netflix ? | CREATE TABLE producer (
pid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE genre (
gid int,
genre text
)
CREATE TABLE keyword (
id int,
keyword text
)
CREATE TABLE classification (
id int,
msid int,
gid int
)
CREATE T... | SELECT director.name FROM company, copyright, directed_by, director, tv_series WHERE company.name = 'Netflix' AND copyright.cid = company.id AND director.did = directed_by.did AND tv_series.sid = copyright.msid AND tv_series.sid = directed_by.msid AND tv_series.title = 'House of Cards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8211,
41,
3,
12417,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2090,
5,
4350,
21680,
349,
6,
2405,
3535,
6,
6640,
834,
969,
6,
2090,
6,
3,
17,
208,
834,
10833,
7,
549,
17444,
427,
349,
5,
4350,
3274,
3,
31,
9688,
89,
17591,
31,
3430,
2405,
3535,
5,
10812,
3274,
349,
5,
23... |
What was the release date for Production Number 8181? | CREATE TABLE table_62990 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
) | SELECT "Release date" FROM table_62990 WHERE "Production Num." = '8181' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
26901,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
8291,
1174,
51,
535,
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,
1649,
40,
14608,
833,
121,
21680,
953,
834,
4056,
26901,
549,
17444,
427,
96,
3174,
8291,
1174,
51,
535,
3274,
3,
31,
4959,
4959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
The Europe listing of 117 0 (8) belongs to what league? | CREATE TABLE table_68719 (
"Name" text,
"Years" text,
"League" text,
"FA Cup" text,
"League Cup" text,
"Europe" text,
"Other [C ]" text,
"Total" text
) | SELECT "League" FROM table_68719 WHERE "Europe" = '117 0 (8)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
940,
2294,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
4795,
3802,
121,
1499,
6,
96,
2796,
9,
5398,
3802,
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,
2796,
9,
5398,
121,
21680,
953,
834,
3651,
940,
2294,
549,
17444,
427,
96,
11351,
121,
3274,
3,
31,
20275,
3,
632,
3,
28007,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Band has a Ratio of 9/9? | CREATE TABLE table_40435 (
"Band" text,
"Value" text,
"Ratio" text,
"Ratio as %" text,
"Average" text
) | SELECT "Band" FROM table_40435 WHERE "Ratio" = '9/9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25285,
2469,
41,
96,
279,
232,
121,
1499,
6,
96,
18392,
76,
15,
121,
1499,
6,
96,
448,
144,
23,
32,
121,
1499,
6,
96,
448,
144,
23,
32,
38,
3,
1454,
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,
279,
232,
121,
21680,
953,
834,
25285,
2469,
549,
17444,
427,
96,
448,
144,
23,
32,
121,
3274,
3,
31,
1298,
87,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total number of premiership years of the four corners club ? | CREATE TABLE table_204_198 (
id number,
"club" text,
"nickname" text,
"no. of premierships" number,
"premiership years" text,
"moved to" text
) | SELECT "no. of premierships" FROM table_204_198 WHERE "club" = 'four corners' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
24151,
41,
3,
23,
26,
381,
6,
96,
13442,
121,
1499,
6,
96,
11191,
4350,
121,
1499,
6,
96,
29,
32,
5,
13,
2761,
2009,
7,
121,
381,
6,
96,
2026,
51,
972,
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,
29,
32,
5,
13,
2761,
2009,
7,
121,
21680,
953,
834,
26363,
834,
24151,
549,
17444,
427,
96,
13442,
121,
3274,
3,
31,
12521,
13518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what team is before team botswana in column team 1 ? | CREATE TABLE table_204_324 (
id number,
"team 1" text,
"agg." text,
"team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "team 1" FROM table_204_324 WHERE id = (SELECT id FROM table_204_324 WHERE "team 1" = 'botswana') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
2266,
41,
3,
23,
26,
381,
6,
96,
11650,
209,
121,
1499,
6,
96,
9,
4102,
535,
1499,
6,
96,
11650,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
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,
11650,
209,
121,
21680,
953,
834,
26363,
834,
519,
2266,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
519,
2266,
549,
17444,
427,
96,
11650,
209,
121,
3274,
3,
31... |
Who is the director of Cannibal vegetarian, which is the film title used in nomination? | CREATE TABLE table_name_92 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR) | SELECT director_s_ FROM table_name_92 WHERE film_title_used_in_nomination = "cannibal vegetarian" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
25982,
834,
7,
834,
584,
4280,
28027,
6,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2090,
834,
7,
834,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
3274,
96,
75,
14431,
3849,
16364,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the license award date for the ensemble from South Wales and the Severn Estuary that was on air in July 2001? | CREATE TABLE table_name_67 (
licence_award_date VARCHAR,
on_air_date VARCHAR,
region VARCHAR
) | SELECT licence_award_date FROM table_name_67 WHERE on_air_date = "july 2001" AND region = "south wales and the severn estuary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
11629,
834,
9,
2239,
834,
5522,
584,
4280,
28027,
6,
30,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11629,
834,
9,
2239,
834,
5522,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
30,
834,
2256,
834,
5522,
3274,
96,
2047,
120,
4402,
121,
3430,
1719,
3274,
96,
7,
670,
107,
3,
210,
4529,
11,
8,
3,
7,
3258,
29... |
Who is the Driver, when the Date is October 6? | CREATE TABLE table_42130 (
"Season" real,
"Date" text,
"Location" text,
"Driver" text,
"Chassis" text,
"Engine" text,
"Team" text
) | SELECT "Driver" FROM table_42130 WHERE "Date" = 'october 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
21448,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
3541,
6500,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
4165,
21448,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total sack for mike green when fumr is less than 0? | CREATE TABLE table_name_40 (sack INTEGER, player VARCHAR, fumr VARCHAR) | SELECT SUM(sack) FROM table_name_40 WHERE player = "mike green" AND fumr < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
15525,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
11349,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
792,
3,
15525,
21,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15525,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1959,
3274,
96,
20068,
15,
1442,
121,
3430,
11349,
52,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When svein tuft is the winner what is the highest stage? | CREATE TABLE table_30463 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Team classification" text
) | SELECT MAX("Stage") FROM table_30463 WHERE "Winner" = 'Svein Tuft' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23702,
3891,
41,
96,
134,
6505,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
6505,
8512,
21680,
953,
834,
23702,
3891,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
134,
162,
77,
2740,
89,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Return the average price of products that have each category code. | CREATE TABLE Complaints (
complaint_id INTEGER,
product_id INTEGER,
customer_id INTEGER,
complaint_outcome_code VARCHAR(20),
complaint_status_code VARCHAR(20),
complaint_type_code VARCHAR(20),
date_complaint_raised DATETIME,
date_complaint_closed DATETIME,
staff_id INTEGER
)
CREATE ... | SELECT product_category_code, AVG(product_price) FROM Products GROUP BY product_category_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2570,
18689,
17,
7,
41,
10394,
834,
23,
26,
3,
21342,
17966,
6,
556,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
10394,
834,
670,
287,
15,
834,
4978,
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,
556,
834,
8367,
839,
651,
834,
4978,
6,
71,
17217,
599,
15892,
834,
102,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
556,
834,
8367,
839,
651,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many 10wi and bbi is 6/101 | CREATE TABLE table_28846752_5 (
bbi VARCHAR
) | SELECT COUNT(10 AS wi) FROM table_28846752_5 WHERE bbi = "6/101" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4608,
3708,
5373,
834,
755,
41,
3,
115,
115,
23,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
335,
210,
23,
11,
3,
115,
115,
23,
19,
431,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1714,
6157,
11064,
61,
21680,
953,
834,
2577,
4608,
3708,
5373,
834,
755,
549,
17444,
427,
3,
115,
115,
23,
3274,
96,
948,
87,
19621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the pronunciation for meaning b of border, frontier | CREATE TABLE table_name_64 (pronunciation_b VARCHAR, meaning_b VARCHAR) | SELECT pronunciation_b FROM table_name_64 WHERE meaning_b = "border, frontier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
1409,
29,
15254,
257,
834,
115,
584,
4280,
28027,
6,
2530,
834,
115,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
30637,
21,
2530,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
30637,
834,
115,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
2530,
834,
115,
3274,
96,
24678,
6,
20515,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.