NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
how many songs were produced by will.i.am ? | CREATE TABLE table_203_687 (
id number,
"#" number,
"title" text,
"time" text,
"performer(s)" text,
"songwriters" text,
"producer(s)" text,
"samples and notes" text
) | SELECT COUNT("title") FROM table_203_687 WHERE "producer(s)" = 'will.i.am' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3651,
940,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
883,
2032,
49,
599,
7,
61,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
21869,
8512,
21680,
953,
834,
23330,
834,
3651,
940,
549,
17444,
427,
96,
1409,
4817,
49,
599,
7,
61,
121,
3274,
3,
31,
8894,
5,
23,
5,
265,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many documents in different starting date? Return a line chart grouping by starting date. | CREATE TABLE Employees (
Employee_ID INTEGER,
Role_Code CHAR(15),
Employee_Name VARCHAR(255),
Gender_MFU CHAR(1),
Date_of_Birth DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Calendar (
Calendar_Date DATETIME,
Day_Number INTEGER
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Ref_Locations (
Location_Code CHAR(15),
Location_Name VARCHAR(255),
Location_Description VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
) | SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations GROUP BY Date_in_Location_From | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15871,
7,
41,
15871,
834,
4309,
3,
21342,
17966,
6,
2158,
109,
834,
22737,
3,
28027,
599,
1808,
201,
15871,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
350,
3868,
834,
329,
19813,
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,
7678,
834,
77,
834,
434,
32,
75,
257,
834,
22674,
6,
2847,
17161,
599,
308,
342,
834,
77,
834,
434,
32,
75,
257,
834,
22674,
61,
21680,
11167,
834,
434,
32,
75,
1628,
350,
4630,
6880,
272,
476,
7678,
834,
77,
83... |
Who was the opponent in the mallorca 2, spain tournament? | CREATE TABLE table_name_54 (
opponent VARCHAR,
tournament VARCHAR
) | SELECT opponent FROM table_name_54 WHERE tournament = "mallorca 2, spain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
15264,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
16,
8,
1460,
322,
658,
3547,
4174,
77,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
5892,
3274,
96,
1982,
322,
658,
3547,
4174,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the movie which is classified in the most number of genres | CREATE TABLE movie (
mid int,
title text,
release_year int,
title_aka text,
budget text
)
CREATE TABLE cast (
id int,
msid int,
aid int,
role text
)
CREATE TABLE copyright (
id int,
msid int,
cid int
)
CREATE TABLE tags (
id int,
msid int,
kid int
)
CREATE TABLE writer (
wid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE directed_by (
id int,
msid int,
did int
)
CREATE TABLE classification (
id int,
msid int,
gid int
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE director (
did int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE keyword (
id int,
keyword text
)
CREATE TABLE company (
id int,
name text,
country_code varchar
)
CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE tv_series (
sid int,
title text,
release_year int,
num_of_seasons int,
num_of_episodes int,
title_aka text,
budget text
)
CREATE TABLE genre (
gid int,
genre text
)
CREATE TABLE made_by (
id int,
msid int,
pid int
)
CREATE TABLE producer (
pid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
) | SELECT movie.title FROM classification, genre, movie WHERE genre.gid = classification.gid AND movie.mid = classification.msid GROUP BY movie.title ORDER BY COUNT(DISTINCT (genre.genre)) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
2076,
16,
17,
6,
2233,
1499,
6,
1576,
834,
1201,
16,
17,
6,
2233,
834,
5667,
1499,
6,
1487,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4061,
41,
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,
1974,
5,
21869,
21680,
13774,
6,
5349,
6,
1974,
549,
17444,
427,
5349,
5,
122,
23,
26,
3274,
13774,
5,
122,
23,
26,
3430,
1974,
5,
6983,
3274,
13774,
5,
51,
7,
23,
26,
350,
4630,
6880,
272,
476,
1974,
5,
21869,
... |
What kind of Socket has a Order part number of tmrm72dam22gg? | CREATE TABLE table_7404 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Multi 1" text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Order part number" text
) | SELECT "Socket" FROM table_7404 WHERE "Order part number" = 'tmrm72dam22gg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
6348,
41,
96,
24663,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
357,
11800,
121,
1499,
6,
96,
31922,
209,
121,
1499,
6,
96,
22803,
6505,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5231,
8849,
17,
121,
21680,
953,
834,
4581,
6348,
549,
17444,
427,
96,
7395,
588,
294,
381,
121,
3274,
3,
31,
17,
51,
52,
51,
5865,
7812,
2884,
4102,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What date did the Ravens play the buffalo bills? | CREATE TABLE table_8616 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Attendance" text
) | SELECT "Date" FROM table_8616 WHERE "Opponent" = 'buffalo bills' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3840,
2938,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3840,
2938,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
115,
2999,
138,
32,
7200,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the ends for the player with a transfer fee of loan? | CREATE TABLE table_name_33 (
ends VARCHAR,
transfer_fee VARCHAR
) | SELECT ends FROM table_name_33 WHERE transfer_fee = "loan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
5542,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
5542,
21,
8,
1959,
28,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5542,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
40,
32,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many married patients have had a percutaneous (endoscopic) jejunostomy [pej] procedure? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.long_title = "Percutaneous (endoscopic) jejunostomy [PEJ]" | [
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,... |
When Alinna D Penta was the cyber girl in week 3, who was the cyber girl in week 1? | CREATE TABLE table_name_69 (week_1 VARCHAR, week_3 VARCHAR) | SELECT week_1 FROM table_name_69 WHERE week_3 = "alinna d penta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
8041,
834,
536,
584,
4280,
28027,
6,
471,
834,
519,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
901,
77,
29,
9,
309,
4511,
17,
9,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
834,
536,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
471,
834,
519,
3274,
96,
138,
77,
29,
9,
3,
26,
4550,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the location of the church for bremanger | CREATE TABLE table_178408_1 (
location_of_the_church VARCHAR,
sub_parish__sokn_ VARCHAR
) | SELECT location_of_the_church FROM table_178408_1 WHERE sub_parish__sokn_ = "Bremanger" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4608,
4018,
834,
536,
41,
1128,
834,
858,
834,
532,
834,
28854,
584,
4280,
28027,
6,
769,
834,
1893,
1273,
834,
834,
7,
1825,
29,
834,
584,
4280,
28027,
3,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
858,
834,
532,
834,
28854,
21680,
953,
834,
2517,
4608,
4018,
834,
536,
549,
17444,
427,
769,
834,
1893,
1273,
834,
834,
7,
1825,
29,
834,
3274,
96,
279,
60,
348,
1304,
121,
1,
-100,
-100,
-100,
-100,
-... |
What Method was used with opponent Kenneth Allen? | CREATE TABLE table_name_55 (
method VARCHAR,
opponent VARCHAR
) | SELECT method FROM table_name_55 WHERE opponent = "kenneth allen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
1573,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7717,
47,
261,
28,
15264,
16267,
189,
10618,
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,
1573,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
15264,
3274,
96,
9376,
15,
189,
6127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the PBA team with a Pick that is 4? | CREATE TABLE table_41769 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
) | SELECT "PBA team" FROM table_41769 WHERE "Pick" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2517,
3951,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
13,
5233,
1935,
121,
1499,
6,
96,
345,
4882,
372,
121,
1499,
6,
96,
9939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4882,
372,
121,
21680,
953,
834,
591,
2517,
3951,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is 2010 when 2003 is 5.6? | CREATE TABLE table_29325 (
"Greek national account" text,
"1970" text,
"1980" text,
"1990" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001 1" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013 2" text,
"2014 2" text,
"2015 3" text
) | SELECT "2010" FROM table_29325 WHERE "2003" = '5.6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4271,
1828,
41,
96,
517,
52,
10266,
1157,
905,
121,
1499,
6,
96,
2294,
2518,
121,
1499,
6,
96,
2294,
2079,
121,
1499,
6,
96,
2294,
2394,
121,
1499,
6,
96,
19479,
173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14926,
121,
21680,
953,
834,
357,
4271,
1828,
549,
17444,
427,
96,
23948,
121,
3274,
3,
31,
25134,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which contestant was sponsored by Yogurt Vita Slim? | CREATE TABLE table_28062822_3 (
contestant VARCHAR,
sponsor VARCHAR
) | SELECT contestant FROM table_28062822_3 WHERE sponsor = "Yogurt Vita Slim" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
5176,
2577,
2884,
834,
519,
41,
4233,
288,
584,
4280,
28027,
6,
9037,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4233,
288,
47,
11851,
57,
6545,
7840... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4233,
288,
21680,
953,
834,
2577,
5176,
2577,
2884,
834,
519,
549,
17444,
427,
9037,
3274,
96,
476,
32,
7840,
17,
11491,
9,
24486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the original air date of the episode that had 4.08 million U.S. viewers? | CREATE TABLE table_21304155_1 (
original_air_date VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT original_air_date FROM table_21304155_1 WHERE us_viewers__millions_ = "4.08" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
23702,
20896,
834,
536,
41,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2658,
23702,
20896,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
15021,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what grid did Richard Robarts make 36 laps? | CREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR, laps VARCHAR) | SELECT SUM(grid) FROM table_name_48 WHERE driver = "richard robarts" AND laps < 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
3496,
26,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
8634,
410,
4117,
5376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
2535,
3274,
96,
3723,
986,
3,
5840,
1408,
7,
121,
3430,
14941,
7,
3,
2,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When the kilometers from kingston is 105.4 what is the minimum amount of length in feet? | CREATE TABLE table_16226584_1 (length_feet INTEGER, km_from_kingston VARCHAR) | SELECT MIN(length_feet) FROM table_16226584_1 WHERE km_from_kingston = "105.4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2884,
4122,
4608,
834,
536,
41,
19457,
834,
89,
15,
15,
17,
3,
21342,
17966,
6,
2280,
834,
7152,
834,
1765,
4411,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
19457,
834,
89,
15,
15,
17,
61,
21680,
953,
834,
2938,
2884,
4122,
4608,
834,
536,
549,
17444,
427,
2280,
834,
7152,
834,
1765,
4411,
3274,
96,
12869,
5,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show locations and nicknames of schools. | CREATE TABLE school_performance (
school_id number,
school_year text,
class_a text,
class_aa text
)
CREATE TABLE school (
school_id number,
school text,
location text,
enrollment number,
founded number,
denomination text,
boys_or_girls text,
day_or_boarding text,
year_entered_competition number,
school_colors text
)
CREATE TABLE player (
player_id number,
player text,
team text,
age number,
position text,
school_id number
)
CREATE TABLE school_details (
school_id number,
nickname text,
colors text,
league text,
class text,
division text
) | SELECT T1.location, T2.nickname FROM school AS T1 JOIN school_details AS T2 ON T1.school_id = T2.school_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
834,
18558,
41,
496,
834,
23,
26,
381,
6,
496,
834,
1201,
1499,
6,
853,
834,
9,
1499,
6,
853,
834,
9,
9,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
332,
5411,
14836,
6,
332,
4416,
11191,
4350,
21680,
496,
6157,
332,
536,
3,
15355,
3162,
496,
834,
221,
5756,
7,
6157,
332,
357,
9191,
332,
5411,
6646,
834,
23,
26,
3274,
332,
4416,
6646,
834,
23,
26,
1,
-100,
-10... |
Give me a pie to show how many industry from different industry. | CREATE TABLE people (
People_ID int,
Age int,
Name text,
Nationality text,
Graduation_College text
)
CREATE TABLE employment (
Company_ID int,
People_ID int,
Year_working int
)
CREATE TABLE company (
Company_ID real,
Name text,
Headquarters text,
Industry text,
Sales_in_Billion real,
Profits_in_Billion real,
Assets_in_Billion real,
Market_Value_in_Billion real
) | SELECT Industry, COUNT(Industry) FROM company GROUP BY Industry | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
7526,
16,
17,
6,
5570,
1499,
6,
868,
485,
1499,
6,
10771,
76,
257,
834,
9939,
7883,
1499,
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,
9036,
6,
2847,
17161,
599,
1570,
8655,
8224,
61,
21680,
349,
350,
4630,
6880,
272,
476,
9036,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team was the home team at the venue junction oval? | CREATE TABLE table_name_74 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_74 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
234,
372,
44,
8,
5669,
23704,
1798... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those products with a price between 60 and 120, a bar chart shows the distribution of name and manufacturer , and display x axis in descending order. | 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, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
15248,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
4674,
11300,
272,
476,
5570,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the film where Hannah Gal was the director? | CREATE TABLE table_name_67 (
film VARCHAR,
director_s_ VARCHAR
) | SELECT film FROM table_name_67 WHERE director_s_ = "hannah gal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
814,
584,
4280,
28027,
6,
2090,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
814,
213,
21412,
6084,
47,
8,
2090,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
814,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2090,
834,
7,
834,
3274,
96,
2618,
8607,
7466,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the English title for season 6? | CREATE TABLE table_5412 (
"Number of episode" real,
"Number of season" real,
"Title (original)" text,
"Title (English)" text,
"Original air date" text
) | SELECT "Title (English)" FROM table_5412 WHERE "Number of season" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
2122,
41,
96,
567,
5937,
49,
13,
5640,
121,
490,
6,
96,
567,
5937,
49,
13,
774,
121,
490,
6,
96,
382,
155,
109,
41,
21878,
61,
121,
1499,
6,
96,
382,
155,
109,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
155,
109,
41,
26749,
61,
121,
21680,
953,
834,
5062,
2122,
549,
17444,
427,
96,
567,
5937,
49,
13,
774,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What surface was the November 5, 1995 match played on? | CREATE TABLE table_name_33 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_33 WHERE date = "november 5, 1995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
26899,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1774,
47,
8,
1671,
7836,
7273,
1588,
1944,
30,
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,
1774,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
7836,
7273,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which 3 players won the most player awards? List their full name and id. | CREATE TABLE player (
name_first VARCHAR,
name_last VARCHAR,
player_id VARCHAR
)
CREATE TABLE player_award (
player_id VARCHAR
) | SELECT T1.name_first, T1.name_last, T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
564,
834,
14672,
584,
4280,
28027,
6,
564,
834,
5064,
584,
4280,
28027,
6,
1959,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
834,
14672,
6,
332,
5411,
4350,
834,
5064,
6,
332,
5411,
20846,
834,
23,
26,
21680,
1959,
6157,
332,
536,
3,
15355,
3162,
1959,
834,
9,
2239,
6157,
332,
357,
9191,
332,
5411,
20846,
834,
23,
26,
3... |
What position for chris moreno? | CREATE TABLE table_name_18 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_18 WHERE player = "chris moreno" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
21,
3,
524,
52,
159,
72,
29,
32,
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,
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,
1102,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1959,
3274,
96,
524,
52,
159,
72,
29,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Venue of the 2009 Gulf Cup of Nations? | CREATE TABLE table_name_75 (
venue VARCHAR,
competition VARCHAR
) | SELECT venue FROM table_name_75 WHERE competition = "2009 gulf cup of nations" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
5669,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
29940,
13,
8,
2464,
13566,
3802,
13,
9638,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2259,
3274,
96,
16660,
3,
6106,
89,
4119,
13,
9352,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935? | CREATE TABLE table_name_19 (nov_2012 VARCHAR, jun_2013 VARCHAR, aug_2011 VARCHAR) | SELECT COUNT(nov_2012) FROM table_name_19 WHERE jun_2013 > 542 AND aug_2011 > 935 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
5326,
834,
12172,
584,
4280,
28027,
6,
3,
6959,
834,
11138,
584,
4280,
28027,
6,
185,
122,
834,
13907,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5326,
834,
12172,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
3,
6959,
834,
11138,
2490,
305,
4165,
3430,
185,
122,
834,
13907,
2490,
668,
2469,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who are the scorers when the score is 9-2? | CREATE TABLE table_name_4 (
scorers VARCHAR,
score VARCHAR
) | SELECT scorers FROM table_name_4 WHERE score = "9-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
14056,
277,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
8,
14056,
277,
116,
8,
2604,
19,
668,
4949,
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,
14056,
277,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
2604,
3274,
96,
1298,
4949,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the constructor in the Belgian Grand Prix round? | CREATE TABLE table_2911781_3 (constructor VARCHAR, grand_prix VARCHAR) | SELECT constructor FROM table_2911781_3 WHERE grand_prix = "Belgian grand_prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
20275,
4959,
834,
519,
41,
15982,
5317,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6774,
127,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
3166,
20275,
4959,
834,
519,
549,
17444,
427,
1907,
834,
2246,
226,
3274,
96,
2703,
40,
22898,
1907,
834,
2246,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is minimum age of patients whose gender is m and ethnicity is white - russian? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.ethnicity = "WHITE - RUSSIAN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274,
96,
15313,
14871,
3,
18,
3,
8503,
4256,
21758,
121,
1,
-100... |
What is the chinese name of the province whose capital is hangzhou? | CREATE TABLE table_254234_1 (
chinese_name VARCHAR,
capital VARCHAR
) | SELECT chinese_name FROM table_254234_1 WHERE capital = "Hangzhou" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4165,
3710,
834,
536,
41,
3,
1436,
1496,
15,
834,
4350,
584,
4280,
28027,
6,
1784,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
1436,
1496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
1436,
1496,
15,
834,
4350,
21680,
953,
834,
1828,
4165,
3710,
834,
536,
549,
17444,
427,
1784,
3274,
96,
566,
1468,
25303,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
has patient 013-29856 been diagnosed with any in their last hospital encounter? | 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 patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) | SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-29856' AND NOT patient.hospitaldischargetime 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,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
8209,
549,
17444,
427,
8209,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
Which Height has a Player of mike bibby? | CREATE TABLE table_name_43 (height VARCHAR, player VARCHAR) | SELECT height FROM table_name_43 WHERE player = "mike bibby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
88,
2632,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
24231,
65,
3,
9,
12387,
13,
3,
20068,
15,
3,
22456,
969... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3902,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1959,
3274,
96,
20068,
15,
3,
22456,
969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What player's hometown is Roebuck, South Carolina? | CREATE TABLE table_11677691_3 (
player VARCHAR,
hometown VARCHAR
) | SELECT player FROM table_11677691_3 WHERE hometown = "Roebuck, South Carolina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3708,
3959,
4729,
834,
519,
41,
1959,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
31,
7,
22295,
19,
2158,
15,
13863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
2596,
3708,
3959,
4729,
834,
519,
549,
17444,
427,
22295,
3274,
96,
448,
32,
15,
13863,
6,
1013,
5089,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Bar chart of minimal price from each name, order by the bar in descending. | 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, MIN(Price) FROM Products GROUP BY Name ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
3,
17684,
599,
345,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
5570,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the phone numbers of all customers and suppliers. | CREATE TABLE suppliers (customer_phone VARCHAR, supplier_phone VARCHAR); CREATE TABLE customers (customer_phone VARCHAR, supplier_phone VARCHAR) | SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6603,
41,
25697,
49,
834,
6399,
584,
4280,
28027,
6,
8106,
834,
6399,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
25697,
49,
834,
6399,
584,
428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
884,
834,
6399,
21680,
722,
4417,
9215,
3,
23143,
14196,
8106,
834,
6399,
21680,
6603,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the language of the film directed by Hans Kristensen? | CREATE TABLE table_name_14 (language VARCHAR, director VARCHAR) | SELECT language FROM table_name_14 WHERE director = "hans kristensen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
24925,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1612,
13,
8,
814,
6640,
57,
10001,
9375,
324,
7,
35,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1612,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
2090,
3274,
96,
2618,
7,
3,
10648,
1913,
7,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player in the United States had a total of 286 and won in 2003? | CREATE TABLE table_name_78 (player VARCHAR, year_s__won VARCHAR, country VARCHAR, total VARCHAR) | SELECT player FROM table_name_78 WHERE country = "united states" AND total = 286 AND year_s__won = "2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
20846,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
792,
3274,
204,
3840,
3430,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
23948,
121,
1,
-100,
-100,
-100,
-100,
... |
What is the Halil Mutlu when the world record is olympic record and the 138kg is 167kg? | CREATE TABLE table_14269 (
"World record" text,
"Snatch" text,
"Halil Mutlu ( TUR )" text,
"138kg" text,
"Antalya , Turkey" text
) | SELECT "Halil Mutlu ( TUR )" FROM table_14269 WHERE "World record" = 'olympic record' AND "138kg" = '167kg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
3951,
41,
96,
17954,
1368,
121,
1499,
6,
96,
134,
29,
14547,
121,
1499,
6,
96,
566,
138,
173,
16601,
40,
76,
41,
3,
21164,
3,
61,
121,
1499,
6,
96,
22744,
8711,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
566,
138,
173,
16601,
40,
76,
41,
3,
21164,
3,
61,
121,
21680,
953,
834,
24978,
3951,
549,
17444,
427,
96,
17954,
1368,
121,
3274,
3,
31,
32,
120,
51,
6174,
1368,
31,
3430,
96,
22744,
8711,
121,
3274,
3,
31,... |
What is the oppenent when the score was 5 0? | CREATE TABLE table_name_70 (
opponent VARCHAR,
score VARCHAR
) | SELECT opponent FROM table_name_70 WHERE score = "5–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
32,
1572,
35,
295,
116,
8,
2604,
47,
305,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
2604,
3274,
96,
755,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers? | CREATE TABLE table_36018 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Total") FROM table_36018 WHERE "Bronze" > '1' AND "Gold" > '8' AND "Silver" < '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19208,
2606,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
19208,
2606,
549,
17444,
427,
96,
22780,
29,
776,
121,
2490,
3,
31,
536,
31,
3430,
96,
23576,
121,
2490,
3,
31,
927,
31,
3430,
96,
134,
173,
624,
121,
3,
2,... |
On 11 July 2003, which athlete performed? | CREATE TABLE table_53296 (
"Event" text,
"Record" text,
"Athlete" text,
"Nationality" text,
"Date" text
) | SELECT "Athlete" FROM table_53296 WHERE "Date" = '11 july 2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
357,
4314,
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,
0,
0... | [
3,
23143,
14196,
96,
188,
189,
1655,
15,
121,
21680,
953,
834,
4867,
357,
4314,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2596,
3,
2047,
120,
3888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which other ship was launched in the same year as the wave victor ? | CREATE TABLE table_203_313 (
id number,
"name" text,
"pennant" text,
"builder" text,
"launched" text,
"original name" text,
"fate" text
) | SELECT "name" FROM table_203_313 WHERE "name" <> 'wave victor' AND "launched" = (SELECT "launched" FROM table_203_313 WHERE "name" = 'wave victor') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
2368,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
3208,
29,
288,
121,
1499,
6,
96,
16422,
49,
121,
1499,
6,
96,
27493,
15,
26,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
519,
2368,
549,
17444,
427,
96,
4350,
121,
3,
2,
3155,
3,
31,
12301,
5931,
5317,
31,
3430,
96,
27493,
15,
26,
121,
3274,
41,
23143,
14196,
96,
27493,
15,
26,
121,
21680,... |
what's the highest point with lowest point being belle fourche river at south dakota border | CREATE TABLE table_1416612_1 (
highest_point VARCHAR,
lowest_point VARCHAR
) | SELECT highest_point FROM table_1416612_1 WHERE lowest_point = "Belle Fourche River at South Dakota border" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
26811,
2122,
834,
536,
41,
2030,
834,
2700,
584,
4280,
28027,
6,
7402,
834,
2700,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
2030,
500,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2030,
834,
2700,
21680,
953,
834,
2534,
26811,
2122,
834,
536,
549,
17444,
427,
7402,
834,
2700,
3274,
96,
279,
693,
5933,
1033,
2473,
44,
1013,
16711,
4947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the ids of all employees who have destroyed a document. | CREATE TABLE all_documents (
document_id number,
date_stored time,
document_type_code text,
document_name text,
document_description text,
other_details text
)
CREATE TABLE document_locations (
document_id number,
location_code text,
date_in_location_from time,
date_in_locaton_to time
)
CREATE TABLE ref_calendar (
calendar_date time,
day_number number
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE roles (
role_code text,
role_name text,
role_description text
)
CREATE TABLE ref_locations (
location_code text,
location_name text,
location_description text
)
CREATE TABLE employees (
employee_id number,
role_code text,
employee_name text,
gender_mfu text,
date_of_birth time,
other_details text
)
CREATE TABLE documents_to_be_destroyed (
document_id number,
destruction_authorised_by_employee_id number,
destroyed_by_employee_id number,
planned_destruction_date time,
actual_destruction_date time,
other_details text
) | SELECT DISTINCT destroyed_by_employee_id FROM documents_to_be_destroyed | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
66,
834,
28244,
7,
41,
1708,
834,
23,
26,
381,
6,
833,
834,
7154,
26,
97,
6,
1708,
834,
6137,
834,
4978,
1499,
6,
1708,
834,
4350,
1499,
6,
1708,
834,
221,
11830,
1499,
6,
119,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
10932,
834,
969,
834,
15,
51,
7379,
63,
15,
15,
834,
23,
26,
21680,
2691,
834,
235,
834,
346,
834,
221,
6626,
10093,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 of 47.91, and an Upper index MJ/ Nm 3 larger than 53.28? | CREATE TABLE table_64435 (
"Fuel gas" text,
"Upper index Kcal/ Nm 3" real,
"Lower index Kcal/ Nm 3" real,
"Upper index MJ/ Nm 3" real,
"Lower index MJ/ Nm 3" real
) | SELECT SUM("Upper index Kcal/ Nm 3") FROM table_64435 WHERE "Lower index MJ/ Nm 3" = '47.91' AND "Upper index MJ/ Nm 3" > '53.28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
591,
2469,
41,
96,
371,
76,
15,
40,
1807,
121,
1499,
6,
96,
1265,
8153,
5538,
480,
1489,
87,
445,
51,
220,
121,
490,
6,
96,
434,
32,
3321,
5538,
480,
1489,
87,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1265,
8153,
5538,
480,
1489,
87,
445,
51,
220,
8512,
21680,
953,
834,
4389,
591,
2469,
549,
17444,
427,
96,
434,
32,
3321,
5538,
3,
25047,
87,
445,
51,
220,
121,
3274,
3,
31,
4177,
5,
4729,
... |
how many patients who died in or before the year 2115 had primary diagnoses of t5 fracture? | 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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "T5 FRACTURE" AND demographic.dod_year <= "2115.0" | [
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,
25930,
4844,
159,
3274,
96,
382,
755,
377,
22034,
25380,
121,
3430,
14798,
5,
26,
32,
26,
834,
1... |
What day was kibawe created? | CREATE TABLE table_261222_1 (
date_of_creation VARCHAR,
city___municipality VARCHAR
) | SELECT date_of_creation FROM table_261222_1 WHERE city___municipality = "Kibawe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2122,
2884,
834,
536,
41,
833,
834,
858,
834,
5045,
257,
584,
4280,
28027,
6,
690,
834,
834,
834,
11760,
3389,
10355,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
5045,
257,
21680,
953,
834,
2688,
2122,
2884,
834,
536,
549,
17444,
427,
690,
834,
834,
834,
11760,
3389,
10355,
3274,
96,
439,
23,
115,
9,
1123,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009? | CREATE TABLE table_24909 (
"College" text,
"2007 Headcount" real,
"2007-2008 credit hours" real,
"County population 18 yrs+" real,
"Penetration in terms of Enrollment per 1000 adults" real,
"In-county tuition per credit hour (fall 2009)" text
) | SELECT "In-county tuition per credit hour (fall 2009)" FROM table_24909 WHERE "College" = 'Gloucester' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3647,
4198,
41,
96,
9939,
7883,
121,
1499,
6,
96,
20615,
3642,
13362,
121,
490,
6,
96,
20615,
18,
16128,
998,
716,
121,
490,
6,
96,
10628,
63,
2074,
507,
3,
63,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
18,
13362,
63,
15409,
399,
998,
1781,
41,
2857,
2464,
61,
121,
21680,
953,
834,
357,
3647,
4198,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
517,
40,
1063,
565,
1370,
31,
1,
-100,
-100,
-100,
-100... |
Which policy type has the most records in the database? | CREATE TABLE available_policies (policy_type_code VARCHAR) | SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
347,
834,
3003,
6267,
7,
41,
3233,
17686,
834,
6137,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1291,
686,
65,
8,
167,
3187,
16,
8,
3501,
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,
1291,
834,
6137,
834,
4978,
21680,
347,
834,
3003,
6267,
7,
350,
4630,
6880,
272,
476,
1291,
834,
6137,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
... |
What fourth-place has 2 (1999, 2005) as the runner(s)-up? | CREATE TABLE table_61748 (
"Champions" text,
"Runners-up" text,
"Third-place" text,
"Fourth-place" text,
"Semi-finalists" text
) | SELECT "Fourth-place" FROM table_61748 WHERE "Runners-up" = '2 (1999, 2005)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2517,
3707,
41,
96,
3541,
4624,
2865,
121,
1499,
6,
96,
23572,
7,
18,
413,
121,
1499,
6,
96,
382,
9288,
26,
18,
4687,
121,
1499,
6,
96,
371,
1211,
189,
18,
4687,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
1211,
189,
18,
4687,
121,
21680,
953,
834,
948,
2517,
3707,
549,
17444,
427,
96,
23572,
7,
18,
413,
121,
3274,
3,
31,
357,
2863,
3264,
6,
3105,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each origin, how many flights came from there Show bar chart, and sort bar from low to high order please. | CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
)
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
) | SELECT origin, COUNT(*) FROM flight GROUP BY origin ORDER BY origin | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6442,
41,
3052,
381,
599,
1298,
6,
632,
201,
564,
3,
4331,
4059,
357,
599,
1458,
201,
2357,
381,
599,
11071,
632,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6017... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5233,
6,
2847,
17161,
599,
1935,
61,
21680,
3777,
350,
4630,
6880,
272,
476,
5233,
4674,
11300,
272,
476,
5233,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has a constituency of 84? | CREATE TABLE table_name_62 (
name VARCHAR,
constituency_number VARCHAR
) | SELECT name FROM table_name_62 WHERE constituency_number = "84" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
564,
584,
4280,
28027,
6,
6439,
4392,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
3,
9,
6439,
4392,
13,
3,
4608,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4056,
549,
17444,
427,
6439,
4392,
834,
5525,
1152,
3274,
96,
4608,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the foundation of Politeknik Pagoh? | CREATE TABLE table_name_73 (
foundation INTEGER,
official_name_in_malay VARCHAR
) | SELECT AVG(foundation) FROM table_name_73 WHERE official_name_in_malay = "politeknik pagoh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
3361,
3,
21342,
17966,
6,
2314,
834,
4350,
834,
77,
834,
1982,
9,
63,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
47,
8,
3361,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
19732,
257,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
2314,
834,
4350,
834,
77,
834,
1982,
9,
63,
3274,
96,
3003,
15150,
4953,
2576,
839,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which label is dated February 14, 2002? | CREATE TABLE table_79941 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Label" FROM table_79941 WHERE "Date" = 'february 14, 2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
4240,
536,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
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,
0,
0... | [
3,
23143,
14196,
96,
434,
10333,
121,
21680,
953,
834,
4440,
4240,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
89,
15,
9052,
1208,
11363,
4407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many votes did Northern Ireland cast if the total was 35? | CREATE TABLE table_15961 (
"Song" text,
"Mobiles" real,
"Northern Ireland" real,
"Northern England" real,
"Scotland" real,
"Southern England" real,
"Wales" real,
"Total" real
) | SELECT "Northern Ireland" FROM table_15961 WHERE "Total" = '35' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27904,
4241,
41,
96,
134,
2444,
121,
1499,
6,
96,
22162,
7,
121,
490,
6,
96,
22969,
49,
29,
5316,
121,
490,
6,
96,
22969,
49,
29,
2789,
121,
490,
6,
96,
134,
4310,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22969,
49,
29,
5316,
121,
21680,
953,
834,
27904,
4241,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
2469,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of patients whose admission type is emergency and lab test fluid is cerebrospinal fluid (csf)? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what's the height with current club being dkv joventut | CREATE TABLE table_12962773_5 (
height VARCHAR,
current_club VARCHAR
) | SELECT height FROM table_12962773_5 WHERE current_club = "DKV Joventut" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4314,
2555,
4552,
834,
755,
41,
3902,
584,
4280,
28027,
6,
750,
834,
13442,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
3902,
28,
750,
1886... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3902,
21680,
953,
834,
2122,
4314,
2555,
4552,
834,
755,
549,
17444,
427,
750,
834,
13442,
3274,
96,
308,
439,
553,
2194,
2169,
76,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Sum the amount for all the payments processed with Visa of each day of week using a bar chart, show Y from low to high order please. | CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER
)
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
) | SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY SUM(Amount_Payment) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4779,
8345,
41,
7781,
603,
834,
4309,
3,
21342,
17966,
6,
7587,
834,
4309,
3,
21342,
17966,
6,
7678,
834,
254,
521,
603,
834,
329,
9,
221,
309,
6048,
6,
7678,
834,
254,
521,
603,
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,
7678,
834,
19702,
297,
834,
329,
9,
221,
6,
180,
6122,
599,
188,
11231,
834,
19702,
297,
61,
21680,
12248,
7,
549,
17444,
427,
12248,
834,
23351,
107,
32,
26,
834,
22737,
3274,
3,
31,
553,
159,
9,
31,
4674,
11300,... |
What is the sum of Total, when Silver is 0, and when Gold is 1? | CREATE TABLE table_name_72 (
total INTEGER,
silver VARCHAR,
gold VARCHAR
) | SELECT SUM(total) FROM table_name_72 WHERE silver = 0 AND gold = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
792,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
9273,
6,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
4294,
3274,
3,
632,
3430,
2045,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Undecided on 2009-05-24? | CREATE TABLE table_name_66 (
undecided VARCHAR,
date VARCHAR
) | SELECT undecided FROM table_name_66 WHERE date = "2009-05-24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
3550,
10812,
15,
26,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
597,
24223,
221,
26,
30,
2464,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3550,
10812,
15,
26,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
833,
3274,
96,
16660,
18,
3076,
14962,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When has a Score of 0 0, and a Away team of scunthorpe united? | CREATE TABLE table_name_65 (
date VARCHAR,
score VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_65 WHERE score = "0–0" AND away_team = "scunthorpe united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
65,
3,
9,
17763,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
2604,
3274,
96,
632,
104,
632,
121,
3430,
550,
834,
11650,
3274,
96,
7,
75,
202,
189,
127,
855,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title of production code 514? | CREATE TABLE table_11630008_7 (title VARCHAR, production_code VARCHAR) | SELECT title FROM table_11630008_7 WHERE production_code = 514 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
5426,
4018,
834,
940,
41,
21869,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
999,
1081,
305,
2534,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
20159,
5426,
4018,
834,
940,
549,
17444,
427,
999,
834,
4978,
3274,
305,
2534,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different countries are all the swimmers from? | CREATE TABLE stadium (
id number,
name text,
capacity number,
city text,
country text,
opening_year number
)
CREATE TABLE event (
id number,
name text,
stadium_id number,
year text
)
CREATE TABLE record (
id number,
result text,
swimmer_id number,
event_id number
)
CREATE TABLE swimmer (
id number,
name text,
nationality text,
meter_100 number,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
time text
) | SELECT COUNT(DISTINCT nationality) FROM swimmer | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
2614,
381,
6,
690,
1499,
6,
684,
1499,
6,
2101,
834,
1201,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
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,
2847,
17161,
599,
15438,
25424,
6227,
1157,
485,
61,
21680,
27424,
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,
... |
What is the Country, when Place is '1'? | CREATE TABLE table_name_46 (
country VARCHAR,
place VARCHAR
) | SELECT country FROM table_name_46 WHERE place = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6993,
6,
116,
3399,
19,
3,
31,
536,
31,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
286,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which league has total smaller than 284, with Sandro Mazzola league? | CREATE TABLE table_name_42 (league INTEGER, total VARCHAR, name VARCHAR) | SELECT MIN(league) FROM table_name_42 WHERE total < 284 AND name = "sandro mazzola" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
29512,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5533,
65,
792,
2755,
145,
2059,
8525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29512,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
792,
3,
2,
204,
4608,
3430,
564,
3274,
96,
7,
9,
22357,
3,
18983,
12423,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the college/junior/club team (league) of left wing Ondrej Roman? | CREATE TABLE table_name_62 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR) | SELECT college_junior_club_team__league_ FROM table_name_62 WHERE position = "left wing" AND player = "ondrej roman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
3297,
7883,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
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,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1102,
3274,
96,
17068,
3,
3108,
121,
3430,
1959,
3274,
96,
106,
26,
60,
354,
3408,
121,
1,
... |
WHAT IS THE ORICON PEAK NUMBER WITH AN ATLANTIC LABEL, SUBHUMAN RACE, LATER THAN 1995? | CREATE TABLE table_name_72 (oricon_peak VARCHAR, date_of_release VARCHAR, label VARCHAR, title VARCHAR) | SELECT COUNT(oricon_peak) FROM table_name_72 WHERE label = "atlantic" AND title = "subhuman race" AND date_of_release > 1995 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
2057,
1018,
834,
14661,
584,
4280,
28027,
6,
833,
834,
858,
834,
21019,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
6,
2233,
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,
2847,
17161,
599,
2057,
1018,
834,
14661,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
3783,
3274,
96,
31767,
121,
3430,
2233,
3274,
96,
7304,
12450,
1964,
121,
3430,
833,
834,
858,
834,
21019,
2490,
7273,
1... |
Who was the winning driver for the goodwood circuit? | CREATE TABLE table_1140117_5 (winning_driver VARCHAR, circuit VARCHAR) | SELECT winning_driver FROM table_1140117_5 WHERE circuit = "Goodwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2445,
20275,
834,
755,
41,
8163,
834,
13739,
52,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3447,
2535,
21,
8,
207,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
13739,
52,
21680,
953,
834,
2596,
2445,
20275,
834,
755,
549,
17444,
427,
4558,
3274,
96,
20639,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Sign-in/Bicker is at of wash50 on washington rd? | CREATE TABLE table_name_56 (
sign_in_bicker VARCHAR,
location VARCHAR
) | SELECT sign_in_bicker FROM table_name_56 WHERE location = "wash50 on washington rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
1320,
834,
77,
834,
15979,
2304,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6365,
18,
77,
87,
279,
23,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1320,
834,
77,
834,
15979,
2304,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
1128,
3274,
96,
14710,
1752,
30,
6179,
6029,
3,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Constructor has a +1.027 Time/Retired? | CREATE TABLE table_52912 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Constructor" FROM table_52912 WHERE "Time/Retired" = '+1.027' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3166,
2122,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
7593,
127,
121,
21680,
953,
834,
755,
3166,
2122,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
1220,
12734,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Give me the comparison about the sum of School_ID over the All_Home , and group by attribute All_Home, and display by the x-axis from low to high. | 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 (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home | [
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,
432,
834,
19040,
6,
180,
6122,
599,
29364,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
4674,
11300,
272,
476,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
on which date was the patient with patient id 2560 born? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.dob FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the year began for the site with free userpics cost of $1 and a userpics paid value of N/A? | CREATE TABLE table_50560 (
"Name" text,
"Year Began" text,
"Registration" text,
"Userpics Free" text,
"Userpics Paid" text,
"Monthly Cost for Paid Account" text,
"Yearly Cost for Paid Account" text,
"Permanent Account" text
) | SELECT "Year Began" FROM table_50560 WHERE "Userpics Paid" = 'n/a' AND "Userpics Free" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
755,
3328,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
493,
2565,
121,
1499,
6,
96,
18752,
257,
121,
1499,
6,
96,
1265,
7,
49,
6174,
7,
1443,
121,
1499,
6,
96,
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,
476,
2741,
493,
2565,
121,
21680,
953,
834,
1752,
755,
3328,
549,
17444,
427,
96,
1265,
7,
49,
6174,
7,
14697,
26,
121,
3274,
3,
31,
29,
87,
9,
31,
3430,
96,
1265,
7,
49,
6174,
7,
1443,
121,
3274,
3,
31,
... |
How many rounds was the fight with a decision by submission (punches)? | CREATE TABLE table_8730 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
) | SELECT "Round" FROM table_8730 WHERE "Method" = 'submission (punches)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4225,
1458,
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,
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,
448,
32,
1106,
121,
21680,
953,
834,
4225,
1458,
549,
17444,
427,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
7304,
5451,
41,
6225,
2951,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the city for the winner Darren Hossack at the circuit of phillip island grand prix circuit? | CREATE TABLE table_name_45 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR) | SELECT city___state FROM table_name_45 WHERE winner = "darren hossack" AND circuit = "phillip island grand prix circuit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
6726,
834,
834,
834,
5540,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
690,
834,
834,
834,
5540,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
4668,
3274,
96,
3439,
1536,
3,
11982,
15525,
121,
3430,
4558,
3274,
96,
18118,
7446,
3368,
1907,
3407,
4558,
121,
1,
-100,
-100,
-100,
-100,... |
what is days of hospital stay and diagnoses short title of subject name kurt buczek? | 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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.days_stay, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Kurt Buczek" | [
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,
14798,
5,
1135,
7,
834,
21545,
6,
18730,
7,
5,
7,
14184,
834,
21869,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
549,
174... |
What is the sum of the bronze medals when there were more than 2 silver medals and a rank larger than 6? | CREATE TABLE table_name_89 (
bronze INTEGER,
silver VARCHAR,
rank VARCHAR
) | SELECT SUM(bronze) FROM table_name_89 WHERE silver > 2 AND rank > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
13467,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
13467,
93... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
4294,
2490,
204,
3430,
11003,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of competitions held in each city with a bar chart, and rank x axis in ascending order. | CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
)
CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Population real,
Census_Ranking text
)
CREATE TABLE farm_competition (
Competition_ID int,
Year int,
Theme text,
Host_city_ID int,
Hosts text
) | SELECT Official_Name, COUNT(Official_Name) FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY Official_Name ORDER BY Official_Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7621,
41,
15571,
834,
4309,
16,
17,
6,
4990,
834,
4309,
16,
17,
6,
3,
22557,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3797,
41,
4990,
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,
13686,
834,
23954,
6,
2847,
17161,
599,
667,
89,
22816,
834,
23954,
61,
21680,
690,
6157,
332,
536,
3,
15355,
3162,
3797,
834,
287,
4995,
4749,
6157,
332,
357,
9191,
332,
5411,
254,
485,
834,
4309,
3274,
332,
4416,
... |
What is the type with the fewest games? | CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE plays_games (
stuid number,
gameid number,
hours_played number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE video_games (
gameid number,
gname text,
gtype text
) | SELECT gtype FROM video_games GROUP BY gtype ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2100,
9583,
41,
21341,
23,
26,
381,
6,
2600,
4350,
1499,
6,
716,
883,
8041,
381,
6,
1031,
4895,
15,
26,
381,
6,
30,
860,
17401,
2009,
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,
122,
6137,
21680,
671,
834,
7261,
7,
350,
4630,
6880,
272,
476,
3,
122,
6137,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the total number of overall rankings of jvnne leow's events that are eliminated? | CREATE TABLE table_name_12 (
overall_ranking VARCHAR,
status VARCHAR,
name VARCHAR
) | SELECT COUNT(overall_ranking) FROM table_name_12 WHERE status = "eliminated" AND name = "廖尹宁 jvnne leow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
1879,
834,
6254,
53,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1890,
1748,
834,
6254,
53,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
2637,
3274,
96,
15,
4941,
77,
920,
121,
3430,
564,
3274,
96,
2,
3,
354,
208,
29,
29,
15,
90,
2381,
121,
1,
-100... |
How many champions were there when the last driver was Gianmarco Raimondo? | CREATE TABLE table_72376 (
"Country" text,
"Total Drivers" real,
"Champions" text,
"Championships" text,
"Current September 22, 2013" real,
"First driver(s)" text,
"Last/Current driver(s) September 22, 2013" text
) | SELECT "Champions" FROM table_72376 WHERE "Last/Current driver(s) September 22, 2013" = 'Gianmarco Raimondo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2773,
3959,
41,
96,
10628,
651,
121,
1499,
6,
96,
3696,
1947,
10546,
7,
121,
490,
6,
96,
3541,
4624,
2865,
121,
1499,
6,
96,
254,
1483,
12364,
2009,
7,
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,
3541,
4624,
2865,
121,
21680,
953,
834,
940,
2773,
3959,
549,
17444,
427,
96,
3612,
7,
17,
87,
254,
450,
5320,
2535,
599,
7,
61,
1600,
12889,
2038,
121,
3274,
3,
31,
517,
23,
152,
1635,
509,
13016,
6764,
32,
... |
What is the average Game where there were 65,666 in attendance? | CREATE TABLE table_6406 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Channel" text,
"Attendance" text
) | SELECT AVG("Game") FROM table_6406 WHERE "Attendance" = '65,666' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
5176,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
23055,
8512,
21680,
953,
834,
4389,
5176,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
4122,
6,
948,
3539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Plot the number of county by grouped by county as a bar graph, and I want to list in ascending by the bars. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
) | SELECT County, COUNT(County) FROM appellations GROUP BY County ORDER BY County | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
4699,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
6088,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
465,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1334,
6,
2847,
17161,
599,
10628,
63,
61,
21680,
8319,
6105,
7,
350,
4630,
6880,
272,
476,
1334,
4674,
11300,
272,
476,
1334,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is diagnoses short title and diagnoses long title of diagnoses icd9 code e8781? | 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,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id 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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "E8781" | [
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,
18730,
7,
5,
7,
14184,
834,
21869,
6,
18730,
7,
5,
2961,
834,
21869,
21680,
18730,
7,
549,
17444,
427,
18730,
7,
5,
447,
26,
1298,
834,
4978,
3274,
96,
427,
4225,
4959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the call sign which has a frequency Mhz more than 90.1 and ERP W of 1 | CREATE TABLE table_66820 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"FCC info" text
) | SELECT "Call sign" FROM table_66820 WHERE "Frequency MHz" > '90.1' AND "ERP W" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
927,
1755,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
1748,
1320,
121,
21680,
953,
834,
3539,
927,
1755,
549,
17444,
427,
96,
371,
60,
835,
11298,
3,
20210,
121,
2490,
3,
31,
1298,
16029,
31,
3430,
96,
3316,
345,
549,
121,
3274,
3,
31,
536,
31,
1,
-100,
-1... |
who directed the episode that elaine ko wrote? | CREATE TABLE table_29437 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | SELECT "Directed by" FROM table_29437 WHERE "Written by" = 'Elaine Ko' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4240,
4118,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23620,
15,
26,
57,
121,
21680,
953,
834,
357,
4240,
4118,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
10991,
7043,
1793,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the first name on the list ? | CREATE TABLE table_204_952 (
id number,
"rank" number,
"player" text,
"county" text,
"tally" text,
"total" number,
"opposition" text
) | SELECT "player" FROM table_204_952 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3301,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
13362,
63,
121,
1499,
6,
96,
17,
1427,
121,
1499,
6,
96,
235,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20846,
121,
21680,
953,
834,
26363,
834,
3301,
357,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the downhill points for the skier with total of 9.31 points? | CREATE TABLE table_59063 (
"Place" text,
"Competitor" text,
"Downhill points" real,
"Slalom points" text,
"Total" text
) | SELECT SUM("Downhill points") FROM table_59063 WHERE "Total" = '9.31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2394,
3891,
41,
96,
345,
11706,
121,
1499,
6,
96,
5890,
19427,
127,
121,
1499,
6,
96,
308,
9197,
6321,
979,
121,
490,
6,
96,
134,
40,
138,
32,
51,
979,
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,
180,
6122,
599,
121,
308,
9197,
6321,
979,
8512,
21680,
953,
834,
755,
2394,
3891,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
8797,
3341,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What label has a catalog of chem036cd? | CREATE TABLE table_name_2 (label VARCHAR, catalog VARCHAR) | SELECT label FROM table_name_2 WHERE catalog = "chem036cd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
40,
10333,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3783,
65,
3,
9,
10173,
13,
3,
6482,
632,
3420,
75,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
10173,
3274,
96,
6482,
632,
3420,
75,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was on 12 March 2000? | CREATE TABLE table_name_24 (scorers VARCHAR, date VARCHAR) | SELECT scorers FROM table_name_24 WHERE date = "12 march 2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
7,
5715,
277,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
30,
586,
1332,
2766,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14056,
277,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
833,
3274,
96,
2122,
10556,
2766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Part 4, when Part 2 is 'hlj p'? | CREATE TABLE table_48530 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text
) | SELECT "Part 4" FROM table_48530 WHERE "Part 2" = 'hljóp' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
26918,
41,
96,
21486,
121,
1499,
6,
96,
13725,
209,
121,
1499,
6,
96,
13725,
204,
121,
1499,
6,
96,
13725,
220,
121,
1499,
6,
96,
13725,
3,
20364,
1499,
3,
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,
96,
13725,
3,
20364,
21680,
953,
834,
3707,
26918,
549,
17444,
427,
96,
13725,
204,
121,
3274,
3,
31,
107,
40,
354,
4922,
102,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the lead tpt for bass of kevin tomanka and alto 1 of alan moffett | CREATE TABLE table_name_68 (
lead_tpt VARCHAR,
bass VARCHAR,
alto_1 VARCHAR
) | SELECT lead_tpt FROM table_name_68 WHERE bass = "kevin tomanka" AND alto_1 = "alan moffett" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
991,
834,
17,
102,
17,
584,
4280,
28027,
6,
7981,
584,
4280,
28027,
6,
4445,
32,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
991,
834,
17,
102,
17,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
7981,
3274,
96,
1050,
2494,
12,
348,
1258,
121,
3430,
4445,
32,
834,
536,
3274,
96,
9,
1618,
2288,
89,
22392,
121,
1,
-100,
-100,
-100,
-10... |
What is the home field of the South Melbourne team? | CREATE TABLE table_name_19 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_19 WHERE home_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
15098,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
1057,
13,
8,
1013,
9396,
372,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode? | CREATE TABLE table_36265 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
) | SELECT AVG("Episode") FROM table_36265 WHERE "Performer 1" = 'greg proops' AND "Performer 3" = 'ryan stiles' AND "Date" = '25 august 1995' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
357,
4122,
41,
96,
308,
342,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
12988,
2032,
49,
209,
121,
1499,
6,
96,
12988,
2032,
49,
204,
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,
71,
17217,
599,
121,
427,
102,
159,
32,
221,
8512,
21680,
953,
834,
3420,
357,
4122,
549,
17444,
427,
96,
12988,
2032,
49,
209,
121,
3274,
3,
31,
18301,
813,
9280,
31,
3430,
96,
12988,
2032,
49,
220,
121,
3274,
3,... |
Tell me the NHL team for mike gaffney | CREATE TABLE table_4354 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text
) | SELECT "NHL team" FROM table_4354 WHERE "Player" = 'mike gaffney' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
5062,
41,
96,
345,
3142,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
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,
15743,
434,
372,
121,
21680,
953,
834,
4906,
5062,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
20068,
15,
3,
122,
4127,
3186,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, show me about the correlation between manufacturer and revenue , and group by attribute headquarter in a scatter chart. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Manufacturer, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15248,
6,
19764,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3642,
19973,
1,
-100,
-100,
-100,
... |
How many copies per particle does the protein nsp2 have? | CREATE TABLE table_name_46 (
copies_per_particle VARCHAR,
protein VARCHAR
) | SELECT copies_per_particle FROM table_name_46 WHERE protein = "nsp2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
8167,
834,
883,
834,
102,
8372,
584,
4280,
28027,
6,
3619,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8167,
399,
24317,
405,
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,
8167,
834,
883,
834,
102,
8372,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
3619,
3274,
96,
29,
7,
102,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When batavo is the main sponsor and olympikus is the kit manufacturer who are the minor sponsors? | CREATE TABLE table_187239_1 (
minor_sponsors VARCHAR,
kit_manufacturer VARCHAR,
main_sponsor VARCHAR
) | SELECT minor_sponsors FROM table_187239_1 WHERE kit_manufacturer = "Olympikus" AND main_sponsor = "Batavo" | [
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,
711,
834,
7,
5041,
7,
127,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4012,
834,
7,
5041,
7,
127,
7,
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,
711,
834,
7,
5041,
7,
127,
3274,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.