NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat? | CREATE TABLE table_name_85 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR, polyunsaturated_fat VARCHAR, smoke_point VARCHAR, total_fat VARCHAR) | SELECT monounsaturated_fat FROM table_name_85 WHERE smoke_point = "°c ()" AND total_fat = "100g" AND polyunsaturated_fat = "11g" AND saturated_fat = "14g" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
2157,
32,
202,
7,
6010,
920,
834,
6589,
584,
4280,
28027,
6,
25703,
834,
6589,
584,
4280,
28027,
6,
4251,
202,
7,
6010,
920,
834,
6589,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7414,
202,
7,
6010,
920,
834,
6589,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
7269,
834,
2700,
3274,
96,
1956,
75,
41,
61,
121,
3430,
792,
834,
6589,
3274,
96,
2915,
122,
121,
3430,
4251,
202,
7,
6010,
92... |
What was the earliest week on September 26, 1965? | CREATE TABLE table_66686 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT MIN("Week") FROM table_66686 WHERE "Date" = 'september 26, 1965' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3651,
948,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3539,
3651,
948,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
13597,
19201,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Headquarter, when Language is English, and when Type is Independent Online News Portal? | CREATE TABLE table_name_89 (headquarter VARCHAR, language VARCHAR, type VARCHAR) | SELECT headquarter FROM table_name_89 WHERE language = "english" AND type = "independent online news portal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
3313,
19973,
584,
4280,
28027,
6,
1612,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3642,
19973,
6,
116,
1050... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
819,
19973,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1612,
3274,
96,
4606,
40,
1273,
121,
3430,
686,
3274,
96,
77,
17631,
367,
1506,
8948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are diagnosed with personality disorder nos and tested in the lab and had results that showed abnormal status delta? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Personality disorder NOS" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
what's the fcc info with call sign being w265av | CREATE TABLE table_19057 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"Height m ( ft )" text,
"FCC info" text,
"Notes" text
) | SELECT "FCC info" FROM table_19057 WHERE "Call sign" = 'W265AV' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
3436,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
1499,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
2823,
2845,
121,
21680,
953,
834,
11776,
3436,
549,
17444,
427,
96,
254,
1748,
1320,
121,
3274,
3,
31,
518,
357,
4122,
6968,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If there were 14 in 1990 and 6 survived how many were destroyed? | CREATE TABLE table_1817852_1 (
destroyed VARCHAR,
survived VARCHAR
) | SELECT destroyed FROM table_1817852_1 WHERE 1990 = 14 AND survived = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
27640,
5373,
834,
536,
41,
10932,
584,
4280,
28027,
6,
13928,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
132,
130,
968,
16,
5541,
11,
431,
13928,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10932,
21680,
953,
834,
2606,
27640,
5373,
834,
536,
549,
17444,
427,
5541,
3274,
968,
3430,
13928,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Draw a bar chart of gender versus the number of gender | CREATE TABLE club (
Club_ID int,
Club_name text,
Region text,
Start_year int
)
CREATE TABLE match_result (
Rank int,
Club_ID int,
Gold int,
Big_Silver int,
Small_Silver int,
Bronze int,
Points int
)
CREATE TABLE player_coach (
Player_ID int,
Coach_ID int,
Starting_year int
)
CREATE TABLE coach (
Coach_ID int,
Coach_name text,
Gender text,
Club_ID int,
Rank int
)
CREATE TABLE player (
Player_ID int,
Sponsor_name text,
Player_name text,
Gender text,
Residence text,
Occupation text,
Votes int,
Rank text
) | SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
1949,
834,
4309,
16,
17,
6,
1949,
834,
4350,
1499,
6,
6163,
1499,
6,
3273,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1588,
834,
60,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
350,
3868,
6,
2847,
17161,
599,
517,
3868,
61,
21680,
1959,
350,
4630,
6880,
272,
476,
350,
3868,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the number of documents in different starting date and bin starting date by weekday interval with a bar chart, list in ascending by the Y-axis. | CREATE TABLE Ref_Calendar (
Calendar_Date DATETIME,
Day_Number INTEGER
)
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_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
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 Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
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)
)
CREATE TABLE Ref_Locations (
Location_Code CHAR(15),
Location_Name VARCHAR(255),
Location_Description VARCHAR(255)
) | SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations ORDER BY COUNT(Date_in_Location_From) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
14318,
35,
3439,
41,
18783,
834,
308,
342,
309,
6048,
382,
15382,
6,
1430,
834,
567,
5937,
49,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4674,
11300,
272,
476,
2847,
17161,
599,
308,
... |
Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller than 99.3? | CREATE TABLE table_name_3 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR) | SELECT call_sign FROM table_name_3 WHERE erp_w > 250 AND frequency_mhz < 99.3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
16482,
834,
6732,
584,
4280,
28027,
6,
3,
49,
102,
834,
210,
584,
4280,
28027,
6,
7321,
834,
51,
107,
172,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
580,
834,
6732,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
3,
49,
102,
834,
210,
2490,
5986,
3430,
7321,
834,
51,
107,
172,
3,
2,
12185,
5,
519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the number of captains for barcelona | CREATE TABLE table_31117 (
"Team" text,
"Chairman" text,
"Head Coach" text,
"Captain" text,
"Kitmaker" text,
"Shirt sponsor" text
) | SELECT COUNT("Captain") FROM table_31117 WHERE "Team" = 'Barcelona' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
20275,
41,
96,
18699,
121,
1499,
6,
96,
254,
19176,
348,
121,
1499,
6,
96,
3845,
9,
26,
9493,
121,
1499,
6,
96,
19566,
17,
9,
77,
121,
1499,
6,
96,
439,
155,
8337... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19566,
17,
9,
77,
8512,
21680,
953,
834,
3341,
20275,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
14851,
7125,
106,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Run 4 has a Run 1 of 1:25.82? | CREATE TABLE table_name_59 (
run_4 VARCHAR,
run_1 VARCHAR
) | SELECT run_4 FROM table_name_59 WHERE run_1 = "1:25.82" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
661,
834,
591,
584,
4280,
28027,
6,
661,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7113,
314,
65,
3,
9,
7113,
209,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
661,
834,
591,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
661,
834,
536,
3274,
96,
536,
10,
1828,
5,
4613,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the country of the airlines whose name starts with 'Orbit', and count them by a bar chart, rank from low to high by the y axis. | CREATE TABLE routes (
rid integer,
dst_apid integer,
dst_ap varchar(4),
src_apid bigint,
src_ap varchar(4),
alid bigint,
airline varchar(4),
codeshare text
)
CREATE TABLE airlines (
alid integer,
name text,
iata varchar(2),
icao varchar(3),
callsign text,
country text,
active varchar(2)
)
CREATE TABLE airports (
apid integer,
name text,
city text,
country text,
x real,
y real,
elevation bigint,
iata character varchar(3),
icao character varchar(4)
) | SELECT country, COUNT(country) FROM airlines WHERE name LIKE 'Orbit%' GROUP BY country ORDER BY COUNT(country) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9729,
41,
5413,
30278,
6,
3,
26,
7,
17,
834,
9,
12417,
30278,
6,
3,
26,
7,
17,
834,
9,
102,
3,
4331,
4059,
10820,
6,
3,
7,
52,
75,
834,
9,
12417,
600,
77,
17,
6,
3,
7,
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,
684,
6,
2847,
17161,
599,
17529,
61,
21680,
19184,
549,
17444,
427,
564,
8729,
9914,
3,
31,
7395,
2360,
1454,
31,
350,
4630,
6880,
272,
476,
684,
4674,
11300,
272,
476,
2847,
17161,
599,
17529,
61,
1,
-100,
-100,
-1... |
What is the last year that someone is first elected in this table? | CREATE TABLE table_1341930_21 (
first_elected INTEGER
) | SELECT MAX(first_elected) FROM table_1341930_21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2294,
1458,
834,
2658,
41,
166,
834,
19971,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
336,
215,
24,
841,
19,
166,
8160,
16,
48,
953,
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,
0... | [
3,
23143,
14196,
4800,
4,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2294,
1458,
834,
2658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the time of the match with a record of 9-0 and used the tko (doctor stoppage) method? | CREATE TABLE table_49145 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Time" FROM table_49145 WHERE "Method" = 'tko (doctor stoppage)' AND "Record" = '9-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
20987,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
3647,
20987,
549,
17444,
427,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
17,
157,
32,
41,
26,
32,
5317,
1190,
6492,
61,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
1298,
18,
632,
... |
Which Score has a Total of 80 72? | CREATE TABLE table_name_55 (
score VARCHAR,
total VARCHAR
) | SELECT score FROM table_name_55 WHERE total = "80–72" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
2604,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
9273,
13,
2775,
9455,
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,
2604,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
792,
3274,
96,
2079,
104,
5865,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Away Team, when Ground is Colonial Stadium? | CREATE TABLE table_name_19 (
away_team VARCHAR,
ground VARCHAR
) | SELECT away_team FROM table_name_19 WHERE ground = "colonial stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
550,
834,
11650,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
71,
1343,
2271,
6,
116,
13908,
19,
30709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1591,
3274,
96,
8135,
7419,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which Age Category is Marco Manenti? | CREATE TABLE table_33806 (
"Year" real,
"Name" text,
"Nationality" text,
"Time" text,
"Age category" text
) | SELECT "Age category" FROM table_33806 WHERE "Name" = 'marco manenti' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
2079,
948,
41,
96,
476,
2741,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
188,
397,
3295,
121,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
188,
397,
3295,
121,
21680,
953,
834,
4201,
2079,
948,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1635,
509,
388,
295,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what Round was George Thomas Picked? | CREATE TABLE table_74978 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT AVG("Round") FROM table_74978 WHERE "Name" = 'george thomas' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
21441,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4581,
21441,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
397,
1677,
15,
3,
189,
32,
2754,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the player from Australia with a to par of +5? | CREATE TABLE table_46475 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Player" FROM table_46475 WHERE "To par" = '+5' AND "Country" = 'australia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4389,
3072,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
591,
4389,
3072,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
1220,
755,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
2064,
8792,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What was the result of the game attended by 54,110? | CREATE TABLE table_name_73 (
result VARCHAR,
attendance VARCHAR
) | SELECT result FROM table_name_73 WHERE attendance = "54,110" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
741,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
5526,
57,
10630,
6,
19277,
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,
741,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
11364,
3274,
96,
5062,
6,
19277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What label is released on September 20, 2005? | CREATE TABLE table_name_16 (label VARCHAR, date_of_release VARCHAR) | SELECT label FROM table_name_16 WHERE date_of_release = "september 20, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
40,
10333,
584,
4280,
28027,
6,
833,
834,
858,
834,
21019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3783,
19,
1883,
30,
1600,
16047,
310... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3783,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
833,
834,
858,
834,
21019,
3274,
96,
7,
6707,
18247,
16047,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which days were presented by Andreas Mikroutsikos and were launched on March 10, 2003? | CREATE TABLE table_name_48 (
days VARCHAR,
the_presenter VARCHAR,
launch_date VARCHAR
) | SELECT days FROM table_name_48 WHERE the_presenter = "andreas mikroutsikos" AND launch_date = "march 10, 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
477,
584,
4280,
28027,
6,
8,
834,
12640,
49,
584,
4280,
28027,
6,
3289,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
477,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
8,
834,
12640,
49,
3274,
96,
232,
864,
7,
3,
20068,
52,
670,
7,
12027,
7,
121,
3430,
3289,
834,
5522,
3274,
96,
51,
7064,
10372,
3888,
121,
1,
-100,
-100,
... |
How many votes did 3rd ranking candidate Mary Louise Lorefice receive? | CREATE TABLE table_name_48 (votes VARCHAR, rank VARCHAR, candidate VARCHAR) | SELECT COUNT(votes) FROM table_name_48 WHERE rank = "3rd" AND candidate = "mary louise lorefice" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1621,
1422,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
4775,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11839,
410,
220,
52,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1621,
1422,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
11003,
3274,
96,
519,
52,
26,
121,
3430,
4775,
3274,
96,
51,
1208,
16585,
159,
15,
3,
322,
15,
4638,
15,
121,
1,
-100,
-100,
-10... |
Which Round has a School/Club Team of cal-poly slo, and a Pick smaller than 238? | CREATE TABLE table_77131 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT MAX("Round") FROM table_77131 WHERE "School/Club Team" = 'cal-poly slo' AND "Pick" < '238' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
22048,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
87,
254,
11158,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4013,
22048,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
1489,
18,
3233,
63,
3,
7,
40,
32,
31,
3430,
96,
345,
3142,
121,
3,
2,
3... |
Which venue is in the city of Villanova? | CREATE TABLE table_name_3 (
venue VARCHAR,
city VARCHAR
) | SELECT venue FROM table_name_3 WHERE city = "villanova" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
5669,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
19,
16,
8,
690,
13,
8850,
14979,
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,
5669,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
690,
3274,
96,
24887,
14979,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the number of the names of catalog entries with level number 8? | CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
previous_entry_id INTEGER,
next_entry_id INTEGER,
catalog_entry_name VARCHAR(80),
product_stock_number VARCHAR(50),
price_in_dollars DOUBLE,
price_in_euros DOUBLE,
price_in_pounds DOUBLE,
capacity VARCHAR(20),
length VARCHAR(20),
height VARCHAR(20),
width VARCHAR(20)
)
CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
) | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22424,
834,
4302,
4669,
7,
41,
10173,
834,
295,
651,
834,
23,
26,
3,
21342,
17966,
6,
10173,
834,
4563,
834,
5525,
1152,
3,
21342,
17966,
6,
4208,
834,
295,
651,
834,
23,
26,
3,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10173,
834,
295,
651,
834,
4350,
6,
2847,
17161,
599,
2138,
9,
2152,
834,
295,
651,
834,
4350,
61,
21680,
22424,
834,
4302,
4669,
7,
6157,
3,
17,
536,
3,
15355,
3162,
22424,
834,
4302,
4669,
7,
834,
20773,
4749,
1... |
What was the time for the bout against Amanda Lavoy, which went under 3 rounds? | CREATE TABLE table_name_71 (
time VARCHAR,
round VARCHAR,
opponent VARCHAR
) | SELECT time FROM table_name_71 WHERE round < 3 AND opponent = "amanda lavoy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
97,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
97,
21,
8,
9338,
581,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1751,
3,
2,
220,
3430,
15264,
3274,
96,
265,
232,
9,
50,
9845,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average of credit value of courses with more than one prerequisite for each department? Return a bar chart. | CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
) | SELECT dept_name, AVG(credits) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY dept_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
97,
834,
7,
3171,
41,
97,
834,
7,
3171,
834,
23,
26,
3,
4331,
4059,
10820,
6,
239,
3,
4331,
4059,
14296,
6,
456,
834,
107,
52,
206,
17552,
16426,
6,
456,
834,
1109,
206,
17552,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
71,
17217,
599,
15547,
7,
61,
21680,
503,
6157,
332,
536,
3,
15355,
3162,
554,
60,
1824,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
350,
... |
What is the pick number for the College of Central Missouri State? | CREATE TABLE table_6475 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Pick #" FROM table_6475 WHERE "College" = 'central missouri state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3072,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3142,
1713,
121,
21680,
953,
834,
4389,
3072,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
20071,
3041,
32,
459,
538,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which year has brm v12 as the engine? | CREATE TABLE table_name_19 (year VARCHAR, engine VARCHAR) | SELECT year FROM table_name_19 WHERE engine = "brm v12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
1201,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
65,
6397,
51,
3,
208,
2122,
38,
8,
1948,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1948,
3274,
96,
115,
52,
51,
3,
208,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the away team when the home team was south melbourne? | CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_85 WHERE home_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
372,
116,
8,
234,
372,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4433,
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,
... |
how many patients whose insurance is private and discharge location is left against medical advi? | 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 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 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 WHERE demographic.insurance = "Private" AND demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
7855,
208,
342,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
3765,
... |
find the number of patients who had endoscopic excision or destruction of tissue or lesion of stomach and were discharged home. | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.short_title = "Endosc destr stomach les" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what opponent was competed against the most often ? | CREATE TABLE table_204_520 (
id number,
"outcome" text,
"no." number,
"date" number,
"championship" text,
"surface" text,
"opponent" text,
"score" text
) | SELECT "opponent" FROM table_204_520 GROUP BY "opponent" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
25356,
41,
3,
23,
26,
381,
6,
96,
670,
287,
15,
121,
1499,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
381,
6,
96,
17788,
12364,
2009,
121,
1499,
6,
96,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
26363,
834,
25356,
350,
4630,
6880,
272,
476,
96,
32,
102,
9977,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-1... |
Which Total Goals have Total Apps of 42 (3), and League Goals smaller than 1? | CREATE TABLE table_name_10 (
total_goals INTEGER,
total_apps VARCHAR,
league_goals VARCHAR
) | SELECT MAX(total_goals) FROM table_name_10 WHERE total_apps = "42 (3)" AND league_goals < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
792,
834,
839,
5405,
3,
21342,
17966,
6,
792,
834,
3096,
7,
584,
4280,
28027,
6,
5533,
834,
839,
5405,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
235,
1947,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
792,
834,
3096,
7,
3274,
96,
4165,
10153,
121,
3430,
5533,
834,
839,
5405,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100... |
How many field goals did Stacey Thomas have? | CREATE TABLE table_24850487_5 (
field_goals VARCHAR,
player VARCHAR
) | SELECT field_goals FROM table_24850487_5 WHERE player = "Stacey Thomas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
17246,
591,
4225,
834,
755,
41,
1057,
834,
839,
5405,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1057,
1766,
410,
472,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1057,
834,
839,
5405,
21680,
953,
834,
2266,
17246,
591,
4225,
834,
755,
549,
17444,
427,
1959,
3274,
96,
134,
17,
3302,
63,
3576,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are all the open 1st viii with u15 4th iv being gt | CREATE TABLE table_11318462_5 (open_1st_viii VARCHAR, u15_4th_iv VARCHAR) | SELECT open_1st_viii FROM table_11318462_5 WHERE u15_4th_iv = "GT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
25987,
4056,
834,
755,
41,
8751,
834,
536,
7,
17,
834,
14553,
23,
584,
4280,
28027,
6,
3,
76,
1808,
834,
591,
189,
834,
23,
208,
584,
4280,
28027,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
539,
834,
536,
7,
17,
834,
14553,
23,
21680,
953,
834,
20522,
25987,
4056,
834,
755,
549,
17444,
427,
3,
76,
1808,
834,
591,
189,
834,
23,
208,
3274,
96,
18489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the latest year in Annecy, France? | CREATE TABLE table_name_66 (year INTEGER, venue VARCHAR) | SELECT MAX(year) FROM table_name_66 WHERE venue = "annecy, france" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
1201,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1251,
215,
16,
8977,
75,
63,
6,
1410,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
5669,
3274,
96,
4515,
75,
63,
6,
2515,
663,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina? | CREATE TABLE table_12171145_1 (
mens_doubles VARCHAR,
womens_doubles VARCHAR
) | SELECT mens_doubles FROM table_12171145_1 WHERE womens_doubles = "Anastasia Chervyakova Romina Gabdullina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22011,
4450,
20987,
834,
536,
41,
1076,
7,
834,
25761,
7,
584,
4280,
28027,
6,
887,
7,
834,
25761,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1076,
7,
834,
25761,
7,
21680,
953,
834,
22011,
4450,
20987,
834,
536,
549,
17444,
427,
887,
7,
834,
25761,
7,
3274,
96,
188,
29,
9,
7,
17,
15974,
16028,
208,
20856,
6194,
12583,
77,
9,
15894,
26,
83,
8280,
121,
... |
Visualize a bar chart about the distribution of ACC_Regular_Season and School_ID . | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
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
) | SELECT ACC_Regular_Season, School_ID FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Score, when Location Attendance is "US Airways Center 18,422", and when Game is less than 22? | CREATE TABLE table_name_27 (score VARCHAR, location_attendance VARCHAR, game VARCHAR) | SELECT score FROM table_name_27 WHERE location_attendance = "us airways center 18,422" AND game < 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
7,
9022,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
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,
2604,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
302,
799,
6415,
1530,
14985,
4165,
357,
121,
3430,
467,
3,
2,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the GC leader at vila - segovia? | CREATE TABLE table_54613 (
"Stage" real,
"Date" text,
"Course" text,
"Distance" text,
"Winner" text,
"GC Leader" text
) | SELECT "GC Leader" FROM table_54613 WHERE "Course" = 'ávila - segovia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4448,
2368,
41,
96,
134,
6505,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
3881,
3589,
15,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
18455,
687,
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,
11055,
10310,
121,
21680,
953,
834,
755,
4448,
2368,
549,
17444,
427,
96,
3881,
3589,
15,
121,
3274,
3,
31,
2975,
6372,
9,
3,
18,
142,
839,
5907,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Compute the total number in each competition type, and then split by country. | CREATE TABLE club_rank (
Rank real,
Club_ID int,
Gold real,
Silver real,
Bronze real,
Total real
)
CREATE TABLE club (
Club_ID int,
name text,
Region text,
Start_year text
)
CREATE TABLE competition (
Competition_ID int,
Year real,
Competition_type text,
Country text
)
CREATE TABLE competition_result (
Competition_ID int,
Club_ID_1 int,
Club_ID_2 int,
Score text
)
CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,
Apps real,
Tries real,
Goals text,
Points real
) | SELECT Country, COUNT(Country) FROM competition GROUP BY Competition_type, Country | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
834,
6254,
41,
3,
22557,
490,
6,
1949,
834,
4309,
16,
17,
6,
2540,
490,
6,
5642,
490,
6,
20841,
490,
6,
9273,
490,
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,
6993,
6,
2847,
17161,
599,
10628,
651,
61,
21680,
2259,
350,
4630,
6880,
272,
476,
15571,
834,
6137,
6,
6993,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
in what year the position was the 9th | CREATE TABLE table_31291 (
"Season" text,
"Level" text,
"Division" text,
"Section" text,
"Position" text,
"Movements" text
) | SELECT "Season" FROM table_31291 WHERE "Position" = '9th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2122,
4729,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
25465,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
134,
15,
4985,
121,
1499,
6,
96,
345,
32,
7,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
519,
2122,
4729,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
1298,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total sum of points of entrants with a reynard 92d chassis? | CREATE TABLE table_name_88 (
points INTEGER,
chassis VARCHAR
) | SELECT SUM(points) FROM table_name_88 WHERE chassis = "reynard 92d" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
979,
3,
21342,
17966,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
4505,
13,
979,
13,
3,
295,
3569,
7,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
22836,
3274,
96,
60,
63,
29,
986,
3,
4508,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which position did pierre bajoc play? | CREATE TABLE table_3085 (
"Name" text,
"Position" text,
"Period" text,
"Appearances\u00b9" real,
"Goals\u00b9" real,
"Nationality\u00b2" text
) | SELECT "Position" FROM table_3085 WHERE "Name" = 'Pierre Bajoc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4433,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
9648,
2741,
663,
7,
2,
76,
1206,
115,
1298,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
1458,
4433,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
26928,
2659,
1927,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the population for County Mayo with the English Name Carrowteige? | CREATE TABLE table_101196_1 (
population VARCHAR,
county VARCHAR,
english_name VARCHAR
) | SELECT population FROM table_101196_1 WHERE county = "county Mayo" AND english_name = "Carrowteige" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19621,
26937,
834,
536,
41,
2074,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
6,
22269,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2074,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2074,
21680,
953,
834,
19621,
26937,
834,
536,
549,
17444,
427,
5435,
3274,
96,
13362,
63,
932,
32,
121,
3430,
22269,
834,
4350,
3274,
96,
254,
6770,
25696,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who narrated when the vessel operator is de beers? | CREATE TABLE table_26168687_3 (
narrated_by VARCHAR,
vessel_operator VARCHAR
) | SELECT narrated_by FROM table_26168687_3 WHERE vessel_operator = "De Beers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2938,
3840,
4225,
834,
519,
41,
3,
29,
291,
4094,
834,
969,
584,
4280,
28027,
6,
12662,
834,
32,
883,
1016,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
291,
4094,
834,
969,
21680,
953,
834,
2688,
2938,
3840,
4225,
834,
519,
549,
17444,
427,
12662,
834,
32,
883,
1016,
3274,
96,
2962,
18073,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the winner for jan 24 | CREATE TABLE table_28200 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse ( $ )" real,
"Winner" text,
"Score" text,
"1st Prize ( $ )" text
) | SELECT "Winner" FROM table_28200 WHERE "Date" = 'Jan 24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3632,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
345,
3589,
15,
41,
1514,
3,
61,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
2577,
3632,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
683,
152,
997,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Please give me a bar chart to show the total number of singers who sang the top 3 most highly rated songs from different countries. | CREATE TABLE genre (
g_name varchar2(20),
rating varchar2(10),
most_popular_in varchar2(50)
)
CREATE TABLE song (
song_name varchar2(50),
artist_name varchar2(50),
country varchar2(20),
f_id number(10),
genre_is varchar2(20),
rating number(10),
languages varchar2(20),
releasedate Date,
resolution number(10)
)
CREATE TABLE files (
f_id number(10),
artist_name varchar2(50),
file_size varchar2(20),
duration varchar2(20),
formats varchar2(20)
)
CREATE TABLE artist (
artist_name varchar2(50),
country varchar2(20),
gender varchar2(20),
preferred_genre varchar2(50)
) | SELECT T1.country, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T1.country ORDER BY T2.rating DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5349,
41,
3,
122,
834,
4350,
3,
4331,
4059,
357,
599,
1755,
201,
5773,
3,
4331,
4059,
357,
599,
16968,
6,
167,
834,
27302,
834,
77,
3,
4331,
4059,
357,
599,
1752,
61,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
17529,
6,
332,
5411,
17529,
21680,
2377,
6157,
332,
536,
3,
15355,
3162,
2324,
6157,
332,
357,
9191,
332,
5411,
1408,
343,
834,
4350,
3274,
332,
4416,
1408,
343,
834,
4350,
350,
4630,
6880,
272,
476,
332,
... |
What airport has an ICAO of Birk? | CREATE TABLE table_name_16 (airport VARCHAR, icao VARCHAR) | SELECT airport FROM table_name_16 WHERE icao = "birk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
2256,
1493,
584,
4280,
28027,
6,
3,
2617,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3761,
65,
46,
3,
15038,
667,
13,
10158,
157,
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,
3761,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3,
2617,
32,
3274,
96,
8781,
157,
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 earliest date of taking office for district 22? | CREATE TABLE table_name_2 (
took_office INTEGER,
district VARCHAR
) | SELECT MIN(took_office) FROM table_name_2 WHERE district = 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
808,
834,
19632,
3,
21342,
17966,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
833,
13,
838,
828,
21,
3939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
235,
1825,
834,
19632,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
3939,
3274,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the NFL Recap of the game held on December 24, 2005? | CREATE TABLE table_name_70 (nfl_recap VARCHAR, date VARCHAR) | SELECT nfl_recap FROM table_name_70 WHERE date = "december 24, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
29,
89,
40,
834,
60,
4010,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
10439,
419,
4010,
13,
8,
467,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
89,
40,
834,
60,
4010,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
14320,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
when was the notorious b.i.g signed to bad boy ? | CREATE TABLE table_200_14 (
id number,
"act" text,
"year signed" number,
"# albums released under bad boy" number
) | SELECT "year signed" FROM table_200_14 WHERE "act" = 'the notorious b.i.g' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
834,
2534,
41,
3,
23,
26,
381,
6,
96,
2708,
121,
1499,
6,
96,
1201,
3814,
121,
381,
6,
96,
4663,
14234,
1883,
365,
1282,
4940,
121,
381,
3,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
1201,
3814,
121,
21680,
953,
834,
3632,
834,
2534,
549,
17444,
427,
96,
2708,
121,
3274,
3,
31,
532,
23625,
3,
115,
5,
23,
5,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date did the opponents win with 17 points? | CREATE TABLE table_16678052_2 (
date VARCHAR,
opponents VARCHAR,
result VARCHAR
) | SELECT date FROM table_16678052_2 WHERE opponents = 17 AND result = "Win" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3708,
2079,
5373,
834,
357,
41,
833,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2938,
3708,
2079,
5373,
834,
357,
549,
17444,
427,
16383,
3274,
1003,
3430,
741,
3274,
96,
18455,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What venue is in the state of Connecticut? | CREATE TABLE table_32892 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
) | SELECT "Venue" FROM table_32892 WHERE "State" = 'connecticut' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28070,
4508,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
28070,
4508,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
19532,
23,
3044,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What format is catalogue WPCR13504 in? | CREATE TABLE table_name_94 (
format VARCHAR,
catalogue VARCHAR
) | SELECT format FROM table_name_94 WHERE catalogue = "wpcr13504" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1910,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1910,
19,
14978,
549,
23165,
2368,
1752,
591,
16,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
14978,
3274,
96,
210,
102,
75,
52,
2368,
1752,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients are born before 2089 and tested with cerebrospinal fluid in lab? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2089" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which physicians are in charge of more than one patient? Give me their names. | CREATE TABLE on_call (
nurse number,
blockfloor number,
blockcode number,
oncallstart time,
oncallend time
)
CREATE TABLE trained_in (
physician number,
treatment number,
certificationdate time,
certificationexpires time
)
CREATE TABLE procedures (
code number,
name text,
cost number
)
CREATE TABLE undergoes (
patient number,
procedures number,
stay number,
dateundergoes time,
physician number,
assistingnurse number
)
CREATE TABLE affiliated_with (
physician number,
department number,
primaryaffiliation boolean
)
CREATE TABLE room (
roomnumber number,
roomtype text,
blockfloor number,
blockcode number,
unavailable boolean
)
CREATE TABLE nurse (
employeeid number,
name text,
position text,
registered boolean,
ssn number
)
CREATE TABLE department (
departmentid number,
name text,
head number
)
CREATE TABLE medication (
code number,
name text,
brand text,
description text
)
CREATE TABLE stay (
stayid number,
patient number,
room number,
staystart time,
stayend time
)
CREATE TABLE patient (
ssn number,
name text,
address text,
phone text,
insuranceid number,
pcp number
)
CREATE TABLE block (
blockfloor number,
blockcode number
)
CREATE TABLE physician (
employeeid number,
name text,
position text,
ssn number
)
CREATE TABLE appointment (
appointmentid number,
patient number,
prepnurse number,
physician number,
start time,
end time,
examinationroom text
)
CREATE TABLE prescribes (
physician number,
patient number,
medication number,
date time,
appointment number,
dose text
) | SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.pcp GROUP BY T1.employeeid HAVING COUNT(*) > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
30,
834,
16482,
41,
10444,
381,
6,
2463,
20924,
381,
6,
2463,
4978,
381,
6,
30,
16482,
10208,
97,
6,
30,
16482,
989,
97,
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,
21680,
10027,
6157,
332,
536,
3,
15355,
3162,
1868,
6157,
332,
357,
9191,
332,
5411,
15,
51,
7379,
63,
15,
15,
23,
26,
3274,
332,
4416,
102,
75,
102,
350,
4630,
6880,
272,
476,
332,
5411,
15,
51,
... |
Who was the Opponent in the Auckland, New Zealand Tournament? | CREATE TABLE table_name_50 (opponent VARCHAR, tournament VARCHAR) | SELECT opponent FROM table_name_50 WHERE tournament = "auckland, new zealand" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
32,
102,
9977,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4495,
9977,
16,
8,
21829,
6,
368,
5725,
205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1752,
549,
17444,
427,
5892,
3274,
96,
9,
4636,
40,
232,
6,
126,
3,
776,
138,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What year did a school from Jennings County join? | CREATE TABLE table_64906 (
"School" text,
"City" text,
"Team Name" text,
"County" text,
"Year Joined" text,
"Year Left" text
) | SELECT "Year Joined" FROM table_64906 WHERE "School" = 'jennings county' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
2394,
948,
41,
96,
29364,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
476,
2741,
5279,
15,
26,
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,
476,
2741,
5279,
15,
26,
121,
21680,
953,
834,
4389,
2394,
948,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
1924,
9416,
7,
5435,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the time/retired with 22 laps and a grid of 29? | CREATE TABLE table_58416 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_58416 WHERE "Laps" = '22' AND "Grid" = '29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
591,
2938,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
3449,
591,
2938,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
2884,
31,
3430,
96,
13313,
26,
121,
3274,
3,
31,
3166,
31,
1,
-100,
-100,
-100,
-100,
-... |
Tell me the school that jason fraser went to | CREATE TABLE table_name_14 (school VARCHAR, player VARCHAR) | SELECT school FROM table_name_14 WHERE player = "jason fraser" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
6646,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
496,
24,
2662,
739,
8072,
7,
49,
877,
12,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1959,
3274,
96,
1191,
739,
8072,
7,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the nominee for best director? | CREATE TABLE table_name_86 (nominee VARCHAR, category VARCHAR) | SELECT nominee FROM table_name_86 WHERE category = "best director" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3114,
630,
15,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
21077,
21,
200,
2090,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
21077,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3295,
3274,
96,
9606,
2090,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Hanyu Pinyin is in the Jinning Township? | CREATE TABLE table_name_66 (
hanyu_pinyin VARCHAR,
name VARCHAR
) | SELECT hanyu_pinyin FROM table_name_66 WHERE name = "jinning township" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
3,
2618,
63,
76,
834,
3180,
63,
77,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
6627,
63,
76,
8050,
63,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2618,
63,
76,
834,
3180,
63,
77,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
564,
3274,
96,
354,
10503,
1511,
2009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the sum of Value ($M), when the Revenue ($M) was less than 307, the Team was Valencia, and the Rank was smaller than 19? | CREATE TABLE table_name_3 (value__ INTEGER, rank VARCHAR, revenue__$m_ VARCHAR, team VARCHAR) | SELECT SUM(value__) AS $m_ FROM table_name_3 WHERE revenue__$m_ < 307 AND team = "valencia" AND rank < 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
12097,
834,
834,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
3751,
834,
834,
3229,
51,
834,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
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,
180,
6122,
599,
12097,
834,
834,
61,
6157,
1514,
51,
834,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
3751,
834,
834,
3229,
51,
834,
3,
2,
604,
940,
3430,
372,
3274,
96,
2165,
35,
4915,
121,
3430,
11003,
3,
... |
List the players for team bryn s if (sweden). | CREATE TABLE table_74290 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Player" FROM table_74290 WHERE "College/junior/club team" = 'Brynäs IF (Sweden)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
23838,
41,
96,
345,
3142,
1713,
121,
490,
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4581,
23838,
549,
17444,
427,
96,
9939,
7883,
87,
6959,
23,
127,
87,
13442,
372,
121,
3274,
3,
31,
279,
651,
29,
1864,
7,
3,
6058,
41,
134,
1123,
537,
61,
31,
1,
-100,
-100,
... |
When the team is penske and they start under 9, what's the average finish time? | CREATE TABLE table_7748 (
"Year" real,
"Manufacturer" text,
"Start" real,
"Finish" real,
"Team" text
) | SELECT AVG("Finish") FROM table_7748 WHERE "Team" = 'penske' AND "Start" < '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3707,
41,
96,
476,
2741,
121,
490,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
7681,
17,
121,
490,
6,
96,
371,
77,
1273,
121,
490,
6,
96,
18699,
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,
71,
17217,
599,
121,
371,
77,
1273,
8512,
21680,
953,
834,
4013,
3707,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
3801,
1050,
31,
3430,
96,
7681,
17,
121,
3,
2,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-10... |
Who were the candidates in the Louisiana 4 district? | CREATE TABLE table_1341604_19 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1341604_19 WHERE district = "Louisiana 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
2294,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
16,
8,
15625,
314,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4341,
21680,
953,
834,
23747,
19129,
591,
834,
2294,
549,
17444,
427,
3939,
3274,
96,
28365,
13662,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Count the number of ships. | CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
) | SELECT COUNT(*) FROM ship | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
4383,
834,
23,
26,
381,
6,
564,
1499,
6,
686,
1499,
6,
1192,
834,
1201,
381,
6,
853,
1499,
6,
5692,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1426... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
4383,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many people voted in Cabarrus county? | CREATE TABLE table_20350118_1 (
total INTEGER,
county VARCHAR
) | SELECT MIN(total) FROM table_20350118_1 WHERE county = "Cabarrus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
16975,
20056,
834,
536,
41,
792,
3,
21342,
17966,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
3,
11060,
16,
1336,
1047,
4502,
5435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
1755,
16975,
20056,
834,
536,
549,
17444,
427,
5435,
3274,
96,
254,
9,
1047,
4502,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the round 5 score if the team's total points where 212? | CREATE TABLE table_21099 (
"Rank" real,
"Team" text,
"Round1" real,
"Round2" real,
"Round3" real,
"Round4" real,
"Round5" real,
"Total Points" real
) | SELECT "Round5" FROM table_21099 WHERE "Total Points" = '212' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15239,
3264,
41,
96,
22557,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
448,
32,
1106,
536,
121,
490,
6,
96,
448,
32,
1106,
357,
121,
490,
6,
96,
448,
32,
1106,
519,
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,
448,
32,
1106,
17395,
21680,
953,
834,
15239,
3264,
549,
17444,
427,
96,
3696,
1947,
4564,
7,
121,
3274,
3,
31,
24837,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What rank is aliyya qadi with less than 1421 votes? | CREATE TABLE table_57150 (
"Rank" real,
"List" text,
"Candidate name" text,
"Gender" text,
"Religion" text,
"Votes" real
) | SELECT MIN("Rank") FROM table_57150 WHERE "Candidate name" = 'aliyya qadi' AND "Votes" < '1421' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
12278,
41,
96,
22557,
121,
490,
6,
96,
21310,
121,
1499,
6,
96,
14050,
12416,
342,
564,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
1649,
2825,
23,
106,
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,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
3436,
12278,
549,
17444,
427,
96,
14050,
12416,
342,
564,
121,
3274,
3,
31,
4288,
63,
63,
9,
3,
1824,
9,
26,
23,
31,
3430,
96,
553,
32,
1422,
121,
3,
2,
3,
31,... |
combined land area -lrb- in acres -rrb- of millbrook 27 and sheet harbor 36 | CREATE TABLE table_204_251 (
id number,
"community" text,
"area" text,
"location" text,
"population" number,
"date established" text
) | SELECT SUM("area") FROM table_204_251 WHERE "community" IN ('millbrook 27', 'sheet harbour 36') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1828,
536,
41,
3,
23,
26,
381,
6,
96,
18782,
485,
121,
1499,
6,
96,
498,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
9791,
7830,
121,
381,
6,
96,
5522,
2127,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
498,
8512,
21680,
953,
834,
26363,
834,
1828,
536,
549,
17444,
427,
96,
18782,
485,
121,
3388,
41,
31,
12415,
14370,
2307,
31,
6,
3,
31,
12230,
26401,
4475,
31,
61,
1,
-100,
-100,
-100,
-100,
... |
What rank has less than 16 gold, more than 2 bronze and silver, and a total of 14? | CREATE TABLE table_46037 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Rank" FROM table_46037 WHERE "Gold" < '16' AND "Bronze" > '2' AND "Silver" > '2' AND "Total" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
4118,
41,
96,
22557,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
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,
22557,
121,
21680,
953,
834,
25991,
4118,
549,
17444,
427,
96,
23576,
121,
3,
2,
3,
31,
2938,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
31,
357,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31,
357,
31,
34... |
Location of ebbets field, and a Time of 2:56, and a Game larger than 6 has what sum of attendance? | CREATE TABLE table_79858 (
"Game" real,
"Date" text,
"Location" text,
"Time" text,
"Attendance" real
) | SELECT SUM("Attendance") FROM table_79858 WHERE "Location" = 'ebbets field' AND "Time" = '2:56' AND "Game" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3916,
3449,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
940,
3916,
3449,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
15,
115,
346,
17,
7,
1057,
31,
3430,
96,
13368,
121,
3274,
3,
31,
35... |
What date was a brig type ship located in SW Approaches? | CREATE TABLE table_name_30 (date VARCHAR, ship_type VARCHAR, location VARCHAR) | SELECT date FROM table_name_30 WHERE ship_type = "brig" AND location = "sw approaches" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
5522,
584,
4280,
28027,
6,
4383,
834,
6137,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
3,
9,
3,
2160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
4383,
834,
6137,
3274,
96,
2160,
122,
121,
3430,
1128,
3274,
96,
7,
210,
6315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When event 4 was Whiplash, what was event 2? | CREATE TABLE table_17257687_1 (event_2 VARCHAR, event_4 VARCHAR) | SELECT event_2 FROM table_17257687_1 WHERE event_4 = "Whiplash" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1828,
3959,
4225,
834,
536,
41,
15,
2169,
834,
357,
584,
4280,
28027,
6,
605,
834,
591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
605,
314,
47,
14883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
834,
357,
21680,
953,
834,
2517,
1828,
3959,
4225,
834,
536,
549,
17444,
427,
605,
834,
591,
3274,
96,
518,
10462,
8058,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many number of screenings have an opening film of the journey of vaan nguyen? | CREATE TABLE table_18220102_1 (number_of_screening VARCHAR, opening_film VARCHAR) | SELECT COUNT(number_of_screening) FROM table_18220102_1 WHERE opening_film = "The Journey of Vaan Nguyen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
357,
14926,
357,
834,
536,
41,
5525,
1152,
834,
858,
834,
8527,
53,
584,
4280,
28027,
6,
2101,
834,
9988,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
5525,
1152,
834,
858,
834,
8527,
53,
61,
21680,
953,
834,
2606,
357,
14926,
357,
834,
536,
549,
17444,
427,
2101,
834,
9988,
3274,
96,
634,
20709,
13,
2964,
152,
445,
1744,
63,
35,
121,
1,
-100,
... |
What type of disaster is rms atlantic categorized in that was located in Nova Scotia? | CREATE TABLE table_name_62 (
type VARCHAR,
location VARCHAR,
disaster VARCHAR
) | SELECT type FROM table_name_62 WHERE location = "nova scotia" AND disaster = "rms atlantic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
686,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
6912,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
686,
13,
6912,
19,
3,
52,
51,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1128,
3274,
96,
14979,
3,
7,
4310,
23,
9,
121,
3430,
6912,
3274,
96,
52,
51,
7,
3,
31767,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result for a friendly match? | CREATE TABLE table_name_86 (result VARCHAR, competition VARCHAR) | SELECT result FROM table_name_86 WHERE competition = "friendly match" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21,
3,
9,
2609,
1588,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
2259,
3274,
96,
4905,
1588,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Rd that Tom Sneva had the pole position in? | CREATE TABLE table_10706961_2 (rd INTEGER, pole_position VARCHAR) | SELECT MAX(rd) FROM table_10706961_2 WHERE pole_position = "Tom Sneva" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2518,
3951,
4241,
834,
357,
41,
52,
26,
3,
21342,
17966,
6,
11148,
834,
4718,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
391,
26,
24,
3059... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
52,
26,
61,
21680,
953,
834,
1714,
2518,
3951,
4241,
834,
357,
549,
17444,
427,
11148,
834,
4718,
3274,
96,
3696,
51,
180,
15482,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the record when they played golden state? | CREATE TABLE table_23274514_9 (
record VARCHAR,
team VARCHAR
) | SELECT record FROM table_23274514_9 WHERE team = "Golden State" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2555,
2128,
2534,
834,
1298,
41,
1368,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
116,
79,
1944,
7069,
538,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2773,
2555,
2128,
2534,
834,
1298,
549,
17444,
427,
372,
3274,
96,
23576,
35,
1015,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the venue with a 3.3km c prologue discipline? | CREATE TABLE table_name_95 (venue VARCHAR, discipline VARCHAR) | SELECT venue FROM table_name_95 WHERE discipline = "3.3km c prologue" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
15098,
584,
4280,
28027,
6,
7998,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
28,
3,
9,
3,
19660,
5848,
3,
75,
813,
10384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
7998,
3274,
96,
19660,
5848,
3,
75,
813,
10384,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the venue on October 13, 2007? | CREATE TABLE table_name_60 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_60 WHERE date = "october 13, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
30,
1797,
10670,
4101,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
10670,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What Nature reserve number was established on 19961220 20.12.1996 | CREATE TABLE table_28235 (
"NSG Nr." real,
"Name of the nature reserve" text,
"District / Town" text,
"Area (ha)" text,
"Date established" text
) | SELECT MIN("NSG Nr.") FROM table_28235 WHERE "Date established" = '19961220 20.12.1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
25174,
41,
96,
7369,
517,
16750,
535,
490,
6,
96,
23954,
13,
8,
1405,
7866,
121,
1499,
6,
96,
308,
23,
20066,
3,
87,
4463,
121,
1499,
6,
96,
188,
864,
41,
1024,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
7369,
517,
16750,
5,
8512,
21680,
953,
834,
2577,
25174,
549,
17444,
427,
96,
308,
342,
2127,
121,
3274,
3,
31,
2294,
4314,
2122,
1755,
460,
5,
9368,
2294,
4314,
31,
1,
-100,
-100,
-100,
-100,
... |
Show the names of products and the number of events they are in. | CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR) | SELECT T1.Product_Name, COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3174,
7472,
834,
23954,
584,
4280,
28027,
6,
6246,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
834,
77,
834,
427,
2169,
7,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
3174,
7472,
834,
23954,
6,
2847,
17161,
599,
1935,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
7554,
834,
77,
834,
427,
2169,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
7472,
834,
4309,
3274,
332,
441... |
Name the opponent for 1996 at the mt smart stadium venue | CREATE TABLE table_name_52 (opponent VARCHAR, venue VARCHAR, year VARCHAR) | SELECT opponent FROM table_name_52 WHERE venue = "mt smart stadium" AND year = 1996 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
32,
102,
9977,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
21,
6911,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
5669,
3274,
96,
51,
17,
2592,
14939,
121,
3430,
215,
3274,
6911,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who wrote the episode directed by Peter Woeste? | CREATE TABLE table_15284274_1 (written_by VARCHAR, directed_by VARCHAR) | SELECT written_by FROM table_15284274_1 WHERE directed_by = "Peter Woeste" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
2577,
4165,
4581,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
5640,
6640,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
1808,
2577,
4165,
4581,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
345,
15,
449,
3488,
2613,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many products are there? | CREATE TABLE ref_colors (
color_code text,
color_description text
)
CREATE TABLE products (
product_id number,
color_code text,
product_category_code text,
product_name text,
typical_buying_price text,
typical_selling_price text,
product_description text,
other_product_details text
)
CREATE TABLE ref_product_categories (
product_category_code text,
product_category_description text,
unit_of_measure text
)
CREATE TABLE characteristics (
characteristic_id number,
characteristic_type_code text,
characteristic_data_type text,
characteristic_name text,
other_characteristic_details text
)
CREATE TABLE product_characteristics (
product_id number,
characteristic_id number,
product_characteristic_value text
)
CREATE TABLE ref_characteristic_types (
characteristic_type_code text,
characteristic_type_description text
) | SELECT COUNT(*) FROM products | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
9910,
7,
41,
945,
834,
4978,
1499,
6,
945,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
556,
834,
23,
26,
381,
6,
945,
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,
2847,
17161,
599,
1935,
61,
21680,
494,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
find the number of elective type hospital admission patients who have ibuprofen suspension prescription. | 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 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.drug = "Ibuprofen Suspension" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the Alpha 2 code for Papua New Guinea? | CREATE TABLE table_24892 (
"English short name (upper/lower case)" text,
"Alpha-2 code" text,
"Alpha-3 code" text,
"Numeric code" real,
"ISO 3166-2 codes" text
) | SELECT "Alpha-2 code" FROM table_24892 WHERE "English short name (upper/lower case)" = 'Papua New Guinea' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3914,
357,
41,
96,
26749,
710,
564,
41,
15689,
87,
3216,
49,
495,
61,
121,
1499,
6,
96,
19240,
1024,
4949,
1081,
121,
1499,
6,
96,
19240,
1024,
3486,
1081,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19240,
1024,
4949,
1081,
121,
21680,
953,
834,
2266,
3914,
357,
549,
17444,
427,
96,
26749,
710,
564,
41,
15689,
87,
3216,
49,
495,
61,
121,
3274,
3,
31,
15182,
76,
9,
368,
26252,
31,
1,
-100,
-100,
-100,
-100... |
How many distinct companies are there? | CREATE TABLE entrepreneur (
Company VARCHAR
) | SELECT COUNT(DISTINCT Company) FROM entrepreneur | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
12290,
41,
1958,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6746,
688,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1958,
61,
21680,
3,
12290,
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 are the name of players who get more than the average points. | CREATE TABLE player (
name VARCHAR,
points INTEGER
) | SELECT name FROM player WHERE points > (SELECT AVG(points) FROM player) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
564,
584,
4280,
28027,
6,
979,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
33,
8,
564,
13,
1508,
113,
129,
72,
145,
8,
1348,
979,
5,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
1959,
549,
17444,
427,
979,
2490,
41,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
1959,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose marital status is divorced and ethnicity is white - russian? | 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
)
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.marital_status = "DIVORCED" AND demographic.ethnicity = "WHITE - RUSSIAN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
15,
189,
... |
Which Frequency has a Multiplier of 6 ? | CREATE TABLE table_8841 (
"Model Number" text,
"Frequency" text,
"L2-Cache" text,
"Front Side Bus" text,
"Multiplier" text,
"Voltage" text,
"Socket" text
) | SELECT "Frequency" FROM table_8841 WHERE "Multiplier" = '6×' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4060,
4853,
41,
96,
24663,
7720,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
7412,
254,
4933,
121,
1499,
6,
96,
371,
4438,
9466,
5703,
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,
371,
60,
835,
11298,
121,
21680,
953,
834,
4060,
4853,
549,
17444,
427,
96,
31922,
5900,
49,
121,
3274,
3,
31,
948,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which title was directed by Joyce Bernal? | CREATE TABLE table_name_76 (
title VARCHAR,
director VARCHAR
) | SELECT title FROM table_name_76 WHERE director = "joyce bernal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
2233,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2233,
47,
6640,
57,
27121,
8942,
138,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
2090,
3274,
96,
1927,
63,
565,
3,
1152,
29,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the next rider after tetsuya harada ? | CREATE TABLE table_203_35 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"time/retired" text,
"points" number
) | SELECT "rider" FROM table_203_35 WHERE "pos" = (SELECT "pos" FROM table_203_35 WHERE "rider" = 'tetsuya harada') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2469,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
4055,
49,
121,
1499,
6,
96,
348,
76,
8717,
450,
49,
121,
1499,
6,
96,
715,
87,
10682,
1271,
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,
4055,
49,
121,
21680,
953,
834,
23330,
834,
2469,
549,
17444,
427,
96,
2748,
121,
3274,
41,
23143,
14196,
96,
2748,
121,
21680,
953,
834,
23330,
834,
2469,
549,
17444,
427,
96,
4055,
49,
121,
3274,
3,
31,
17,
... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of revenue over the headquarter , and group by attribute headquarter, rank total number from low to high order. | 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 Headquarter, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Revenue) | [
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,
3642,
19973,
6,
180,
6122,
599,
1649,
15098,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
36... |
What are the purchase details of transactions with amount bigger than 10000, and count them by a bar chart, show by the names in ascending. | CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_details VARCHAR(255)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
) | SELECT purchase_details, COUNT(purchase_details) FROM Purchases AS T1 JOIN Transactions AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 GROUP BY purchase_details ORDER BY purchase_details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
7,
41,
5878,
834,
23,
26,
3,
21342,
17966,
6,
12024,
834,
23,
26,
3,
21342,
17966,
6,
5878,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
16968,
6,
833,
834,
858,
834,
7031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1242,
834,
221,
5756,
7,
6,
2847,
17161,
599,
29446,
834,
221,
5756,
7,
61,
21680,
14839,
7,
6157,
332,
536,
3,
15355,
3162,
21469,
7,
6157,
332,
357,
9191,
332,
5411,
29446,
834,
7031,
4787,
834,
23,
26,
3274,
33... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.