NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who was the jockey when the owner was Richard Pegum? | CREATE TABLE table_name_75 (
jockey VARCHAR,
owner VARCHAR
) | SELECT jockey FROM table_name_75 WHERE owner = "richard pegum" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
8624,
4397,
584,
4280,
28027,
6,
2527,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
8624,
4397,
116,
8,
2527,
47,
4117,
1276,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8624,
4397,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2527,
3274,
96,
3723,
986,
158,
122,
440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the smallest number of gold medals a country with 1 bronze, and a total of 3 medals which is lower than rank 7? | CREATE TABLE table_name_48 (gold INTEGER, rank VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT MIN(gold) FROM table_name_48 WHERE bronze = 1 AND total = 3 AND rank > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
14910,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
792,
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,
3,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
13467,
3274,
209,
3430,
792,
3274,
220,
3430,
11003,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Country has a Winter Olympics of 1948? | CREATE TABLE table_name_28 (country VARCHAR, winter_olympics VARCHAR) | SELECT country FROM table_name_28 WHERE winter_olympics = "1948" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
17529,
584,
4280,
28027,
6,
2265,
834,
32,
120,
51,
6174,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6993,
65,
3,
9,
4272,
17793,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2577,
549,
17444,
427,
2265,
834,
32,
120,
51,
6174,
7,
3274,
96,
2294,
3707,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the total number of Win % with an Appearances of 4, and Losses that's larger than 3? | CREATE TABLE table_name_78 (win__percentage VARCHAR, appearances VARCHAR, losses VARCHAR) | SELECT COUNT(win__percentage) FROM table_name_78 WHERE appearances = 4 AND losses > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
3757,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
3179,
7,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
3179,
7,
3274,
314,
3430,
8467,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What did the home team when they played Richmond? | CREATE TABLE table_55354 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_55354 WHERE "Away team" = 'richmond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
2469,
591,
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,
19040,
372,
2604,
121,
21680,
953,
834,
3769,
2469,
591,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
3723,
6764,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What tonnage was built in 2007? | CREATE TABLE table_name_75 (tonnage VARCHAR, built VARCHAR) | SELECT tonnage FROM table_name_75 WHERE built = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
17,
106,
9761,
584,
4280,
28027,
6,
1192,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
12,
29,
9761,
47,
1192,
16,
4101,
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,
12,
29,
9761,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1192,
3274,
4101,
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 patients who had a potassium lab test stayed in hospital for more than 11 days? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "11" AND lab.label = "Potassium" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
how many patients are admitted under elective type and diagnosed with icd9 code 42789? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.icd9_code = "42789" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
provide the number of patients whose admission type is emergency and admission location is phys referral/normal deli? | 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 WHERE demographic.admission_type = "EMERGENCY" AND demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
9,
26,
5451,
83... |
What was the average number of silver medals won by France when they are ranked higher than 8? | CREATE TABLE table_14525 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Silver") FROM table_14525 WHERE "Nation" = 'france' AND "Rank" > '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
1828,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
173,
624,
8512,
21680,
953,
834,
20987,
1828,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
89,
5219,
31,
3430,
96,
22557,
121,
2490,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Where the number of exports are 6,099.06, what is the total trade? | CREATE TABLE table_26160007_1 (
total_trade VARCHAR,
exports VARCHAR
) | SELECT total_trade FROM table_26160007_1 WHERE exports = "6,099.06" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2938,
2313,
940,
834,
536,
41,
792,
834,
16628,
584,
4280,
28027,
6,
4202,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
8,
381,
13,
4202,
7,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
792,
834,
16628,
21680,
953,
834,
2688,
2938,
2313,
940,
834,
536,
549,
17444,
427,
4202,
7,
3274,
96,
11071,
4198,
8797,
5176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest FT pct of player abromaitis, who has a 3FG pct less than 12.5? | CREATE TABLE table_7428 (
"Player" text,
"FG Pct" real,
"3FGM" real,
"3FGA" real,
"3FG Pct" real,
"FT Pct" real,
"Off Reb" real,
"Def Reb" real,
"Total Reb" real,
"Asst" real
) | SELECT MAX("FT Pct") FROM table_7428 WHERE "Player" = 'abromaitis' AND "3FG Pct" < '12.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
2577,
41,
96,
15800,
49,
121,
1499,
6,
96,
22807,
276,
75,
17,
121,
490,
6,
96,
519,
371,
7381,
121,
490,
6,
96,
519,
371,
6302,
121,
490,
6,
96,
519,
22807,
276,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6245,
276,
75,
17,
8512,
21680,
953,
834,
4581,
2577,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
9,
5702,
6840,
17,
159,
31,
3430,
96,
519,
22807,
276,
75,
17,
121,
3,
2,
3,
31,
9368,... |
What is the Onehunga school with a decile 3 and smaller than 310 rolls? | CREATE TABLE table_name_17 (
name VARCHAR,
area VARCHAR,
decile VARCHAR,
roll VARCHAR
) | SELECT name FROM table_name_17 WHERE decile = "3" AND roll < 310 AND area = "onehunga" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
564,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
6,
7908,
109,
584,
4280,
28027,
6,
3812,
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,
1,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
7908,
109,
3274,
96,
519,
121,
3430,
3812,
3,
2,
3,
19947,
3430,
616,
3274,
96,
782,
6668,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which team had a league of regionalliga s d? | CREATE TABLE table_59795 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | SELECT "Teams" FROM table_59795 WHERE "League" = 'regionalliga süd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
940,
3301,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18699,
7,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
7,
121,
21680,
953,
834,
3390,
940,
3301,
549,
17444,
427,
96,
2796,
9,
5398,
121,
3274,
3,
31,
18145,
138,
17140,
3,
7,
1272,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which venue does Fitzroy play as an away team? | CREATE TABLE table_12064 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_12064 WHERE "Away team" = 'fitzroy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
4389,
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,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
15518,
4389,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
89,
5615,
8170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What day is hawthorn the away side? | CREATE TABLE table_name_23 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_23 WHERE away_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
19,
4244,
210,
17,
6293,
8,
550,
596,
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,
833,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the most extra points? | CREATE TABLE table_1002 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MAX("Extra points") FROM table_1002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
357,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
7681,
449,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
5420,
1313,
979,
8512,
21680,
953,
834,
2915,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average games of Tony Dixon? | CREATE TABLE table_37801 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" real,
"Class" text,
"Hometown" text,
"Games\u2191" real
) | SELECT AVG("Games\u2191") FROM table_37801 WHERE "Name" = 'tony dixon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
2079,
536,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
23055,
7,
2,
76,
2658,
4729,
8512,
21680,
953,
834,
4118,
2079,
536,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17,
106,
63,
20679,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is February, when Record is '21-29-11'? | CREATE TABLE table_name_46 (
february VARCHAR,
record VARCHAR
) | SELECT february FROM table_name_46 WHERE record = "21-29-11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
29976,
76,
1208,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2083,
6,
116,
11392,
19,
3,
31,
2658,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29976,
76,
1208,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1368,
3274,
96,
2658,
18,
3166,
9169,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what season is Victoria the Opponent? | CREATE TABLE table_name_97 (
season VARCHAR,
opponent VARCHAR
) | SELECT season FROM table_name_97 WHERE opponent = "victoria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
774,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
774,
19,
7488,
8,
4495,
9977,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
15264,
3274,
96,
7287,
3600,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who did not have any job in the past, give me the comparison about the sum of salary over the job_id , and group by attribute job_id, and rank sum salary from high to low order please. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0... | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(SALARY) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613,
834... |
What are the purchase details of transactions with amount bigger than 10000, and count them by a bar chart, list by the the number of purchase details from low to high. | CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_det... | SELECT purchase_details, COUNT(purchase_details) FROM Purchases AS T1 JOIN Transactions AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 GROUP BY purchase_details ORDER BY COUNT(purchase_details) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
7,
834,
434,
32,
17,
7,
41,
5878,
834,
23,
26,
3,
21342,
17966,
6,
418,
834,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
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,
1242,
834,
221,
5756,
7,
6,
2847,
17161,
599,
29446,
834,
221,
5756,
7,
61,
21680,
14839,
7,
6157,
332,
536,
3,
15355,
3162,
21469,
7,
6157,
332,
357,
9191,
332,
5411,
29446,
834,
7031,
4787,
834,
23,
26,
3274,
33... |
What is T3 Place Player Bobby Locke's Score? | CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR) | SELECT score FROM table_name_40 WHERE place = "t3" AND player = "bobby locke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
7,
9022,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
332,
519,
3399,
12387,
21395,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
286,
3274,
96,
17,
519,
121,
3430,
1959,
3274,
96,
17396,
969,
6081,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What driver has more than 39 laps on gird 15? | CREATE TABLE table_name_67 (driver VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_67 WHERE laps > 39 AND grid = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
13739,
52,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2535,
65,
72,
145,
6352,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
14941,
7,
2490,
6352,
3430,
8634,
3274,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of clinic referred patients who had premature hospital admission with continuous invasive mechanical ventilation for less than 96 consecutive hours. | 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.admission_location = "CLINIC REFERRAL/PREMATURE" AND procedures.short_title = "Cont inv mec ven <96 hrs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the call sign of the translator in Spring Valley, Nevada? | CREATE TABLE table_75355 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT "Call sign" FROM table_75355 WHERE "City of license" = 'spring valley, nevada' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
2469,
755,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
1748,
1320,
121,
21680,
953,
834,
3072,
2469,
755,
549,
17444,
427,
96,
254,
485,
13,
3344,
121,
3274,
3,
31,
14662,
10645,
6,
3,
29,
15,
16716,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the earliest year with a mp4-17d chassis and less than 142 points. | CREATE TABLE table_name_60 (year INTEGER, chassis VARCHAR, points VARCHAR) | SELECT MIN(year) FROM table_name_60 WHERE chassis = "mp4-17d" AND points < 142 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
1201,
3,
21342,
17966,
6,
22836,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
28,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
22836,
3274,
96,
1167,
591,
10794,
26,
121,
3430,
979,
3,
2,
3,
24978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the year of the Lotus 18 chassis? | CREATE TABLE table_name_97 (year VARCHAR, chassis VARCHAR) | SELECT COUNT(year) FROM table_name_97 WHERE chassis = "lotus 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
1201,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
215,
13,
8,
25413,
507,
22836,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
22836,
3274,
96,
3171,
302,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average total for Tiger Woods? | CREATE TABLE table_39849 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT AVG("Total") FROM table_39849 WHERE "Player" = 'tiger woods' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3916,
3647,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
519,
3916,
3647,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17,
4424,
1679,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What stadium was the game played in on november 20? | CREATE TABLE table_11097 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
) | SELECT "Stadium" FROM table_11097 WHERE "Date" = 'november 20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
4327,
41,
96,
308,
342,
121,
1499,
6,
96,
30338,
2271,
121,
1499,
6,
96,
371,
10270,
17763,
121,
1499,
6,
96,
566,
3481,
2271,
121,
1499,
6,
96,
134,
17,
9,
12925,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
9,
12925,
121,
21680,
953,
834,
19277,
4327,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
460,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the sum of the attendance during the game against the philadelphia eagles after week 9? | CREATE TABLE table_name_58 (attendance INTEGER, opponent VARCHAR, week VARCHAR) | SELECT SUM(attendance) FROM table_name_58 WHERE opponent = "philadelphia eagles" AND week > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
15116,
663,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
11364,
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,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
15264,
3274,
96,
18118,
15311,
11692,
9,
3,
15,
9,
3537,
7,
121,
3430,
471,
2490,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, visualize the relationship between price and revenue , and group by attribute founder. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Price, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5312,
6,
19764,
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,
3,
19145,
1,
-100,
-100,
-100,
-100... |
What is the year opened for Chicagoland Speedway with a seating smaller than 75,000? | CREATE TABLE table_name_17 (
year_opened INTEGER,
track_name VARCHAR,
seating VARCHAR
) | SELECT AVG(year_opened) FROM table_name_17 WHERE track_name = "chicagoland speedway" AND seating < 75 OFFSET 000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
215,
834,
26940,
3,
21342,
17966,
6,
1463,
834,
4350,
584,
4280,
28027,
6,
10259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
834,
26940,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1463,
834,
4350,
3274,
96,
1436,
658,
7579,
232,
1634,
1343,
121,
3430,
10259,
3,
2,
6374,
3,
15316,
20788,
6078,
1,
-100,
-10... |
What is the tournament when 2010 is q2, and 2009 is 1r? | CREATE TABLE table_65400 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "Tournament" FROM table_65400 WHERE "2010" = 'q2' AND "2009" = '1r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
5548,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
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,
382,
1211,
20205,
17,
121,
21680,
953,
834,
4122,
5548,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
1824,
357,
31,
3430,
96,
16660,
121,
3274,
3,
31,
536,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the glucose - d50 cost for? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'glucose - d50') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
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,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
26889,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
1058,
5,
26889,
23,
26,
21680,
1058,
549,
... |
How many overalls has 1 combined and 24 downhills? | CREATE TABLE table_name_9 (overall VARCHAR, combined VARCHAR, downhill VARCHAR) | SELECT overall FROM table_name_9 WHERE combined = "1" AND downhill = "24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
1890,
1748,
584,
4280,
28027,
6,
3334,
584,
4280,
28027,
6,
323,
6321,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1879,
7,
65,
209,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1879,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
3334,
3274,
96,
536,
121,
3430,
323,
6321,
3274,
96,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the finish of Mclaren chassis? | CREATE TABLE table_name_7 (finish VARCHAR, chassis VARCHAR) | SELECT finish FROM table_name_7 WHERE chassis = "mclaren" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
25535,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1992,
13,
283,
23982,
35,
22836,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1992,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
22836,
3274,
96,
51,
23982,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the driver with 1 grid? | CREATE TABLE table_name_30 (
driver VARCHAR,
grid VARCHAR
) | SELECT driver FROM table_name_30 WHERE grid = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
2535,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2535,
28,
209,
8634,
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,
2535,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
8634,
3274,
209,
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... |
Plot the number of county by grouped by county as a bar graph, and order Y-axis in ascending order. | CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TE... | SELECT County, COUNT(County) FROM appellations GROUP BY County ORDER BY COUNT(County) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
465,
3,
21342,
17966,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1334,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5690,
3,
3463,
4,
382,
6,
19,
6968,
188,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1334,
6,
2847,
17161,
599,
10628,
63,
61,
21680,
8319,
6105,
7,
350,
4630,
6880,
272,
476,
1334,
4674,
11300,
272,
476,
2847,
17161,
599,
10628,
63,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the chassis when the entrant was Lavazza March, and the year was 1975? | CREATE TABLE table_name_38 (
chassis VARCHAR,
entrant VARCHAR,
year VARCHAR
) | SELECT chassis FROM table_name_38 WHERE entrant = "lavazza march" AND year = 1975 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
22836,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
22836,
116,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
3,
295,
3569,
3274,
96,
22288,
19485,
10556,
121,
3430,
215,
3274,
16312,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average points of a Cosworth v8 engine in 1973. | CREATE TABLE table_name_23 (points INTEGER, engine VARCHAR, year VARCHAR) | SELECT AVG(points) FROM table_name_23 WHERE engine = "cosworth v8" AND year = 1973 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
2700,
7,
3,
21342,
17966,
6,
1948,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
979,
13,
3,
9,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1948,
3274,
96,
509,
7,
7048,
3,
208,
927,
121,
3430,
215,
3274,
17107,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
after pick # 123 paul ames being picked for defense , what was the next united states defense pick named ? | CREATE TABLE table_203_824 (
id number,
"pick #" number,
"player" text,
"position" text,
"nationality" text,
"nhl team" text,
"college/junior/club team" text
) | SELECT "player" FROM table_203_824 WHERE "pick #" > 123 AND "nationality" = 'united states' AND "position" = 'defence' ORDER BY "pick #" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
927,
2266,
41,
3,
23,
26,
381,
6,
96,
17967,
1713,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
29,
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,
96,
20846,
121,
21680,
953,
834,
23330,
834,
927,
2266,
549,
17444,
427,
96,
17967,
1713,
121,
2490,
3,
14574,
3430,
96,
16557,
485,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
4718,
121,
3274,
3,
31,
221... |
How many materials are there for output power of ~0.1 pw per cycle (calculated)? | CREATE TABLE table_30057479_1 (
material VARCHAR,
output_power VARCHAR
) | SELECT COUNT(material) FROM table_30057479_1 WHERE output_power = "~0.1 pW per cycle (calculated)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3436,
591,
4440,
834,
536,
41,
1037,
584,
4280,
28027,
6,
3911,
834,
6740,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1397,
33,
132,
21,
3911,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
11303,
61,
21680,
953,
834,
5426,
3436,
591,
4440,
834,
536,
549,
17444,
427,
3911,
834,
6740,
3274,
96,
2,
16029,
3,
102,
518,
399,
4005,
41,
10379,
83,
920,
61,
121,
1,
-100,
-100,
-100,
-100,
... |
WHat in 2005 has a Win % of 82.61? | CREATE TABLE table_75961 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text,
"Win %" text
) | SELECT "2005" FROM table_75961 WHERE "Win %" = '82.61' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
4314,
536,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22594,
121,
21680,
953,
834,
3072,
4314,
536,
549,
17444,
427,
96,
18455,
3,
1454,
121,
3274,
3,
31,
4613,
5,
4241,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who were the victims of the US ship that sank in the Mississippi River near Memphis? | CREATE TABLE table_14429 (
"Estimate" text,
"Name" text,
"Nat." text,
"Ship Type" text,
"Principal victims" text,
"Where sunk" text,
"Date" text
) | SELECT "Principal victims" FROM table_14429 WHERE "Nat." = 'us' AND "Where sunk" = 'mississippi river near memphis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
3166,
41,
96,
14997,
23,
5058,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
567,
144,
535,
1499,
6,
96,
134,
10462,
6632,
121,
1499,
6,
96,
7855,
29,
3389,
138,
8926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7855,
29,
3389,
138,
8926,
121,
21680,
953,
834,
20885,
3166,
549,
17444,
427,
96,
567,
144,
535,
3274,
3,
31,
302,
31,
3430,
96,
25217,
3,
7,
6513,
121,
3274,
3,
31,
11502,
159,
7,
23,
1572,
23,
4033,
1084,... |
What was the highest round for Bowling Green with a pick smaller than 210? | CREATE TABLE table_name_69 (
round INTEGER,
school VARCHAR,
pick VARCHAR
) | SELECT MAX(round) FROM table_name_69 WHERE school = "bowling green" AND pick < 210 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
1751,
3,
21342,
17966,
6,
496,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
1751,
21,
9713,
53,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
496,
3274,
96,
17710,
697,
1442,
121,
3430,
1432,
3,
2,
3,
15239,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the year that has a name with the Greek small letter sampi? | CREATE TABLE table_name_89 (
year INTEGER,
name VARCHAR
) | SELECT SUM(year) FROM table_name_89 WHERE name = "greek small letter sampi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
215,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
215,
24,
65,
3,
9,
564,
28,
8,
6781,
422,
2068,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
564,
3274,
96,
3584,
15,
157,
422,
2068,
3,
7,
4624,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9? | CREATE TABLE table_name_44 (
top_10 INTEGER,
cuts_made VARCHAR,
top_25 VARCHAR,
tournament VARCHAR
) | SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = "u.s. open" AND cuts_made > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
420,
834,
1714,
3,
21342,
17966,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
420,
834,
1828,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
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,
17684,
599,
2916,
834,
16968,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
420,
834,
1828,
3274,
431,
3430,
5892,
3274,
96,
76,
5,
7,
5,
539,
121,
3430,
8620,
834,
4725,
2490,
668,
1,
-100,
-100,
-100,
-1... |
Who is the constructor of the 196 chassis? | CREATE TABLE table_name_50 (constructor VARCHAR, chassis VARCHAR) | SELECT constructor FROM table_name_50 WHERE chassis = "196" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
15982,
5317,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
6774,
127,
13,
8,
3,
26937,
22836,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
22836,
3274,
96,
26937,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who were the opponent in the match on a clay surface that had a score of 6 3, 7 6 (11 9)? | CREATE TABLE table_name_84 (
opponents VARCHAR,
surface VARCHAR,
score VARCHAR
) | SELECT opponents FROM table_name_84 WHERE surface = "clay" AND score = "6–3, 7–6 (11–9)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
16383,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
15264,
16,
8,
1588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
16383,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
2604,
3274,
96,
948,
104,
6355,
489,
104,
948,
41,
2596,
104,
11728,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many television station listings have a ioc code as mas? | CREATE TABLE table_2879165_1 (television_station VARCHAR, ioc_code VARCHAR) | SELECT COUNT(television_station) FROM table_2879165_1 WHERE ioc_code = "MAS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4440,
22823,
834,
536,
41,
1931,
6610,
834,
6682,
584,
4280,
28027,
6,
3,
23,
32,
75,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1931,
6610,
834,
6682,
61,
21680,
953,
834,
2577,
4440,
22823,
834,
536,
549,
17444,
427,
3,
23,
32,
75,
834,
4978,
3274,
96,
23010,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Time with a Ground that is humber college north? | CREATE TABLE table_75860 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
) | SELECT "Time" FROM table_75860 WHERE "Ground" = 'humber college north' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
3840,
632,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
517,
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,
13368,
121,
21680,
953,
834,
3072,
3840,
632,
549,
17444,
427,
96,
517,
7775,
121,
3274,
3,
31,
4884,
1152,
1900,
3457,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which round had Michael Schumacher in the pole position, David Coulthard with the fastest lap, and McLaren - Mercedes as the winning constructor? | CREATE TABLE table_1132600_3 (
round VARCHAR,
winning_constructor VARCHAR,
pole_position VARCHAR,
fastest_lap VARCHAR
) | SELECT COUNT(round) FROM table_1132600_3 WHERE pole_position = "Michael Schumacher" AND fastest_lap = "David Coulthard" AND winning_constructor = "McLaren - Mercedes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2668,
6007,
834,
519,
41,
1751,
584,
4280,
28027,
6,
3447,
834,
15982,
5317,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
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,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
2596,
2668,
6007,
834,
519,
549,
17444,
427,
11148,
834,
4718,
3274,
96,
329,
362,
9,
15,
40,
6824,
24113,
121,
3430,
10391,
834,
8478,
3274,
96,
308,
9,
6961,
638,
83,
... |
What was the date of the game where Ottawa was the home team and Atlanta is the visiting team? | CREATE TABLE table_name_32 (
date VARCHAR,
visitor VARCHAR,
home VARCHAR
) | SELECT date FROM table_name_32 WHERE visitor = "atlanta" AND home = "ottawa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
833,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
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,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
7019,
3274,
96,
144,
6761,
9,
121,
3430,
234,
3274,
96,
32,
17,
17,
7396,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the margin of victory at the Hawaiian Open tournament? | CREATE TABLE table_1514634_2 (margin_of_victory VARCHAR, tournament VARCHAR) | SELECT margin_of_victory FROM table_1514634_2 WHERE tournament = "Hawaiian Open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
24300,
3710,
834,
357,
41,
1635,
122,
77,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6346,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
1808,
24300,
3710,
834,
357,
549,
17444,
427,
5892,
3274,
96,
566,
7396,
23,
23,
152,
2384,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE PLACE WITH A SCORE OF 67-70=137? | CREATE TABLE table_50285 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_50285 WHERE "Score" = '67-70=137' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
357,
4433,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
1752,
357,
4433,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3708,
18,
2518,
2423,
24636,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score of the match played on 5 September 2001? | CREATE TABLE table_name_38 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_38 WHERE date = "5 september 2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
1588,
1944,
30,
305,
1600,
4402,
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,
2604,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
833,
3274,
96,
755,
16022,
18247,
4402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the web client when the client is x and the project is goto servers vnc java server (gsvncj)? | CREATE TABLE table_name_18 (
Web VARCHAR,
client VARCHAR,
project VARCHAR
) | SELECT Web AS client FROM table_name_18 WHERE client = "x" AND project = "goto servers vnc java server (gsvncj)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
1620,
584,
4280,
28027,
6,
1188,
584,
4280,
28027,
6,
516,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
765,
1188,
116,
8,
1188,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1620,
6157,
1188,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1188,
3274,
96,
226,
121,
3430,
516,
3274,
96,
839,
235,
8379,
3,
208,
29,
75,
3,
27578,
2460,
41,
122,
7,
208,
29,
75,
354,
61,
121,
1,
-100,... |
What are the distinct states and create time of all votes? | CREATE TABLE votes (state VARCHAR, created VARCHAR) | SELECT DISTINCT state, created FROM votes | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11839,
41,
5540,
584,
4280,
28027,
6,
990,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
6746,
2315,
11,
482,
97,
13,
66,
11839,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
538,
6,
990,
21680,
11839,
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... |
Round 3 with a round 4 of 50? | CREATE TABLE table_9260 (
"City" text,
"Round 1" real,
"Round 2" text,
"Round 3" text,
"Round 4" text
) | SELECT "Round 3" FROM table_9260 WHERE "Round 4" = '50' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4508,
3328,
41,
96,
254,
485,
121,
1499,
6,
96,
448,
32,
1106,
209,
121,
490,
6,
96,
448,
32,
1106,
204,
121,
1499,
6,
96,
448,
32,
1106,
220,
121,
1499,
6,
96,
448,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
220,
121,
21680,
953,
834,
4508,
3328,
549,
17444,
427,
96,
448,
32,
1106,
3,
20364,
3274,
3,
31,
1752,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Writer with an Actual Title that is mork & mindy? | CREATE TABLE table_name_8 (
writer VARCHAR,
actual_title VARCHAR
) | SELECT writer FROM table_name_8 WHERE actual_title = "mork & mindy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
4346,
584,
4280,
28027,
6,
1805,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8733,
52,
28,
46,
24193,
11029,
24,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4346,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
1805,
834,
21869,
3274,
96,
2528,
157,
3,
184,
809,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What driver was the winner when constructor was Maserati at the Monaco grand prix? | CREATE TABLE table_name_36 (winning_driver VARCHAR, constructor VARCHAR, race VARCHAR) | SELECT winning_driver FROM table_name_36 WHERE constructor = "maserati" AND race = "monaco grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
8163,
834,
13739,
52,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2535,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
13739,
52,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
6774,
127,
3274,
96,
2754,
15,
6850,
121,
3430,
1964,
3274,
96,
2157,
9,
509,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the minister who has an entered office of entered office? | CREATE TABLE table_name_80 (
name VARCHAR,
entered_office VARCHAR
) | SELECT name FROM table_name_80 WHERE entered_office = "entered office" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
564,
584,
4280,
28027,
6,
5136,
834,
19632,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
6323,
113,
65,
46,
5136,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
5136,
834,
19632,
3274,
96,
35,
11196,
828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the smallest number of goals against when 8 games were lost, and the goals for are 60? | CREATE TABLE table_name_86 (goals_against INTEGER, lost VARCHAR, goals_for VARCHAR) | SELECT MIN(goals_against) FROM table_name_86 WHERE lost = 8 AND goals_for = 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
839,
5405,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
1513,
584,
4280,
28027,
6,
1766,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1513,
3274,
505,
3430,
1766,
834,
1161,
3274,
1640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What Binibining Pilipinas-International has a Year of 1975? | CREATE TABLE table_name_2 (
binibining_pilipinas_international VARCHAR,
year VARCHAR
) | SELECT binibining_pilipinas_international FROM table_name_2 WHERE year = 1975 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
27817,
584,
4280,
28027,
6,
215,
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,
1,
0,
0... | [
3,
23143,
14196,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
27817,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
215,
3274,
16312,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the date of entered service for the locomotive with a broad gauge and a serial no of 83-1018? | CREATE TABLE table_name_76 (
entered_service VARCHAR,
gauge VARCHAR,
serial_no VARCHAR
) | SELECT entered_service FROM table_name_76 WHERE gauge = "broad" AND serial_no = "83-1018" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
5136,
834,
5114,
584,
4280,
28027,
6,
13596,
584,
4280,
28027,
6,
10501,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5136,
834,
5114,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
13596,
3274,
96,
115,
8635,
121,
3430,
10501,
834,
29,
32,
3274,
96,
4591,
4536,
2606,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which distinct years was the governor "Eliot Spitzer"? | CREATE TABLE party (YEAR VARCHAR, Governor VARCHAR) | SELECT DISTINCT YEAR FROM party WHERE Governor = "Eliot Spitzer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
476,
19356,
584,
4280,
28027,
6,
10510,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
6746,
203,
47,
8,
13062,
96,
10991,
23,
32,
17,
17894,
52,
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,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
30431,
21680,
1088,
549,
17444,
427,
10510,
3274,
96,
10991,
23,
32,
17,
17894,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did the term end for the person who started their term on 28 November 1912? | CREATE TABLE table_name_89 (
term_end VARCHAR,
term_start VARCHAR
) | SELECT term_end FROM table_name_89 WHERE term_start = "28 november 1912" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
1657,
834,
989,
584,
4280,
28027,
6,
1657,
834,
10208,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
1657,
414,
21,
8,
568,
113,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1657,
834,
989,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1657,
834,
10208,
3274,
96,
2577,
3,
5326,
18247,
957,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which astronaut went on the Apollo 16 mission at the age of 36y 6m 18d to step on the moon? | CREATE TABLE table_70416 (
"Name" text,
"Born" text,
"Age at first step" text,
"Mission" text,
"Lunar EVA dates" text,
"Service" text
) | SELECT "Name" FROM table_70416 WHERE "Mission" = 'apollo 16' AND "Age at first step" = '36y 6m 18d' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
591,
2938,
41,
96,
23954,
121,
1499,
6,
96,
279,
127,
29,
121,
1499,
6,
96,
188,
397,
44,
166,
1147,
121,
1499,
6,
96,
329,
159,
1938,
121,
1499,
6,
96,
434,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
2518,
591,
2938,
549,
17444,
427,
96,
329,
159,
1938,
121,
3274,
3,
31,
9521,
195,
32,
898,
31,
3430,
96,
188,
397,
44,
166,
1147,
121,
3274,
3,
31,
3420,
63,
431,
51,
507,
26,
... |
What is 1989, when 1999 is F, and when 1994 is 2R? | CREATE TABLE table_name_39 (
Id VARCHAR
) | SELECT 1989 FROM table_name_39 WHERE 1999 = "f" AND 1994 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9975,
6,
116,
5247,
19,
377,
6,
11,
116,
7520,
19,
204,
448,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9975,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
5247,
3274,
96,
89,
121,
3430,
7520,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974? | CREATE TABLE table_64104 (
"School" text,
"Location" text,
"Mascot" text,
"Size" real,
"IHSAA Class" text,
"# / County" text,
"Year Joined" real,
"Previous Conference" text
) | SELECT "Size" FROM table_64104 WHERE "Year Joined" < '1974' AND "IHSAA Class" = 'aa' AND "# / County" = '89 wayne' AND "School" = 'centerville' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
15442,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
134,
1737,
121,
490,
6,
96,
196,
4950,
5498,
4501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1737,
121,
21680,
953,
834,
4389,
15442,
549,
17444,
427,
96,
476,
2741,
5279,
15,
26,
121,
3,
2,
3,
31,
2294,
4581,
31,
3430,
96,
196,
4950,
5498,
4501,
121,
3274,
3,
31,
9,
9,
31,
3430,
96,
4663,
3,... |
What is the number of laps for the honda vehicle, with a grid of 13? | CREATE TABLE table_name_17 (
laps VARCHAR,
constructor VARCHAR,
grid VARCHAR
) | SELECT laps FROM table_name_17 WHERE constructor = "honda" AND grid = "13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
14941,
7,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
14941... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14941,
7,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
6774,
127,
3274,
96,
31782,
121,
3430,
8634,
3274,
96,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was Nick Faldo's score? | CREATE TABLE table_61643 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_61643 WHERE "Player" = 'nick faldo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
4389,
519,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4241,
4389,
519,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
11191,
12553,
26,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the nationality of number 9 | CREATE TABLE table_15621965_1 (
nationality VARCHAR,
no VARCHAR
) | SELECT nationality FROM table_15621965_1 WHERE no = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4056,
2294,
4122,
834,
536,
41,
1157,
485,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1157,
485,
13,
381,
668,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
1808,
4056,
2294,
4122,
834,
536,
549,
17444,
427,
150,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the minimum age of patients with primary disease as chest pain and admission location as 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 MIN(demographic.age) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.diagnosis = "CHEST PAIN" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
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,
3430,
14798,
5,
25930,
4844,
159,
... |
What unit has an Avoirdupois value of 57.602 gr.? | CREATE TABLE table_name_9 (
unit VARCHAR,
avoirdupois_value VARCHAR
) | SELECT unit FROM table_name_9 WHERE avoirdupois_value = "57.602 gr." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
1745,
584,
4280,
28027,
6,
3517,
26,
413,
32,
159,
834,
12097,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1745,
65,
46,
71,
8239,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1745,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
3517,
26,
413,
32,
159,
834,
12097,
3274,
96,
3436,
5,
3328,
357,
3542,
535,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose discharge location is rehab/distinct part hosp and age is less than 61? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND demographic.age < "61" | [
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,
26,
159,
7993,
834,
14836,
3274,
96,
4386,
5478,
279,
87,
15438,
25424,
6227,
3,
19846,
3,
6299,
... |
Name the representative with presentation of credentials of august 16, 1928 | CREATE TABLE table_68281 (
"Representative" text,
"Title" text,
"Presentation of credentials" text,
"Termination of mission" text,
"Appointed by" text
) | SELECT "Representative" FROM table_68281 WHERE "Presentation of credentials" = 'august 16, 1928' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2577,
536,
41,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
10572,
5277,
257,
13,
17500,
121,
1499,
6,
96,
11679,
77,
257,
13,
2253,
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,
1649,
12640,
1528,
121,
21680,
953,
834,
3651,
2577,
536,
549,
17444,
427,
96,
10572,
5277,
257,
13,
17500,
121,
3274,
3,
31,
402,
17198,
11940,
29004,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games have a February larger than 11, and a Record of 23-7-8? | CREATE TABLE table_name_92 (game VARCHAR, february VARCHAR, record VARCHAR) | SELECT COUNT(game) FROM table_name_92 WHERE february > 11 AND record = "23-7-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
7261,
584,
4280,
28027,
6,
29976,
76,
1208,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
43,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
29976,
76,
1208,
2490,
850,
3430,
1368,
3274,
96,
2773,
18,
25580,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result of the game that had 77,702 people in attendance? | CREATE TABLE table_60986 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_60986 WHERE "Attendance" = '77,702' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3916,
948,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3328,
3916,
948,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
4013,
6,
2518,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes? | CREATE TABLE table_1304443_2 (others_percentage VARCHAR, bush_percentage VARCHAR) | SELECT others_percentage FROM table_1304443_2 WHERE bush_percentage = "51.6%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
3628,
4906,
834,
357,
41,
9269,
7,
834,
883,
3728,
545,
584,
4280,
28027,
6,
17907,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
717,
834,
883,
3728,
545,
21680,
953,
834,
21448,
3628,
4906,
834,
357,
549,
17444,
427,
17907,
834,
883,
3728,
545,
3274,
96,
5553,
5,
6370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Gender of students at a school with a Decile of 5 and a Roll of 90? | CREATE TABLE table_71555 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT "Gender" FROM table_71555 WHERE "Decile" = '5' AND "Roll" = '90' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
28803,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
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,
517,
3868,
121,
21680,
953,
834,
4450,
28803,
549,
17444,
427,
96,
2962,
75,
699,
121,
3274,
3,
31,
755,
31,
3430,
96,
29807,
121,
3274,
3,
31,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Where the audience share is 8%, what is the original airing? | CREATE TABLE table_name_60 (
original_airing VARCHAR,
audience_share__average_ VARCHAR
) | SELECT original_airing FROM table_name_60 WHERE audience_share__average_ = "8%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
926,
834,
2256,
53,
584,
4280,
28027,
6,
2417,
834,
12484,
834,
834,
28951,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
8,
2417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
53,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
2417,
834,
12484,
834,
834,
28951,
834,
3274,
96,
5953,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the high assists on March 26? | CREATE TABLE table_29750 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_29750 WHERE "Date" = 'March 26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
9979,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
13041,
121,
21680,
953,
834,
3166,
9979,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
25019,
2208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the highest attendance for week 3? | CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR) | SELECT MAX(attendance) FROM table_name_34 WHERE week = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
15116,
663,
3,
21342,
17966,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
11364,
21,
471,
220,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
471,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How much Silver has a Total larger than 9, and a Gold of 14? | CREATE TABLE table_65284 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Silver") FROM table_65284 WHERE "Total" > '9' AND "Gold" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
357,
4608,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
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,
2847,
17161,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
4122,
357,
4608,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
1298,
31,
3430,
96,
23576,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What is the total in the case where theere are 6 lecturers and fewer than 48 professors? | CREATE TABLE table_name_96 (
total INTEGER,
lecturers VARCHAR,
professors VARCHAR
) | SELECT AVG(total) FROM table_name_96 WHERE lecturers = 6 AND professors < 48 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
792,
3,
21342,
17966,
6,
22111,
277,
584,
4280,
28027,
6,
5812,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
16,
8,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
22111,
277,
3274,
431,
3430,
5812,
7,
3,
2,
4678,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What game was in 2001? | CREATE TABLE table_name_66 (
game VARCHAR,
year VARCHAR
) | SELECT game FROM table_name_66 WHERE year = 2001 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
467,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
47,
16,
4402,
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,
467,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
215,
3274,
4402,
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 manners of departure did peter voets have? | CREATE TABLE table_11713303_2 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) | SELECT COUNT(manner_of_departure) FROM table_11713303_2 WHERE outgoing_manager = "Peter Voets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
2368,
23335,
834,
357,
41,
2434,
49,
834,
858,
834,
221,
2274,
1462,
584,
4280,
28027,
6,
91,
9545,
834,
24185,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2434,
49,
834,
858,
834,
221,
2274,
1462,
61,
21680,
953,
834,
20275,
2368,
23335,
834,
357,
549,
17444,
427,
91,
9545,
834,
24185,
3274,
96,
345,
15,
449,
3152,
15,
17,
7,
121,
1,
-100,
-100,
-1... |
What is the average grid for Clay Regazzoni? | CREATE TABLE table_58480 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Grid") FROM table_58480 WHERE "Driver" = 'clay regazzoni' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
20579,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
13313,
26,
8512,
21680,
953,
834,
3449,
20579,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
4651,
63,
3,
60,
21805,
8892,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the average age of patients whose admission type is urgent and who died before the year 2133? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.dod_year < "2133.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
96,
2658,
4201,
5,
632,
121,... |
What is 2006 when 1997 is 6.8? | CREATE TABLE table_27146868_1 (
Id VARCHAR
) | SELECT 2006 FROM table_27146868_1 WHERE 1997 = "6.8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2534,
3651,
3651,
834,
536,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3581,
116,
6622,
19,
4357,
927,
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,
3581,
21680,
953,
834,
2555,
2534,
3651,
3651,
834,
536,
549,
17444,
427,
6622,
3274,
96,
948,
5,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the pick for adam gettis? | CREATE TABLE table_name_12 (
pick INTEGER,
name VARCHAR
) | SELECT MIN(pick) FROM table_name_12 WHERE name = "adam gettis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
1432,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1432,
21,
3,
9,
7812,
129,
17,
159,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17967,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
564,
3274,
96,
9,
7812,
129,
17,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Calculate the number of hispanic or latino-puerto rican patients who had urgent hospital admission. | 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 WHERE demographic.admission_type = "URGENT" AND demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274... |
What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MHZ? | CREATE TABLE table_name_86 (model_number VARCHAR, voltage VARCHAR, frequency VARCHAR) | SELECT model_number FROM table_name_86 WHERE voltage = "3.45 v" AND frequency = "133 mhz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
21770,
834,
5525,
1152,
584,
4280,
28027,
6,
10594,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5154,
772... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
825,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
10594,
3274,
96,
5787,
2128,
3,
208,
121,
3430,
7321,
3274,
96,
22974,
3,
51,
107,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the to par for england when the score is less than 71? | CREATE TABLE table_name_34 (
to_par VARCHAR,
country VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_34 WHERE country = "england" AND score < 71 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
12,
260,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
684,
3274,
96,
4606,
40,
232,
121,
3430,
2604,
3,
2,
3,
4450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which record was for Warriors at home? | CREATE TABLE table_name_67 (
record VARCHAR,
home VARCHAR
) | SELECT record FROM table_name_67 WHERE home = "warriors" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1368,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1368,
47,
21,
24499,
44,
234,
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,
1368,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
234,
3274,
96,
210,
10269,
127,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the date of appointment for the team osasuna? | CREATE TABLE table_26694 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Date of appointment" FROM table_26694 WHERE "Team" = 'Osasuna' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
4240,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
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,
308,
342,
13,
4141,
121,
21680,
953,
834,
357,
3539,
4240,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
667,
7,
9,
7,
202,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which date did the oakland raiders play as the opponent when the Bills first downs were under 28? | CREATE TABLE table_name_76 (date VARCHAR, bills_first_downs VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_76 WHERE bills_first_downs < 28 AND opponent = "oakland raiders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
5522,
584,
4280,
28027,
6,
7200,
834,
14672,
834,
3035,
7,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
7200,
834,
14672,
834,
3035,
7,
3,
2,
2059,
3430,
15264,
3274,
96,
32,
1639,
40,
232,
15941,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what was the number of goals for ks ? | CREATE TABLE table_204_314 (
id number,
"pos" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals for" number,
"goals against" number,
"goal difference" number,
"points" number,
"notes" text
) | SELECT "goals for" FROM table_204_314 WHERE "team" = 'ks' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
2534,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
210,
106,
121,
381,
6,
96,
19489,
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,
839,
5405,
21,
121,
21680,
953,
834,
26363,
834,
519,
2534,
549,
17444,
427,
96,
11650,
121,
3274,
3,
31,
157,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.