NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who is the visitor with a record of 14 17 5? | CREATE TABLE table_33816 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Visitor" FROM table_33816 WHERE "Record" = '14–17–5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3747,
2938,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
553,
159,
155,
127,
121,
21680,
953,
834,
519,
3747,
2938,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2534,
104,
2517,
104,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of games played for deportivo espa ol? | CREATE TABLE table_19355 (
"Team" text,
"Average" text,
"Points" real,
"Played" real,
"1987-88" text,
"1988-89" text,
"1989-90" real
) | SELECT MIN("Played") FROM table_19355 WHERE "Team" = 'Deportivo Español' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2469,
755,
41,
96,
18699,
121,
1499,
6,
96,
188,
624,
545,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
24151,
25580,
927,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
2294,
2469,
755,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
2962,
1493,
23,
1621,
28774,
2,
32,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the date of the footscray home game? | CREATE TABLE table_54310 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_54310 WHERE "Home team" = 'footscray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
19947,
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,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5062,
19947,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
6259,
7,
2935,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which District has a Result of Re-elected and a First Elected of 1898? | CREATE TABLE table_74882 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
) | SELECT "District" FROM table_74882 WHERE "Result" = 're-elected' AND "First elected" = '1898' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4060,
357,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
308,
23,
20066,
121,
21680,
953,
834,
4581,
4060,
357,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
60,
18,
19971,
31,
3430,
96,
25171,
8160,
121,
3274,
3,
31,
2606,
3916,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS THE POSITION OF FRANCE? | CREATE TABLE table_name_73 (position VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_73 WHERE nationality = "france" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
4718,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3,
16034,
196,
9562,
3347,
3,
7422,
15083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1157,
485,
3274,
96,
89,
5219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the equation is (10 times 8) + 4, what would be the 2nd throw? | CREATE TABLE table_17265535_6 (
equation VARCHAR
) | SELECT MAX(2 AS nd_throw) FROM table_17265535_6 WHERE equation = "(10 times 8) + 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2688,
3769,
2469,
834,
948,
41,
13850,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
13850,
19,
11704,
648,
3,
13520,
1768,
6464,
125,
133,
36,
8,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
357,
6157,
3,
727,
834,
189,
3623,
61,
21680,
953,
834,
2517,
2688,
3769,
2469,
834,
948,
549,
17444,
427,
13850,
3274,
96,
599,
1714,
648,
3,
13520,
1768,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is surfside beach, SC frequency? | CREATE TABLE table_name_79 (
frequency_mhz VARCHAR,
city_of_license VARCHAR
) | SELECT frequency_mhz FROM table_name_79 WHERE city_of_license = "surfside beach, sc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
7321,
834,
51,
107,
172,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
12245,
1583,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7321,
834,
51,
107,
172,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
690,
834,
858,
834,
28062,
3274,
96,
3042,
89,
1583,
2608,
6,
3,
7,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What School is the Center from? | CREATE TABLE table_34314 (
"Position" text,
"Name" text,
"School" text,
"Unanimous" text,
"College Hall of Fame" text
) | SELECT "School" FROM table_34314 WHERE "Position" = 'center' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
519,
2534,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
5110,
13607,
1162,
121,
1499,
6,
96,
9939,
7883,
2501,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
3710,
519,
2534,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
13866,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the poles for 2011 | CREATE TABLE table_1219 (
"Year" real,
"Class" text,
"Team name" text,
"Bike" text,
"Riders" text,
"Races" text,
"Wins" real,
"Podiums" real,
"Poles" real,
"F.laps" real,
"Points" text,
"Pos." text
) | SELECT "Poles" FROM table_1219 WHERE "Year" = '2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2294,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
564,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
448,
23,
588,
7,
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,
8931,
15,
7,
121,
21680,
953,
834,
2122,
2294,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
13907,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What name was proposed on 12/30/1982 in rockingham county with a CERCLIS ID of nhd062004569? | CREATE TABLE table_name_87 (name VARCHAR, cerclis_id VARCHAR, proposed VARCHAR, county VARCHAR) | SELECT name FROM table_name_87 WHERE proposed = "12/30/1982" AND county = "rockingham" AND cerclis_id = "nhd062004569" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
4350,
584,
4280,
28027,
6,
19259,
40,
159,
834,
23,
26,
584,
4280,
28027,
6,
4382,
584,
4280,
28027,
6,
5435,
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,
564,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
4382,
3274,
96,
2122,
87,
1458,
13523,
4613,
121,
3430,
5435,
3274,
96,
6133,
14799,
121,
3430,
19259,
40,
159,
834,
23,
26,
3274,
96,
29,
107,
26,
5176,
3632,... |
specify the religion of patient josette orr | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.religion FROM demographic WHERE demographic.name = "Josette Orr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
60,
2825,
23,
106,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
683,
32,
7,
1954,
955,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show me a bar chart for what are the department names and how many employees work in each of them?, and rank x axis in descending order. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL v... | SELECT DEPARTMENT_NAME, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID GROUP BY DEPARTMENT_NAME ORDER BY DEPARTMENT_NAME DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3396,
19846,
11810,
834,
567,
17683,
6,
2847,
17161,
599,
1935,
61,
21680,
1652,
6157,
332,
536,
3,
15355,
3162,
10521,
6157,
332,
357,
9191,
332,
5411,
5596,
19846,
11810,
834,
4309,
3274,
332,
4416,
5596,
19846,
11810... |
What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1? | CREATE TABLE table_72004 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
) | SELECT SUM("Lost") FROM table_72004 WHERE "Points" > '28' AND "Draw" = '5' AND "Place" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
21653,
41,
96,
345,
11706,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
6221,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
434,
3481,
8512,
21680,
953,
834,
940,
21653,
549,
17444,
427,
96,
22512,
7,
121,
2490,
3,
31,
2577,
31,
3430,
96,
308,
10936,
121,
3274,
3,
31,
755,
31,
3430,
96,
345,
11706,
121,
3,
2,
3,
... |
provide the number of patients whose admission year is less than 2162 and procedure short title is left heart cardiac cath? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2162" AND procedures.short_title = "Left heart cardiac cath" | [
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 prefix has Haloalkane as the chemical class? | CREATE TABLE table_name_4 (prefix VARCHAR, chemical_class VARCHAR) | SELECT prefix FROM table_name_4 WHERE chemical_class = "haloalkane" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
2026,
12304,
584,
4280,
28027,
6,
5368,
834,
4057,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
554,
12304,
65,
5648,
32,
138,
3304,
15,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
554,
12304,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
5368,
834,
4057,
3274,
96,
3828,
32,
138,
3304,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Event when the 2008 09 is sf? | CREATE TABLE table_40212 (
"Event" text,
"2007\u201308" text,
"2008\u201309" text,
"2009\u201310" text,
"2010\u201311" text
) | SELECT "Event" FROM table_40212 WHERE "2008\u201309" = 'sf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
24837,
41,
96,
427,
2169,
121,
1499,
6,
96,
20615,
2,
76,
11138,
4018,
121,
1499,
6,
96,
16128,
2,
76,
11138,
4198,
121,
1499,
6,
96,
16660,
2,
76,
11138,
1714,
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,
427,
2169,
121,
21680,
953,
834,
2445,
24837,
549,
17444,
427,
96,
16128,
2,
76,
11138,
4198,
121,
3274,
3,
31,
7,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Date, when Opponent is At Saskatchewan Roughriders? | CREATE TABLE table_name_13 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_13 WHERE opponent = "at saskatchewan roughriders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
4495,
9977,
19,
486,
30382,
391,
4607,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
15264,
3274,
96,
144,
3,
7,
9,
7,
8682,
1033,
3877,
8678,
4055,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
when the gdp per emissions (in us dollars per ton) is 3903, what is the maximum annual co2 emissions (in thousands of metric tons)? | CREATE TABLE table_73730 (
"Country" text,
"Annual CO2 emissions (in thousands of metric tons)" real,
"GDP (current, in billions of US dollars)" text,
"GDP per Emissions (in US dollars per ton)" real,
"GDP (PPP, in billions of current international dollars)" text,
"PPP GDP per Emissions (in inte... | SELECT MAX("Annual CO2 emissions (in thousands of metric tons)") FROM table_73730 WHERE "GDP per Emissions (in US dollars per ton)" = '3903' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27931,
1458,
41,
96,
10628,
651,
121,
1499,
6,
96,
17608,
3471,
2847,
357,
9830,
41,
77,
2909,
13,
3,
7959,
8760,
61,
121,
490,
6,
96,
517,
7410,
41,
14907,
6,
16,
2108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17608,
3471,
2847,
357,
9830,
41,
77,
2909,
13,
3,
7959,
8760,
61,
8512,
21680,
953,
834,
27931,
1458,
549,
17444,
427,
96,
517,
7410,
399,
262,
5451,
7,
41,
77,
837,
3740,
399,
12,
29,
61,
12... |
What was the home Competition with Attendance of 1,268? | CREATE TABLE table_name_39 (competition VARCHAR, venue VARCHAR, attendance VARCHAR) | SELECT competition FROM table_name_39 WHERE venue = "home" AND attendance = "1,268" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
234,
15571,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
5669,
3274,
96,
5515,
121,
3430,
11364,
3274,
96,
4347,
357,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What college did Jim Bennett attend? | CREATE TABLE table_26996293_1 (college VARCHAR, player VARCHAR) | SELECT college FROM table_26996293_1 WHERE player = "Jim Bennett" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3264,
4056,
4271,
834,
536,
41,
3297,
7883,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
410,
6006,
23464,
2467,
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,
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,
1900,
21680,
953,
834,
2688,
3264,
4056,
4271,
834,
536,
549,
17444,
427,
1959,
3274,
96,
683,
603,
23464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games was game 43? | CREATE TABLE table_17058151_7 (record VARCHAR, game VARCHAR) | SELECT COUNT(record) FROM table_17058151_7 WHERE game = 43 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
3449,
26578,
834,
940,
41,
60,
7621,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
47,
467,
8838,
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,
2847,
17161,
599,
60,
7621,
61,
21680,
953,
834,
536,
2518,
3449,
26578,
834,
940,
549,
17444,
427,
467,
3274,
8838,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What were the most in attendance in Richmond? | CREATE TABLE table_name_61 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MAX(crowd) FROM table_name_61 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
167,
16,
11364,
16,
17247,
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,
4800,
4,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
show me the number of patients less than 71 years who have lab test item id 50856. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "71" AND lab.itemid = "50856" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which entrant has a year after 1955? | CREATE TABLE table_name_59 (
entrant VARCHAR,
year INTEGER
) | SELECT entrant FROM table_name_59 WHERE year > 1955 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
3,
295,
3569,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
295,
3569,
65,
3,
9,
215,
227,
23652,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
215,
2490,
23652,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart of mean salary from each dept name | CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
... | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4858,
41,
740,
3,
4331,
4059,
599,
1808,
201,
562,
834,
5525,
1152,
3,
4331,
4059,
24358,
6,
2614,
206,
17552,
599,
8525,
632,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
71,
17217,
599,
7,
138,
1208,
61,
21680,
10617,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the procedure icd9 code and number of days for which subject id 8323 stayed in the hospital? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT demographic.days_stay, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "8323" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1135,
7,
834,
21545,
6,
4293,
5,
447,
26,
1298,
834,
4978,
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,
... |
Tell me the time/retired with Laps of 47 and driver of rené arnoux | CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_47 WHERE laps = 47 AND driver = "rené arnoux" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
14941,
7,
3274,
10635,
3430,
2535,
3274,
96,
1536,
154,
1584,
15358,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which player played more games , r.c hass or clyde alwood ? | CREATE TABLE table_204_344 (
id number,
"player" text,
"games played" number,
"field goals" number,
"free throws" number,
"points" number
) | SELECT "player" FROM table_204_344 WHERE "player" IN ('r.c. haas', 'clyde alwood') ORDER BY "games played" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
3628,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
7261,
7,
1944,
121,
381,
6,
96,
1846,
1766,
121,
381,
6,
96,
2113,
3793,
7,
121,
381,
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,
20846,
121,
21680,
953,
834,
26363,
834,
519,
3628,
549,
17444,
427,
96,
20846,
121,
3388,
41,
31,
52,
5,
75,
5,
4244,
9,
7,
31,
6,
3,
31,
75,
120,
221,
491,
2037,
31,
61,
4674,
11300,
272,
476,
96,
7261,
... |
provide the admission time and diagnoses of subject id 17772. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT demographic.diagnosis, demographic.admittime FROM demographic WHERE demographic.subject_id = "17772" | [
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,
14798,
5,
25930,
4844,
159,
6,
14798,
5,
20466,
17,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
26793,
5865,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total amount of points when the played number was less than 12? | CREATE TABLE table_7214 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT SUM("Points") FROM table_7214 WHERE "Played" < '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
2534,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
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,
180,
6122,
599,
121,
22512,
7,
8512,
21680,
953,
834,
5865,
2534,
549,
17444,
427,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many matches were played when there was 1 draw and 1 win? | CREATE TABLE table_71373 (
"Name" text,
"Period" text,
"Matches" text,
"Wins" text,
"Draws" text,
"Losses" text
) | SELECT "Matches" FROM table_71373 WHERE "Draws" = '1' AND "Wins" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
4118,
519,
41,
96,
23954,
121,
1499,
6,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
329,
144,
2951,
121,
1499,
6,
96,
18455,
7,
121,
1499,
6,
96,
308,
10936,
7,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
144,
2951,
121,
21680,
953,
834,
4450,
4118,
519,
549,
17444,
427,
96,
308,
10936,
7,
121,
3274,
3,
31,
536,
31,
3430,
96,
18455,
7,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What year was republican, re-elected incumbent John all barham elected? | CREATE TABLE table_name_92 (
elected VARCHAR,
incumbent VARCHAR,
party VARCHAR,
status VARCHAR
) | SELECT elected FROM table_name_92 WHERE party = "republican" AND status = "re-elected" AND incumbent = "john all barham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
8160,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8160,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1088,
3274,
96,
60,
15727,
152,
121,
3430,
2637,
3274,
96,
60,
18,
19971,
121,
3430,
28406,
3274,
96,
27341,
66,
1207,
1483,
121,
1,
-100,
-100,
-100,
-100,
-... |
what is the intake method of the trandate? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeou... | SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'trandate' | [
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,
11665,
5522,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which dance is previous to tango | CREATE TABLE table_204_711 (
id number,
"dance" text,
"best dancer(s)" text,
"best score" number,
"worst dancer(s)" text,
"worst score" number
) | SELECT "dance" FROM table_204_711 WHERE id = (SELECT id FROM table_204_711 WHERE "dance" = 'tango') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4450,
536,
41,
3,
23,
26,
381,
6,
96,
26,
663,
121,
1499,
6,
96,
9606,
2595,
52,
599,
7,
61,
121,
1499,
6,
96,
9606,
2604,
121,
381,
6,
96,
210,
127,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
26,
663,
121,
21680,
953,
834,
26363,
834,
4450,
536,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
4450,
536,
549,
17444,
427,
96,
26,
663,
121,
3274,
3,
31,
17... |
What place is United States player Corey Pavin in? | CREATE TABLE table_51117 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_51117 WHERE "Country" = 'united states' AND "Player" = 'corey pavin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
20275,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
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,
0,
0... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
5553,
20275,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
9022,
63,
2576,
2494,
31,
1,
-100,
-100,
-100,
... |
Name the total number of industry for maxis | CREATE TABLE table_19112_3 (industry VARCHAR, company VARCHAR) | SELECT COUNT(industry) FROM table_19112_3 WHERE company = "Maxis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2596,
357,
834,
519,
41,
13580,
7,
8224,
584,
4280,
28027,
6,
349,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
681,
21,
9858,
159,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
13580,
7,
8224,
61,
21680,
953,
834,
2294,
2596,
357,
834,
519,
549,
17444,
427,
349,
3274,
96,
21298,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the condition with partial thromboplastin time of prolonged or unaffected | CREATE TABLE table_70996 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
) | SELECT "Condition" FROM table_70996 WHERE "Partial thromboplastin time" = 'prolonged or unaffected' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
3264,
948,
41,
96,
4302,
10569,
121,
1499,
6,
96,
3174,
8514,
51,
4517,
97,
121,
1499,
6,
96,
13212,
10646,
3,
8514,
6310,
23918,
77,
97,
121,
1499,
6,
96,
279,
40,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
10569,
121,
21680,
953,
834,
2518,
3264,
948,
549,
17444,
427,
96,
13212,
10646,
3,
8514,
6310,
23918,
77,
97,
121,
3274,
3,
31,
1409,
23629,
42,
73,
9,
27488,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the cardinal direction northwest in English? | CREATE TABLE table_name_31 (english VARCHAR, cardinal_direction VARCHAR) | SELECT english FROM table_name_31 WHERE cardinal_direction = "northwest" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
4606,
40,
1273,
584,
4280,
28027,
6,
895,
10270,
834,
10258,
4985,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
895,
10270,
2212,
241... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22269,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
895,
10270,
834,
10258,
4985,
3274,
96,
29,
127,
189,
12425,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did the vice president with a vice over 6 take office? | CREATE TABLE table_48660 (
"President" text,
"Vice" real,
"Romanized (Hangul)" text,
"Took office" text,
"Left office" text,
"Political party" text
) | SELECT "Took office" FROM table_48660 WHERE "Vice" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
27720,
41,
96,
345,
15704,
121,
1499,
6,
96,
553,
867,
121,
490,
6,
96,
25139,
1601,
41,
566,
1468,
83,
61,
121,
1499,
6,
96,
3696,
1825,
828,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
1825,
828,
121,
21680,
953,
834,
3707,
27720,
549,
17444,
427,
96,
553,
867,
121,
2490,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose year of birth is less than 2107 and diagnoses short title is elev transaminase/ldh? | 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 WHERE demographic.dob_year < "2107" AND diagnoses.short_title = "Elev transaminase/ldh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What date has 11 as the tie no.? | CREATE TABLE table_name_48 (date VARCHAR, tie_no VARCHAR) | SELECT date FROM table_name_48 WHERE tie_no = "11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5522,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
65,
850,
38,
8,
6177,
150,
5,
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,
833,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of patients whose age is less than 61 and diagnoses short title is crnry athrscl natve vssl? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "61" AND diagnoses.short_title = "Crnry athrscl natve vssl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Show all locations and the number of gas stations in each location ordered by the count. | CREATE TABLE gas_station (
station_id number,
open_year number,
location text,
manager_name text,
vice_manager_name text,
representative_name text
)
CREATE TABLE station_company (
station_id number,
company_id number,
rank_of_the_year number
)
CREATE TABLE company (
company_id ... | SELECT location, COUNT(*) FROM gas_station GROUP BY location ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1807,
834,
6682,
41,
2478,
834,
23,
26,
381,
6,
539,
834,
1201,
381,
6,
1128,
1499,
6,
2743,
834,
4350,
1499,
6,
6444,
834,
24185,
834,
4350,
1499,
6,
6978,
834,
4350,
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,
1128,
6,
2847,
17161,
599,
1935,
61,
21680,
1807,
834,
6682,
350,
4630,
6880,
272,
476,
1128,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
ze roberto and emerson each scored how many goals ? | CREATE TABLE table_203_176 (
id number,
"name" text,
"full name" text,
"caps" number,
"goals" number,
"first cap" text,
"opponent" text,
"club" text
) | SELECT "goals" FROM table_203_176 WHERE "name" = 'ze roberto' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
26782,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
1329,
40,
564,
121,
1499,
6,
96,
4010,
7,
121,
381,
6,
96,
839,
5405,
121,
381,
6,
96,
14672,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
839,
5405,
121,
21680,
953,
834,
23330,
834,
26782,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
776,
3,
5840,
49,
235,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the official name of the land with an area of 276.84 km2? | CREATE TABLE table_21282 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) | SELECT "Official Name" FROM table_21282 WHERE "Area km 2" = '276.84' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
4613,
41,
96,
667,
89,
22816,
5570,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
188,
864,
2280,
204,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
89,
22816,
5570,
121,
21680,
953,
834,
24837,
4613,
549,
17444,
427,
96,
188,
864,
2280,
204,
121,
3274,
3,
31,
357,
3959,
5,
4608,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the rate limit when the desired rate change (%) is +40.4? | CREATE TABLE table_27543 (
"Authority" text,
"Rate or precept" text,
"Budget limit (\u00a3m)" text,
"Budget plans (\u00a3m)" text,
"Rate limit (p)" text,
"Rate change (%)" text,
"Desired rate (p)" text,
"Desired rate change (%)" text
) | SELECT "Rate limit (p)" FROM table_27543 WHERE "Desired rate change (%)" = '+40.4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
4906,
41,
96,
23602,
127,
485,
121,
1499,
6,
96,
448,
342,
42,
554,
6873,
121,
1499,
6,
96,
279,
13164,
17,
2006,
41,
2,
76,
1206,
9,
519,
51,
61,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
342,
2006,
41,
102,
61,
121,
21680,
953,
834,
25988,
4906,
549,
17444,
427,
96,
2962,
7,
23,
1271,
1080,
483,
41,
6210,
121,
3274,
3,
31,
1220,
591,
22776,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Scatter. what are ids and total number of hours played for each game? | CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnScholarship VARCHAR(1)
)
CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
... | SELECT GameID, SUM(Hours_Played) FROM Plays_Games GROUP BY GameID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5716,
29381,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
3349,
23954,
584,
4280,
28027,
599,
2668,
201,
10768,
7,
12988,
518,
10266,
3,
21342,
17966,
6,
5880,
15800,
15,
26,
3,
21342,
1796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4435,
4309,
6,
180,
6122,
599,
4489,
3589,
834,
15800,
15,
26,
61,
21680,
2911,
7,
834,
23055,
7,
350,
4630,
6880,
272,
476,
4435,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the loss of the game when the record was 32 34? | CREATE TABLE table_39705 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Loss" FROM table_39705 WHERE "Record" = '32–34' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
2518,
755,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
7,
121,
21680,
953,
834,
3288,
2518,
755,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2668,
104,
3710,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose age is less than 45 and days of hospital stay is greater than 20? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "45" AND demographic.days_stay > "20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
3,
2,
96,
2128,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
1755,
121,
1,
-100,
-... |
Tell me the 1st leg for asfa rabat | CREATE TABLE table_name_9 (
team__number1 VARCHAR
) | SELECT 1 AS st_leg FROM table_name_9 WHERE team__number1 = "asfa rabat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
372,
834,
834,
5525,
1152,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
209,
7,
17,
4553,
21,
38,
89,
9,
3,
7093,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
372,
834,
834,
5525,
1152,
536,
3274,
96,
9,
7,
89,
9,
3,
7093,
144,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which air date has 5 for # in season? | CREATE TABLE table_name_50 (airdate VARCHAR, _number_in_season VARCHAR) | SELECT airdate FROM table_name_50 WHERE _number_in_season = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
2256,
5522,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
77,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
799,
833,
65,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
799,
5522,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
3,
834,
5525,
1152,
834,
77,
834,
9476,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2? | CREATE TABLE table_29296103_10 (runner_up VARCHAR, tournament VARCHAR, champion VARCHAR) | SELECT COUNT(runner_up) FROM table_29296103_10 WHERE tournament = "Cologne , Germany Carpet – $75,000 – S32/D16" AND champion = "Matt Doyle 1–6, 6–1, 6–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
357,
4314,
17864,
834,
1714,
41,
10806,
834,
413,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
10806,
834,
413,
61,
21680,
953,
834,
3166,
357,
4314,
17864,
834,
1714,
549,
17444,
427,
5892,
3274,
96,
254,
23443,
3,
6,
3434,
17778,
3,
104,
11301,
5898,
3,
104,
180,
2668,
87,
308,
2938,
121,
... |
Which incumbent was first elected in 1964? | CREATE TABLE table_1341707_15 (
incumbent VARCHAR,
first_elected VARCHAR
) | SELECT incumbent FROM table_1341707_15 WHERE first_elected = "1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
4560,
834,
1808,
41,
28406,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
28406,
47,
166,
8160,
16,
18969,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28406,
21680,
953,
834,
23747,
2517,
4560,
834,
1808,
549,
17444,
427,
166,
834,
19971,
3274,
96,
26937,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When FA Cup Apps is 9 what is the smallest number of FA Cup Goals? | CREATE TABLE table_10240125_1 (
fa_cup_goals INTEGER,
fa_cup_apps VARCHAR
) | SELECT MIN(fa_cup_goals) FROM table_10240125_1 WHERE fa_cup_apps = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
11944,
10124,
834,
536,
41,
3,
89,
9,
834,
4658,
834,
839,
5405,
3,
21342,
17966,
6,
3,
89,
9,
834,
4658,
834,
3096,
7,
584,
4280,
28027,
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,
3,
17684,
599,
89,
9,
834,
4658,
834,
839,
5405,
61,
21680,
953,
834,
1714,
11944,
10124,
834,
536,
549,
17444,
427,
3,
89,
9,
834,
4658,
834,
3096,
7,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When esv ingolstadt is the oberbayern b what is the niederbayern? | CREATE TABLE table_25738 (
"Season" text,
"Oberbayern A" text,
"Oberbayern B" text,
"Niederbayern" text,
"Schwaben" text,
"Oberpfalz" text
) | SELECT "Niederbayern" FROM table_25738 WHERE "Oberbayern B" = 'ESV Ingolstadt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
3747,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
667,
1152,
11119,
49,
29,
71,
121,
1499,
6,
96,
667,
1152,
11119,
49,
29,
272,
121,
1499,
6,
96,
567,
5973,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
5973,
49,
11119,
49,
29,
121,
21680,
953,
834,
357,
3436,
3747,
549,
17444,
427,
96,
667,
1152,
11119,
49,
29,
272,
121,
3274,
3,
31,
3205,
553,
86,
7579,
6208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different municipal mayors were there in the municipality with an area of 42.66 km2? | CREATE TABLE table_24553 (
"Municipality" text,
"Type" text,
"District" text,
"Area (km\u00b2)" text,
"Population (2010)" real,
"Pop. Density (per km\u00b2)" text,
"No. of Barangays" real,
"Municipal Mayor" text
) | SELECT COUNT("Municipal Mayor") FROM table_24553 WHERE "Area (km\u00b2)" = '42.66' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
4867,
41,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
329,
202,
1294,
6459,
12394,
8512,
21680,
953,
834,
357,
2128,
4867,
549,
17444,
427,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
3274,
3,
31,
4165,
5,
3539,
31,
1,
-100,
-100,
-100... |
Bar chart x axis acc regular season y axis acc_percent, I want to rank X-axis from low to high order. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Regular_Season, ACC_Percent FROM basketball_match ORDER BY ACC_Regular_Season | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients diagnosed with s/p hanging died in or before the year 2111? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "S/P HANGING" AND demographic.dod_year <= "2111.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
134,
87,
345,
454,
19775,
2365,
121,
3430,
14798,
5,
26,
32,
26,
834... |
Show id from each meter 400 | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_40... | SELECT meter_400, ID FROM swimmer | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
5548,
6,
4699,
21680,
27424,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what's the estimated deaths with operational period of 17 march 1942 end of june 1943 | CREATE TABLE table_16055 (
"Camp" text,
"Estimated deaths" text,
"Operational" text,
"Occupied territory" text,
"Current country of location" text,
"Primary means for mass killings" text
) | SELECT "Estimated deaths" FROM table_16055 WHERE "Operational" = '17 March 1942 – end of June 1943' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
3769,
41,
96,
24626,
121,
1499,
6,
96,
14997,
603,
920,
14319,
121,
1499,
6,
96,
667,
883,
257,
138,
121,
1499,
6,
96,
667,
75,
4658,
5973,
9964,
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,
14997,
603,
920,
14319,
121,
21680,
953,
834,
19129,
3769,
549,
17444,
427,
96,
667,
883,
257,
138,
121,
3274,
3,
31,
2517,
1332,
24466,
3,
104,
414,
13,
1515,
26436,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On which dates played Home Captain Courtney Walsh at the Queen's Park Oval? | CREATE TABLE table_15477 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Date" FROM table_15477 WHERE "Home captain" = 'courtney walsh' AND "Venue" = 'queen''s park oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
4013,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
14268,
121,
1499,
6,
96,
188,
1343,
14268,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
27308,
4013,
549,
17444,
427,
96,
19040,
14268,
121,
3274,
3,
31,
14492,
3186,
3,
5380,
7,
107,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
835,
35,
31,
31,
7,
2447,
17... |
how many games has chorrillo f.c. won ? | CREATE TABLE table_203_171 (
id number,
"place\n(posicion)" number,
"team\n(equipo)" text,
"played\n(pj)" number,
"won\n(pg)" number,
"draw\n(pe)" number,
"lost\n(pp)" number,
"goals scored\n(gf)" number,
"goals conceded\n(gc)" number,
"+/-\n(dif.)" number,
"points\n(pts.)" n... | SELECT "won\n(pg)" FROM table_203_171 WHERE "team\n(equipo)" = 'chorrillo f.c' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2517,
536,
41,
3,
23,
26,
381,
6,
96,
4687,
2,
29,
599,
19882,
20013,
61,
121,
381,
6,
96,
11650,
2,
29,
599,
15,
23067,
32,
61,
121,
1499,
6,
96,
4895,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
210,
106,
2,
29,
599,
102,
122,
61,
121,
21680,
953,
834,
23330,
834,
2517,
536,
549,
17444,
427,
96,
11650,
2,
29,
599,
15,
23067,
32,
61,
121,
3274,
3,
31,
19220,
52,
1092,
32,
3,
89,
5,
75,
31,
1,
-10... |
Name the Trofeo Fast team for roberto visentini | CREATE TABLE table_10722 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Trofeo Fast Team" text
) | SELECT "Trofeo Fast Team" FROM table_10722 WHERE "Winner" = 'roberto visentini' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
2884,
41,
96,
134,
6505,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
52,
858,
15,
32,
6805,
2271,
121,
21680,
953,
834,
18057,
2884,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
5840,
49,
235,
4642,
295,
77,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result when the attendance was 12,000? | CREATE TABLE table_name_77 (
result VARCHAR,
attendance VARCHAR
) | SELECT result FROM table_name_77 WHERE attendance = "12,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
741,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
116,
8,
11364,
47,
209,
8630,
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,
741,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
11364,
3274,
96,
536,
8630,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the city in India with an airport named Sardar Vallabhbhai Patel International Airport? | CREATE TABLE table_name_58 (city VARCHAR, country VARCHAR, airport VARCHAR) | SELECT city FROM table_name_58 WHERE country = "india" AND airport = "sardar vallabhbhai patel international airport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
6726,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
3761,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
690,
16,
1547,
28,
46,
3761... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
684,
3274,
96,
8482,
9,
121,
3430,
3761,
3274,
96,
7,
986,
291,
3,
2165,
9339,
107,
115,
1024,
23,
2576,
1625,
1038,
3761,
121,
1,
-100,
-100,
-100,
-100,
-1... |
Find all the zip codes in which the max dew point have never reached 70. | CREATE TABLE weather (
zip_code VARCHAR,
max_dew_point_f VARCHAR
) | SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1969,
41,
10658,
834,
4978,
584,
4280,
28027,
6,
9858,
834,
221,
210,
834,
2700,
834,
89,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
66,
8,
10658,
5633,
16,
84,
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,
3,
15438,
25424,
6227,
10658,
834,
4978,
21680,
1969,
262,
4,
30416,
3,
23143,
14196,
3,
15438,
25424,
6227,
10658,
834,
4978,
21680,
1969,
549,
17444,
427,
9858,
834,
221,
210,
834,
2700,
834,
89,
2490,
2423,
2861,
1... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a bar chart shows the distribution of hire_date and the amount of hire_date bin hire_date by weekday, rank by the y axis in ascending please. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY COUNT(HIRE_DATE) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
... |
When the home team is Cairns Taipans, at which venue do they play? | CREATE TABLE table_name_51 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_51 WHERE home_team = "cairns taipans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
15098,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
234,
372,
19,
205,
2256,
29,
7,
17612,
2837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
234,
834,
11650,
3274,
96,
75,
2256,
29,
7,
3,
17,
9,
23,
2837,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Away team played at the Windy Hill Venue? | CREATE TABLE table_53423 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_53423 WHERE "Venue" = 'windy hill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3710,
2773,
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,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
755,
3710,
2773,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
5165,
63,
9956,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many laps for jochen rindt? | CREATE TABLE table_53143 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT COUNT("Laps") FROM table_53143 WHERE "Driver" = 'jochen rindt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
25133,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3612,
102,
7,
8512,
21680,
953,
834,
4867,
25133,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
1927,
1559,
3,
13119,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the home team when the away team was Telford United? | CREATE TABLE table_48917 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Home team" FROM table_48917 WHERE "Away team" = 'telford united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3914,
2517,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
591,
3914,
2517,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
1625,
2590,
18279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men? | CREATE TABLE table_name_89 (missing VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR) | SELECT missing FROM table_name_89 WHERE killed = "0 off 0 men" AND wounded = "0 off 0 men" AND unit = "royal waggon train" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
11502,
53,
584,
4280,
28027,
6,
1745,
584,
4280,
28027,
6,
4792,
584,
4280,
28027,
6,
21372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3586,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
4792,
3274,
96,
632,
326,
3,
632,
1076,
121,
3430,
21372,
3274,
96,
632,
326,
3,
632,
1076,
121,
3430,
1745,
3274,
96,
8170,
138,
3,
15238,
5307,
2412,
121,
... |
What year did Ecurie Bleue score more than 0 points? | CREATE TABLE table_name_34 (year INTEGER, pts VARCHAR, entrant VARCHAR) | SELECT AVG(year) FROM table_name_34 WHERE pts > 0 AND entrant = "ecurie bleue" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
1201,
3,
21342,
17966,
6,
3,
102,
17,
7,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
410,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
3,
102,
17,
7,
2490,
3,
632,
3430,
3,
295,
3569,
3274,
96,
15,
9659,
15,
15197,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me a scatter chart for what are the different customer ids, and how many cards does each one hold? | CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transa... | SELECT customer_id, COUNT(*) FROM Customers_Cards GROUP BY customer_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
834,
6936,
26,
7,
41,
895,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
895,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
895,
834,
5525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
884,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
16423,
834,
6936,
26,
7,
350,
4630,
6880,
272,
476,
884,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the census rankings of cities that do not have the status 'Village'? | CREATE TABLE farm (
farm_id number,
year number,
total_horses number,
working_horses number,
total_cattle number,
oxen number,
bulls number,
cows number,
pigs number,
sheep_and_goats number
)
CREATE TABLE farm_competition (
competition_id number,
year number,
theme t... | SELECT census_ranking FROM city WHERE status <> "Village" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3797,
41,
3797,
834,
23,
26,
381,
6,
215,
381,
6,
792,
834,
107,
127,
2260,
381,
6,
464,
834,
107,
127,
2260,
381,
6,
792,
834,
658,
8692,
381,
6,
3,
32,
226,
35,
381,
6,
8434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
23087,
834,
6254,
53,
21680,
690,
549,
17444,
427,
2637,
3,
2,
3155,
96,
553,
17614,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the gender of the student Linda Smith? | CREATE TABLE Student (
Sex VARCHAR,
Fname VARCHAR,
Lname VARCHAR
) | SELECT Sex FROM Student WHERE Fname = "Linda" AND Lname = "Smith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
679,
226,
584,
4280,
28027,
6,
377,
4350,
584,
4280,
28027,
6,
301,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7285,
13,
8,
1236,
16121,
3931... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
226,
21680,
6341,
549,
17444,
427,
377,
4350,
3274,
96,
434,
77,
26,
9,
121,
3430,
301,
4350,
3274,
96,
30077,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Tell me the affiliation for diego walsh | CREATE TABLE table_name_87 (affiliation VARCHAR, player VARCHAR) | SELECT affiliation FROM table_name_87 WHERE player = "diego walsh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
4127,
173,
23,
257,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
24405,
21,
67,
839,
3,
5380,
7,
107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24405,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1959,
3274,
96,
2498,
839,
3,
5380,
7,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Middle German (Luxemburgish) word for stone? | CREATE TABLE table_name_58 (
middle_german___luxemburgish__ VARCHAR,
english VARCHAR
) | SELECT middle_german___luxemburgish__ FROM table_name_58 WHERE english = "stone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2214,
834,
1304,
348,
834,
834,
834,
8387,
15,
51,
4824,
1273,
834,
834,
584,
4280,
28027,
6,
22269,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2214,
834,
1304,
348,
834,
834,
834,
8387,
15,
51,
4824,
1273,
834,
834,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
22269,
3274,
96,
3009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest mass for Tycho Crater? | CREATE TABLE table_name_59 (
mass__kg_ INTEGER,
landing_zone VARCHAR
) | SELECT MAX(mass__kg_) FROM table_name_59 WHERE landing_zone = "tycho crater" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
3294,
834,
834,
8711,
834,
3,
21342,
17966,
6,
9501,
834,
9431,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
3294,
21,
103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2754,
7,
834,
834,
8711,
834,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
9501,
834,
9431,
3274,
96,
17,
63,
3995,
3,
2935,
449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Kapampangan word for the Malay word aku? | CREATE TABLE table_name_8 (kapampangan VARCHAR, malay VARCHAR) | SELECT kapampangan FROM table_name_8 WHERE malay = "aku" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
18852,
4624,
1468,
152,
584,
4280,
28027,
6,
954,
5595,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12232,
4624,
1468,
152,
1448,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
18852,
4624,
1468,
152,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
954,
5595,
3274,
96,
16296,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients who since 4 years ago have been prescribed simvastatin 40 mg po tabs. | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutpu... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'simvastatin 40 mg po tabs' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
7757,
5,
10061,
15129,
21545,
23,
26,
21680,
7757,
549,
... |
What is the last name of the musician that have produced the most songs? | CREATE TABLE band (
id number,
firstname text,
lastname text
)
CREATE TABLE songs (
songid number,
title text
)
CREATE TABLE instruments (
songid number,
bandmateid number,
instrument text
)
CREATE TABLE performance (
songid number,
bandmate number,
stageposition text
)
C... | SELECT T2.lastname FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1928,
41,
3,
23,
26,
381,
6,
166,
4350,
1499,
6,
336,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3605,
41,
2324,
23,
26,
381,
6,
2233,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
5064,
4350,
21680,
821,
6157,
332,
536,
3,
15355,
3162,
1928,
6157,
332,
357,
9191,
332,
5411,
3348,
5058,
3274,
332,
4416,
23,
26,
3,
15355,
3162,
3605,
6157,
332,
519,
9191,
332,
5787,
7,
2444,
23,
26,
... |
Who made a release in the US in 1982? | CREATE TABLE table_name_89 (
label VARCHAR,
release_date VARCHAR,
country VARCHAR
) | SELECT label FROM table_name_89 WHERE release_date = 1982 AND country = "us" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
3783,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
263,
3,
9,
1576,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1576,
834,
5522,
3274,
14505,
3430,
684,
3274,
96,
302,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games have 5 goals and less than 8 assists? | CREATE TABLE table_48214 (
"Player" text,
"Club" text,
"Games" real,
"Goals" real,
"Assists" real,
"Points" real
) | SELECT COUNT("Games") FROM table_48214 WHERE "Goals" = '5' AND "Assists" < '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
27357,
41,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
6,
96,
188,
7,
7,
343,
7,
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,
2847,
17161,
599,
121,
23055,
7,
8512,
21680,
953,
834,
3707,
27357,
549,
17444,
427,
96,
6221,
5405,
121,
3274,
3,
31,
755,
31,
3430,
96,
188,
7,
7,
343,
7,
121,
3,
2,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-10... |
What is the record on Sept 22? | CREATE TABLE table_23624542_4 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_23624542_4 WHERE date = "Sept 22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4056,
2128,
4165,
834,
591,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
30,
10449,
1630,
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,
1368,
21680,
953,
834,
2773,
4056,
2128,
4165,
834,
591,
549,
17444,
427,
833,
3274,
96,
134,
6707,
1630,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200? | CREATE TABLE table_31738 (
"Date" text,
"Track" text,
"Event Name" text,
"Pole Winner" text,
"Race Winner" text
) | SELECT "Track" FROM table_31738 WHERE "Pole Winner" = 'frank kimmel' AND "Event Name" = 'pennsylvania 200' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2517,
3747,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
16729,
121,
1499,
6,
96,
427,
2169,
5570,
121,
1499,
6,
96,
8931,
15,
18125,
121,
1499,
6,
96,
448,
3302,
18125,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16729,
121,
21680,
953,
834,
519,
2517,
3747,
549,
17444,
427,
96,
8931,
15,
18125,
121,
3274,
3,
31,
89,
6254,
3,
19754,
2341,
31,
3430,
96,
427,
2169,
5570,
121,
3274,
3,
31,
3208,
29,
7,
63,
40,
1665... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a line chart shows the trend of commission_pct over hire_date , and show in descending by the x-axis. | 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 locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
1744... |
what chip has the lowest flash size ? | CREATE TABLE table_204_416 (
id number,
"chip" text,
"flash size" text,
"eeprom" number,
"sram" number,
"frequency\n[mhz]" number,
"package" text
) | SELECT "chip" FROM table_204_416 ORDER BY "flash size" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
2938,
41,
3,
23,
26,
381,
6,
96,
17362,
121,
1499,
6,
96,
89,
8058,
812,
121,
1499,
6,
96,
15,
15,
1409,
51,
121,
381,
6,
96,
7,
2375,
121,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17362,
121,
21680,
953,
834,
26363,
834,
591,
2938,
4674,
11300,
272,
476,
96,
89,
8058,
812,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the names of all physicians and their primary affiliated departments' names. | CREATE TABLE physician (
name VARCHAR,
EmployeeID VARCHAR
)
CREATE TABLE affiliated_with (
physician VARCHAR,
department VARCHAR,
PrimaryAffiliation VARCHAR
)
CREATE TABLE department (
name VARCHAR,
DepartmentID VARCHAR
) | SELECT T1.name, T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10027,
41,
564,
584,
4280,
28027,
6,
15871,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
18273,
834,
4065,
41,
10027,
584,
4280,
28027,
6,
3066,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5787,
4350,
21680,
10027,
6157,
332,
536,
3,
15355,
3162,
18273,
834,
4065,
6157,
332,
357,
9191,
332,
5411,
427,
51,
7379,
63,
15,
15,
4309,
3274,
332,
4416,
6941,
7,
1294,
152,
3,
15355,
... |
Who was the player who placed t10? | CREATE TABLE table_46482 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Player" FROM table_46482 WHERE "Place" = 't10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3707,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4448,
3707,
357,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Guard Kerri Shields Hometown? | CREATE TABLE table_61343 (
"Name" text,
"Number" real,
"Position" text,
"Height" text,
"Year" text,
"Hometown" text
) | SELECT "Hometown" FROM table_61343 WHERE "Position" = 'guard' AND "Name" = 'kerri shields' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
3710,
519,
41,
96,
23954,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
476,
2741,
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,
19040,
3540,
121,
21680,
953,
834,
4241,
3710,
519,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
11010,
31,
3430,
96,
23954,
121,
3274,
3,
31,
157,
21301,
13128,
7,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the grid for the driver who earned 14 points? | CREATE TABLE table_17304504_1 (
grid VARCHAR,
points VARCHAR
) | SELECT grid FROM table_17304504_1 WHERE points = "14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1458,
10593,
591,
834,
536,
41,
8634,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8634,
21,
8,
2535,
113,
4964,
968,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8634,
21680,
953,
834,
2517,
1458,
10593,
591,
834,
536,
549,
17444,
427,
979,
3274,
96,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the driver whose car was constructed by Renault and whose Q1 pos is greater than 2? | CREATE TABLE table_name_4 (
driver VARCHAR,
constructor VARCHAR,
q1_pos VARCHAR
) | SELECT driver FROM table_name_4 WHERE constructor = "renault" AND q1_pos > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
2535,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
6,
3,
1824,
536,
834,
2748,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
6774,
127,
3274,
96,
1536,
10335,
121,
3430,
3,
1824,
536,
834,
2748,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the 1995 GDP when 1990 GDP is 441 and 1985 GDP is less than 359? | CREATE TABLE table_name_14 (
Id VARCHAR
) | SELECT MIN(1995) FROM table_name_14 WHERE 1990 = 441 AND 1985 < 359 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7273,
11284,
116,
5541,
11284,
19,
314,
4853,
11,
13200,
11284,
19,
705,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19479,
9120,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
5541,
3274,
314,
4853,
3430,
13200,
3,
2,
220,
3390,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the lowest total when the nation is sweden (swe) and silver is less than 0? | CREATE TABLE table_name_24 (
total INTEGER,
nation VARCHAR,
silver VARCHAR
) | SELECT MIN(total) FROM table_name_24 WHERE nation = "sweden (swe)" AND silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
792,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
7402,
792,
116,
8,
2982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
2982,
3274,
96,
7,
1123,
537,
41,
7,
1123,
61,
121,
3430,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the party a for m. s. k. sathiyendran runner up | CREATE TABLE table_22754310_1 (party VARCHAR, runner_up_a VARCHAR) | SELECT party AS a FROM table_22754310_1 WHERE runner_up_a = "M. S. K. Sathiyendran" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3072,
4906,
1714,
834,
536,
41,
8071,
584,
4280,
28027,
6,
3,
10806,
834,
413,
834,
9,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1088,
3,
9,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
1088,
6157,
3,
9,
21680,
953,
834,
2884,
3072,
4906,
1714,
834,
536,
549,
17444,
427,
3,
10806,
834,
413,
834,
9,
3274,
96,
329,
5,
180,
5,
480,
5,
1138,
7436,
63,
12524,
29,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What team was the visitor on 3/2? | CREATE TABLE table_name_72 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_72 WHERE date = "3/2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
7019,
30,
220,
13311,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
833,
3274,
96,
15020,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Miller Barber wins with Top-5 less than 2 and 19 Events? | CREATE TABLE table_43021 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT COUNT("Wins") FROM table_43021 WHERE "Top-5" < '2' AND "Events" = '19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
2658,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
18455,
7,
8512,
21680,
953,
834,
25449,
2658,
549,
17444,
427,
96,
22481,
18,
17395,
3,
2,
3,
31,
357,
31,
3430,
96,
427,
2169,
7,
121,
3274,
3,
31,
2294,
31,
1,
-100,
-100,
-100,
-100,
-1... |
If the top team in regular season (points) is the New York Cosmos (200 points), what is the winner (number of titles)? | CREATE TABLE table_237757_3 (winner__number_of_titles_ VARCHAR, top_team_in_regular_season__points_ VARCHAR) | SELECT winner__number_of_titles_ FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "New York Cosmos (200 points)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4013,
3436,
834,
519,
41,
3757,
687,
834,
834,
5525,
1152,
834,
858,
834,
21869,
7,
834,
584,
4280,
28027,
6,
420,
834,
11650,
834,
77,
834,
60,
122,
4885,
834,
9476,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4668,
834,
834,
5525,
1152,
834,
858,
834,
21869,
7,
834,
21680,
953,
834,
2773,
4013,
3436,
834,
519,
549,
17444,
427,
420,
834,
11650,
834,
77,
834,
60,
122,
4885,
834,
9476,
834,
834,
2700,
7,
834,
3274,
96,
68... |
What is the description of the license for GNU GPL v2 or Ruby license? | CREATE TABLE table_25474825_1 (description VARCHAR, license VARCHAR) | SELECT description FROM table_25474825_1 WHERE license = "GNU GPL v2 or Ruby license" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4177,
3707,
1828,
834,
536,
41,
221,
11830,
584,
4280,
28027,
6,
3344,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4210,
13,
8,
3344,
21,
350,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4210,
21680,
953,
834,
1828,
4177,
3707,
1828,
834,
536,
549,
17444,
427,
3344,
3274,
96,
517,
17052,
350,
5329,
3,
208,
357,
42,
20731,
3344,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.