NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the attendance of the game in week 13? | CREATE TABLE table_name_11 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_11 WHERE week = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
15116,
663,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
13,
8,
467,
16,
471,
1179,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
471,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the opponent with result of w 35-21 | CREATE TABLE table_name_82 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_82 WHERE result = "w 35-21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
32,
102,
9977,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
28,
741,
13,
3,
210,
3097,
16539,
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,
15264,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
741,
3274,
96,
210,
3097,
16539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose diagnoses long title is personal history of surgery to other organs? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Personal history of surgery to other organs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the 140lbs for 130lbs Jake Evans (Mojave)? | CREATE TABLE table_13209 (
"Class" text,
"Team" text,
"103lbs" text,
"112lbs" text,
"119lbs" text,
"125lbs" text,
"130lbs" text,
"135lbs" text,
"140lbs" text
) | SELECT "140lbs" FROM table_13209 WHERE "130lbs" = 'jake evans (mojave)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23757,
4198,
41,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
17864,
9949,
121,
1499,
6,
96,
2596,
357,
9949,
121,
1499,
6,
96,
19993,
9949,
121,
1499,
6,
96,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22012,
9949,
121,
21680,
953,
834,
23757,
4198,
549,
17444,
427,
96,
21448,
9949,
121,
3274,
3,
31,
1191,
1050,
3,
15,
2132,
7,
41,
51,
32,
1191,
162,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Result of Goal number 3? | CREATE TABLE table_name_21 (result VARCHAR, goal VARCHAR) | SELECT result FROM table_name_21 WHERE goal = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
1288,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
20119,
13,
17916,
381,
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,
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,
741,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1288,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many outputs are there for solid state, battery operated for portable use listed in notes? | CREATE TABLE table_25276250_3 (outputs VARCHAR, notes VARCHAR) | SELECT COUNT(outputs) FROM table_25276250_3 WHERE notes = "Solid state, battery operated for portable use" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
357,
3959,
11434,
834,
519,
41,
670,
2562,
7,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3911,
7,
33,
132,
21,
1973,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
670,
2562,
7,
61,
21680,
953,
834,
1828,
357,
3959,
11434,
834,
519,
549,
17444,
427,
3358,
3274,
96,
5231,
8130,
538,
6,
3322,
7747,
21,
6262,
169,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is To Par, when Place is 'T5', and when Country is 'United States'? | CREATE TABLE table_name_18 (
to_par VARCHAR,
place VARCHAR,
country VARCHAR
) | SELECT to_par FROM table_name_18 WHERE place = "t5" AND country = "united states" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
12,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
304,
2180,
6,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
286,
3274,
96,
17,
17395,
3430,
684,
3274,
96,
15129,
15,
26,
2315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What round was the fight won or loss by a decision? | CREATE TABLE table_name_4 (round INTEGER, method VARCHAR) | SELECT MIN(round) FROM table_name_4 WHERE method = "decision" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
7775,
3,
21342,
17966,
6,
1573,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1751,
47,
8,
2870,
751,
42,
1453,
57,
3,
9,
1357,
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,
3,
17684,
599,
7775,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
1573,
3274,
96,
221,
18901,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of price , and group by attribute name, and I want to rank by the y-axis in asc. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Price | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
541... |
what was the name of the competition that took place before the olympic games in 1996 ? | CREATE TABLE table_203_874 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | SELECT "competition" FROM table_203_874 WHERE "year" < (SELECT "year" FROM table_203_874 WHERE "competition" = 'olympic games' AND "year" = 1996) ORDER BY "year" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4225,
591,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
15,
2169,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
287,
4995,
4749,
121,
21680,
953,
834,
23330,
834,
4225,
591,
549,
17444,
427,
96,
1201,
121,
3,
2,
41,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
23330,
834,
4225,
591,
549,
17444,
427,
96,
287,
4995,
4749,
... |
Who was the Home Captain and the Result for AUS by 4 wkts? | CREATE TABLE table_name_25 (
home_captain VARCHAR,
result VARCHAR
) | SELECT home_captain FROM table_name_25 WHERE result = "aus by 4 wkts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
234,
834,
4010,
17,
9,
77,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1210,
12202,
11,
8,
3,
2011... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
4010,
17,
9,
77,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
741,
3274,
96,
2064,
57,
314,
3,
210,
157,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the date of the uncaf nations cup 2009 | CREATE TABLE table_name_91 (date VARCHAR, competition VARCHAR) | SELECT date FROM table_name_91 WHERE competition = "uncaf nations cup 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
5522,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
13,
8,
73,
658,
89,
9352,
4119,
2464,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2259,
3274,
96,
202,
658,
89,
9352,
4119,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Rank has a Club of zulte waregem, and Points larger than 22? | CREATE TABLE table_38084 (
"Rank" real,
"Club" text,
"Seasons" real,
"Played" real,
"Drew" real,
"Lost" real,
"Points" real,
"Avg. Points" real,
"Goals for" real,
"Goals against" real,
"Goal diff" real
) | SELECT COUNT("Rank") FROM table_38084 WHERE "Club" = 'zulte waregem' AND "Points" > '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22671,
4608,
41,
96,
22557,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
134,
15,
9,
6577,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
60,
210,
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,
2847,
17161,
599,
121,
22557,
8512,
21680,
953,
834,
22671,
4608,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
172,
83,
17,
15,
3,
3404,
397,
51,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
2884,
31,
1,
-100... |
Who was the writer of the episode that originally aired on October 14, 1968? | CREATE TABLE table_25800134_13 (writer_s_ VARCHAR, airdate VARCHAR) | SELECT writer_s_ FROM table_25800134_13 WHERE airdate = "October 14, 1968" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
6192,
23747,
834,
2368,
41,
12756,
834,
7,
834,
584,
4280,
28027,
6,
799,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4346,
13,
8,
5640,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4346,
834,
7,
834,
21680,
953,
834,
1828,
6192,
23747,
834,
2368,
549,
17444,
427,
799,
5522,
3274,
96,
28680,
11363,
16506,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
During the game at Candlestick Park, who was the visiting team? | CREATE TABLE table_name_99 (
visiting_team VARCHAR,
stadium VARCHAR
) | SELECT visiting_team FROM table_name_99 WHERE stadium = "candlestick park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
3644,
834,
11650,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
2092,
8,
467,
44,
25870,
9656,
1061,
6,
113,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3644,
834,
11650,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
14939,
3274,
96,
75,
232,
109,
9656,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many male patients had chronic total occlusion of coronary artery as their diagnosis long title? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Chronic total occlusion of coronary artery" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
provide me with the age and location of discharge for patient with patient id 2560. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.age, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
545,
6,
14798,
5,
26,
159,
7993,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the minimumfor 5wi? | CREATE TABLE table_30791 (
"Player" text,
"Matches" real,
"Innings" real,
"Wickets" real,
"Average" text,
"BBI" text,
"BBM" text,
"5wi" real,
"10wi" real
) | SELECT MIN("5wi") FROM table_30791 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4440,
536,
41,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
518,
447,
8044,
7,
121,
490,
6,
96,
188,
624,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
755,
210,
23,
8512,
21680,
953,
834,
1458,
4440,
536,
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 is the score for the home team when the venue is Junction Oval? | CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_96 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
234,
372,
116,
8,
5669,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Losses have a Wimmera FL of minyip murtoa? | CREATE TABLE table_name_35 (
losses INTEGER,
wimmera_fl VARCHAR
) | SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
8467,
3,
21342,
17966,
6,
3,
210,
12174,
9,
834,
89,
40,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3144,
2260,
43,
3,
9,
549,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3,
210,
12174,
9,
834,
89,
40,
3274,
96,
1109,
63,
23,
102,
9593,
235,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which League Cup has a FA Cup of 5, and a Club of boston united, and a League smaller than 16? | CREATE TABLE table_41398 (
"Player" text,
"Club" text,
"League" real,
"FA Cup" real,
"FA Trophy" real,
"League Cup" real,
"Total" real
) | SELECT MAX("League Cup") FROM table_41398 WHERE "FA Cup" = '5' AND "Club" = 'boston united' AND "League" < '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2368,
3916,
41,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
4795,
3802,
121,
490,
6,
96,
4795,
26912,
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,
4800,
4,
599,
121,
2796,
9,
5398,
3802,
8512,
21680,
953,
834,
591,
2368,
3916,
549,
17444,
427,
96,
4795,
3802,
121,
3274,
3,
31,
755,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
115,
32,
4411,
18279,
31,
3430,
... |
Which Sub-Parish has a church built in 1866? | CREATE TABLE table_59055 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sokn)" text,
"Church Name" text,
"Year Built" text,
"Location of the Church" text
) | SELECT "Sub-Parish (Sokn)" FROM table_59055 WHERE "Year Built" = '1866' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2394,
3769,
41,
96,
13212,
1273,
41,
10572,
849,
122,
354,
8804,
61,
121,
1499,
6,
96,
25252,
18,
13212,
1273,
41,
134,
1825,
29,
61,
121,
1499,
6,
96,
3541,
450,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25252,
18,
13212,
1273,
41,
134,
1825,
29,
61,
121,
21680,
953,
834,
755,
2394,
3769,
549,
17444,
427,
96,
476,
2741,
14862,
121,
3274,
3,
31,
2606,
3539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was Kelin nominated? | CREATE TABLE table_name_53 (year_ceremony VARCHAR, english_title VARCHAR) | SELECT year_ceremony FROM table_name_53 WHERE english_title = "kelin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
1201,
834,
2110,
15,
21208,
584,
4280,
28027,
6,
22269,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
13329,
77,
150,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
2110,
15,
21208,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
22269,
834,
21869,
3274,
96,
5768,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Bar graph to show the average of high temperature from different day of week, I want to rank by the bars from low to high. | CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TA... | SELECT day_of_week, AVG(high_temperature) FROM weekly_weather GROUP BY day_of_week ORDER BY day_of_week | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2981,
41,
2412,
834,
23,
26,
16,
17,
6,
2478,
834,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,
26,
16,
17,
6,
1229,
834,
4350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
239,
834,
858,
834,
8041,
6,
71,
17217,
599,
6739,
834,
21010,
15,
61,
21680,
5547,
834,
26809,
350,
4630,
6880,
272,
476,
239,
834,
858,
834,
8041,
4674,
11300,
272,
476,
239,
834,
858,
834,
8041,
1,
-100,
-100,
... |
Name the athlete for bulgaria with rank less than 22 | CREATE TABLE table_67757 (
"Rank" real,
"Time" text,
"Wind (m/s)" text,
"Athlete" text,
"Nation" text,
"Date" text,
"Location" text
) | SELECT "Athlete" FROM table_67757 WHERE "Rank" < '22' AND "Nation" = 'bulgaria' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3072,
940,
41,
96,
22557,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
18455,
26,
41,
51,
87,
7,
61,
121,
1499,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
567,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
189,
1655,
15,
121,
21680,
953,
834,
3708,
3072,
940,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
2884,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
6724,
122,
6286,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who was ashley sampi's opponent? | CREATE TABLE table_name_71 (
opponent VARCHAR,
player VARCHAR
) | SELECT opponent FROM table_name_71 WHERE player = "ashley sampi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
15264,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
3,
3198,
1306,
3,
7,
4624,
23,
31,
7,
15264,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1959,
3274,
96,
3198,
1306,
3,
7,
4624,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the total diameter when longitude is 357.8e later than 1985? | CREATE TABLE table_name_60 (diameter__km_ VARCHAR, longitude VARCHAR, year_named VARCHAR) | SELECT COUNT(diameter__km_) FROM table_name_60 WHERE longitude = "357.8e" AND year_named > 1985 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
26,
23,
9,
4401,
834,
834,
5848,
834,
584,
4280,
28027,
6,
307,
20341,
584,
4280,
28027,
6,
215,
834,
4350,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
26,
23,
9,
4401,
834,
834,
5848,
834,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
307,
20341,
3274,
96,
519,
3436,
5,
927,
15,
121,
3430,
215,
834,
4350,
26,
2490,
13200,
1,
-100,
-100... |
What is the Lundu (Salako) word for the Siburan-Pandawan word ěku? | CREATE TABLE table_name_36 (lundu__salako_ VARCHAR, siburan_padawan VARCHAR) | SELECT lundu__salako_ FROM table_name_36 WHERE siburan_padawan = "ěku" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
40,
1106,
76,
834,
834,
7,
138,
1639,
32,
834,
584,
4280,
28027,
6,
108,
5808,
152,
834,
5612,
9,
3877,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
1106,
76,
834,
834,
7,
138,
1639,
32,
834,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
108,
5808,
152,
834,
5612,
9,
3877,
3274,
96,
2,
2729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What region has 57 vehicles? | CREATE TABLE table_42355 (
"Region" text,
"Location" text,
"From" text,
"Depots (12.09)" real,
"Routes (12.09)" real,
"Vehicles (12.09)" real
) | SELECT "Region" FROM table_42355 WHERE "Vehicles (12.09)" = '57' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2773,
3769,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
22674,
121,
1499,
6,
96,
2962,
3013,
7,
16465,
5,
4198,
61,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17748,
23,
106,
121,
21680,
953,
834,
591,
2773,
3769,
549,
17444,
427,
96,
553,
15,
107,
447,
965,
16465,
5,
4198,
61,
121,
3274,
3,
31,
3436,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What league was involved in 2008? | CREATE TABLE table_21602734_1 (league VARCHAR, year VARCHAR) | SELECT league FROM table_21602734_1 WHERE year = 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
19129,
2555,
3710,
834,
536,
41,
29512,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5533,
47,
1381,
16,
2628,
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,
5533,
21680,
953,
834,
357,
19129,
2555,
3710,
834,
536,
549,
17444,
427,
215,
3274,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Record label has an Album of tera roop? | CREATE TABLE table_name_84 (
record_label VARCHAR,
album VARCHAR
) | SELECT record_label FROM table_name_84 WHERE album = "tera roop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
1368,
834,
40,
10333,
584,
4280,
28027,
6,
2306,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
11392,
3783,
65,
46,
16135,
13,
3,
449,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
834,
40,
10333,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
2306,
3274,
96,
449,
9,
3,
52,
6631,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Date had a Transfer fee of 8.8m? | CREATE TABLE table_name_45 (
date VARCHAR,
transfer_fee VARCHAR
) | SELECT date FROM table_name_45 WHERE transfer_fee = "£8.8m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
833,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
141,
3,
9,
9900,
2572,
13,
4848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
19853,
927,
5,
927,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which race ended with a time of 01:46:59.69? | CREATE TABLE table_name_13 (
race VARCHAR,
time VARCHAR
) | SELECT race FROM table_name_13 WHERE time = "01:46:59.69" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
1964,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1964,
3492,
28,
3,
9,
97,
13,
7088,
10,
4448,
10,
3390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
97,
3274,
96,
4542,
10,
4448,
10,
3390,
5,
3951,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of appointment of the manager who was replaced by markus babbel? | CREATE TABLE table_47919 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Date of appointment" FROM table_47919 WHERE "Replaced by" = 'markus babbel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4440,
2294,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
13,
4141,
121,
21680,
953,
834,
591,
4440,
2294,
549,
17444,
427,
96,
1649,
4687,
26,
57,
121,
3274,
3,
31,
3920,
302,
3,
12534,
2370,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the record on the date of november 10, 1968? | CREATE TABLE table_44149 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT "Record" FROM table_44149 WHERE "Date" = 'november 10, 1968' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
24816,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
3628,
24816,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
10372,
16506,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who was the top player selectedd from the citadel ? | CREATE TABLE table_204_263 (
id number,
"pick" number,
"player" text,
"country of origin" text,
"pba team" text,
"college" text
) | SELECT "player" FROM table_204_263 WHERE "college" = 'the citadel' ORDER BY "pick" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3891,
41,
3,
23,
26,
381,
6,
96,
17967,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
17529,
13,
5233,
121,
1499,
6,
96,
102,
115,
9,
372,
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,
20846,
121,
21680,
953,
834,
26363,
834,
357,
3891,
549,
17444,
427,
96,
3297,
7883,
121,
3274,
3,
31,
532,
6895,
15311,
31,
4674,
11300,
272,
476,
96,
17967,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-1... |
What is the Outcome when the partner was kristof vliegen? | CREATE TABLE table_42719 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Outcome" FROM table_42719 WHERE "Partner" = 'kristof vliegen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2555,
2294,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
667,
102,
9977,
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,
15767,
287,
15,
121,
21680,
953,
834,
591,
2555,
2294,
549,
17444,
427,
96,
13725,
687,
121,
3274,
3,
31,
157,
17149,
89,
3,
208,
15342,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Sign-in/Bicker at wash50 on washington rd? | CREATE TABLE table_name_27 (sign_in_bicker VARCHAR, location VARCHAR) | SELECT sign_in_bicker FROM table_name_27 WHERE location = "wash50 on washington rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
6732,
834,
77,
834,
15979,
2304,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6365,
18,
77,
87,
279,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1320,
834,
77,
834,
15979,
2304,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1128,
3274,
96,
14710,
1752,
30,
6179,
6029,
3,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average week with St. Louis Cardinals with less than 80,010 attendance? | CREATE TABLE table_name_99 (week INTEGER, opponent VARCHAR, attendance VARCHAR) | SELECT AVG(week) FROM table_name_99 WHERE opponent = "st. louis cardinals" AND attendance < 80 OFFSET 010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
8041,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
471,
28,
472,
5,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
15264,
3274,
96,
7,
17,
5,
16585,
159,
895,
10270,
7,
121,
3430,
11364,
3,
2,
2775,
3,
15316,
20788,
7088,
632,
1,
-100,
-100,
-100,
-10... |
which record is faster , 50km race walk or marathon | CREATE TABLE table_203_102 (
id number,
"event" text,
"performance" text,
"athlete" text,
"nation" text,
"place" text,
"date" text
) | SELECT "event" FROM table_203_102 WHERE "event" IN ('50 km race walk', 'marathon') ORDER BY "performance" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
14388,
41,
3,
23,
26,
381,
6,
96,
15,
2169,
121,
1499,
6,
96,
18558,
121,
1499,
6,
96,
26170,
15,
121,
1499,
6,
96,
29,
257,
121,
1499,
6,
96,
4687,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15,
2169,
121,
21680,
953,
834,
23330,
834,
14388,
549,
17444,
427,
96,
15,
2169,
121,
3388,
41,
31,
1752,
2280,
1964,
1482,
31,
6,
3,
31,
1635,
24718,
31,
61,
4674,
11300,
272,
476,
96,
18558,
121,
8729,
1260... |
has patient 015-56390 been prescribed a drug? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-56390')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
What was the 1st leg score for the match with Lesotho as team 1? | CREATE TABLE table_42677 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "1st leg" FROM table_42677 WHERE "Team 1" = 'lesotho' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2688,
4013,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
4553,
121,
21680,
953,
834,
591,
2688,
4013,
549,
17444,
427,
96,
18699,
209,
121,
3274,
3,
31,
965,
32,
189,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what season was the pct % 0.552? | CREATE TABLE table_2110959_1 (season VARCHAR, pct__percentage VARCHAR) | SELECT season FROM table_2110959_1 WHERE pct__percentage = "0.552" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
17304,
3390,
834,
536,
41,
9476,
584,
4280,
28027,
6,
3,
102,
75,
17,
834,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
774,
47,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
2658,
17304,
3390,
834,
536,
549,
17444,
427,
3,
102,
75,
17,
834,
834,
883,
3728,
545,
3274,
96,
12100,
5373,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many games had red star as the runner up? | CREATE TABLE table_73958 (
"Year" text,
"Winner" text,
"Runner-up" text,
"Result" text,
"Venues" text,
"Attendance" real,
"Entries" real
) | SELECT COUNT("Attendance") FROM table_73958 WHERE "Runner-up" = 'Red Star' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3288,
3449,
41,
96,
476,
2741,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
553,
35,
76,
15,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
940,
3288,
3449,
549,
17444,
427,
96,
23572,
18,
413,
121,
3274,
3,
31,
1649,
26,
2042,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
who is beavercreek's representative | CREATE TABLE table_29486189_4 (
representative VARCHAR,
residence VARCHAR
) | SELECT representative FROM table_29486189_4 WHERE residence = "Beavercreek" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3707,
4241,
3914,
834,
591,
41,
6978,
584,
4280,
28027,
6,
6198,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
36,
9,
624,
5045,
15,
157,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6978,
21680,
953,
834,
3166,
3707,
4241,
3914,
834,
591,
549,
17444,
427,
6198,
3274,
96,
2703,
9,
624,
5045,
15,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560? | CREATE TABLE table_name_89 (
mpg_uk_combined VARCHAR,
engine_capacity VARCHAR,
fuel_type VARCHAR,
mpg_uk_urban__cold_ VARCHAR,
transmission VARCHAR
) | SELECT mpg_uk_combined FROM table_name_89 WHERE mpg_uk_urban__cold_ > 26.6 AND transmission = "m5" AND fuel_type = "diesel" AND engine_capacity < 1560 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
3,
1167,
122,
834,
1598,
834,
287,
12712,
26,
584,
4280,
28027,
6,
1948,
834,
4010,
9,
6726,
584,
4280,
28027,
6,
2914,
834,
6137,
584,
4280,
28027,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
1167,
122,
834,
1598,
834,
287,
12712,
26,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
3,
1167,
122,
834,
1598,
834,
19413,
834,
834,
3297,
26,
834,
2490,
204,
28833,
3430,
5790,
3274,
96,
51,
17395,
3430,... |
What is the largest series number? | CREATE TABLE table_19517621_4 (
series__number INTEGER
) | SELECT MAX(series__number) FROM table_19517621_4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
26782,
2658,
834,
591,
41,
939,
834,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
939,
381,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10833,
7,
834,
834,
5525,
1152,
61,
21680,
953,
834,
22464,
26782,
2658,
834,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many drivers did not participate in the races held in 2009? | CREATE TABLE races (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR); CREATE TABLE results (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR) | SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10879,
41,
13739,
52,
196,
26,
584,
4280,
28027,
6,
1964,
196,
26,
584,
4280,
28027,
6,
30431,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
772,
41,
13739... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
196,
26,
61,
21680,
772,
549,
17444,
427,
4486,
1964,
196,
26,
3388,
41,
23143,
14196,
1964,
196,
26,
21680,
10879,
549,
17444,
427,
30431,
3,
2,
3155,
2464,
61,
1,
-100,
... |
What Venue has a Past Season of 2nd? | CREATE TABLE table_name_89 (
venue VARCHAR,
past_season VARCHAR
) | SELECT venue FROM table_name_89 WHERE past_season = "2nd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
5669,
584,
4280,
28027,
6,
657,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
29940,
65,
3,
9,
10180,
7960,
13,
204,
727,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
657,
834,
9476,
3274,
96,
357,
727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose ethnicity is white and marital status is divorced. | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.ethnicity = "WHITE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
15,
189,
... |
Album # of 5th is what chinese title? | CREATE TABLE table_36117 (
"Album#" text,
"English title" text,
"Chinese title" text,
"Released" text,
"Label" text
) | SELECT "Chinese title" FROM table_36117 WHERE "Album#" = '5th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
20275,
41,
96,
25691,
440,
4663,
121,
1499,
6,
96,
26749,
2233,
121,
1499,
6,
96,
3541,
4477,
15,
2233,
121,
1499,
6,
96,
1649,
29107,
121,
1499,
6,
96,
434,
10333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3541,
4477,
15,
2233,
121,
21680,
953,
834,
3420,
20275,
549,
17444,
427,
96,
25691,
440,
4663,
121,
3274,
3,
31,
755,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the ergative for the dative chven? | CREATE TABLE table_46632 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
) | SELECT "Ergative" FROM table_46632 WHERE "Dative" = 'chven' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3539,
2668,
41,
96,
4168,
1109,
1528,
121,
1499,
6,
96,
10575,
122,
1528,
121,
1499,
6,
96,
308,
1528,
121,
1499,
6,
96,
13714,
23,
3268,
121,
1499,
6,
96,
1570,
615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10575,
122,
1528,
121,
21680,
953,
834,
591,
3539,
2668,
549,
17444,
427,
96,
308,
1528,
121,
3274,
3,
31,
524,
1926,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many deciles have Years of 9–13? | CREATE TABLE table_name_68 (decile VARCHAR, years VARCHAR) | SELECT COUNT(decile) FROM table_name_68 WHERE years = "9–13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
24223,
109,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7908,
965,
43,
13825,
13,
668,
104,
2368,
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,
2847,
17161,
599,
24223,
109,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
203,
3274,
96,
1298,
104,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the perpetrator with the biggest weight. | CREATE TABLE perpetrator (
People_ID VARCHAR
)
CREATE TABLE people (
Name VARCHAR,
People_ID VARCHAR,
Weight VARCHAR
) | SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
28998,
127,
41,
2449,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
5570,
584,
4280,
28027,
6,
2449,
834,
4309,
584,
4280,
28027,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
21680,
151,
6157,
332,
536,
3,
15355,
3162,
28998,
127,
6157,
332,
357,
9191,
332,
5411,
24337,
834,
4309,
3274,
332,
4416,
24337,
834,
4309,
4674,
11300,
272,
476,
332,
5411,
1326,
2632,
309,
25067,
... |
How many countries played in the city of ljungskile? | CREATE TABLE table_28005160_2 (
country VARCHAR,
city VARCHAR
) | SELECT COUNT(country) FROM table_28005160_2 WHERE city = "Ljungskile" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
3076,
19129,
834,
357,
41,
684,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1440,
1944,
16,
8,
690,
13,
3,
40,
22498,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
17529,
61,
21680,
953,
834,
17518,
3076,
19129,
834,
357,
549,
17444,
427,
690,
3274,
96,
434,
22498,
4009,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Country, when Place is "T8", and when Score is "70-67=137"? | CREATE TABLE table_name_98 (country VARCHAR, place VARCHAR, score VARCHAR) | SELECT country FROM table_name_98 WHERE place = "t8" AND score = 70 - 67 = 137 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
17529,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
3399,
19,
96,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
286,
3274,
96,
17,
927,
121,
3430,
2604,
3274,
2861,
3,
18,
3,
3708,
3274,
3,
24636,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is admission type of subject id 3343? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "3343" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4201,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Home Captain has Eng by 208 runs? | CREATE TABLE table_80204 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Home captain" FROM table_80204 WHERE "Result" = 'eng by 208 runs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
26363,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
14268,
121,
1499,
6,
96,
188,
1343,
14268,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
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,
19040,
14268,
121,
21680,
953,
834,
2079,
26363,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
4606,
57,
3,
23946,
3154,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Plot a scatter chart, support rate by oppose_rate. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Support_rate, Oppose_rate FROM candidate | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4224,
834,
2206,
6,
4495,
2748,
15,
834,
2206,
21680,
4775,
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,
... |
Which home team has an Away team of fitzroy? | CREATE TABLE table_name_73 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_73 WHERE away_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
234,
372,
65,
46,
71,
1343,
372,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
550,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
find out the icu stay id of patient with patient id 18480. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT prescriptions.icustay_id FROM prescriptions WHERE prescriptions.subject_id = "18480" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7744,
7,
5,
23,
1071,
21545,
834,
23,
26,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
7304,
11827,
834,
23,
26,
3274,
96,
2606,
20579,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which round did jonathan bomarito win? | CREATE TABLE table_name_23 (
round VARCHAR,
winning_driver VARCHAR
) | SELECT round FROM table_name_23 WHERE winning_driver = "jonathan bomarito" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1751,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1751,
410,
3,
15429,
9,
6736,
3005,
17289,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
15429,
9,
6736,
3005,
17289,
235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the Termination of Mission listed that has a Presentation of Credentials for August 29, 1859? | CREATE TABLE table_80065 (
"Representative" text,
"Title" text,
"Presentation of Credentials" text,
"Termination of Mission" text,
"Appointed by" text
) | SELECT "Termination of Mission" FROM table_80065 WHERE "Presentation of Credentials" = 'august 29, 1859' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6192,
4122,
41,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
10572,
5277,
257,
13,
14301,
7220,
7,
121,
1499,
6,
96,
11679,
77,
257,
13,
8960... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11679,
77,
257,
13,
8960,
121,
21680,
953,
834,
6192,
4122,
549,
17444,
427,
96,
10572,
5277,
257,
13,
14301,
7220,
7,
121,
3274,
3,
31,
402,
17198,
14405,
507,
3390,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the RAM (MiB) value for the X30 Mid-Range model? | CREATE TABLE table_name_71 (
ram___mib__ VARCHAR,
model VARCHAR
) | SELECT ram___mib__ FROM table_name_71 WHERE model = "x30 mid-range" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
3,
2375,
834,
834,
834,
51,
23,
115,
834,
834,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12118,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
2375,
834,
834,
834,
51,
23,
115,
834,
834,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
825,
3274,
96,
226,
1458,
2076,
18,
5517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the pick of wiley college? | CREATE TABLE table_66639 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Pick" FROM table_66639 WHERE "College" = 'wiley' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3539,
3288,
41,
96,
345,
3142,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
345,
3142,
121,
21680,
953,
834,
948,
3539,
3288,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
210,
23,
1306,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the high assists when the team was @ Minnesota? | CREATE TABLE table_17323092_7 (high_assists VARCHAR, team VARCHAR) | SELECT high_assists FROM table_17323092_7 WHERE team = "@ Minnesota" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2668,
1458,
4508,
834,
940,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
13041,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2517,
2668,
1458,
4508,
834,
940,
549,
17444,
427,
372,
3274,
96,
1741,
9745,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What institution is located in St. Peter? | CREATE TABLE table_261913_1 (institution VARCHAR, location__all_in_minnesota_ VARCHAR) | SELECT institution FROM table_261913_1 WHERE location__all_in_minnesota_ = "St. Peter" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2294,
2368,
834,
536,
41,
77,
17448,
584,
4280,
28027,
6,
1128,
834,
834,
1748,
834,
77,
834,
1109,
1496,
32,
17,
9,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6568,
21680,
953,
834,
2688,
2294,
2368,
834,
536,
549,
17444,
427,
1128,
834,
834,
1748,
834,
77,
834,
1109,
1496,
32,
17,
9,
834,
3274,
96,
134,
17,
5,
2737,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
To which party does Robert W. Edgar belong? | CREATE TABLE table_1341598_39 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1341598_39 WHERE incumbent = "Robert W. Edgar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
3916,
834,
3288,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
304,
84,
1088,
405,
2715,
549,
5,
27151,
13000,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
1808,
3916,
834,
3288,
549,
17444,
427,
28406,
3274,
96,
24372,
49,
17,
549,
5,
27151,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the player from a round larger than 5 and the college/junior/club team of Leningrad SKA (russia)? | CREATE TABLE table_37434 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team" text
) | SELECT "Player" FROM table_37434 WHERE "Round" > '5' AND "College/Junior/Club Team" = 'leningrad ska (russia)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4581,
3710,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
519,
4581,
3710,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
755,
31,
3430,
96,
9939,
7883,
87,
683,
202,
23,
127,
87,
254,
11158,
2271,
121,
3274,
3,
31,
26532,
29... |
Who swam in a lane less than 6 and finished with a time of 2:11.02? | CREATE TABLE table_name_70 (
name VARCHAR,
lane VARCHAR,
time VARCHAR
) | SELECT name FROM table_name_70 WHERE lane < 6 AND time = "2:11.02" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
564,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
3,
7,
210,
265,
16,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3,
8102,
3,
2,
431,
3430,
97,
3274,
96,
357,
10,
10032,
4305,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Mountain Peak has a Region of baja california, and a Location of 28.1301°n 115.2206°w? | CREATE TABLE table_name_87 (mountain_peak VARCHAR, region VARCHAR, location VARCHAR) | SELECT mountain_peak FROM table_name_87 WHERE region = "baja california" AND location = "28.1301°n 115.2206°w" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
11231,
9,
77,
834,
14661,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5617,
18996,
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,
4180,
834,
14661,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1719,
3274,
96,
115,
9,
1191,
3,
15534,
1161,
29,
23,
9,
121,
3430,
1128,
3274,
96,
357,
20677,
25626,
1956,
29,
850,
24342,
24643,
1956,
210,
121... |
What is the most recent year that had a time of 1:36.69? | CREATE TABLE table_49899 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Time" text
) | SELECT MAX("Year") FROM table_49899 WHERE "Time" = '1:36.69' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3916,
3264,
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,
591,
3916,
3264,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
536,
10,
3420,
5,
3951,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who's the Runner(s)-up with a Winning score of 19 (71-63-63-64=261)? | CREATE TABLE table_name_97 (
runner_s__up VARCHAR,
winning_score VARCHAR
) | SELECT runner_s__up FROM table_name_97 WHERE winning_score = −19(71 - 63 - 63 - 64 = 261) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
10806,
834,
7,
834,
834,
413,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
2,
2294,
599,
4450,
3,
18,
3,
3891,
3,
18,
3,
3891,
3,
18,
6687,
3274,
2208,
6982,
1,
-100,
-100... |
Which Election has a Party of democratic party, and a Mayor of leonardo betti? | CREATE TABLE table_name_52 (election INTEGER, party VARCHAR, mayor VARCHAR) | SELECT MAX(election) FROM table_name_52 WHERE party = "democratic party" AND mayor = "leonardo betti" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
15,
12252,
3,
21342,
17966,
6,
1088,
584,
4280,
28027,
6,
18176,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
19488,
65,
3,
9,
3450,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15,
12252,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1088,
3274,
96,
23319,
447,
1088,
121,
3430,
18176,
3274,
96,
109,
106,
986,
32,
3,
8805,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Which customers have made at least two orders? Give me each customer name and number of orders made. | CREATE TABLE customers (
customer_id number,
customer_name text,
customer_details text
)
CREATE TABLE order_items (
order_item_id number,
product_id number,
order_id number,
order_item_status text,
order_item_details text
)
CREATE TABLE invoices (
invoice_number number,
invoice... | SELECT T2.customer_name, COUNT(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
381,
6,
884,
834,
4350,
1499,
6,
884,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
455,
834,
23,
3524,
7,
41,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
25697,
49,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
5022,
6157,
332,
536,
3,
15355,
3162,
722,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
4416,
25697,
49,
834,
23,
26,
3... |
Which lab tests were conducted for patient id 2560? Also specify the name of the primary disease he was suffering with | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT demographic.diagnosis, lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
6,
7690,
5,
40,
10333,
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,
427,
14798,
5,
7304,
118... |
With a nominative of chven-i what is the ergative? | CREATE TABLE table_50517 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
) | SELECT "Ergative" FROM table_50517 WHERE "Nominative" = 'chven-i' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
755,
2517,
41,
96,
4168,
1109,
1528,
121,
1499,
6,
96,
10575,
122,
1528,
121,
1499,
6,
96,
308,
1528,
121,
1499,
6,
96,
13714,
23,
3268,
121,
1499,
6,
96,
1570,
615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10575,
122,
1528,
121,
21680,
953,
834,
1752,
755,
2517,
549,
17444,
427,
96,
4168,
1109,
1528,
121,
3274,
3,
31,
524,
1926,
18,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide the number of patients whose days of hospital stay is greater than 0 and diagnoses long title is asthma, unspecified type, unspecified? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "0" AND diagnoses.long_title = "Asthma, unspecified type, unspecified" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the score of the game that resulted in a 15-9 record? | CREATE TABLE table_68603 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Score" FROM table_68603 WHERE "Record" = '15-9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3328,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3651,
3328,
519,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1808,
7141,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Segment B of aerospace fuel lines is what netflix episode? | CREATE TABLE table_name_99 (
netflix VARCHAR,
segment_b VARCHAR
) | SELECT netflix FROM table_name_99 WHERE segment_b = "aerospace fuel lines" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
3134,
89,
17591,
584,
4280,
28027,
6,
5508,
834,
115,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
15696,
297,
272,
13,
28674,
2914,
2356,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3134,
89,
17591,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
5508,
834,
115,
3274,
96,
9,
49,
32,
6633,
2914,
2356,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which pick came from Texas El-Paso? | CREATE TABLE table_name_25 (
pick INTEGER,
college VARCHAR
) | SELECT SUM(pick) FROM table_name_25 WHERE college = "texas el-paso" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
1432,
3,
21342,
17966,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1432,
764,
45,
2514,
1289,
18,
345,
9,
7,
32,
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,
180,
6122,
599,
17967,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1900,
3274,
96,
10354,
9,
7,
3,
15,
40,
18,
8020,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Album # of 1st was released on what date? | CREATE TABLE table_name_6 (
released VARCHAR,
album_number VARCHAR
) | SELECT released FROM table_name_6 WHERE album_number = "1st" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
1883,
584,
4280,
28027,
6,
2306,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
16135,
1713,
13,
209,
7,
17,
47,
1883,
30,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1883,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
2306,
834,
5525,
1152,
3274,
96,
536,
7,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many seasons have the production code 7.01 for an episode? | CREATE TABLE table_2226817_8 (
no_in_season INTEGER,
production_code VARCHAR
) | SELECT MAX(no_in_season) FROM table_2226817_8 WHERE production_code = "7.01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
3651,
2517,
834,
927,
41,
150,
834,
77,
834,
9476,
3,
21342,
17966,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9385,
43,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
26144,
3651,
2517,
834,
927,
549,
17444,
427,
999,
834,
4978,
3274,
96,
26346,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose days of hospital stay is greater than 15 and lab test name is calcium, urine? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.label = "Calcium, Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who were the Opponents on December 18, 2005? | CREATE TABLE table_name_31 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_31 WHERE date = "december 18, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
32,
102,
9977,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4495,
9977,
7,
30,
1882,
14985,
3105,
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,
15264,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
14985,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Enlighten me on the patients born before 2041 with a short title diagnoses of candidal esophagitis. | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2041" AND diagnoses.short_title = "Candidal esophagitis" | [
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's the series number of the episode with production code 329? | CREATE TABLE table_18055005_1 (no_in_series VARCHAR, prod_code VARCHAR) | SELECT no_in_series FROM table_18055005_1 WHERE prod_code = "329" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
17147,
3076,
834,
536,
41,
29,
32,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
813,
26,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
77,
834,
10833,
7,
21680,
953,
834,
20829,
17147,
3076,
834,
536,
549,
17444,
427,
813,
26,
834,
4978,
3274,
96,
519,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients with drug code isos10. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "ISOS10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the position of the team player from Aik? | CREATE TABLE table_79138 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"Team from" text,
"League from" text
) | SELECT "Position" FROM table_79138 WHERE "Team from" = 'aik' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
22744,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
18699,
45,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
4440,
22744,
549,
17444,
427,
96,
18699,
45,
121,
3274,
3,
31,
9,
23,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is every year where opponent in the final is John Mcenroe at Wimbledon? | CREATE TABLE table_73494 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Year" FROM table_73494 WHERE "Opponent in the final" = 'John McEnroe' AND "Championship" = 'Wimbledon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
3647,
591,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
4552,
3647,
591,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
18300,
3038,
8532,
52,
32,
15,
31,
3430,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
518... |
Which Opponent had an Attendance of 78,883? | CREATE TABLE table_name_4 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_4 WHERE attendance = "78,883" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
141,
46,
22497,
663,
13,
3,
3940,
6,
4060,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
11364,
3274,
96,
3940,
6,
4060,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82? | CREATE TABLE table_name_3 (
name VARCHAR,
team VARCHAR,
wsu_year_s_ VARCHAR
) | SELECT name FROM table_name_3 WHERE team = "detroit pistons" AND wsu_year_s_ = "1979-82" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
564,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
3,
210,
7,
76,
834,
1201,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
372,
3274,
96,
26,
15252,
155,
28688,
7,
121,
3430,
3,
210,
7,
76,
834,
1201,
834,
7,
834,
3274,
96,
2294,
4440,
18,
4613,
121,
1,
-100,
-100,
-100,
-100,
-... |
Who was the class AAAA when class AAAAA was Weslaco in 1994-95 | CREATE TABLE table_14747043_1 (class_aAAA VARCHAR, class_aAAAA VARCHAR, Weslaco VARCHAR, school_year VARCHAR) | SELECT class_aAAA FROM table_14747043_1 WHERE class_aAAAA = Weslaco AND school_year = "1994-95" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
27760,
4906,
834,
536,
41,
4057,
834,
9,
188,
5498,
584,
4280,
28027,
6,
853,
834,
9,
5498,
5498,
584,
4280,
28027,
6,
101,
7,
9700,
32,
584,
4280,
28027,
6,
496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
853,
834,
9,
188,
5498,
21680,
953,
834,
24719,
27760,
4906,
834,
536,
549,
17444,
427,
853,
834,
9,
5498,
5498,
3274,
101,
7,
9700,
32,
3430,
496,
834,
1201,
3274,
96,
2294,
4240,
18,
3301,
121,
1,
-100,
-100,
-1... |
What is the result of the friendly match? | CREATE TABLE table_37247 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_37247 WHERE "Competition" = 'friendly' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
357,
4177,
41,
96,
6221,
138,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
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,
20119,
121,
21680,
953,
834,
4118,
357,
4177,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the mascot for South Bend Clay? | CREATE TABLE table_name_8 (
mascot VARCHAR,
school VARCHAR
) | SELECT mascot FROM table_name_8 WHERE school = "south bend clay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
3,
2754,
4310,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
2754,
4310,
21,
1013,
22435,
20988,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2754,
4310,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
496,
3274,
96,
7,
670,
107,
17995,
14364,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Date which has a Score of 3-1 and Attendances of 32 590? | CREATE TABLE table_name_52 (date VARCHAR, score VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_52 WHERE score = "3-1" AND attendance = "32 590" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
7678,
84,
65,
3,
9,
17763,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
2604,
3274,
96,
519,
2292,
121,
3430,
11364,
3274,
96,
2668,
305,
2394,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the difference between the number of goals scored from the highest scoring team and the lowest scoring team ? | CREATE TABLE table_203_67 (
id number,
"place" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals\nscored" number,
"goals\nconceded" number,
"+/-" number,
"points" number
) | SELECT MAX("goals\nscored") - MIN("goals\nscored") FROM table_203_67 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3708,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
210,
106,
121,
381,
6,
96,
19489,
121,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
839,
5405,
2,
29,
3523,
1271,
8512,
3,
18,
3,
17684,
599,
121,
839,
5405,
2,
29,
3523,
1271,
8512,
21680,
953,
834,
23330,
834,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the value for lowest Sacks, when the Team is New Orleans Saints, and when the value for Tackles is 132? | CREATE TABLE table_69748 (
"Year" text,
"Team" text,
"Tackles" text,
"Solo" real,
"Sacks" real,
"INT YDS" real
) | SELECT MIN("Sacks") FROM table_69748 WHERE "Team" = 'new orleans saints' AND "Tackles" = '132' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
940,
3707,
41,
96,
476,
2741,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
382,
4365,
965,
121,
1499,
6,
96,
5231,
40,
32,
121,
490,
6,
96,
134,
4365,
7,
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,
3,
17684,
599,
121,
134,
4365,
7,
8512,
21680,
953,
834,
3951,
940,
3707,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
5534,
42,
109,
3247,
15528,
7,
31,
3430,
96,
382,
4365,
965,
121,
3274,
3,
31,
23757,
31,
1... |
What is the drawn that has 16 as the trys bonus? | CREATE TABLE table_name_31 (
drawn VARCHAR,
try_bonus VARCHAR
) | SELECT drawn FROM table_name_31 WHERE try_bonus = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
6796,
584,
4280,
28027,
6,
653,
834,
5407,
302,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6796,
24,
65,
898,
38,
8,
653,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6796,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
653,
834,
5407,
302,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which builder has a Built smaller than 1880? | CREATE TABLE table_46582 (
"Builder" text,
"Works no." real,
"Built" real,
"Wheels" text,
"Notes" text
) | SELECT "Builder" FROM table_46582 WHERE "Built" < '1880' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3449,
357,
41,
96,
24752,
49,
121,
1499,
6,
96,
12492,
7,
150,
535,
490,
6,
96,
7793,
173,
17,
121,
490,
6,
96,
518,
88,
3573,
121,
1499,
6,
96,
10358,
15,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24752,
49,
121,
21680,
953,
834,
4448,
3449,
357,
549,
17444,
427,
96,
7793,
173,
17,
121,
3,
2,
3,
31,
2606,
2079,
31,
1,
-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.