NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the earliest year for the Ligier Gitanes? | CREATE TABLE table_name_46 (year INTEGER, entrant VARCHAR) | SELECT MIN(year) FROM table_name_46 WHERE entrant = "ligier gitanes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
1201,
3,
21342,
17966,
6,
3,
295,
3569,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
16454,
215,
21,
8,
301,
10100,
49,
3156,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
3,
295,
3569,
3274,
96,
2825,
972,
3,
12651,
9,
1496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which conference has the nickname Lions? | CREATE TABLE table_2118 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Left" real,
"Current Conference" text
) | SELECT "Current Conference" FROM table_2118 WHERE "Nickname" = 'Lions' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2606,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
450,
5320,
4379,
121,
21680,
953,
834,
2658,
2606,
549,
17444,
427,
96,
567,
3142,
4350,
121,
3274,
3,
31,
434,
2865,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose lab test chart time is 2165-10-19 05:33:00? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.charttime = "2165-10-19 05:33:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Return a bar chart showing the number of documents stored in each weekday. | 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 Roles (
Role_Code CHAR(15),
Role_... | SELECT Date_Stored, COUNT(Date_Stored) FROM All_Documents AS T1 JOIN Ref_Calendar AS T2 ON T1.Date_Stored = T2.Calendar_Date | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
834,
235,
834,
346,
834,
2962,
6626,
10093,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
2973,
26853,
834,
23602,
127,
3375,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28719,
26,
6,
2847,
17161,
599,
308,
342,
834,
28719,
26,
61,
21680,
432,
834,
4135,
1071,
4128,
6157,
332,
536,
3,
15355,
3162,
419,
89,
834,
14318,
35,
3439,
6157,
332,
357,
9191,
332,
5411,
308,
342,
... |
United kingdom is the country what is the change (2011 to 2012)? | CREATE TABLE table_14752049_6 (
change__2011_to_2012_ VARCHAR,
country VARCHAR
) | SELECT change__2011_to_2012_ FROM table_14752049_6 WHERE country = "United Kingdom" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
25356,
3647,
834,
948,
41,
483,
834,
834,
13907,
834,
235,
834,
12172,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
907,
1474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
483,
834,
834,
13907,
834,
235,
834,
12172,
834,
21680,
953,
834,
24719,
25356,
3647,
834,
948,
549,
17444,
427,
684,
3274,
96,
5110,
23,
1054,
6524,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w? | CREATE TABLE table_24096813_15 (
part_number_s_ VARCHAR,
tdp VARCHAR
) | SELECT part_number_s_ FROM table_24096813_15 WHERE tdp = "2.9 (Max.4.1~5.4) W" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4198,
3651,
2368,
834,
1808,
41,
294,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
3,
17,
26,
102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
294,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
2266,
4198,
3651,
2368,
834,
1808,
549,
17444,
427,
3,
17,
26,
102,
3274,
96,
27297,
41,
21298,
5,
19708,
2,
27436,
61,
549,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What is the site when the superintendent was James Sever? | CREATE TABLE table_67149 (
"Ship" text,
"Site" text,
"Guns" real,
"Naval constructor" text,
"Superintendent" text
) | SELECT "Site" FROM table_67149 WHERE "Superintendent" = 'james sever' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
24816,
41,
96,
134,
10462,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
517,
202,
7,
121,
490,
6,
96,
22192,
138,
6774,
127,
121,
1499,
6,
96,
23290,
2429,
727,
295,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26030,
121,
21680,
953,
834,
3708,
24816,
549,
17444,
427,
96,
23290,
2429,
727,
295,
121,
3274,
3,
31,
1191,
2687,
3,
7,
3258,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the most swimsuit for interview less than 8.46 | CREATE TABLE table_52719 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) | SELECT MAX("Swimsuit") FROM table_52719 WHERE "Interview" < '8.46' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2555,
2294,
41,
96,
134,
4748,
121,
1499,
6,
96,
17555,
4576,
121,
490,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1926,
53,
350,
9197,
121,
490,
6,
96,
188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
210,
603,
7628,
8512,
21680,
953,
834,
755,
2555,
2294,
549,
17444,
427,
96,
17555,
4576,
121,
3,
2,
3,
31,
927,
5,
4448,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who did Winfield Scott have an allegiance with? | CREATE TABLE table_33539 (
"Name" text,
"Date of birth" text,
"Actual rank" text,
"Appointment date" text,
"Allegiance" text
) | SELECT "Allegiance" FROM table_33539 WHERE "Name" = 'winfield scott' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
3288,
41,
96,
23954,
121,
1499,
6,
96,
308,
342,
13,
3879,
121,
1499,
6,
96,
23312,
3471,
11003,
121,
1499,
6,
96,
188,
102,
2700,
297,
833,
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,
6838,
11097,
663,
121,
21680,
953,
834,
519,
2469,
3288,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
3757,
1846,
3,
7,
10405,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which builder has the the kanji of 曙? | CREATE TABLE table_name_98 (builder VARCHAR, kanji VARCHAR) | SELECT builder FROM table_name_98 WHERE kanji = "曙" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
16422,
49,
584,
4280,
28027,
6,
3,
1258,
21391,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
918,
49,
65,
8,
8,
3,
1258,
21391,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
918,
49,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
3,
1258,
21391,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients with private health insurance had ureteral catheterization procedure? | 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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.short_title = "Ureteral catheterization" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
For the player finishing at +8, what is his nationality? | CREATE TABLE table_69773 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Country" FROM table_69773 WHERE "To par" = '+8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
4013,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3951,
4013,
519,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
1220,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In which state is the Petrie electorate? | CREATE TABLE table_33585 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"In office" text
) | SELECT "State" FROM table_33585 WHERE "Electorate" = 'petrie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
4433,
41,
96,
329,
18247,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
127,
342,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
1570,
828,
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,
0... | [
3,
23143,
14196,
96,
134,
4748,
121,
21680,
953,
834,
519,
2469,
4433,
549,
17444,
427,
96,
21543,
127,
342,
121,
3274,
3,
31,
4995,
1753,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc? | CREATE TABLE table_name_98 (f_laps VARCHAR, final_placing VARCHAR, podiums VARCHAR, season VARCHAR) | SELECT f_laps FROM table_name_98 WHERE podiums = "1" AND season = 2000 AND final_placing = "nc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
89,
834,
8478,
7,
584,
4280,
28027,
6,
804,
834,
6042,
75,
53,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
89,
834,
8478,
7,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
22828,
7,
3274,
96,
536,
121,
3430,
774,
3274,
2766,
3430,
804,
834,
6042,
75,
53,
3274,
96,
29,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose year of death is less than or equal to 2165 and procedure long title is initial insertion of transvenous leads [electrodes] into atrium and ventricle? | 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 ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2165.0" AND procedures.long_title = "Initial insertion of transvenous leads [electrodes] into atrium and ventricle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is protoporphyrin ix's substrate? | CREATE TABLE table_name_55 (
substrate VARCHAR,
product VARCHAR
) | SELECT substrate FROM table_name_55 WHERE product = "protoporphyrin ix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
17019,
584,
4280,
28027,
6,
556,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
813,
2916,
127,
6941,
52,
77,
3,
2407,
31,
7,
17019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17019,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
556,
3274,
96,
1409,
2916,
127,
6941,
52,
77,
3,
2407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Candidate John Mccain had how many delegates? | CREATE TABLE table_1423 (
"Candidate" text,
"State Delegate" real,
"Percentage" text,
"Delegates" real,
"Counties Carries" real
) | SELECT "Delegates" FROM table_1423 WHERE "Candidate" = 'John McCain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2773,
41,
96,
14050,
12416,
342,
121,
1499,
6,
96,
134,
4748,
374,
8791,
121,
490,
6,
96,
12988,
3728,
545,
121,
1499,
6,
96,
2962,
8791,
7,
121,
490,
6,
96,
10628,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2962,
8791,
7,
121,
21680,
953,
834,
2534,
2773,
549,
17444,
427,
96,
14050,
12416,
342,
121,
3274,
3,
31,
18300,
27463,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was week 5's result? | CREATE TABLE table_47966 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_47966 WHERE "Week" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4440,
3539,
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,
0,
0... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
591,
4440,
3539,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the director who directed the movie that Raintree Pictures produced? | CREATE TABLE table_name_13 (director VARCHAR, producer VARCHAR) | SELECT director FROM table_name_13 WHERE producer = "raintree pictures" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
25982,
584,
4280,
28027,
6,
8211,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
2090,
113,
6640,
8,
1974,
24,
12574,
929... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2090,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
8211,
3274,
96,
6559,
929,
15,
1933,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many stolen ends did the skipper whose locale was British Columbia have? | CREATE TABLE table_4234 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." text
) | SELECT MIN("Stolen Ends") FROM table_4234 WHERE "Locale" = 'British Columbia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
3710,
41,
96,
434,
32,
1489,
15,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
12017,
121,
490,
6,
96,
3965,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
134,
235,
40,
35,
3720,
7,
8512,
21680,
953,
834,
4165,
3710,
549,
17444,
427,
96,
434,
32,
1489,
15,
121,
3274,
3,
31,
279,
13224,
7,
107,
8183,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 2nd leg when team #1 is Rubin Kazan? | CREATE TABLE table_name_44 (
team__number1 VARCHAR
) | SELECT 2 AS nd_leg FROM table_name_44 WHERE team__number1 = "rubin kazan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
372,
834,
834,
5525,
1152,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
204,
727,
4553,
116,
372,
7172,
19,
15612,
77,
2609... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
204,
6157,
3,
727,
834,
5772,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
372,
834,
834,
5525,
1152,
536,
3274,
96,
14446,
77,
3,
1258,
10241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the opponent for the KOTC 25: Flaming Fury event? | CREATE TABLE table_name_82 (opponent VARCHAR, event VARCHAR) | SELECT opponent FROM table_name_82 WHERE event = "kotc 25: flaming fury" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
32,
102,
9977,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
21,
8,
3,
12725,
3838,
944,
10,
7036,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4613,
549,
17444,
427,
605,
3274,
96,
15414,
75,
944,
10,
3,
10980,
53,
4223,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are below 47 years of age and followed with procedure icd9 code 9920? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "47" AND procedures.icd9_code = "9920" | [
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,... |
Use a pie chart to show the number of delegates in each county. | CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
... | SELECT County_name, COUNT(County_name) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY County_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
1334,
834,
196,
26,
16,
17,
6,
1334,
834,
4350,
1499,
6,
29659,
490,
6,
22296,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
19488,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1334,
834,
4350,
6,
2847,
17161,
599,
10628,
63,
834,
4350,
61,
21680,
5435,
6157,
332,
536,
3,
15355,
3162,
4356,
6157,
332,
357,
9191,
332,
5411,
10628,
63,
834,
196,
26,
3274,
332,
4416,
308,
23,
20066,
350,
4630... |
What is Moving To, when Name is 'Leon Andreasen'? | CREATE TABLE table_49815 (
"Date From" text,
"Date To" text,
"Pos." text,
"Name" text,
"Moving To" text
) | SELECT "Moving To" FROM table_49815 WHERE "Name" = 'leon andreasen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3916,
1808,
41,
96,
308,
342,
1029,
121,
1499,
6,
96,
308,
342,
304,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
329,
32,
3745,
304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
32,
3745,
304,
121,
21680,
953,
834,
591,
3916,
1808,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
109,
106,
11,
864,
7,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which group had the time 1:11.65? | CREATE TABLE table_15926991_1 (group VARCHAR, time VARCHAR) | SELECT group FROM table_15926991_1 WHERE time = "1:11.65" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4508,
3951,
4729,
834,
536,
41,
10739,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
563,
141,
8,
97,
19520,
15062,
755,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
563,
21680,
953,
834,
1808,
4508,
3951,
4729,
834,
536,
549,
17444,
427,
97,
3274,
96,
536,
10,
10032,
4122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what are the ways to consume senna-docusate? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
u... | SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'senna-docusate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
7757,
5,
20300,
20466,
29,
21680,
7757,
549,
17444,
427,
7757,
5,
26,
13534,
4350,
3274,
3,
31,
7,
35,
29,
9,
18,
7171,
302,
342,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Record, when High Rebounds is 'Marcus Camby (15)', and when High Assists is 'Baron Davis (7)'? | CREATE TABLE table_50003 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_50003 WHERE "High rebounds" = 'marcus camby (15)' AND "High assists" = 'baron davis (7)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12814,
519,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
12814,
519,
549,
17444,
427,
96,
21417,
3,
23768,
121,
3274,
3,
31,
1635,
1071,
7,
5511,
969,
17251,
61,
31,
3430,
96,
21417,
13041,
121,
3274,
3,
31,
1047,
106,
836,
3466,
3,... |
What was the result after 1994 for team MB2 and 31 starts? | CREATE TABLE table_71263 (
"Year" real,
"Manufacturer" text,
"Start" text,
"Finish" text,
"Team" text
) | SELECT "Finish" FROM table_71263 WHERE "Year" > '1994' AND "Team" = 'mb2' AND "Start" = '31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
357,
3891,
41,
96,
476,
2741,
121,
490,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
371,
77,
1273,
121,
1499,
6,
96,
18699,
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,
371,
77,
1273,
121,
21680,
953,
834,
4450,
357,
3891,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4240,
31,
3430,
96,
18699,
121,
3274,
3,
31,
51,
115,
357,
31,
3430,
96,
7681,
17,
121,
3274,
3,
... |
What team has a kit manufacturer of Umbro and Eric Cantona as captain? | CREATE TABLE table_name_41 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR) | SELECT team FROM table_name_41 WHERE kit_manufacturer = "umbro" AND captain = "eric cantona" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
11650,
584,
4280,
28027,
6,
3650,
834,
348,
76,
8717,
450,
49,
584,
4280,
28027,
6,
14268,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
3650,
834,
348,
76,
8717,
450,
49,
3274,
96,
440,
5702,
121,
3430,
14268,
3274,
96,
15,
2234,
26652,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose diagnoses short title is history of tobacco use and lab test category is blood gas? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT 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 = "History of tobacco use" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What was the constructor when riccardo patrese was the winning driver? | CREATE TABLE table_name_88 (winning_constructor VARCHAR, winning_driver VARCHAR) | SELECT winning_constructor FROM table_name_88 WHERE winning_driver = "riccardo patrese" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
8163,
834,
15982,
5317,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6774,
127,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
15982,
5317,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
2234,
6043,
32,
6234,
60,
7,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the wickets when there are 451 runs and india is the fielding team? | CREATE TABLE table_1670921_2 (wicket VARCHAR, runs VARCHAR, fielding_team VARCHAR) | SELECT wicket FROM table_1670921_2 WHERE runs = "451" AND fielding_team = "India" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
4198,
2658,
834,
357,
41,
5981,
15,
17,
584,
4280,
28027,
6,
3154,
584,
4280,
28027,
6,
1057,
53,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
29719,
21680,
953,
834,
27650,
4198,
2658,
834,
357,
549,
17444,
427,
3154,
3274,
96,
2128,
536,
121,
3430,
1057,
53,
834,
11650,
3274,
96,
22126,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
when did patient 027-4309 enter the hospital until 2104 for the last time via the recovery room? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '027-4309' AND patient.hospitaladmitsource = 'recovery room' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2555,
18,
4906,
4198,
31,
3430,
1868,
5,
31386,
20466,
17,
7928,
3274,
3,
31,
60,
9817,
63,
562,
31,
3430,... |
How many times were the winnings $3,816,362? | CREATE TABLE table_19836 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT COUNT("Avg. Finish") FROM table_19836 WHERE "Winnings" = '$3,816,362' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
3420,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
208,
122,
5,
17578,
8512,
21680,
953,
834,
24151,
3420,
549,
17444,
427,
96,
518,
10503,
7,
121,
3274,
3,
31,
3229,
6355,
4959,
11071,
3420,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
give the number patients whose item id is 51218 and lab test abnormal status is delta | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51218" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which name is 51.89 (2.043) long? | CREATE TABLE table_name_57 (name VARCHAR, length VARCHAR) | SELECT name FROM table_name_57 WHERE length = "51.89 (2.043)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
4350,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
564,
19,
11696,
5,
3914,
41,
24273,
4906,
61,
307,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
2475,
3274,
96,
5553,
5,
3914,
41,
24273,
4906,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 6.4 gt/s qpi I/O? | CREATE TABLE table_name_12 (
release_price___usd__ VARCHAR,
i_o_bus VARCHAR,
part_number_s_ VARCHAR
) | SELECT release_price___usd__ FROM table_name_12 WHERE i_o_bus = "1 × 6.4 gt/s qpi" AND part_number_s_ = "bx80601975at80601002274aa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
3,
23,
834,
32,
834,
3465,
584,
4280,
28027,
6,
294,
834,
5525,
1152,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
23,
834,
32,
834,
3465,
3274,
96,
536,
3,
2,
3,
27869,
3,
122,
17,
87,
7,
3,
1824,
102,
23,
121,
... |
how many different types of diesel locomotives came from baldwin locomotive works ? | CREATE TABLE table_204_77 (
id number,
"number" text,
"builder" text,
"type" text,
"date" text,
"works number" number,
"notes" text
) | SELECT COUNT(DISTINCT "type") FROM table_204_77 WHERE "builder" = 'baldwin locomotive works' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4013,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
1499,
6,
96,
16422,
49,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
13631,
381,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
96,
6137,
8512,
21680,
953,
834,
26363,
834,
4013,
549,
17444,
427,
96,
16422,
49,
121,
3274,
3,
31,
8267,
3757,
31301,
930,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the country of the player at +5? | CREATE TABLE table_name_68 (country VARCHAR, to_par VARCHAR) | SELECT country FROM table_name_68 WHERE to_par = "+5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
17529,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
684,
13,
8,
1959,
44,
1768,
755,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
12,
834,
1893,
3274,
96,
1220,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest All-Time, when First Title is '2007, and when Amateur Era is greater than 0? | CREATE TABLE table_46744 (
"Country" text,
"Amateur Era" real,
"Open Era" real,
"All-time" real,
"First title" real,
"Last title" real
) | SELECT MIN("All-time") FROM table_46744 WHERE "First title" = '2007' AND "Amateur Era" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3708,
3628,
41,
96,
10628,
651,
121,
1499,
6,
96,
8123,
6408,
848,
9,
121,
490,
6,
96,
22696,
848,
9,
121,
490,
6,
96,
6838,
18,
715,
121,
490,
6,
96,
25171,
2233,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6838,
18,
715,
8512,
21680,
953,
834,
591,
3708,
3628,
549,
17444,
427,
96,
25171,
2233,
121,
3274,
3,
31,
20615,
31,
3430,
96,
8123,
6408,
848,
9,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-... |
Tell me the lowest tries for goals more than 0 with centre position and points less than 54 | CREATE TABLE table_53865 (
"Player" text,
"Position" text,
"Tries" real,
"Goals" real,
"Points" real
) | SELECT MIN("Tries") FROM table_53865 WHERE "Goals" > '0' AND "Position" = 'centre' AND "Points" < '54' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3747,
4122,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
382,
2593,
121,
490,
6,
96,
6221,
5405,
121,
490,
6,
96,
22512,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
382,
2593,
8512,
21680,
953,
834,
755,
3747,
4122,
549,
17444,
427,
96,
6221,
5405,
121,
2490,
3,
31,
632,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
3728,
60,
31,
3430,
96,
22512,
7,
... |
What is the distance for jockey Kent Desormeaux on 6/7/08? | CREATE TABLE table_16689920_1 (
distance VARCHAR,
jockey VARCHAR,
date VARCHAR
) | SELECT distance FROM table_16689920_1 WHERE jockey = "Kent Desormeaux" AND date = "6/7/08" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26811,
3914,
27749,
834,
536,
41,
2357,
584,
4280,
28027,
6,
8624,
4397,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2357,
21680,
953,
834,
26811,
3914,
27749,
834,
536,
549,
17444,
427,
8624,
4397,
3274,
96,
439,
295,
2973,
127,
51,
9063,
121,
3430,
833,
3274,
96,
948,
21766,
87,
4018,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the transaction type code that occurs the fewest times. | CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR) | SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
26585,
30518,
134,
41,
7031,
4787,
834,
6137,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
5878,
686,
1081,
24,
6986,
8,
360,
222,
648,
5,
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,
5878,
834,
6137,
834,
4978,
21680,
26585,
30518,
134,
350,
4630,
6880,
272,
476,
5878,
834,
6137,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the home team during the match where there were 2709 in attendance? | CREATE TABLE table_name_49 (home VARCHAR, attendance VARCHAR) | SELECT home FROM table_name_49 WHERE attendance = 2709 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
5515,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
383,
8,
1588,
213,
132,
130,
2307,
4198,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
11364,
3274,
2307,
4198,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show different builders of railways, along with the corresponding number of railways using each builder Show bar chart, and show in desc by the Builder. | CREATE TABLE manager (
Manager_ID int,
Name text,
Country text,
Working_year_starts text,
Age int,
Level int
)
CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE railway_manage ... | SELECT Builder, COUNT(*) FROM railway GROUP BY Builder ORDER BY Builder DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2743,
41,
3440,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
7301,
834,
1201,
834,
10208,
7,
1499,
6,
7526,
16,
17,
6,
7166,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16799,
6,
2847,
17161,
599,
1935,
61,
21680,
14421,
350,
4630,
6880,
272,
476,
16799,
4674,
11300,
272,
476,
16799,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which building is only for the university 's admissions office ? | CREATE TABLE table_204_240 (
id number,
"name" text,
"current use" text,
"completed" text,
"namesake" text,
"info" text
) | SELECT "name" FROM table_204_240 WHERE "info" = "home to the university's admissions offices" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
11944,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
14907,
169,
121,
1499,
6,
96,
25288,
26,
121,
1499,
6,
96,
4350,
7,
9,
1050,
121,
1499,
6,
96,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
11944,
549,
17444,
427,
96,
9583,
121,
3274,
96,
5515,
12,
8,
3819,
31,
7,
7209,
7,
6036,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the week for pittsburgh steelers opponent | CREATE TABLE table_name_34 (
week VARCHAR,
opponent VARCHAR
) | SELECT week FROM table_name_34 WHERE opponent = "pittsburgh steelers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
471,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
471,
21,
7688,
17,
7289,
107,
2470,
277,
15264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
15264,
3274,
96,
5230,
17,
7289,
107,
2470,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the outgoing manager when the team is simurq pfc? | CREATE TABLE table_27057070_3 (outgoing_manager VARCHAR, team VARCHAR) | SELECT outgoing_manager FROM table_27057070_3 WHERE team = "Simurq PFC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
28363,
2518,
834,
519,
41,
670,
9545,
834,
24185,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
91,
9545,
2743,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
91,
9545,
834,
24185,
21680,
953,
834,
17485,
28363,
2518,
834,
519,
549,
17444,
427,
372,
3274,
96,
134,
23,
11054,
1824,
276,
5390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest number for draw when the points are less than 17, and the lost is 13? | CREATE TABLE table_name_4 (
draw INTEGER,
points VARCHAR,
lost VARCHAR
) | SELECT MIN(draw) FROM table_name_4 WHERE points < 17 AND lost = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
3314,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
21,
3314,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19489,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
979,
3,
2,
1003,
3430,
1513,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who did not have any job in the past, give me the trend about employee_id over hire_date , sort x-axis in ascending order. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE... | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
61... |
give me the number of patients whose admission year is less than 2190 and diagnoses short title is alzheimer's disease? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2190" AND diagnoses.short_title = "Alzheimer's disease" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which Date has a Game site of shea stadium, and a Week of 5? | CREATE TABLE table_34408 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
) | SELECT "Date" FROM table_34408 WHERE "Game site" = 'shea stadium' AND "Week" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3628,
4018,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
3628,
4018,
549,
17444,
427,
96,
23055,
353,
121,
3274,
3,
31,
7,
88,
9,
14939,
31,
3430,
96,
518,
10266,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the number of the countries of all airlines whose names start with Orbit?, and I want to sort in descending by the bars. | 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)
)
CREATE TABLE airlines (
alid integer,
name text,
iata varchar(2),
icao varchar(3),
callsign text,
... | SELECT country, COUNT(country) FROM airlines WHERE name LIKE 'Orbit%' GROUP BY country ORDER BY country DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
7,
41,
3,
9,
12417,
30278,
6,
564,
1499,
6,
690,
1499,
6,
684,
1499,
6,
3,
226,
490,
6,
3,
63,
490,
6,
16417,
600,
77,
17,
6,
3,
17221,
1848,
3,
4331,
4059,
17867,
6,
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,
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,
684,
309,
25067,
1,
-100,
-100,
-100,
-100,
-1... |
Tell me the proportion of the nationality of all ships. | CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) | SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
868,
485,
1499,
6,
8475,
9761,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
2847,
17161,
599,
24732,
485,
61,
21680,
4383,
350,
4630,
6880,
272,
476,
868,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the result of the submission with the highest score. | CREATE TABLE acceptance (Result VARCHAR, Submission_ID VARCHAR); CREATE TABLE submission (Submission_ID VARCHAR, Scores VARCHAR) | SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11122,
41,
20119,
584,
4280,
28027,
6,
29779,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8121,
41,
25252,
5451,
834,
4309,
584,
4280,
28027,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
20119,
21680,
11122,
6157,
332,
536,
3,
15355,
3162,
8121,
6157,
332,
357,
9191,
332,
5411,
25252,
5451,
834,
4309,
3274,
332,
4416,
25252,
5451,
834,
4309,
4674,
11300,
272,
476,
332,
4416,
134,
9022,
7,
3... |
Tell me the chief judge which has reason for termination of retirement | CREATE TABLE table_name_35 (
chief_judge VARCHAR,
reason_for_termination VARCHAR
) | SELECT chief_judge FROM table_name_35 WHERE reason_for_termination = "retirement" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
5752,
834,
354,
13164,
584,
4280,
28027,
6,
1053,
834,
1161,
834,
6544,
257,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
5752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5752,
834,
354,
13164,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1053,
834,
1161,
834,
6544,
257,
3274,
96,
10682,
60,
297,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What nationality was peter slamiar? | CREATE TABLE table_2886617_6 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_2886617_6 WHERE player = "Peter Slamiar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
26750,
2517,
834,
948,
41,
16557,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1157,
485,
47,
158,
449,
3,
7,
40,
3690,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
2577,
26750,
2517,
834,
948,
549,
17444,
427,
1959,
3274,
96,
345,
15,
449,
29291,
23,
291,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are coach Bill Henderson's highest wins with more than 233 losses? | CREATE TABLE table_12567 (
"Coach" text,
"Years coached" text,
"Seasons" real,
"Wins" real,
"Losses" real,
"Percentage" real,
"Conference titles" text,
"NCAA" text
) | SELECT MAX("Wins") FROM table_12567 WHERE "Coach" = 'bill henderson' AND "Losses" > '233' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
3708,
41,
96,
3881,
1836,
121,
1499,
6,
96,
476,
2741,
7,
3,
30940,
121,
1499,
6,
96,
134,
15,
9,
6577,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
8512,
21680,
953,
834,
10124,
3708,
549,
17444,
427,
96,
3881,
1836,
121,
3274,
3,
31,
3727,
40,
3,
107,
3868,
739,
31,
3430,
96,
434,
13526,
7,
121,
2490,
3,
31,
20879,
31,
1,
-100,... |
What was the position of the player from the college of Nevada with a round over 5? | CREATE TABLE table_43913 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_43913 WHERE "Round" > '5' AND "College" = 'nevada' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3288,
2368,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
591,
3288,
2368,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
755,
31,
3430,
96,
9939,
7883,
121,
3274,
3,
31,
29,
15,
16716,
31,
1,
-100,
-100,
-100,
-100,
... |
Who is the Shirt Back Sponsor if the Shorts Sponsor is Telestet? | CREATE TABLE table_name_69 (shirt_back_sponsor VARCHAR, shorts_sponsor VARCHAR) | SELECT shirt_back_sponsor FROM table_name_69 WHERE shorts_sponsor = "telestet" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
9486,
834,
1549,
834,
7,
5041,
7,
127,
584,
4280,
28027,
6,
710,
7,
834,
7,
5041,
7,
127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
8677,
834,
1549,
834,
7,
5041,
7,
127,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
710,
7,
834,
7,
5041,
7,
127,
3274,
96,
1931,
849,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many routes end in a Canadian airport? | CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active text
)
CREATE TABLE airports (
apid number,
name text,
city text,
country text,
x number,
y number,
elevation number,
iata text,
icao text
)
CREATE ... | SELECT COUNT(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19184,
41,
3,
9,
8130,
381,
6,
564,
1499,
6,
3,
17221,
1499,
6,
3,
2617,
32,
1499,
6,
580,
6732,
1499,
6,
684,
1499,
6,
1676,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3761,
7,
6157,
332,
536,
3,
15355,
3162,
9729,
6157,
332,
357,
9191,
332,
5411,
9,
12417,
3274,
332,
4416,
26,
7,
17,
834,
9,
12417,
549,
17444,
427,
684,
3274,
3,
31,
28811,
31,... |
what is the worlds smallest population? | CREATE TABLE table_19017269_5 (
world INTEGER
) | SELECT MIN(world) FROM table_19017269_5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
27156,
3951,
834,
755,
41,
296,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
296,
7,
3,
17924,
2074,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
7276,
61,
21680,
953,
834,
11776,
27156,
3951,
834,
755,
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,
... |
Count the Money ( ) of south africa with a To par of +1, and a Player of ernie els? | CREATE TABLE table_name_50 (
money___£__ VARCHAR,
player VARCHAR,
country VARCHAR,
to_par VARCHAR
) | SELECT money___£__ FROM table_name_50 WHERE country = "south africa" AND to_par = "+1" AND player = "ernie els" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
540,
834,
834,
834,
19853,
834,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
540,
834,
834,
834,
19853,
834,
834,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
684,
3274,
96,
7,
670,
107,
24040,
121,
3430,
12,
834,
1893,
3274,
96,
18446,
121,
3430,
1959,
3274,
96,
15,
23752,
3,
3573,
... |
Which driver drove in grid 19? | CREATE TABLE table_name_12 (driver VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_12 WHERE grid = 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
13739,
52,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2535,
10719,
16,
8634,
957,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
8634,
3274,
957,
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... |
On what date was the result w 26–20? | CREATE TABLE table_name_54 (date VARCHAR, result VARCHAR) | SELECT date FROM table_name_54 WHERE result = "w 26–20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
5522,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
741,
3,
210,
2208,
104,
1755,
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,
833,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
741,
3274,
96,
210,
2208,
104,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees who did not have any job in the past, for department_id, hire_date, visualize the trend. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613,
834,
... |
What season had the Roma-Napoli match on 12 September 1993? | CREATE TABLE table_52244 (
"Season" text,
"Match" text,
"Result" text,
"League" text,
"Date" text
) | SELECT "Season" FROM table_52244 WHERE "Match" = 'roma-napoli' AND "Date" = '12 september 1993' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
357,
3628,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
329,
14547,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
308,
342,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
5373,
357,
3628,
549,
17444,
427,
96,
329,
14547,
121,
3274,
3,
31,
3522,
9,
18,
29,
9,
3003,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2122,
16022,
18247,
8388,
31,
... |
Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team? | CREATE TABLE table_31111 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
) | SELECT "Winning driver" FROM table_31111 WHERE "Pole Position" = 'Roberval Andrade' AND "Fastest Lap" = 'Felipe Giaffone' AND "Winning team" = 'RVR Corinthians Motorsport' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
15866,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10503,
2535,
121,
21680,
953,
834,
3341,
15866,
549,
17444,
427,
96,
8931,
15,
14258,
121,
3274,
3,
31,
24372,
49,
2165,
275,
15530,
31,
3430,
96,
371,
9,
7,
4377,
325,
102,
121,
3274,
3,
31,
17160,
23,
... |
What was the pick # of the player who has a hometown/school of Atlanta, GA? | CREATE TABLE table_name_62 (
pick INTEGER,
hometown_school VARCHAR
) | SELECT AVG(pick) FROM table_name_62 WHERE hometown_school = "atlanta, ga" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
1432,
3,
21342,
17966,
6,
22295,
834,
6646,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1432,
1713,
13,
8,
1959,
113,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
17967,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
22295,
834,
6646,
3274,
96,
144,
6761,
9,
6,
7922,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what state was the electorate fowler? | CREATE TABLE table_78071 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"Term in office" text
) | SELECT "State" FROM table_78071 WHERE "Electorate" = 'fowler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2079,
4450,
41,
96,
329,
18247,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
127,
342,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
11679,
16,
828,
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,
134,
4748,
121,
21680,
953,
834,
940,
2079,
4450,
549,
17444,
427,
96,
21543,
127,
342,
121,
3274,
3,
31,
89,
2381,
1171,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the number of the faculty members for each rank? Visualize in bar chart. | CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Faculty_Participates_in (
FacID IN... | SELECT Rank, COUNT(Rank) FROM Faculty GROUP BY Rank | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15077,
6203,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
41,
1699,
75,
4309,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
22557,
6,
2847,
17161,
599,
22557,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
3,
22557,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What position did team scandia finish when their engine was cosworth? | CREATE TABLE table_71284 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text,
"Team" text
) | SELECT "Finish" FROM table_71284 WHERE "Engine" = 'cosworth' AND "Team" = 'team scandia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
357,
4608,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
371,
77,
1273,
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,
371,
77,
1273,
121,
21680,
953,
834,
4450,
357,
4608,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
509,
7,
7048,
31,
3430,
96,
18699,
121,
3274,
3,
31,
11650,
5924,
26,
23,
9,
31,
1,
-100,
-100,
-100,
-100,... |
What happened when the new points was 1705? | CREATE TABLE table_2354 (
"Sd" real,
"Player" text,
"Points" real,
"Points defending" real,
"Points won" real,
"New points" real,
"Status" text
) | SELECT "Status" FROM table_2354 WHERE "New points" = '1705' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
5062,
41,
96,
134,
26,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22512,
7,
3,
20309,
121,
490,
6,
96,
22512,
7,
751,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
121,
21680,
953,
834,
2773,
5062,
549,
17444,
427,
96,
6861,
979,
121,
3274,
3,
31,
2517,
3076,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many goals did the player from England who played the position of mf and had 170 club apps had? | CREATE TABLE table_name_8 (
goals VARCHAR,
club_apps VARCHAR,
nationality VARCHAR,
position VARCHAR
) | SELECT goals FROM table_name_8 WHERE nationality = "england" AND position = "mf" AND club_apps = "170" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
1766,
584,
4280,
28027,
6,
1886,
834,
3096,
7,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1766,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
1157,
485,
3274,
96,
4606,
40,
232,
121,
3430,
1102,
3274,
96,
51,
89,
121,
3430,
1886,
834,
3096,
7,
3274,
96,
536,
2518,
121,
1,
-100,
-100,
-100,
-100,
-1... |
what is admission type and procedure long title of subject id 813? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.admission_type, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "813" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
6,
4293,
5,
2961,
834,
21869,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,... |
What is the title of the Misfits with a CD format? | CREATE TABLE table_58829 (
"Year" real,
"Artist" text,
"Title" text,
"Format" text,
"Type" text
) | SELECT "Title" FROM table_58829 WHERE "Format" = 'cd' AND "Artist" = 'misfits' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4060,
3166,
41,
96,
476,
2741,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
25160,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
755,
4060,
3166,
549,
17444,
427,
96,
3809,
3357,
121,
3274,
3,
31,
75,
26,
31,
3430,
96,
7754,
343,
121,
3274,
3,
31,
51,
159,
5616,
7,
31,
1,
-100,
-100,
-100,
-100,
... |
How many nominees had a net voice of 15.17% | CREATE TABLE table_19869 (
"Eviction No." real,
"Nominee" text,
"Vote to Save" text,
"Vote to Evict" text,
"Net vote" text,
"Eviction result" text
) | SELECT COUNT("Nominee") FROM table_19869 WHERE "Net vote" = '15.17%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
3951,
41,
96,
427,
29797,
465,
535,
490,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
553,
32,
17,
15,
12,
7242,
121,
1499,
6,
96,
553,
32,
17,
15,
12,
262,
7287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
8695,
15,
8512,
21680,
953,
834,
24151,
3951,
549,
17444,
427,
96,
9688,
2902,
121,
3274,
3,
31,
536,
20519,
6170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of awardees for english and hindi | CREATE TABLE table_26855 (
"Name of Award" text,
"Name of Film" text,
"Language" text,
"Awardee(s)" text,
"Cash Prize" text
) | SELECT COUNT("Awardee(s)") FROM table_26855 WHERE "Language" = 'English and Hindi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3651,
3769,
41,
96,
23954,
13,
3677,
121,
1499,
6,
96,
23954,
13,
3417,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
188,
2239,
15,
15,
599,
7,
61,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
2239,
15,
15,
599,
7,
61,
8512,
21680,
953,
834,
357,
3651,
3769,
549,
17444,
427,
96,
434,
1468,
76,
545,
121,
3274,
3,
31,
26749,
11,
25763,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the home team score when Brisbane lions was the home team? | CREATE TABLE table_1441 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_1441 WHERE "Home team" = 'Brisbane Lions' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4853,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
517,
7775,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
2534,
4853,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
279,
52,
159,
3478,
15,
10371,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total time of the athlete from Canada with a lane less than 8 and a rank less than 8? | CREATE TABLE table_name_52 (time VARCHAR, rank VARCHAR, lane VARCHAR, nationality VARCHAR) | SELECT COUNT(time) FROM table_name_52 WHERE lane < 8 AND nationality = "canada" AND rank < 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
715,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
715,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
3,
8102,
3,
2,
505,
3430,
1157,
485,
3274,
96,
658,
18089,
121,
3430,
11003,
3,
2,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Result, when Date is 19 August 1992? | CREATE TABLE table_name_40 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_40 WHERE date = "19 august 1992" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
20119,
6,
116,
7678,
19,
957,
1660,
9047,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
833,
3274,
96,
2294,
14663,
9047,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If graphics mode is less than 1.0, what are the char cells? | CREATE TABLE table_1974 (
"Graphics mode" real,
"Char cells" text,
"Pixels" text,
"Hardware colours" real,
"used (KB)" real,
"map" text,
"Type" text
) | SELECT "Char cells" FROM table_1974 WHERE "Graphics mode" < '1.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4581,
41,
96,
21094,
447,
7,
2175,
121,
490,
6,
96,
18947,
2640,
121,
1499,
6,
96,
345,
2407,
3573,
121,
1499,
6,
96,
15537,
26,
3404,
6548,
121,
490,
6,
96,
10064,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18947,
2640,
121,
21680,
953,
834,
2294,
4581,
549,
17444,
427,
96,
21094,
447,
7,
2175,
121,
3,
2,
3,
31,
12734,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )? | CREATE TABLE table_65456 (
"Athlete" text,
"Shooting Score (pts)" text,
"Fencing Victories (pts)" text,
"Swimming Time (pts)" text,
"Equestrian Time (pts)" text,
"Running Time (pts)" text,
"Total" real
) | SELECT "Shooting Score (pts)" FROM table_65456 WHERE "Total" > '5464' AND "Athlete" = 'heather fell ( gbr )' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2128,
948,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10499,
32,
32,
1222,
17763,
41,
102,
17,
7,
61,
121,
1499,
6,
96,
371,
15,
4733,
8884,
725,
41,
102,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10499,
32,
32,
1222,
17763,
41,
102,
17,
7,
61,
121,
21680,
953,
834,
4122,
2128,
948,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
5062,
4389,
31,
3430,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
88,
... |
How many trains are there for the route via trivandrum, ernakulam, newdelhi? | CREATE TABLE table_29770377_1 (
train_number VARCHAR,
route_via VARCHAR
) | SELECT COUNT(train_number) FROM table_29770377_1 WHERE route_via = "Trivandrum, Ernakulam, NewDelhi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4013,
4928,
4013,
834,
536,
41,
2412,
834,
5525,
1152,
584,
4280,
28027,
6,
2981,
834,
5907,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14053,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
9719,
834,
5525,
1152,
61,
21680,
953,
834,
3166,
4013,
4928,
4013,
834,
536,
549,
17444,
427,
2981,
834,
5907,
3274,
96,
19310,
2132,
17870,
6,
848,
29,
9,
10701,
265,
6,
368,
2962,
40,
107,
23,
... |
count the number of patients whose admission type is emergency and drug code is enox80i? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.formulary_drug_cd = "ENOX80I" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What country does Rocco Mediate play for? | CREATE TABLE table_name_77 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_77 WHERE player = "rocco mediate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
17529,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
405,
3,
28649,
509,
11816,
342,
577,
21,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1959,
3274,
96,
7818,
509,
783,
17,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest number of men's championships of the university with 1 junior's and more than 2 total? | CREATE TABLE table_7359 (
"University" text,
"Men's" real,
"Women's" real,
"Junior's" real,
"Total" real
) | SELECT MAX("Men's") FROM table_7359 WHERE "Junior's" = '1' AND "Total" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
3390,
41,
96,
8313,
485,
121,
1499,
6,
96,
329,
35,
31,
7,
121,
490,
6,
96,
518,
32,
904,
31,
7,
121,
490,
6,
96,
683,
202,
23,
127,
31,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
329,
35,
31,
7,
8512,
21680,
953,
834,
4552,
3390,
549,
17444,
427,
96,
683,
202,
23,
127,
31,
7,
121,
3274,
3,
31,
536,
31,
3430,
96,
3696,
1947,
121,
2490,
3,
31,
357,
31,
1,
-100,
-100,
... |
What is the lowest of the athlete from sri lanka who has a lane greater than 8? | CREATE TABLE table_name_62 (
react INTEGER,
country VARCHAR,
lane VARCHAR
) | SELECT MIN(react) FROM table_name_62 WHERE country = "sri lanka" AND lane > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
8922,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
13,
8,
17893,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
60,
2708,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
684,
3274,
96,
7,
52,
23,
3,
1618,
1258,
121,
3430,
3,
8102,
2490,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Result F-A that was the quarter-final first leg round with a H/A of h? | CREATE TABLE table_name_96 (result_f_a VARCHAR, h___a VARCHAR, round VARCHAR) | SELECT result_f_a FROM table_name_96 WHERE h___a = "h" AND round = "quarter-final first leg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
60,
7,
83,
17,
834,
89,
834,
9,
584,
4280,
28027,
6,
3,
107,
834,
834,
834,
9,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
741,
834,
89,
834,
9,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
3,
107,
834,
834,
834,
9,
3274,
96,
107,
121,
3430,
1751,
3274,
96,
19973,
18,
12406,
166,
4553,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456? | CREATE TABLE table_name_35 (starts INTEGER, points VARCHAR, podiums VARCHAR, stage_wins VARCHAR) | SELECT AVG(starts) FROM table_name_35 WHERE podiums > 0 AND stage_wins > 39 AND points > 456 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
10208,
7,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
6,
1726,
834,
3757,
7,
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,
71,
17217,
599,
10208,
7,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
22828,
7,
2490,
3,
632,
3430,
1726,
834,
3757,
7,
2490,
6352,
3430,
979,
2490,
314,
4834,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what's the home team where streak is l3 and leading scorer is roy : 23 | CREATE TABLE table_72244 (
"#" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text,
"Streak" text
) | SELECT "Home" FROM table_72244 WHERE "Streak" = 'L3' AND "Leading scorer" = 'Roy : 23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
357,
3628,
41,
96,
4663,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
5865,
357,
3628,
549,
17444,
427,
96,
11500,
15,
1639,
121,
3274,
3,
31,
434,
519,
31,
3430,
96,
2796,
9,
26,
53,
2604,
52,
121,
3274,
3,
31,
448,
32,
63,
3,
10,
1902,
31,
1,
... |
What is the Record for a game smaller than 24, Lundqvist was the decision, November less than 8, and opponent Was New York Islanders? | CREATE TABLE table_name_57 (record VARCHAR, opponent VARCHAR, november VARCHAR, game VARCHAR, decision VARCHAR) | SELECT record FROM table_name_57 WHERE game < 24 AND decision = "lundqvist" AND november < 8 AND opponent = "new york islanders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
60,
7621,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
3,
5326,
18247,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
1357,
584,
4280,
28027,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
467,
3,
2,
997,
3430,
1357,
3274,
96,
40,
1106,
1824,
3466,
17,
121,
3430,
3,
5326,
18247,
3,
2,
505,
3430,
15264,
3274,
96,
5534,
25453,
3368,
277,
121,
1,... |
For the Avg/G of 5.9, what was the long? | CREATE TABLE table_name_56 (long VARCHAR, avg_g VARCHAR) | SELECT long FROM table_name_56 WHERE avg_g = "5.9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
2961,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
122,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
71,
208,
122,
87,
517,
13,
3594,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
307,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
3,
9,
208,
122,
834,
122,
3274,
96,
9125,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
has any paper tried Multiuser Receiver for Decision Feedback ? | CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE author (
authorid int... | SELECT DISTINCT paperkeyphrase.paperid FROM keyphrase, paperkeyphrase WHERE keyphrase.keyphrasename IN ('Multiuser Receiver', 'Decision Feedback') GROUP BY paperkeyphrase.paperid HAVING COUNT(DISTINCT keyphrase.keyphraseid) = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
26,
16,
17,
6,
843,
27111,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11858,
41,
1040,
23,
26,
16,
17,
6,
2291... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
4397,
27111,
5,
19587,
23,
26,
21680,
843,
27111,
6,
1040,
4397,
27111,
549,
17444,
427,
843,
27111,
5,
4397,
27111,
4350,
3388,
41,
31,
31922,
10041,
24083,
52,
31,
6,
3,
31,
2962,
1890... |
What record was set when the result/game was montreal 20 @ ottawa 10? | CREATE TABLE table_21436373_8 (
type_of_record VARCHAR,
result_games VARCHAR
) | SELECT type_of_record FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4906,
3891,
4552,
834,
927,
41,
686,
834,
858,
834,
60,
7621,
584,
4280,
28027,
6,
741,
834,
7261,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
686,
834,
858,
834,
60,
7621,
21680,
953,
834,
2658,
4906,
3891,
4552,
834,
927,
549,
17444,
427,
741,
834,
7261,
7,
3274,
96,
9168,
17,
6644,
460,
3320,
19809,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is every score when the date is January 2? | CREATE TABLE table_28220778_21 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_28220778_21 WHERE date = "January 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2884,
4560,
3940,
834,
2658,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
2604,
116,
8,
833,
19,
1762,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
2577,
2884,
4560,
3940,
834,
2658,
549,
17444,
427,
833,
3274,
96,
30404,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the status of the membership application on 2008-12-15? | CREATE TABLE table_name_26 (
status VARCHAR,
membership_application VARCHAR
) | SELECT status FROM table_name_26 WHERE membership_application = "2008-12-15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
2637,
584,
4280,
28027,
6,
4757,
834,
12251,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2637,
13,
8,
4757,
917,
30,
2628,
5947... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2637,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
4757,
834,
12251,
3274,
96,
16128,
5947,
10106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0? | CREATE TABLE table_name_69 (reg_gp INTEGER, pl_gp VARCHAR, rd__number VARCHAR, pick__number VARCHAR) | SELECT MIN(reg_gp) FROM table_name_69 WHERE rd__number > 2 AND pick__number = 80 AND pl_gp > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
60,
122,
834,
122,
102,
3,
21342,
17966,
6,
4752,
834,
122,
102,
584,
4280,
28027,
6,
3,
52,
26,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1432,
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,
3,
17684,
599,
60,
122,
834,
122,
102,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
3,
52,
26,
834,
834,
5525,
1152,
2490,
204,
3430,
1432,
834,
834,
5525,
1152,
3274,
2775,
3430,
4752,
834,
122,
102,
24... |
For all employees who have the letters D or S in their first name, give me the comparison about the sum of manager_id over the hire_date bin hire_date by time by a bar chart. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.