NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the date for the home detroit and visitor was chicago? | CREATE TABLE table_name_82 (date VARCHAR, home VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_82 WHERE home = "detroit" AND visitor = "chicago" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
5522,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
8,
234,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
234,
3274,
96,
26,
15252,
155,
121,
3430,
7019,
3274,
96,
1436,
658,
839,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose insurance is self pay and procedure long title is other unilateral salpingo-oophorectomy? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Self Pay" AND procedures.long_title = "Other unilateral salpingo-oophorectomy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the average number for goals less than 73? | CREATE TABLE table_42194 (
"Name" text,
"Career" text,
"Apps" real,
"Goals" real,
"Average" real
) | SELECT COUNT("Average") FROM table_42194 WHERE "Goals" < '73' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
2294,
591,
41,
96,
23954,
121,
1499,
6,
96,
6936,
15,
49,
121,
1499,
6,
96,
9648,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
6,
96,
188,
624,
545,
121,
490,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
624,
545,
8512,
21680,
953,
834,
4165,
2294,
591,
549,
17444,
427,
96,
6221,
5405,
121,
3,
2,
3,
31,
4552,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many male patients were born after the year 2076? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.dob_year > "2076" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
2490,
96,
1755,
3959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What type of video coding has a format name of dvcam? | CREATE TABLE table_name_69 (
video_coding VARCHAR,
format_name VARCHAR
) | SELECT video_coding FROM table_name_69 WHERE format_name = "dvcam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
671,
834,
9886,
584,
4280,
28027,
6,
1910,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
686,
13,
671,
3,
9886,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
671,
834,
9886,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1910,
834,
4350,
3274,
96,
26,
208,
6527,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Name was in the Year 2001? | CREATE TABLE table_40571 (
"Name" text,
"Rank" real,
"Out of" real,
"Source" text,
"Year" text
) | SELECT "Name" FROM table_40571 WHERE "Year" = '2001' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3436,
536,
41,
96,
23954,
121,
1499,
6,
96,
22557,
121,
490,
6,
96,
15767,
13,
121,
490,
6,
96,
23799,
121,
1499,
6,
96,
476,
2741,
121,
1499,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
2445,
3436,
536,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
23658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the visitor of the game on March 7? | CREATE TABLE table_14952 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Visitor" FROM table_14952 WHERE "Date" = 'march 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
5373,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
553,
159,
155,
127,
121,
21680,
953,
834,
24816,
5373,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
51,
7064,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the player where inns is 21 | CREATE TABLE table_10621256_1 (
player VARCHAR,
inns VARCHAR
) | SELECT player FROM table_10621256_1 WHERE inns = 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
2658,
19337,
834,
536,
41,
1959,
584,
4280,
28027,
6,
16,
29,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
1959,
213,
16,
29,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
16431,
2658,
19337,
834,
536,
549,
17444,
427,
16,
29,
7,
3274,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose death status is 1 and primary disease is sternal wound infection? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "STERNAL WOUND INFECTION" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
536,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
20... |
What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California? | CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, alaska___juneau__ VARCHAR, california__san_francisco_ VARCHAR) | SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE alaska___juneau__ = "90 g/mi (56 g/km)" AND california__san_francisco_ = "110 g/mi (68 g/km)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
12869,
25398,
834,
357,
41,
6983,
834,
31767,
834,
7,
670,
107,
834,
834,
14710,
6029,
584,
4280,
28027,
6,
3,
834,
26,
75,
834,
584,
4280,
28027,
6,
491,
9,
10717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2076,
834,
31767,
834,
7,
670,
107,
834,
834,
14710,
6029,
6,
3,
834,
26,
75,
834,
21680,
953,
834,
2938,
12869,
25398,
834,
357,
549,
17444,
427,
491,
9,
10717,
834,
834,
834,
6959,
1607,
834,
834,
3274,
96,
2394... |
What are the number of the names of products with price at most 200?, and could you list in ascending by the Y? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, COUNT(Name) FROM Products WHERE Price <= 200 GROUP BY Name ORDER BY COUNT(Name) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
7554,
549,
17444,
427,
5312,
3,
2,
2423,
2382,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
2847,
17161,
599,
23954,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest played number when goals for is 47, and wins is smaller than 14? | CREATE TABLE table_60868 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MIN("Played") FROM table_60868 WHERE "Goals for" = '47' AND "Wins" < '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
927,
3651,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
3328,
927,
3651,
549,
17444,
427,
96,
6221,
5405,
21,
121,
3274,
3,
31,
4177,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
... |
During which round was the first defensive end with an overall rank larger than 186 drafted? | CREATE TABLE table_4873 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT MIN("Round") FROM table_4873 WHERE "Overall" > '186' AND "Position" = 'defensive end' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
4552,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
87,
254,
11158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
32,
1106,
8512,
21680,
953,
834,
3707,
4552,
549,
17444,
427,
96,
23847,
1748,
121,
2490,
3,
31,
25398,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
221,
23039,
15,
414,
31,
1,
-100... |
Name the score for chicago | CREATE TABLE table_2794 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_2794 WHERE "Team" = 'Chicago' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4240,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
2555,
4240,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
3541,
2617,
839,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the # when conroe, tx is the hometown? | CREATE TABLE table_22496344_1 (_number INTEGER, home_town VARCHAR) | SELECT MIN(_number) FROM table_22496344_1 WHERE home_town = "Conroe, TX" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3647,
3891,
3628,
834,
536,
41,
834,
5525,
1152,
3,
21342,
17966,
6,
234,
834,
3540,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1713,
116,
975,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
834,
5525,
1152,
61,
21680,
953,
834,
2884,
3647,
3891,
3628,
834,
536,
549,
17444,
427,
234,
834,
3540,
3274,
96,
4302,
52,
32,
15,
6,
332,
4,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the source for the person named Cresswell? | CREATE TABLE table_name_89 (source VARCHAR, name VARCHAR) | SELECT source FROM table_name_89 WHERE name = "cresswell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
7928,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1391,
21,
8,
568,
2650,
5895,
7,
7,
2091,
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,
1391,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
564,
3274,
96,
75,
9377,
2091,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show me about the distribution of Team_Name and Team_ID in a bar chart, and order Y-axis in asc order. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT Team_Name, Team_ID FROM basketball_match ORDER BY Team_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
23954,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
2271,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the ranking of the season finale aired on May 8, 2006? | CREATE TABLE table_15924 (
"Season" text,
"Network" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" text,
"Viewers (in millions)" text
) | SELECT "Ranking" FROM table_15924 WHERE "Season finale" = 'May 8, 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27904,
2266,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
9688,
1981,
121,
1499,
6,
96,
134,
15,
9,
739,
13539,
121,
1499,
6,
96,
134,
15,
9,
739,
13604,
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,
22557,
53,
121,
21680,
953,
834,
27904,
2266,
549,
17444,
427,
96,
134,
15,
9,
739,
13604,
121,
3274,
3,
31,
15881,
9478,
3581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When 2011 is the period and olympikus is the kit manufacturer how many minor sponsors are there? | CREATE TABLE table_187239_1 (
minor_sponsors VARCHAR,
kit_manufacturer VARCHAR,
period VARCHAR
) | SELECT COUNT(minor_sponsors) FROM table_187239_1 WHERE kit_manufacturer = "Olympikus" AND period = "2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25828,
357,
3288,
834,
536,
41,
4012,
834,
7,
5041,
7,
127,
7,
584,
4280,
28027,
6,
3650,
834,
348,
76,
8717,
450,
49,
584,
4280,
28027,
6,
1059,
584,
4280,
28027,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1109,
127,
834,
7,
5041,
7,
127,
7,
61,
21680,
953,
834,
25828,
357,
3288,
834,
536,
549,
17444,
427,
3650,
834,
348,
76,
8717,
450,
49,
3274,
96,
667,
120,
1167,
23,
2729,
7,
121,
3430,
1059,
... |
What is the Name of draft Pick #10? | CREATE TABLE table_name_19 (
name VARCHAR,
pick__number VARCHAR
) | SELECT name FROM table_name_19 WHERE pick__number = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
564,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5570,
13,
6488,
8356,
1713,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What largest bronze number has a gold number that is bigger than 1? | CREATE TABLE table_name_66 (
bronze INTEGER,
gold INTEGER
) | SELECT MAX(bronze) FROM table_name_66 WHERE gold > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
13467,
3,
21342,
17966,
6,
2045,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2015,
13467,
381,
65,
3,
9,
2045,
381,
24,
19,
4038,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
2045,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Scatter chart. what is the minimum salary in each department? | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT MIN(SALARY), DEPARTMENT_ID FROM employees | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
134,
4090,
24721,
201,
3396,
19846,
11810,
834,
4309,
21680,
1652,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many classes are professor whose last name is Graztevski has? | CREATE TABLE employee (
EMP_NUM VARCHAR,
EMP_LNAME VARCHAR
)
CREATE TABLE CLASS (
PROF_NUM VARCHAR
) | SELECT COUNT(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
262,
5244,
834,
567,
6122,
584,
4280,
28027,
6,
262,
5244,
834,
434,
567,
17683,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
31598,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
3490,
6157,
332,
536,
3,
15355,
3162,
3,
31598,
6157,
332,
357,
9191,
332,
5411,
6037,
345,
834,
567,
6122,
3274,
332,
4416,
17618,
371,
834,
567,
6122,
549,
17444,
427,
332,
5411,
... |
When 169.182 is the average speed miles per hour what is the chassis? | CREATE TABLE table_21883 (
"Season" text,
"Date" text,
"Driver" text,
"Team" text,
"Chassis" text,
"Engine" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT "Chassis" FROM table_21883 WHERE "Average Speed (mph)" = '169.182' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
4591,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3541,
6500,
7,
121,
21680,
953,
834,
357,
2606,
4591,
549,
17444,
427,
96,
188,
624,
545,
9913,
41,
7656,
61,
121,
3274,
3,
31,
27096,
5,
2606,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest 1937 value that has a 1940 value over 126? | CREATE TABLE table_42885 (
"Table 2: Depression Data" text,
"1929" real,
"1931" real,
"1933" real,
"1937" real,
"1938" real,
"1940" real
) | SELECT MAX("1937") FROM table_42885 WHERE "1940" > '126' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2577,
4433,
41,
96,
20354,
204,
10,
23138,
2747,
121,
1499,
6,
96,
2294,
3166,
121,
490,
6,
96,
2294,
3341,
121,
490,
6,
96,
2294,
4201,
121,
490,
6,
96,
2294,
4118,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2294,
4118,
8512,
21680,
953,
834,
591,
2577,
4433,
549,
17444,
427,
96,
2294,
2445,
121,
2490,
3,
31,
21976,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the location for chattahoochee technical college | CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR) | SELECT location FROM table_16734640_1 WHERE institution = "Chattahoochee Technical College" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
3710,
23714,
834,
536,
41,
14836,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1128,
21,
3582,
17,
9,
107,
32,
32,
1033,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
27650,
3710,
23714,
834,
536,
549,
17444,
427,
6568,
3274,
96,
3541,
14748,
107,
32,
32,
1033,
15,
10728,
1888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Score of 2007 afc asian cup qualification with a Result of 8 0? | CREATE TABLE table_38984 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_38984 WHERE "Competition" = '2007 afc asian cup qualification' AND "Result" = '8–0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3916,
591,
41,
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,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3747,
3916,
591,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
20615,
3,
9,
89,
75,
3,
9,
10488,
4119,
15513,
31,
3430,
96,
20119,
121,
3274,
3,
31,
927,
104,
632,... |
What is the rank of the chinese title 緣來自有機? | CREATE TABLE table_11173827_1 (rank VARCHAR, chinese_title VARCHAR) | SELECT rank FROM table_11173827_1 WHERE chinese_title = "緣來自有機" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2517,
3747,
2555,
834,
536,
41,
6254,
584,
4280,
28027,
6,
3,
1436,
1496,
15,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
2596,
2517,
3747,
2555,
834,
536,
549,
17444,
427,
3,
1436,
1496,
15,
834,
21869,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which party has the largest number of delegates? | CREATE TABLE election (
election_id number,
counties_represented text,
district number,
delegate text,
party number,
first_elected number,
committee text
)
CREATE TABLE county (
county_id number,
county_name text,
population number,
zip_code text
)
CREATE TABLE party (
... | SELECT T2.party FROM election AS T1 JOIN party AS T2 ON T1.party = T2.party_id GROUP BY T1.party ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
4356,
834,
23,
26,
381,
6,
16227,
834,
29845,
1499,
6,
3939,
381,
6,
20,
8791,
1499,
6,
1088,
381,
6,
166,
834,
19971,
381,
6,
4492,
1499,
3,
61,
3,
32102,
32103,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
8071,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
8071,
3274,
332,
4416,
8071,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
5411,
8071,
4674,
11300,
272,
476,
2847,
... |
Which authors belong to the institution 'Google'? Show the first names and last names. | CREATE TABLE authors (
authid number,
lname text,
fname text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE inst (
instid number,
name text,
country text
) | SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
185,
17,
11740,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
2009,
41,
185,
17,
11740,
381,
6,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
3,
17,
5411,
89,
4350,
6,
3,
17,
5411,
40,
4350,
21680,
5921,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
402,
17,
11740,
3274,
3,
17,
4416,
402,
1... |
What is north melbourne's home team score? | CREATE TABLE table_name_64 (
home_team VARCHAR
) | SELECT home_team AS score FROM table_name_64 WHERE home_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3457,
3,
2341,
26255,
31,
7,
234,
372,
2604,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
234,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Airport in Oslo? | CREATE TABLE table_78943 (
"City" text,
"Country" text,
"Airport" text,
"IATA" text,
"ICAO" text
) | SELECT "Airport" FROM table_78943 WHERE "City" = 'oslo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4240,
519,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
20162,
1493,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
20162,
1493,
121,
21680,
953,
834,
3940,
4240,
519,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
32,
7,
40,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the sum for December that has 0.36 in July, and lager than 0.35000000000000003 in February? | CREATE TABLE table_name_95 (december INTEGER, july VARCHAR, february VARCHAR) | SELECT SUM(december) FROM table_name_95 WHERE july = 0.36 AND february > 0.35000000000000003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
221,
75,
18247,
3,
21342,
17966,
6,
3,
2047,
120,
584,
4280,
28027,
6,
29976,
76,
1208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
221,
75,
18247,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
3,
2047,
120,
3274,
4097,
3420,
3430,
29976,
76,
1208,
2490,
3,
19997,
12814,
2313,
2313,
19568,
4928,
1,
-100,
-100,
-100,
-100,
... |
Mascot of blazers involves what city? | CREATE TABLE table_34919 (
"School" text,
"City" text,
"Mascot" text,
"Enrollment" real,
"County" text
) | SELECT "City" FROM table_34919 WHERE "Mascot" = 'blazers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3647,
2294,
41,
96,
29364,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
10628,
63,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
121,
21680,
953,
834,
519,
3647,
2294,
549,
17444,
427,
96,
329,
9,
7,
4310,
121,
3274,
3,
31,
21020,
52,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per share? | CREATE TABLE table_50329 (
"Year ended" text,
"Revenue (\u00a3million)" real,
"Profit/(loss) before tax (\u00a3m)" real,
"Net profit (\u00a3m)" real,
"Earnings per share (p)" real
) | SELECT SUM("Earnings per share (p)") FROM table_50329 WHERE "Year ended" = '2008' AND "Revenue (\u00a3million)" < '4,177' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
519,
3166,
41,
96,
476,
2741,
3492,
121,
1499,
6,
96,
1649,
15098,
41,
2,
76,
1206,
9,
519,
17030,
61,
121,
490,
6,
96,
23057,
155,
87,
599,
2298,
7,
61,
274,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
427,
291,
29,
53,
7,
399,
698,
41,
102,
61,
8512,
21680,
953,
834,
1752,
519,
3166,
549,
17444,
427,
96,
476,
2741,
3492,
121,
3274,
3,
31,
16128,
31,
3430,
96,
1649,
15098,
41,
2,
76,
1206,... |
How much did the girl, nicknamed Chidi, weigh at birth? | CREATE TABLE table_78037 (
"Full Name" text,
"Nickname" text,
"Gender" text,
"Weight at birth" text,
"Meaning" text
) | SELECT "Weight at birth" FROM table_78037 WHERE "Gender" = 'girl' AND "Nickname" = 'chidi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2079,
4118,
41,
96,
371,
83,
40,
5570,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
1326,
2632,
44,
3879,
121,
1499,
6,
96,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1326,
2632,
44,
3879,
121,
21680,
953,
834,
940,
2079,
4118,
549,
17444,
427,
96,
517,
3868,
121,
3274,
3,
31,
18722,
31,
3430,
96,
567,
3142,
4350,
121,
3274,
3,
31,
1436,
26,
23,
31,
1,
-100,
-100,
-100,
-... |
how many patients have undergone the procedure with short title attach pedicle graft nec? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Attach pedicle graft NEC" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the home team's score at mcg? | CREATE TABLE table_name_54 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_54 WHERE venue = "mcg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
31,
7,
2604,
44,
3,
51,
75,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
5669,
3274,
96,
51,
75,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the distinct leader names of colleges associated with members from country 'Canada'. | CREATE TABLE member (
member_id number,
name text,
country text,
college_id number
)
CREATE TABLE college (
college_id number,
name text,
leader_name text,
college_location text
)
CREATE TABLE round (
round_id number,
member_id number,
decoration_theme text,
rank_in_rou... | SELECT DISTINCT T1.leader_name FROM college AS T1 JOIN member AS T2 ON T1.college_id = T2.college_id WHERE T2.country = "Canada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
1144,
834,
23,
26,
381,
6,
564,
1499,
6,
684,
1499,
6,
1900,
834,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
1900,
834,
23,
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,
3,
15438,
25424,
6227,
332,
5411,
22900,
834,
4350,
21680,
1900,
6157,
332,
536,
3,
15355,
3162,
1144,
6157,
332,
357,
9191,
332,
5411,
3297,
7883,
834,
23,
26,
3274,
332,
4416,
3297,
7883,
834,
23,
26,
549,
17444,
... |
Who is the player in the 2008 draft with a pick greater than 5? | CREATE TABLE table_name_26 (
player VARCHAR,
draft VARCHAR,
pick VARCHAR
) | SELECT player FROM table_name_26 WHERE draft = 2008 AND pick > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
1959,
584,
4280,
28027,
6,
6488,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
16,
8,
2628,
648... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
6488,
3274,
2628,
3430,
1432,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the year for les portes tournantes | CREATE TABLE table_17025328_1 (year__ceremony_ VARCHAR, original_title VARCHAR) | SELECT year__ceremony_ FROM table_17025328_1 WHERE original_title = "Les portes tournantes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
1828,
28070,
834,
536,
41,
1201,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
834,
2110,
15,
21208,
834,
21680,
953,
834,
536,
2518,
1828,
28070,
834,
536,
549,
17444,
427,
926,
834,
21869,
3274,
96,
2796,
7,
5137,
7,
1552,
29,
8386,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the partner for the tournament in Lyon, France? | CREATE TABLE table_name_29 (
partnering VARCHAR,
tournament VARCHAR
) | SELECT partnering FROM table_name_29 WHERE tournament = "lyon, france" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
3,
26361,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2397,
21,
8,
5892,
16,
14360,
6,
1410,
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,
26361,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
5892,
3274,
96,
120,
106,
6,
2515,
663,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which average Opened has a Manufacturer of vekoma? | CREATE TABLE table_name_19 (
opened INTEGER,
manufacturer VARCHAR
) | SELECT AVG(opened) FROM table_name_19 WHERE manufacturer = "vekoma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
2946,
3,
21342,
17966,
6,
4818,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1348,
2384,
15,
26,
65,
3,
9,
15248,
13,
3,
162,
4524,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
26940,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
4818,
3274,
96,
162,
4524,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was the tournament in Forest Lake Country Club held? | CREATE TABLE table_25546 (
"Year" real,
"Dates" text,
"Champion" text,
"Country" text,
"Score" text,
"Margin of victory" text,
"Tournament location" text,
"Purse ( $ )" real,
"Winners share ($)" real
) | SELECT "Dates" FROM table_25546 WHERE "Tournament location" = 'Forest Lake Country Club' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
4448,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
6203,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
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,
308,
6203,
121,
21680,
953,
834,
25502,
4448,
549,
17444,
427,
96,
382,
1211,
20205,
17,
1128,
121,
3274,
3,
31,
3809,
222,
2154,
6993,
1949,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which game had an attendance of 56,271? | CREATE TABLE table_name_12 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_12 WHERE attendance = "56,271" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
5522,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
467,
141,
46,
11364,
13,
11526,
6,
2555,
536,
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,
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,
2122,
549,
17444,
427,
11364,
3274,
96,
4834,
6,
2555,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what kind of Week 5 that has a Week 1 of mandy ashford? | CREATE TABLE table_name_68 (
week_5 VARCHAR,
week_1 VARCHAR
) | SELECT week_5 FROM table_name_68 WHERE week_1 = "mandy ashford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
471,
834,
755,
584,
4280,
28027,
6,
471,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
773,
13,
6551,
305,
24,
65,
3,
9,
655... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
834,
755,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
471,
834,
536,
3274,
96,
348,
26,
63,
3,
3198,
2590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which country had the larger total of births ? | CREATE TABLE table_203_117 (
id number,
"region/country" text,
"1882-\n1918" number,
"1919-\n1948" number,
"1948-\n1951" number,
"1952-\n1960" number,
"1961-\n1971" number,
"1972-\n1979" number,
"1980-\n1989" number,
"1990-\n2001" number,
"2002-\n2010" number,
"2011-\n201... | SELECT "region/country" FROM table_203_117 ORDER BY "total" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
20275,
41,
3,
23,
26,
381,
6,
96,
18145,
87,
17529,
121,
1499,
6,
96,
25794,
7412,
2,
29,
2294,
2606,
121,
381,
6,
96,
2294,
2294,
18,
2,
29,
2294,
3707,
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,
18145,
87,
17529,
121,
21680,
953,
834,
23330,
834,
20275,
4674,
11300,
272,
476,
96,
235,
1947,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is John Crawford's Nationality? | CREATE TABLE table_name_47 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_47 WHERE player = "john crawford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
16557,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1079,
28777,
31,
7,
868,
485,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1959,
3274,
96,
27341,
3,
2935,
210,
2590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win? | CREATE TABLE table_name_33 (
method VARCHAR,
opponent VARCHAR,
location VARCHAR,
result VARCHAR
) | SELECT method FROM table_name_33 WHERE location = "auckland, new zealand" AND result = "win" AND opponent = "darren berry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
1573,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1128,
3274,
96,
9,
4636,
40,
232,
6,
126,
3,
776,
138,
232,
121,
3430,
741,
3274,
96,
3757,
121,
3430,
15264,
3274,
96,
3439,
1536,
3,
7418,
121,
1,
-100,
... |
What was the competition in 1978? | CREATE TABLE table_71746 (
"Year" real,
"Opponent" text,
"Competition" text,
"Score" text,
"Venue" text,
"Attendance" text
) | SELECT "Competition" FROM table_71746 WHERE "Year" = '1978' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2517,
4448,
41,
96,
476,
2741,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
553,
35,
76,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5890,
4995,
4749,
121,
21680,
953,
834,
940,
2517,
4448,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average number of wins for Runcorn Highfield with more than 0 draws? | CREATE TABLE table_name_55 (
wins INTEGER,
team VARCHAR,
draws VARCHAR
) | SELECT AVG(wins) FROM table_name_55 WHERE team = "runcorn highfield" AND draws > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
9204,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
9204,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
372,
3274,
96,
4312,
13165,
306,
1846,
121,
3430,
14924,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Place that has a Date of 22 august 2004? | CREATE TABLE table_44569 (
"Event" text,
"Record" text,
"Athlete" text,
"Nationality" text,
"Date" text,
"Meet" text,
"Place" text
) | SELECT "Place" FROM table_44569 WHERE "Date" = '22 august 2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
3951,
41,
96,
427,
2169,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
308,
342,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
591,
2128,
3951,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2884,
14663,
4406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where is the track that opened in 1995? | CREATE TABLE table_1245148_1 (
location VARCHAR,
year_opened VARCHAR
) | SELECT location FROM table_1245148_1 WHERE year_opened = 1995 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2128,
24748,
834,
536,
41,
1128,
584,
4280,
28027,
6,
215,
834,
26940,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
1463,
24,
2946,
16,
7273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
2122,
2128,
24748,
834,
536,
549,
17444,
427,
215,
834,
26940,
3274,
7273,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the finish with 200 laps and a start of 3? | CREATE TABLE table_name_91 (finish VARCHAR, laps VARCHAR, start VARCHAR) | SELECT finish FROM table_name_91 WHERE laps = 200 AND start = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
25535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
456,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1992,
28,
2382,
14941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1992,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
14941,
7,
3274,
2382,
3430,
456,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which chapter was Transmitted on wednesday if the episode of '363 the hangover part ii' was transmitted on monday? | CREATE TABLE table_18173916_8 (
wednesday VARCHAR,
monday VARCHAR
) | SELECT wednesday FROM table_18173916_8 WHERE monday = "363 The Hangover Part II" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2517,
3288,
2938,
834,
927,
41,
62,
26,
1496,
1135,
584,
4280,
28027,
6,
1911,
1135,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
5800,
47,
4946,
16030,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
62,
26,
1496,
1135,
21680,
953,
834,
2606,
2517,
3288,
2938,
834,
927,
549,
17444,
427,
1911,
1135,
3274,
96,
3420,
519,
37,
15280,
1890,
2733,
2466,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What losses consist of the team of japan? | CREATE TABLE table_name_13 (
losses VARCHAR,
team VARCHAR
) | SELECT losses FROM table_name_13 WHERE team = "japan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
8467,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
8467,
5608,
13,
8,
372,
13,
2662,
2837,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8467,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
372,
3274,
96,
1191,
2837,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the chassis for alexander wurz's playlife fb02 engine? | CREATE TABLE table_name_7 (chassis VARCHAR, engine_† VARCHAR, driver VARCHAR) | SELECT chassis FROM table_name_7 WHERE engine_† = "playlife fb02" AND driver = "alexander wurz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
524,
6500,
7,
584,
4280,
28027,
6,
1948,
834,
2,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
22836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22836,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1948,
834,
2,
3274,
96,
4895,
4597,
3,
89,
115,
4305,
121,
3430,
2535,
3274,
96,
138,
994,
11849,
3,
210,
450,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, give me the comparison about the amount of headquarter over the headquarter , and group by attribute headquarter, and I want to show by the Y-axis in asc please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Headquarter, COUNT(Headquarter) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY COUNT(Headquarter) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
6,
2847,
17161,
599,
3845,
9,
26,
19973,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272... |
What player is a lock with 1 cap? | CREATE TABLE table_57979 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
) | SELECT "Player" FROM table_57979 WHERE "Position" = 'lock' AND "Caps" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4440,
4440,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
308,
342,
13,
26337,
41,
188,
397,
61,
121,
1499,
6,
96,
19566,
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,
96,
15800,
49,
121,
21680,
953,
834,
755,
4440,
4440,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
4029,
31,
3430,
96,
19566,
7,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
tell me how long patient 028-23341 stayed in the hospital last time. | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (... | SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '028-23341' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
26,
159,
7993,
715,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
31386,
20466,
17,
715,
61,
21680,
1868,
549,
17444,
427... |
What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823? | CREATE TABLE table_name_68 (rank INTEGER, area VARCHAR, density VARCHAR, province VARCHAR) | SELECT MAX(rank) FROM table_name_68 WHERE density < 376.37 AND province = "valverde" AND area > 823 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
6254,
3,
21342,
17966,
6,
616,
584,
4280,
28027,
6,
11048,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
11048,
3,
2,
220,
3959,
5,
4118,
3430,
7985,
3274,
96,
2165,
624,
221,
121,
3430,
616,
2490,
505,
2773,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the yam amount when the Cassava amount is 0.11? | CREATE TABLE table_name_34 (yam_ VARCHAR, y_ VARCHAR, cassava_ VARCHAR, e_ VARCHAR) | SELECT yam_[y_] FROM table_name_34 WHERE cassava_[e_] = "0.11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
63,
265,
834,
584,
4280,
28027,
6,
3,
63,
834,
584,
4280,
28027,
6,
1990,
7,
8644,
834,
584,
4280,
28027,
6,
3,
15,
834,
584,
4280,
28027,
61,
3,
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,
63,
265,
834,
6306,
63,
834,
908,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1990,
7,
8644,
834,
6306,
15,
834,
908,
3274,
96,
16029,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the points classification when the Intergiro classification is Sven Krau , and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9? | CREATE TABLE table_name_19 (
points_classification VARCHAR,
stage VARCHAR,
trofeo_super_team VARCHAR,
intergiro_classification VARCHAR,
mountains_classification VARCHAR
) | SELECT points_classification FROM table_name_19 WHERE intergiro_classification = "sven krauß" AND mountains_classification = "koldo gil" AND trofeo_super_team = "liquigas-bianchi" AND stage = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
6,
10968,
89,
15,
32,
834,
21771,
834,
11650,
584,
4280,
28027,
6,
1413,
9427,
32,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
979,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1413,
9427,
32,
834,
4057,
2420,
3274,
96,
7,
1926,
3,
9669,
6712,
121,
3430,
8022,
834,
4057,
2420,
3274,
96,
11292,
26,
32,
3,
122,
173,
1... |
provide the number of patients whose year of birth is less than 2156 and drug name is levetiracetam? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2156" AND prescriptions.drug = "Levetiracetam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Who was the lyricist for the song with music directed by madan mohan kohli? | CREATE TABLE table_27511 (
"Song" text,
"Singer" text,
"Co-Singers" text,
"Music Director" text,
"Lyricist" text,
"Co-Stars" text,
"Movie/Album" text,
"Year" real,
"Additional Info" text
) | SELECT "Lyricist" FROM table_27511 WHERE "Music Director" = 'Madan Mohan Kohli' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
2596,
41,
96,
134,
2444,
121,
1499,
6,
96,
134,
9963,
121,
1499,
6,
96,
3881,
18,
134,
53,
277,
121,
1499,
6,
96,
29035,
2578,
121,
1499,
6,
96,
434,
63,
2234,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
63,
2234,
343,
121,
21680,
953,
834,
25988,
2596,
549,
17444,
427,
96,
29035,
2578,
121,
3274,
3,
31,
329,
9,
3768,
1290,
2618,
16157,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Statue, when Venue is 'Stadio Flaminio , Rome'? | CREATE TABLE table_name_63 (
status VARCHAR,
venue VARCHAR
) | SELECT status FROM table_name_63 WHERE venue = "stadio flaminio , rome" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
2637,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7135,
76,
15,
6,
116,
29940,
19,
3,
31,
134,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
5669,
3274,
96,
2427,
26,
23,
32,
5731,
7619,
32,
3,
6,
3,
11956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where did Rick Mears win, after starting in Pole Position? | CREATE TABLE table_name_70 (city_location VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) | SELECT city_location FROM table_name_70 WHERE pole_position = "rick mears" AND winning_driver = "rick mears" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
6726,
834,
14836,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
834,
14836,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
11148,
834,
4718,
3274,
96,
5206,
140,
291,
7,
121,
3430,
3447,
834,
13739,
52,
3274,
96,
5206,
140,
291,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the most silver medals when the total is less than 4 and the rank is 12? | CREATE TABLE table_name_35 (silver INTEGER, total VARCHAR, rank VARCHAR) | SELECT MAX(silver) FROM table_name_35 WHERE total < 4 AND rank = "12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
7,
173,
624,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
4294,
9365,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
792,
3,
2,
314,
3430,
11003,
3274,
96,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For player is jamal mayers mention the minimum pick | CREATE TABLE table_2781227_4 (
pick INTEGER,
player VARCHAR
) | SELECT MIN(pick) FROM table_2781227_4 WHERE player = "Jamal Mayers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3940,
2122,
2555,
834,
591,
41,
1432,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
1959,
19,
7620,
138,
164,
277,
2652,
8,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
17967,
61,
21680,
953,
834,
357,
3940,
2122,
2555,
834,
591,
549,
17444,
427,
1959,
3274,
96,
683,
9,
1982,
932,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Tournament, when Week is November 23? | CREATE TABLE table_46640 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winners" text,
"Finalists" text,
"Semifinalists" text
) | SELECT "Tournament" FROM table_46640 WHERE "Week" = 'november 23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
23714,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
518,
10266,
121,
1499,
6,
96,
18455,
687,
7,
121,
1499,
6,
96,
371,
10270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
4448,
23714,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
5326,
18247,
1902,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what year was Terry Johnson nominated for a Tony award? | CREATE TABLE table_name_63 (year VARCHAR, award VARCHAR, nominee VARCHAR) | SELECT COUNT(year) FROM table_name_63 WHERE award = "tony award" AND nominee = "terry johnson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
1201,
584,
4280,
28027,
6,
2760,
584,
4280,
28027,
6,
21077,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
47,
18163,
5891,
150,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2760,
3274,
96,
17,
106,
63,
2760,
121,
3430,
21077,
3274,
96,
449,
651,
3,
27341,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many goals Olimpia recorded for 32 matches? | CREATE TABLE table_13688489_1 (
goals_olimpia VARCHAR,
matches VARCHAR
) | SELECT COUNT(goals_olimpia) FROM table_13688489_1 WHERE matches = 32 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3651,
4608,
3914,
834,
536,
41,
1766,
834,
4172,
1167,
23,
9,
584,
4280,
28027,
6,
6407,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
3,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
839,
5405,
834,
4172,
1167,
23,
9,
61,
21680,
953,
834,
2368,
3651,
4608,
3914,
834,
536,
549,
17444,
427,
6407,
3274,
3538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the record for the Superbrawl 21? | CREATE TABLE table_name_68 (record VARCHAR, event VARCHAR) | SELECT record FROM table_name_68 WHERE event = "superbrawl 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
60,
7621,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
21,
8,
2011,
1939,
210,
40,
1401,
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,
1368,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
605,
3274,
96,
21771,
1939,
210,
40,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the score of the away team that played richmond? | CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_27 WHERE home_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
550,
372,
24,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the distribution of meter_500 and meter_100 in a bar chart, and rank x-axis in descending order please. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
... | SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_500 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
2560,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2560,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the Mississippi State player associated with Cornelius Bennett? | CREATE TABLE table_name_55 (
mississippi_st VARCHAR,
alabama VARCHAR
) | SELECT mississippi_st FROM table_name_55 WHERE alabama = "cornelius bennett" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
3041,
159,
7,
23,
1572,
23,
834,
7,
17,
584,
4280,
28027,
6,
3,
9,
9339,
265,
9,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
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,
3041,
159,
7,
23,
1572,
23,
834,
7,
17,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
3,
9,
9339,
265,
9,
3274,
96,
13165,
15,
29705,
36,
29,
10544,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the original airdate for episode 7-17 (195) from writer Sidney Slon? | CREATE TABLE table_35331 (
"Episode" text,
"Title" text,
"Writer(s)" text,
"Preservation" text,
"Original airdate" text
) | SELECT "Original airdate" FROM table_35331 WHERE "Writer(s)" = 'sidney slon' AND "Episode" = '7-17 (195)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
519,
3341,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
24965,
49,
599,
7,
61,
121,
1499,
6,
96,
10572,
3473,
257,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
5522,
121,
21680,
953,
834,
2469,
519,
3341,
549,
17444,
427,
96,
24965,
49,
599,
7,
61,
121,
3274,
3,
31,
7,
23,
26,
3186,
3,
7,
40,
106,
31,
3430,
96,
427,
102,
159,
32,
221,
121,
... |
On what Date was the Attendance 75,891? | CREATE TABLE table_name_77 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_77 WHERE attendance = "75,891" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
5522,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
47,
8,
22497,
663,
6374,
6,
3914,
536,
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,
833,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
11364,
3274,
96,
3072,
6,
3914,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Author of stanis aw wyspia ski, and a Year of 1969 happened in what theatre? | CREATE TABLE table_39033 (
"Year" real,
"Play" text,
"Author" text,
"Theatre" text,
"Type" text,
"Role" text
) | SELECT "Theatre" FROM table_39033 WHERE "Author" = 'stanisław wyspiański' AND "Year" = '1969' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2394,
4201,
41,
96,
476,
2741,
121,
490,
6,
96,
15800,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
634,
9,
929,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
448,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
634,
9,
929,
121,
21680,
953,
834,
519,
2394,
4201,
549,
17444,
427,
96,
23602,
127,
121,
3274,
3,
31,
5627,
159,
2,
9,
210,
3,
210,
63,
7675,
9,
2,
4009,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2294,
... |
Which year has a 2003 of lq? | CREATE TABLE table_name_82 (
Id VARCHAR
) | SELECT 2009 FROM table_name_82 WHERE 2003 = "lq" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
65,
3,
9,
3888,
13,
3,
40,
1824,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2464,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
3888,
3274,
96,
40,
1824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the average age of female patient discharged to home health care? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.discharge_location = "HOME HEALTH CARE" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
6299,
4369,
3,
6021,
4090,
4611,
3,
22443,
121,
... |
Show me a bar chart for what is the average rating of songs for each language?, order by the mean rating in ascending please. | CREATE TABLE files (
f_id number(10),
artist_name varchar2(50),
file_size varchar2(20),
duration varchar2(20),
formats varchar2(20)
)
CREATE TABLE song (
song_name varchar2(50),
artist_name varchar2(50),
country varchar2(20),
f_id number(10),
genre_is varchar2(20),
rating nu... | SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY AVG(rating) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2073,
41,
3,
89,
834,
23,
26,
381,
599,
16968,
6,
2377,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
1042,
834,
7991,
3,
4331,
4059,
357,
599,
1755,
201,
8659,
3,
4331,
4059,
357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8024,
6,
71,
17217,
599,
52,
1014,
61,
21680,
2324,
350,
4630,
6880,
272,
476,
8024,
4674,
11300,
272,
476,
71,
17217,
599,
52,
1014,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What draft pick number was the player with the position DL? | CREATE TABLE table_25085059_3 (pick__number VARCHAR, position VARCHAR) | SELECT pick__number FROM table_25085059_3 WHERE position = "DL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
17246,
3390,
834,
519,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6488,
1432,
381,
47,
8,
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,
1432,
834,
834,
5525,
1152,
21680,
953,
834,
11434,
17246,
3390,
834,
519,
549,
17444,
427,
1102,
3274,
96,
10013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the name of pilots who did not win the matches held in the country of Australia. | CREATE TABLE pilot (
name VARCHAR,
pilot_id VARCHAR,
Winning_Pilot VARCHAR,
country VARCHAR
)
CREATE TABLE MATCH (
name VARCHAR,
pilot_id VARCHAR,
Winning_Pilot VARCHAR,
country VARCHAR
) | SELECT name FROM pilot WHERE NOT pilot_id IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4487,
41,
564,
584,
4280,
28027,
6,
4487,
834,
23,
26,
584,
4280,
28027,
6,
549,
10503,
834,
345,
23,
3171,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
4487,
549,
17444,
427,
4486,
4487,
834,
23,
26,
3388,
41,
23143,
14196,
549,
10503,
834,
345,
23,
3171,
21680,
283,
29572,
549,
17444,
427,
684,
3274,
3,
31,
31971,
31,
61,
1,
-100,
-100,
-100,
-100,
-10... |
What is the surface of the match when the opponent was iryna bremond valeria savinykh? | CREATE TABLE table_55199 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Surface" FROM table_55199 WHERE "Opponents" = 'iryna bremond valeria savinykh' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
19479,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
4861,
121,
21680,
953,
834,
3769,
19479,
549,
17444,
427,
96,
667,
102,
9977,
7,
121,
3274,
3,
31,
23,
651,
29,
9,
3,
1999,
6764,
3,
2165,
4476,
3,
7,
9,
2494,
63,
157,
107,
31,
1,
-100,
-100,
... |
What is the region 1 release that has july 20, 2009 as the region 2? | CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR) | SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
18145,
834,
536,
834,
21019,
584,
4280,
28027,
6,
1719,
834,
357,
834,
21019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1719,
209,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1719,
834,
536,
834,
21019,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1719,
834,
357,
834,
21019,
3274,
96,
2047,
120,
16047,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many square miles of water is in Ramsey County with a geo id larger than 3807159460.0? | CREATE TABLE table_22458 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) | SELECT "Water (sqmi)" FROM table_22458 WHERE "County" = 'Ramsey' AND "GEO ID" > '3807159460.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
3449,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
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,
28632,
41,
7,
1824,
51,
23,
61,
121,
21680,
953,
834,
24622,
3449,
549,
17444,
427,
96,
10628,
63,
121,
3274,
3,
31,
448,
265,
7,
15,
63,
31,
3430,
96,
5042,
667,
4699,
121,
2490,
3,
31,
22671,
4450,
3390,
... |
which party/alliance has more than 300,000 votes ? | CREATE TABLE table_204_28 (
id number,
"election" text,
"name of the party/alliance" text,
"number of votes" number,
"percentage" text,
"seats in the parliament" number
) | SELECT "name of the party/alliance" FROM table_204_28 WHERE "number of votes" > 300000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2577,
41,
3,
23,
26,
381,
6,
96,
15,
12252,
121,
1499,
6,
96,
4350,
13,
8,
1088,
87,
1748,
23,
663,
121,
1499,
6,
96,
5525,
1152,
13,
11839,
121,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
13,
8,
1088,
87,
1748,
23,
663,
121,
21680,
953,
834,
26363,
834,
2577,
549,
17444,
427,
96,
5525,
1152,
13,
11839,
121,
2490,
3147,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What year was Jordan Hill picked overall number 8? | CREATE TABLE table_33744 (
"Name" text,
"Round" text,
"Overall Pick" text,
"Year" real,
"Team" text
) | SELECT MIN("Year") FROM table_33744 WHERE "Overall Pick" = '8' AND "Name" = 'jordan hill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4118,
3628,
41,
96,
23954,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
23847,
1748,
8356,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
18699,
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,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
519,
4118,
3628,
549,
17444,
427,
96,
23847,
1748,
8356,
121,
3274,
3,
31,
927,
31,
3430,
96,
23954,
121,
3274,
3,
31,
12775,
3768,
9956,
31,
1,
-100,
-100,
-1... |
Find the category descriptions of the products whose descriptions include letter 't'. | CREATE TABLE characteristics (
characteristic_id number,
characteristic_type_code text,
characteristic_data_type text,
characteristic_name text,
other_characteristic_details text
)
CREATE TABLE product_characteristics (
product_id number,
characteristic_id number,
product_characteristic... | SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6803,
41,
16115,
834,
23,
26,
381,
6,
16115,
834,
6137,
834,
4978,
1499,
6,
16115,
834,
6757,
834,
6137,
1499,
6,
16115,
834,
4350,
1499,
6,
119,
834,
31886,
3040,
834,
221,
5756,
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,
332,
5411,
15892,
834,
8367,
839,
651,
834,
221,
11830,
21680,
6273,
834,
15892,
834,
8367,
839,
2593,
6157,
332,
536,
3,
15355,
3162,
494,
6157,
332,
357,
9191,
332,
5411,
15892,
834,
8367,
839,
651,
834,
4978,
3274,... |
Who has the pole position for the n rburgring circuit? | CREATE TABLE table_52604 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Pole position" FROM table_52604 WHERE "Circuit" = 'nürburgring' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
18365,
591,
41,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8931,
15,
1102,
121,
21680,
953,
834,
755,
18365,
591,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
29,
4087,
4824,
1007,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the record for opponent Matt Serra? | CREATE TABLE table_46180 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
) | SELECT "Record" FROM table_46180 WHERE "Opponent" = 'matt serra' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
20829,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
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,
1649,
7621,
121,
21680,
953,
834,
4448,
20829,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
3357,
17,
3,
7,
16841,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the league for season 1955-56? | CREATE TABLE table_name_93 (
league VARCHAR,
season VARCHAR
) | SELECT league FROM table_name_93 WHERE season = "1955-56" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
5533,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5533,
21,
774,
23652,
18,
4834,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
774,
3274,
96,
2294,
3769,
18,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the rank when the time was 59.65? | CREATE TABLE table_63673 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Rank" FROM table_63673 WHERE "Time" = '59.65' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3708,
519,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
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,
0... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
3891,
3708,
519,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
3390,
5,
4122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In the game with an attendance of 18304, what was the final score? | CREATE TABLE table_17294353_1 (
result VARCHAR,
attendance VARCHAR
) | SELECT result FROM table_17294353_1 WHERE attendance = 18304 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3166,
4906,
4867,
834,
536,
41,
741,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
467,
28,
46,
11364,
13,
507,
23702,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
2517,
3166,
4906,
4867,
834,
536,
549,
17444,
427,
11364,
3274,
507,
23702,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which team is located in Lida? | CREATE TABLE table_name_91 (team VARCHAR, location VARCHAR) | SELECT team FROM table_name_91 WHERE location = "lida" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
11650,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
19,
1069,
16,
1414,
26,
9,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
1128,
3274,
96,
8130,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is 2006 has a 2007 of 3r? | CREATE TABLE table_40490 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
) | SELECT "2006" FROM table_40490 WHERE "2007" = '3r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25285,
2394,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
21196,
121,
21680,
953,
834,
25285,
2394,
549,
17444,
427,
96,
20615,
121,
3274,
3,
31,
519,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many aircrafts are there? | CREATE TABLE aircraft (
Id VARCHAR
) | SELECT COUNT(*) FROM aircraft | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6442,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6442,
7,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
6442,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the circuit? | CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, tyre VARCHAR, pole_position VARCHAR) | SELECT circuit FROM table_name_16 WHERE tyre = "d" AND pole_position = "jochen rindt" AND fastest_lap = "jackie stewart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
15357,
21560,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
6,
3,
17,
63,
60,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
61,
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,
4558,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3,
17,
63,
60,
3274,
96,
26,
121,
3430,
11148,
834,
4718,
3274,
96,
1927,
1559,
3,
13119,
17,
121,
3430,
10391,
834,
8478,
3274,
96,
9325,
23,
15,
21786,
14... |
What was the away teams score at Glenferrie Oval? | CREATE TABLE table_name_92 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team AS score FROM table_name_92 WHERE venue = "glenferrie oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
2323,
2604,
44,
8300,
1010,
1753,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
5669,
3274,
96,
3537,
29,
1010,
1753,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.