NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the sum of the figure skating scores whose total is less than 117.78? | CREATE TABLE table_57320 (
"Rank" real,
"Name" text,
"Nation" text,
"Placings" text,
"Figures" real,
"Free" real,
"Total" real
) | SELECT SUM("Figures") FROM table_57320 WHERE "Total" < '117.78' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
15003,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
345,
9700,
53,
7,
121,
1499,
6,
96,
16691,
7,
121,
490,
6,
96,
16393,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
16691,
7,
8512,
21680,
953,
834,
3436,
15003,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
20275,
5,
3940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Player has a Money ($) of 137, and a Score of 73-70-73-74=290? | CREATE TABLE table_name_11 (player VARCHAR, money___$__ VARCHAR, score VARCHAR) | SELECT player FROM table_name_11 WHERE money___$__ = 137 AND score = 73 - 70 - 73 - 74 = 290 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
20846,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
3274,
3,
24636,
3430,
2604,
3274,
3,
4552,
3,
18,
2861,
3,
18,
3,
4552,
3,
18,
3,
4581,
3274,
3,
23838,
1,
-100,
-100,... |
Display a bar chart for what are the numbers of wines for different grapes?, and order by the total number in ascending. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TE... | SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
4699,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
6088,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
465,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29083,
6,
2847,
17161,
599,
1935,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
29083,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose marital status is single and primary disease is hypoxia? | 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.marital_status = "SINGLE" AND demographic.diagnosis = "HYPOXIA" | [
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,
1635,
9538,
834,
8547,
302,
3274,
96,
134,
2365,
3765,
121,
3430,
14798,
5,
25930,
4844,
159,
3274... |
what is the score when the home team is cairns taipans? | CREATE TABLE table_name_23 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_23 WHERE home_team = "cairns taipans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
7,
9022,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2604,
116,
8,
234,
372,
19,
3,
75,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
234,
834,
11650,
3274,
96,
75,
2256,
29,
7,
3,
17,
9,
23,
2837,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which position did the player from the hometown of Dallas, TX play? | CREATE TABLE table_11677100_12 (
position VARCHAR,
hometown VARCHAR
) | SELECT position FROM table_11677100_12 WHERE hometown = "Dallas, TX" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
4013,
2915,
834,
2122,
41,
1102,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1102,
410,
8,
1959,
45,
8,
22295,
13,
9628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
20159,
4013,
2915,
834,
2122,
549,
17444,
427,
22295,
3274,
96,
308,
1748,
9,
7,
6,
332,
4,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When did the atv-002 launch? | CREATE TABLE table_name_22 (
launch_date VARCHAR,
designation VARCHAR
) | SELECT launch_date FROM table_name_22 WHERE designation = "atv-002" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
3289,
834,
5522,
584,
4280,
28027,
6,
21767,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
44,
208,
18,
1206,
357,
3289,
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,
3289,
834,
5522,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
21767,
3274,
96,
144,
208,
18,
1206,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the number of left for cardinals | CREATE TABLE table_2293402_2 (
left VARCHAR,
nickname VARCHAR
) | SELECT COUNT(left) FROM table_2293402_2 WHERE nickname = "Cardinals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4271,
2445,
357,
834,
357,
41,
646,
584,
4280,
28027,
6,
24649,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
646,
21,
895,
10270,
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,
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,
17068,
61,
21680,
953,
834,
2884,
4271,
2445,
357,
834,
357,
549,
17444,
427,
24649,
3274,
96,
6936,
26,
10270,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the To par when fredrik andersson hed was runner-up? | CREATE TABLE table_name_86 (to_par VARCHAR, runner_s__up VARCHAR) | SELECT to_par FROM table_name_86 WHERE runner_s__up = "fredrik andersson hed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
235,
834,
1893,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
260,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
89,
1271,
9629,
11,
277,
739,
3,
88,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
estimated glomerular filtration rate ( egfr ) > 30 ml / min | CREATE TABLE table_train_235 (
"id" int,
"urinary_protein" float,
"nephrotic_range_proteinuria" bool,
"hepatic_disease" bool,
"estimated_glomerular_filtration_rate_egfr" int,
"kidney_disease" bool,
"renal_transplantation" bool,
"NOUSE" float
) | SELECT * FROM table_train_235 WHERE estimated_glomerular_filtration_rate_egfr > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
25174,
41,
96,
23,
26,
121,
16,
17,
6,
96,
459,
29,
1208,
834,
23083,
121,
3,
12660,
6,
96,
29,
15,
31156,
1225,
834,
5517,
834,
23083,
459,
9,
121,
3,
12840... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
25174,
549,
17444,
427,
5861,
834,
24422,
4885,
834,
18974,
834,
2206,
834,
15,
122,
89,
52,
2490,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the opponent in the 1 round fight in the Ultimate Fighter 2 Finale? | CREATE TABLE table_name_4 (opponent VARCHAR, round VARCHAR, event VARCHAR) | SELECT opponent FROM table_name_4 WHERE round = "1" AND event = "the ultimate fighter 2 finale" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
16,
8,
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,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
1751,
3274,
96,
536,
121,
3430,
605,
3274,
96,
532,
5737,
14248,
204,
13604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where was game 62 played? | CREATE TABLE table_16864968_7 (location VARCHAR, game VARCHAR) | SELECT location FROM table_16864968_7 WHERE game = 62 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3840,
3647,
3651,
834,
940,
41,
14836,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
467,
3,
4056,
1944,
58,
3,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2938,
3840,
3647,
3651,
834,
940,
549,
17444,
427,
467,
3274,
3,
4056,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Anders Forsbrand's score with a to par of +1? | CREATE TABLE table_61964 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Score" FROM table_61964 WHERE "To par" = '+1' AND "Player" = 'anders forsbrand' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2294,
4389,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
948,
2294,
4389,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
18446,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
11849,
7,
21,
7,
12164,
31,
1,
-100,
-100,
-100,
-100,
-1... |
Which team won when the visitor was Carolina? | CREATE TABLE table_name_56 (
decision VARCHAR,
visitor VARCHAR
) | SELECT decision FROM table_name_56 WHERE visitor = "carolina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
1357,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
751,
116,
8,
7019,
47,
5089,
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,
1357,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
7019,
3274,
96,
1720,
12057,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average silver that has a gold greater than 3, with soviet union (urs) as the nation, and a bronze greater than 26? | CREATE TABLE table_63027 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Silver") FROM table_63027 WHERE "Gold" > '3' AND "Nation" = 'soviet union (urs)' AND "Bronze" > '26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26106,
2555,
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,
26106,
2555,
549,
17444,
427,
96,
23576,
121,
2490,
3,
31,
519,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
7,
9881,
15,
17,
7021,
41,
3589,
61,
31,
3430,... |
Which Home has a Tie no of 6? | CREATE TABLE table_7607 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Home team" FROM table_7607 WHERE "Tie no" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4560,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
3959,
4560,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total of rebound averages with more than 98 games and a rank of 7? | CREATE TABLE table_name_16 (reb_avg INTEGER, games VARCHAR, rank VARCHAR) | SELECT SUM(reb_avg) FROM table_name_16 WHERE games > 98 AND rank = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
60,
115,
834,
9,
208,
122,
3,
21342,
17966,
6,
1031,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
60,
115,
834,
9,
208,
122,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1031,
2490,
3,
3916,
3430,
11003,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What division is Traktor Tashkent in 2005? | CREATE TABLE table_name_83 (
division VARCHAR,
team VARCHAR,
season VARCHAR
) | SELECT division FROM table_name_83 WHERE team = "traktor tashkent" AND season = "2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
4889,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4889,
19,
3083,
10377,
332,
3198,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4889,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
372,
3274,
96,
25154,
127,
3,
17,
3198,
2217,
17,
121,
3430,
774,
3274,
96,
22594,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong? | CREATE TABLE table_26852 (
"Year" real,
"Mutya ng Pilipinas Asia Pacific" text,
"1st runner-up" text,
"2nd runner-up" text,
"3rd runner-up" text,
"4th runner-up" text
) | SELECT "2nd runner-up" FROM table_26852 WHERE "Mutya ng Pilipinas Asia Pacific" = 'Rochelle Romero Ong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4433,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
76,
17,
63,
9,
3,
1725,
16536,
23,
3180,
9,
7,
3826,
5824,
121,
1499,
6,
96,
536,
7,
17,
3,
10806,
18,
413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
357,
727,
3,
10806,
18,
413,
121,
21680,
953,
834,
2688,
4433,
357,
549,
17444,
427,
96,
329,
76,
17,
63,
9,
3,
1725,
16536,
23,
3180,
9,
7,
3826,
5824,
121,
3274,
3,
31,
448,
6322,
693,
7332,
52,
32,
461,... |
What is the location of the b.c. open? | CREATE TABLE table_name_81 (location VARCHAR, tournament VARCHAR) | SELECT location FROM table_name_81 WHERE tournament = "b.c. open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
14836,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
3,
115,
5,
75,
5,
539,
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,
1128,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
5892,
3274,
96,
115,
5,
75,
5,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the attendance like for week 8? | CREATE TABLE table_9689 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_9689 WHERE "Week" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
3914,
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,
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,
0,
0... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
4314,
3914,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 210kg? | CREATE TABLE table_name_17 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR) | SELECT almaty_, _kazakhstan FROM table_name_17 WHERE sergey_filimonov___kaz__ = "210kg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
138,
3357,
63,
834,
584,
4280,
28027,
6,
3,
834,
1258,
172,
18965,
5627,
584,
4280,
28027,
6,
7637,
397,
63,
834,
8027,
603,
32,
5326,
834,
834,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
491,
3357,
63,
834,
6,
3,
834,
1258,
172,
18965,
5627,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
7637,
397,
63,
834,
8027,
603,
32,
5326,
834,
834,
834,
1258,
172,
834,
834,
3274,
96,
15239,
8711,
121,
1,... |
How many games have a November of 10? | CREATE TABLE table_name_10 (
game VARCHAR,
november VARCHAR
) | SELECT COUNT(game) FROM table_name_10 WHERE november = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
467,
584,
4280,
28027,
6,
3,
5326,
18247,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
43,
3,
9,
1671,
13,
335,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
3,
5326,
18247,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who are the authors with the most published papers in SIGMOD ? | CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE field (
fieldid int
)
CREATE TA... | SELECT DISTINCT COUNT(paper.paperid), writes.authorid FROM keyphrase, paper, paperkeyphrase, writes WHERE keyphrase.keyphrasename = 'SIGMOD' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.paperid = paper.paperid GROUP BY writes.authorid ORDER BY COUNT(paper.... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
6378,
23,
26,
16,
17,
6,
6378,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
41,
2291,
23,
26,
16,
17,
6,
2291,
4350,
3,
4331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
19587,
5,
19587,
23,
26,
201,
11858,
5,
17415,
23,
26,
21680,
843,
27111,
6,
1040,
6,
1040,
4397,
27111,
6,
11858,
549,
17444,
427,
843,
27111,
5,
4397,
27111,
4350,
3274,
3,... |
Who's the Socialist ticket with a Republican ticket of john a. may? | CREATE TABLE table_name_2 (
socialist_ticket VARCHAR,
republican_ticket VARCHAR
) | SELECT socialist_ticket FROM table_name_2 WHERE republican_ticket = "john a. may" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
23737,
834,
26639,
584,
4280,
28027,
6,
20237,
152,
834,
26639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
2730,
343,
4142,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23737,
834,
26639,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
20237,
152,
834,
26639,
3274,
96,
27341,
3,
9,
5,
164,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the lowest total when the nation is sweden (swe) and silver is less than 0? | CREATE TABLE table_64766 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Total") FROM table_64766 WHERE "Nation" = 'sweden (swe)' AND "Silver" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
4177,
3539,
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,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
948,
4177,
3539,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
7,
1123,
537,
41,
7,
1123,
61,
31,
3430,
96,
134,
173,
624,
121,
3,
2,
3,
31,
632,
31,
... |
Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79? | CREATE TABLE table_46446 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Average 1" real,
"Points 2" real
) | SELECT MAX("Goals For") FROM table_46446 WHERE "Position" > '2' AND "Lost" > '18' AND "Team" = 'matlock town' AND "Goals Against" > '79' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4389,
4448,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
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,
4800,
4,
599,
121,
6221,
5405,
242,
8512,
21680,
953,
834,
591,
4389,
4448,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
2490,
3,
31,
357,
31,
3430,
96,
434,
3481,
121,
2490,
3,
31,
2606,
31,
3430,
96,
18699,
121... |
What is the id and name of the enzyme with most number of medicines that can interact as 'activator'? | CREATE TABLE enzyme (
id VARCHAR,
name VARCHAR
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_id VARCHAR,
interaction_type VARCHAR
) | SELECT T1.id, T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15735,
41,
3,
23,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
834,
35,
4164,
526,
834,
3870,
4787,
41,
15735,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23,
26,
6,
332,
5411,
4350,
21680,
15735,
6157,
332,
536,
3,
15355,
3162,
4404,
834,
35,
4164,
526,
834,
3870,
4787,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
35,
4164,
526,
834,
23,
26,... |
Which category was william ivey long a nominee and nominated in? | CREATE TABLE table_39206 (
"Year" real,
"Award Ceremony" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT "Category" FROM table_39206 WHERE "Result" = 'nominated' AND "Nominee" = 'william ivey long' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
24643,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
31188,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
20119,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18610,
6066,
651,
121,
21680,
953,
834,
3288,
24643,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
3114,
77,
920,
31,
3430,
96,
4168,
8695,
15,
121,
3274,
3,
31,
8894,
23,
265,
3,
757,
63,
307,
31,
1,
-100,
... |
Name the result/games for 54530 | CREATE TABLE table_21436373_11 (result_games VARCHAR, attendance VARCHAR) | SELECT result_games FROM table_21436373_11 WHERE attendance = 54530 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4906,
3891,
4552,
834,
2596,
41,
60,
7,
83,
17,
834,
7261,
7,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
741,
87,
7261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
834,
7261,
7,
21680,
953,
834,
2658,
4906,
3891,
4552,
834,
2596,
549,
17444,
427,
11364,
3274,
10630,
26918,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
The game played on 6 December 1986 had what score? | CREATE TABLE table_name_12 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_12 WHERE date = "6 december 1986" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
467,
1944,
30,
431,
1882,
12698,
141,
125,
2604,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
833,
3274,
96,
948,
20,
75,
18247,
12698,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many different scores did Team Europe get when Mika Koivuniemi played for them? | CREATE TABLE table_19072602_1 (score VARCHAR, team_europe VARCHAR) | SELECT COUNT(score) FROM table_19072602_1 WHERE team_europe = "Mika Koivuniemi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4560,
18365,
357,
834,
536,
41,
7,
9022,
584,
4280,
28027,
6,
372,
834,
28188,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
7586,
410,
2271,
1740... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
9022,
61,
21680,
953,
834,
2294,
4560,
18365,
357,
834,
536,
549,
17444,
427,
372,
834,
28188,
3274,
96,
329,
5561,
1793,
23,
208,
202,
23,
15,
51,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Calculate the average age of patients admitted in or after 2197 and are 44 years or older. | 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 AVG(demographic.age) FROM demographic WHERE demographic.age >= "44" AND demographic.admityear >= "2197" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
2490,
2423,
96,
3628,
121,
3430,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
2658,
4327,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the fewest gold for tanzania with bronze less than 0 | CREATE TABLE table_name_54 (
gold INTEGER,
nation VARCHAR,
bronze VARCHAR
) | SELECT MIN(gold) FROM table_name_54 WHERE nation = "tanzania" AND bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
2045,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
360,
222,
2045,
21,
3,
141... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
2982,
3274,
96,
14137,
11219,
121,
3430,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name of the singer with the largest net worth? | CREATE TABLE singer (Name VARCHAR, Net_Worth_Millions VARCHAR) | SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7634,
41,
23954,
584,
4280,
28027,
6,
6540,
834,
518,
127,
189,
834,
329,
14916,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
7634,
28,
8,
2015,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5570,
21680,
7634,
4674,
11300,
272,
476,
6540,
834,
518,
127,
189,
834,
329,
14916,
7,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What transfer window has baptista as the name? | CREATE TABLE table_name_44 (
transfer_window VARCHAR,
name VARCHAR
) | SELECT transfer_window FROM table_name_44 WHERE name = "baptista" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
2025,
834,
5165,
2381,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2025,
2034,
65,
3,
115,
6789,
343,
9,
38,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2025,
834,
5165,
2381,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
564,
3274,
96,
115,
6789,
343,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many figures are provided for December 28 for Rosario? | CREATE TABLE table_29217650_1 (december_28 VARCHAR, movies VARCHAR) | SELECT COUNT(december_28) FROM table_29217650_1 WHERE movies = "Rosario" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
357,
2517,
15348,
834,
536,
41,
221,
75,
18247,
834,
2577,
584,
4280,
28027,
6,
4876,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5638,
33,
937,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
221,
75,
18247,
834,
2577,
61,
21680,
953,
834,
3166,
357,
2517,
15348,
834,
536,
549,
17444,
427,
4876,
3274,
96,
448,
32,
7,
14414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What title was released on August 27? | CREATE TABLE table_1322904_1 (title VARCHAR, release VARCHAR) | SELECT title FROM table_1322904_1 WHERE release = "August 27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23757,
3166,
6348,
834,
536,
41,
21869,
584,
4280,
28027,
6,
1576,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2233,
47,
1883,
30,
1660,
2307,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
23757,
3166,
6348,
834,
536,
549,
17444,
427,
1576,
3274,
96,
26579,
2307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the mean week number when attendance was 63,263? | CREATE TABLE table_7202 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Week") FROM table_7202 WHERE "Attendance" = '63,263' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18517,
357,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
518,
10266,
8512,
21680,
953,
834,
18517,
357,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
3891,
6,
357,
3891,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What country was the game in when the player was Craig Stadler? | CREATE TABLE table_8310 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Country" FROM table_8310 WHERE "Player" = 'craig stadler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4591,
1714,
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,
6,
96,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
4591,
1714,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
2935,
23,
122,
3342,
12807,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many documents for different document name? Draw a bar chart, could you sort in ascending by the Y? | CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Ac... | SELECT Document_Name, COUNT(Document_Name) FROM Documents GROUP BY Document_Name ORDER BY COUNT(Document_Name) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
2786,
834,
4309,
3,
21342,
17966,
6,
11167,
834,
308,
342,
309,
6048,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11167,
834,
23954,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
23954,
61,
21680,
11167,
7,
350,
4630,
6880,
272,
476,
11167,
834,
23954,
4674,
11300,
272,
476,
2847,
17161,
599,
4135,
1071,
297,
834,
23954,
61,
1,
-100... |
Which DOB has Bats of s, and a Position of inf? | CREATE TABLE table_36225 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
) | SELECT "D.O.B." FROM table_36225 WHERE "Bats" = 's' AND "Position" = 'inf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
20489,
41,
96,
134,
450,
4350,
121,
1499,
6,
96,
25171,
121,
1499,
6,
96,
308,
5,
667,
5,
279,
535,
1499,
6,
96,
279,
144,
7,
121,
1499,
6,
96,
11889,
2381,
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,
96,
308,
5,
667,
5,
279,
535,
21680,
953,
834,
3420,
20489,
549,
17444,
427,
96,
279,
144,
7,
121,
3274,
3,
31,
7,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
77,
89,
31,
1,
-100,
-100,
-100,
-100,
-10... |
where was the last match played ? | CREATE TABLE table_204_868 (
id number,
"outcome" text,
"no." number,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
) | SELECT "tournament" FROM table_204_868 ORDER BY "date" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
3651,
41,
3,
23,
26,
381,
6,
96,
670,
287,
15,
121,
1499,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17,
1211,
20205,
17,
121,
21680,
953,
834,
26363,
834,
927,
3651,
4674,
11300,
272,
476,
96,
5522,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the latest round that Derek Pagel was selected with a pick higher than 50? | CREATE TABLE table_name_22 (round INTEGER, pick VARCHAR, player VARCHAR) | SELECT MAX(round) FROM table_name_22 WHERE pick > 50 AND player = "derek pagel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
7775,
3,
21342,
17966,
6,
1432,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1251,
1751,
24,
26004,
5545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2884,
549,
17444,
427,
1432,
2490,
943,
3430,
1959,
3274,
96,
588,
15,
157,
543,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score on 10 November 2006? | CREATE TABLE table_name_79 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_79 WHERE date = "10 november 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
30,
335,
1671,
3581,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
833,
3274,
96,
1714,
3,
5326,
18247,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What movie did dana wynter , mel ferrer , theodore bikel star in? | CREATE TABLE table_26032940_2 (movie_title_and_year VARCHAR, main_cast VARCHAR) | SELECT movie_title_and_year FROM table_26032940_2 WHERE main_cast = "Dana Wynter , Mel Ferrer , Theodore Bikel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
519,
3166,
2445,
834,
357,
41,
7168,
23,
15,
834,
21869,
834,
232,
834,
1201,
584,
4280,
28027,
6,
711,
834,
5254,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1974,
834,
21869,
834,
232,
834,
1201,
21680,
953,
834,
18365,
519,
3166,
2445,
834,
357,
549,
17444,
427,
711,
834,
5254,
3274,
96,
308,
152,
9,
11314,
29,
449,
3,
6,
5049,
12762,
49,
3,
6,
37,
7512,
15,
2106,
... |
What are the average prominence of the mountains in country 'Morocco'? | CREATE TABLE mountain (
prominence INTEGER,
country VARCHAR
) | SELECT AVG(prominence) FROM mountain WHERE country = 'Morocco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
31829,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1348,
31829,
13,
8,
8022,
16,
684,
3,
31,
329,
127,
13377,
32,
31,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1409,
1109,
1433,
61,
21680,
4180,
549,
17444,
427,
684,
3274,
3,
31,
329,
127,
13377,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is saint-andré's population? | CREATE TABLE table_name_62 (population VARCHAR, official_name VARCHAR) | SELECT population FROM table_name_62 WHERE official_name = "saint-andré" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
9791,
7830,
584,
4280,
28027,
6,
2314,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
15528,
18,
232,
2339,
31,
7,
2074,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2074,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
2314,
834,
4350,
3274,
96,
7,
9,
77,
17,
18,
232,
2339,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which party was elected in 2003 with incumbent Mark Obenshain? | CREATE TABLE table_name_47 (
party VARCHAR,
elected VARCHAR,
incumbent VARCHAR
) | SELECT party FROM table_name_47 WHERE elected = 2003 AND incumbent = "mark obenshain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1088,
584,
4280,
28027,
6,
8160,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1088,
47,
8160,
16,
3888,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
8160,
3274,
3888,
3430,
28406,
3274,
96,
3920,
11135,
7,
1024,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What episode number in the series was directed by Winrich Kolbe? | CREATE TABLE table_29585196_1 (no_in_series INTEGER, directed_by VARCHAR) | SELECT MIN(no_in_series) FROM table_29585196_1 WHERE directed_by = "Winrich Kolbe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3301,
4433,
26937,
834,
536,
41,
29,
32,
834,
77,
834,
10833,
7,
3,
21342,
17966,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5640,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
357,
3301,
4433,
26937,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
18455,
3723,
12561,
346,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the make of the car that won the brazilian grand prix? | CREATE TABLE table_1139087_2 (
constructor VARCHAR,
grand_prix VARCHAR
) | SELECT constructor FROM table_1139087_2 WHERE grand_prix = "Brazilian grand_prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
2394,
4225,
834,
357,
41,
6774,
127,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
143,
13,
8,
443,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6774,
127,
21680,
953,
834,
20522,
2394,
4225,
834,
357,
549,
17444,
427,
1907,
834,
2246,
226,
3274,
96,
18304,
702,
9928,
1907,
834,
2246,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many prizes were available when Jenny Shin became the champion? | CREATE TABLE table_15315276_1 (purse__ VARCHAR, champion VARCHAR) | SELECT COUNT(purse__) AS $_ FROM table_15315276_1 WHERE champion = "Jenny Shin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27025,
26320,
3959,
834,
536,
41,
3791,
7,
15,
834,
834,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13340,
130,
347,
116,
24244... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3791,
7,
15,
834,
834,
61,
6157,
1514,
834,
21680,
953,
834,
27025,
26320,
3959,
834,
536,
549,
17444,
427,
6336,
3274,
96,
683,
35,
29,
63,
14215,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Longitude has a Latitude of 73.0s, and a Name of aibarchin planitia? | CREATE TABLE table_name_87 (
longitude VARCHAR,
latitude VARCHAR,
name VARCHAR
) | SELECT longitude FROM table_name_87 WHERE latitude = "73.0s" AND name = "aibarchin planitia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
307,
20341,
584,
4280,
28027,
6,
50,
6592,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3230,
20341,
65,
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,
307,
20341,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
50,
6592,
3274,
96,
4552,
5,
632,
7,
121,
3430,
564,
3274,
96,
18071,
52,
5675,
515,
155,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which opponent was a runner-up on 2 march 1998? | CREATE TABLE table_name_6 (opponent_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT opponent_in_the_final FROM table_name_6 WHERE outcome = "runner-up" AND date = "2 march 1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
32,
102,
9977,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
833,
3274,
96,
357,
10556,
6260,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the sum of manager_id bin hire_date by weekday, display by the y axis in asc. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL v... | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
... |
What year was owner Michael E. Pegram's last win? | CREATE TABLE table_71916 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Time" text
) | SELECT MAX("Year") FROM table_71916 WHERE "Owner" = 'michael e. pegram' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
2938,
41,
96,
476,
2741,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
667,
210,
687,
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,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
940,
2294,
2938,
549,
17444,
427,
96,
667,
210,
687,
121,
3274,
3,
31,
51,
362,
9,
15,
40,
3,
15,
5,
158,
5096,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score of round 3? | CREATE TABLE table_21378160_2 (
score VARCHAR,
round VARCHAR
) | SELECT score FROM table_21378160_2 WHERE round = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
3940,
19129,
834,
357,
41,
2604,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
1751,
220,
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,
2604,
21680,
953,
834,
357,
2368,
3940,
19129,
834,
357,
549,
17444,
427,
1751,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the title directed by charles beeson by jeremy carver | CREATE TABLE table_19396259_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR) | SELECT title FROM table_19396259_1 WHERE directed_by = "Charles Beeson" AND written_by = "Jeremy Carver" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3288,
4056,
3390,
834,
536,
41,
21869,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
2294,
3288,
4056,
3390,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
18947,
965,
10024,
739,
121,
3430,
1545,
834,
969,
3274,
96,
18540,
1184,
624,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
In 1912 when the U.S used sapphire, what was the Hindu birthstone? | CREATE TABLE table_name_77 (
hindu VARCHAR,
us__1912_ VARCHAR
) | SELECT hindu FROM table_name_77 WHERE us__1912_ = "sapphire" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
3811,
1259,
584,
4280,
28027,
6,
178,
834,
834,
2294,
2122,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
957,
2122,
116,
8,
412,
5,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3811,
1259,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
178,
834,
834,
2294,
2122,
834,
3274,
96,
7,
3096,
9288,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the D 47 when it has D 48 of d 29 | CREATE TABLE table_66958 (
"D 48" text,
"D 47" text,
"D 46" text,
"D 45" text,
"D 44" text,
"D 43" text,
"D 42" text,
"D 41" text
) | SELECT "D 47" FROM table_66958 WHERE "D 48" = 'd 29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3301,
927,
41,
96,
308,
4678,
121,
1499,
6,
96,
308,
10635,
121,
1499,
6,
96,
308,
9668,
121,
1499,
6,
96,
308,
3479,
121,
1499,
6,
96,
308,
8537,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
10635,
121,
21680,
953,
834,
3539,
3301,
927,
549,
17444,
427,
96,
308,
4678,
121,
3274,
3,
31,
26,
2838,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the power in KW that has a station type of relay and a callsign of DXCL-TV? | CREATE TABLE table_24673888_1 (
power_kw VARCHAR,
station_type VARCHAR,
callsign VARCHAR
) | SELECT power_kw FROM table_24673888_1 WHERE station_type = "Relay" AND callsign = "DXCL-TV" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3708,
519,
10927,
834,
536,
41,
579,
834,
157,
210,
584,
4280,
28027,
6,
2478,
834,
6137,
584,
4280,
28027,
6,
580,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
579,
834,
157,
210,
21680,
953,
834,
2266,
3708,
519,
10927,
834,
536,
549,
17444,
427,
2478,
834,
6137,
3274,
96,
1649,
5595,
121,
3430,
580,
6732,
3274,
96,
308,
4,
8440,
18,
4562,
121,
1,
-100,
-100,
-100,
-100,
... |
What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25? | CREATE TABLE table_74578 (
"Lane" real,
"Name" text,
"Nationality" text,
"Split (50m)" real,
"Time" real
) | SELECT SUM("Lane") FROM table_74578 WHERE "Nationality" = 'sweden' AND "Split (50m)" < '26.25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2128,
3940,
41,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
134,
5900,
17,
41,
1752,
51,
61,
121,
490,
6,
96,
13368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
434,
152,
15,
8512,
21680,
953,
834,
940,
2128,
3940,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
7,
1123,
537,
31,
3430,
96,
134,
5900,
17,
41,
1752,
51,
61,
121,
3,
2,
3,
31,
2688... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about employee_id over the last_name . | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT LAST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
12510,
834,
567,
17683,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
... |
What country has the player Tiger Woods? | CREATE TABLE table_name_60 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_60 WHERE player = "tiger woods" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
17529,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
8,
1959,
11804,
2985,
7,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1959,
3274,
96,
17,
4424,
1679,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average number of runner-up that National University, which has more than 2 total championships, has? | CREATE TABLE table_name_62 (
runner_up INTEGER,
university VARCHAR,
total_championships VARCHAR
) | SELECT AVG(runner_up) FROM table_name_62 WHERE university = "national university" AND total_championships > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
3,
10806,
834,
413,
3,
21342,
17966,
6,
3819,
584,
4280,
28027,
6,
792,
834,
17788,
12364,
2009,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
10806,
834,
413,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
3819,
3274,
96,
16557,
3819,
121,
3430,
792,
834,
17788,
12364,
2009,
7,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many stores are there? | CREATE TABLE store (Id VARCHAR) | SELECT COUNT(*) FROM store | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1078,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3253,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1078,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
is the current pondicherry assembly the tenth or the twelfth ? | CREATE TABLE table_204_54 (
id number,
"pondicherry assembly" text,
"duration" text,
"name of m.l.a." text,
"party affiliation" text,
"election year" number
) | SELECT "pondicherry assembly" FROM table_204_54 ORDER BY "duration" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
5062,
41,
3,
23,
26,
381,
6,
96,
7290,
362,
49,
651,
7889,
121,
1499,
6,
96,
1259,
2661,
121,
1499,
6,
96,
4350,
13,
3,
51,
5,
40,
5,
9,
535,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7290,
362,
49,
651,
7889,
121,
21680,
953,
834,
26363,
834,
5062,
4674,
11300,
272,
476,
96,
1259,
2661,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the Team that was played against on February 24 and a game after game 55? | CREATE TABLE table_43860 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Record" text,
"Streak" text
) | SELECT "Team" FROM table_43860 WHERE "Game" > '55' AND "Date" = 'february 24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3747,
3328,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
11500,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
591,
3747,
3328,
549,
17444,
427,
96,
23055,
121,
2490,
3,
31,
3769,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
89,
15,
9052,
1208,
997,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the college that Jeffrey Simmer plays for? | CREATE TABLE table_15817998_5 (
college VARCHAR,
player VARCHAR
) | SELECT college FROM table_15817998_5 WHERE player = "Jeffrey Simmer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26556,
26593,
3916,
834,
755,
41,
1900,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1900,
24,
24322,
180,
12174,
4805,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
26556,
26593,
3916,
834,
755,
549,
17444,
427,
1959,
3274,
96,
7851,
89,
89,
60,
63,
180,
12174,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the opponent of the match on 3 December 1898 in venue h? | CREATE TABLE table_name_36 (
opponent VARCHAR,
venue VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_36 WHERE venue = "h" AND date = "3 december 1898" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
15264,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
15264,
13,
8,
1588,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
5669,
3274,
96,
107,
121,
3430,
833,
3274,
96,
519,
20,
75,
18247,
507,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player has fewer than 2 rounds? | CREATE TABLE table_name_54 (player VARCHAR, round INTEGER) | SELECT player FROM table_name_54 WHERE round < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
20846,
584,
4280,
28027,
6,
1751,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
65,
3,
10643,
145,
204,
14419,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1751,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What Team had the first round of 1:00? | CREATE TABLE table_name_53 (team VARCHAR, first_round VARCHAR) | SELECT team FROM table_name_53 WHERE first_round = "1:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
11650,
584,
4280,
28027,
6,
166,
834,
7775,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2271,
141,
8,
166,
1751,
13,
3,
24294,
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,
372,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
166,
834,
7775,
3274,
96,
24294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who's the poll source that claimed the Lead Margin was 17 and the Democrat: Jay Nixon had 54% of the votes? | CREATE TABLE table_21793 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Jay Nixon" text,
"Republican: Kenny Hulshof" text,
"Lead Margin" text
) | SELECT "Poll Source" FROM table_21793 WHERE "Democrat: Jay Nixon" = '54%' AND "Lead Margin" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
4271,
41,
96,
8931,
40,
9149,
121,
1499,
6,
96,
308,
6203,
19092,
121,
1499,
6,
96,
19679,
10,
9373,
30506,
121,
1499,
6,
96,
1649,
15727,
152,
10,
5704,
29,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8931,
40,
9149,
121,
21680,
953,
834,
357,
2517,
4271,
549,
17444,
427,
96,
19679,
10,
9373,
30506,
121,
3274,
3,
31,
755,
5988,
31,
3430,
96,
2796,
9,
26,
16409,
77,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-10... |
What was the player with pick 19? | CREATE TABLE table_name_87 (player VARCHAR, pick VARCHAR) | SELECT player FROM table_name_87 WHERE pick = "19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
20846,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1959,
28,
1432,
957,
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,
1959,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1432,
3274,
96,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest measure number? | CREATE TABLE table_256286_55 (meas_num INTEGER) | SELECT MAX(meas_num) FROM table_256286_55 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4056,
3840,
834,
3769,
41,
526,
9,
7,
834,
5525,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
3613,
381,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
526,
9,
7,
834,
5525,
61,
21680,
953,
834,
1828,
4056,
3840,
834,
3769,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date did the episode that had 8.84 million u.s. viewers originally air? | CREATE TABLE table_28768925_1 (
original_air_date VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT original_air_date FROM table_28768925_1 WHERE us_viewers__million_ = "8.84" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3959,
3914,
1828,
834,
536,
41,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2577,
3959,
3914,
1828,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
927,
5,
4608,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose diagnoses icd9 code is 42789? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "42789" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the average number of ties for years with more than 19 wins? | CREATE TABLE table_name_33 (
tied INTEGER,
wins INTEGER
) | SELECT AVG(tied) FROM table_name_33 WHERE wins > 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
10422,
3,
21342,
17966,
6,
9204,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
3,
3010,
21,
203,
28,
72,
145,
957... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
17,
5973,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
9204,
2490,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
With a score smaller than 71 along with a place of t6, what is the To par score? | CREATE TABLE table_name_69 (
to_par VARCHAR,
score VARCHAR,
place VARCHAR
) | SELECT to_par FROM table_name_69 WHERE score < 71 AND place = "t6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
2604,
2755,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
2604,
3,
2,
3,
4450,
3430,
286,
3274,
96,
17,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients have admission location as transfer from hosp/extram with lab test item id 51248? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND lab.itemid = "51248" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
lorant olah scored the same number of goals in the uefa cup as what other player ? | CREATE TABLE table_204_978 (
id number,
"position" number,
"nation" number,
"number" number,
"name" text,
"soproni liga" number,
"uefa cup" number,
"hungarian cup" number,
"league cup" number,
"total" number
) | SELECT "name" FROM table_204_978 WHERE "name" <> 'lorant olah' AND "uefa cup" = (SELECT "uefa cup" FROM table_204_978 WHERE "name" = 'lorant olah') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
21441,
41,
3,
23,
26,
381,
6,
96,
4718,
121,
381,
6,
96,
29,
257,
121,
381,
6,
96,
5525,
1152,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
7,
32,
102,
18074,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
121,
21680,
953,
834,
26363,
834,
21441,
549,
17444,
427,
96,
4350,
121,
3,
2,
3155,
3,
31,
322,
288,
3,
32,
521,
107,
31,
3430,
96,
76,
15,
89,
9,
4119,
121,
3274,
41,
23143,
14196,
96,
76,
15,
89,
... |
Name the result for ji nov k radek t p nek | CREATE TABLE table_22825058_23 (
result VARCHAR,
opponents VARCHAR
) | SELECT result FROM table_22825058_23 WHERE opponents = "Jiří Novák Radek Štěpánek" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
11434,
3449,
834,
2773,
41,
741,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
741,
21,
3,
354,
23,
3,
5326,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
357,
2577,
11434,
3449,
834,
2773,
549,
17444,
427,
16383,
3274,
96,
683,
23,
2,
5098,
2975,
157,
6324,
15,
157,
3,
2,
17,
2,
102,
12916,
15,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position did Pranita Sahu's team get? | CREATE TABLE table_18278508_2 (
position VARCHAR,
co_contestant__yaar_vs_pyaar_ VARCHAR
) | SELECT position FROM table_18278508_2 WHERE co_contestant__yaar_vs_pyaar_ = "Pranita Sahu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2555,
4433,
4018,
834,
357,
41,
1102,
584,
4280,
28027,
6,
576,
834,
1018,
4377,
288,
834,
834,
63,
9,
291,
834,
208,
7,
834,
102,
63,
9,
291,
834,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1102,
21680,
953,
834,
2606,
2555,
4433,
4018,
834,
357,
549,
17444,
427,
576,
834,
1018,
4377,
288,
834,
834,
63,
9,
291,
834,
208,
7,
834,
102,
63,
9,
291,
834,
3274,
96,
345,
2002,
155,
9,
1138,
107,
76,
121,... |
A bar chart for finding the number of the names of catalog entries with level number 8, display Y-axis in ascending order. | CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
previous_entry_id INTEGER,
next_entry_id INTEGER,
catalog_entry_name VARCHAR(80),
product_stock_number VARCHAR(50),
price_in_dollars DOUBLE,
price_in_euros DOUBLE,
pri... | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY COUNT(catalog_entry_name) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22424,
834,
4302,
4669,
7,
41,
10173,
834,
295,
651,
834,
23,
26,
3,
21342,
17966,
6,
10173,
834,
4563,
834,
5525,
1152,
3,
21342,
17966,
6,
4208,
834,
295,
651,
834,
23,
26,
3,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10173,
834,
295,
651,
834,
4350,
6,
2847,
17161,
599,
2138,
9,
2152,
834,
295,
651,
834,
4350,
61,
21680,
22424,
834,
4302,
4669,
7,
6157,
3,
17,
536,
3,
15355,
3162,
22424,
834,
4302,
4669,
7,
834,
20773,
4749,
1... |
What is the date for the home detroit and visitor was chicago? | CREATE TABLE table_74986 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Date" FROM table_74986 WHERE "Home" = 'detroit' AND "Visitor" = 'chicago' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3647,
3840,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
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,
308,
342,
121,
21680,
953,
834,
940,
3647,
3840,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
26,
15252,
155,
31,
3430,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
1436,
658,
839,
31,
1,
-100,
-100,
-100,
-10... |
how many female patients are using the drug mupirocin cream 2%? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.drug = "Mupirocin Cream 2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
How many different isolation numbers does the Jack Mountain peak have? | CREATE TABLE table_19716903_1 (isolation VARCHAR, mountain_peak VARCHAR) | SELECT COUNT(isolation) FROM table_19716903_1 WHERE mountain_peak = "Jack Mountain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
27096,
4928,
834,
536,
41,
23,
4099,
257,
584,
4280,
28027,
6,
4180,
834,
14661,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
15997,
2302,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
23,
4099,
257,
61,
21680,
953,
834,
27181,
27096,
4928,
834,
536,
549,
17444,
427,
4180,
834,
14661,
3274,
96,
683,
4365,
5617,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What outlet has and in-state area of 055 1,497km 2 578mi 2? | CREATE TABLE table_7719 (
"Basin" text,
"Outlet" text,
"Total Area" text,
"In-State Area" text,
"% In-State" text
) | SELECT "Outlet" FROM table_7719 WHERE "In-State Area" = '055 1,497km 2 578mi 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
2294,
41,
96,
14885,
77,
121,
1499,
6,
96,
15767,
1655,
121,
1499,
6,
96,
3696,
1947,
5690,
121,
1499,
6,
96,
1570,
18,
134,
4748,
5690,
121,
1499,
6,
96,
1454,
86,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15767,
1655,
121,
21680,
953,
834,
4013,
2294,
549,
17444,
427,
96,
1570,
18,
134,
4748,
5690,
121,
3274,
3,
31,
3076,
755,
1914,
591,
4327,
5848,
204,
305,
3940,
51,
23,
204,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What's the elevator of Jacques D'euse? | CREATE TABLE table_63142 (
"Elector" text,
"Nationality" text,
"Faction" text,
"Elevated" text,
"Elevator" text
) | SELECT "Elevator" FROM table_63142 WHERE "Elector" = 'jacques d''euse' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
24978,
41,
96,
21543,
127,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
371,
4787,
121,
1499,
6,
96,
427,
10912,
920,
121,
1499,
6,
96,
427,
10912,
1016,
121,
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,
96,
427,
10912,
1016,
121,
21680,
953,
834,
3891,
24978,
549,
17444,
427,
96,
21543,
127,
121,
3274,
3,
31,
1191,
75,
7771,
3,
26,
31,
31,
15,
1074,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the region for georgia | CREATE TABLE table_31662 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
) | SELECT "Region" FROM table_31662 WHERE "State" = 'georgia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25946,
4056,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
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,
0,
0... | [
3,
23143,
14196,
96,
17748,
23,
106,
121,
21680,
953,
834,
25946,
4056,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
397,
1677,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What city is the housemate who entered the house on day 1 and whose profession was a tv presenter from? | CREATE TABLE table_6828 (
"Name" text,
"Profession" text,
"City" text,
"Entered the house" text,
"Evicted" text
) | SELECT "City" FROM table_6828 WHERE "Entered the house" = 'day 1' AND "Profession" = 'tv presenter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2577,
41,
96,
23954,
121,
1499,
6,
96,
3174,
17585,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
16924,
3737,
8,
629,
121,
1499,
6,
96,
427,
7287,
1054,
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,
254,
485,
121,
21680,
953,
834,
3651,
2577,
549,
17444,
427,
96,
16924,
3737,
8,
629,
121,
3274,
3,
31,
1135,
209,
31,
3430,
96,
3174,
17585,
121,
3274,
3,
31,
17,
208,
915,
49,
31,
1,
-100,
-100,
-100,
-100... |
What is the total number played with 8 points and a position more than 6? | CREATE TABLE table_name_90 (played VARCHAR, points VARCHAR, position VARCHAR) | SELECT COUNT(played) FROM table_name_90 WHERE points = 8 AND position > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
4895,
15,
26,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
1944,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
979,
3274,
505,
3430,
1102,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many hours have passed since patient 021-80293's admission in the icu? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TA... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '021-80293' AND patient.unitdischargetime IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
997,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
61,
216... |
hematocrit > 34 % in female and > 35 % in male ; | CREATE TABLE table_train_206 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"systolic_blood_pressure_sbp" int,
"hematocrit_hct" float,
"diabetic" string,
"contraception" bool,
"diastolic_blood_pressure_dbp" int,
"serum_creatinine" float,
"NOUSE" float
) | SELECT * FROM table_train_206 WHERE (hematocrit_hct > 35 AND gender = 'male') OR (hematocrit_hct > 34 AND gender = 'female') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
24643,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
2026,
11260,
11298,
834,
127,
834,
9700,
6821,
121,
3,
12840,
40,
6,
96,
7,
63,
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,
1429,
21680,
953,
834,
9719,
834,
24643,
549,
17444,
427,
41,
6015,
9,
235,
12563,
834,
107,
75,
17,
2490,
3097,
3430,
7285,
3274,
3,
31,
13513,
31,
61,
4674,
41,
6015,
9,
235,
12563,
834,
107,
75,
17,
2490,
6154,... |
What Loss had an Attendance of 17,675? | CREATE TABLE table_name_35 (loss VARCHAR, attendance VARCHAR) | SELECT loss FROM table_name_35 WHERE attendance = "17,675" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
2298,
7,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3144,
7,
141,
46,
22497,
663,
13,
12864,
3708,
755,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
11364,
3274,
96,
2517,
6,
3708,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is days of hospital stay and procedure long title of subject id 25543? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT demographic.days_stay, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "25543" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1135,
7,
834,
21545,
6,
4293,
5,
2961,
834,
21869,
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,
427,
14798,
5,... |
What is the earliest day in November with a record of 15-7-1? | CREATE TABLE table_name_67 (
november INTEGER,
record VARCHAR
) | SELECT MIN(november) FROM table_name_67 WHERE record = "15-7-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
3,
5326,
18247,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
239,
16,
1671,
28,
3,
9,
1368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
5326,
18247,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1368,
3274,
96,
1808,
6832,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the series number of the episode that aired March 25, 2010? | CREATE TABLE table_2891 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text,
"Production code" real
) | SELECT MIN("No. in series") FROM table_2891 WHERE "Original air date" = 'March 25, 2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4729,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
4168,
5,
16,
939,
8512,
21680,
953,
834,
2577,
4729,
549,
17444,
427,
96,
667,
3380,
10270,
799,
833,
121,
3274,
3,
31,
25019,
14105,
2735,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the source corresponding to a date of May 25 27? | CREATE TABLE table_39520 (
"Source" text,
"Date" text,
"DeSUS" text,
"Zares" text,
"NLPD" text
) | SELECT "Source" FROM table_39520 WHERE "Date" = 'may 25–27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
25356,
41,
96,
23799,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
2962,
134,
3063,
121,
1499,
6,
96,
956,
355,
7,
121,
1499,
6,
96,
18207,
6251,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23799,
121,
21680,
953,
834,
3288,
25356,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
944,
104,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Average Pick # has an Overall of 296? | CREATE TABLE table_name_8 (
pick__number INTEGER,
overall VARCHAR
) | SELECT AVG(pick__number) FROM table_name_8 WHERE overall = 296 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
23836,
8356,
1713,
65,
46,
9126,
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,
71,
17217,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
1879,
3274,
204,
4314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.