NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah | CREATE TABLE table_name_41 (
location VARCHAR
) | SELECT SUM(1989) FROM table_name_41 WHERE 2000 < 52.8 AND location = "arizona, new mexico, and utah" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9975,
381,
116,
8,
2382,
381,
19,
705,
145,
305,
19419,
16,
7601,
6,
368,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
24151,
11728,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
2766,
3,
2,
305,
19419,
3430,
1128,
3274,
96,
1665,
8892,
9,
6,
126,
140,
226,
5807,
6,
11,
3,
76,
17,
9,
107,
121,
1,
-100,
-100,... |
What are the login names of the students with family name 'Ward'? | CREATE TABLE student_tests_taken (
registration_id number,
date_test_taken time,
test_result text
)
CREATE TABLE student_course_enrolment (
registration_id number,
student_id number,
course_id number,
date_of_enrolment time,
date_of_completion time
)
CREATE TABLE students (
student... | SELECT login_name FROM students WHERE family_name = "Ward" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
834,
4377,
7,
834,
4914,
29,
41,
3816,
834,
23,
26,
381,
6,
833,
834,
4377,
834,
4914,
29,
97,
6,
794,
834,
60,
7,
83,
17,
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,
11255,
834,
4350,
21680,
481,
549,
17444,
427,
384,
834,
4350,
3274,
96,
21032,
26,
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 minimum population of the region in which Roskilde is the largest city? | CREATE TABLE table_16278602_1 (_2008_ VARCHAR, population__january_1 INTEGER, largest_city VARCHAR) | SELECT MIN(population__january_1), _2008_ FROM table_16278602_1 WHERE largest_city = "Roskilde" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2555,
3840,
4305,
834,
536,
41,
834,
16128,
834,
584,
4280,
28027,
6,
2074,
834,
834,
7066,
76,
1208,
834,
536,
3,
21342,
17966,
6,
2015,
834,
6726,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9791,
7830,
834,
834,
7066,
76,
1208,
834,
6982,
6,
3,
834,
16128,
834,
21680,
953,
834,
2938,
2555,
3840,
4305,
834,
536,
549,
17444,
427,
2015,
834,
6726,
3274,
96,
448,
32,
4009,
40,
221,
121,
1,... |
Show different carriers of phones together with the number of phones with each carrier. Plot them as bar chart. | CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price... | SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
834,
8809,
41,
3611,
834,
4309,
16,
17,
6,
8924,
834,
4309,
1499,
6,
1174,
51,
834,
858,
834,
7149,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
512,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1184,
6711,
6,
2847,
17161,
599,
1935,
61,
21680,
951,
350,
4630,
6880,
272,
476,
1184,
6711,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the player from La Costa Canyon High School? | CREATE TABLE table_name_79 (
player VARCHAR,
school VARCHAR
) | SELECT player FROM table_name_79 WHERE school = "la costa canyon high school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1959,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
45,
325,
11229,
16078,
1592,
1121,
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,
1959,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
496,
3274,
96,
521,
583,
9,
24032,
306,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Game has a Record of 27-11-10? | CREATE TABLE table_38452 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT AVG("Game") FROM table_38452 WHERE "Record" = '27-11-10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2128,
357,
41,
96,
23055,
121,
490,
6,
96,
25019,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
23055,
8512,
21680,
953,
834,
3747,
2128,
357,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2555,
9169,
4536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose diagnoses icd9 code is 28860 and drug type is base? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "28860" AND prescriptions.drug_type = "BASE" | [
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,
3... |
What is the away team score when the home team is Geelong? | CREATE TABLE table_name_25 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_25 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
372,
2604,
116,
8,
234,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which township has the least land area ? | CREATE TABLE table_204_616 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinates" text
) | SELECT "township" FROM table_204_616 ORDER BY "land area\nkm2 (sq mi)" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
2938,
41,
3,
23,
26,
381,
6,
96,
3540,
2009,
121,
1499,
6,
96,
89,
15432,
121,
381,
6,
96,
9791,
7830,
2,
29,
13866,
121,
1499,
6,
96,
9791,
7830,
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,
3540,
2009,
121,
21680,
953,
834,
26363,
834,
948,
2938,
4674,
11300,
272,
476,
96,
40,
232,
616,
2,
29,
5848,
357,
41,
7,
1824,
1337,
61,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What kind of Launched has a Homeport (as of July 2013) of sold to chile, and a Pennant number of f80? | CREATE TABLE table_name_65 (
launched VARCHAR,
homeport__as_of_july_2013_ VARCHAR,
pennant_number VARCHAR
) | SELECT launched FROM table_name_65 WHERE homeport__as_of_july_2013_ = "sold to chile" AND pennant_number = "f80" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
3759,
584,
4280,
28027,
6,
234,
1493,
834,
834,
9,
7,
834,
858,
834,
2047,
120,
834,
11138,
834,
584,
4280,
28027,
6,
4550,
29,
288,
834,
5525,
1152,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3759,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
234,
1493,
834,
834,
9,
7,
834,
858,
834,
2047,
120,
834,
11138,
834,
3274,
96,
7,
1490,
12,
3,
1436,
109,
121,
3430,
4550,
29,
288,
834,
5525,
1152,
3274,
... |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by weekday, and could you order in descending by the y-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, COUNT(HIRE_DATE) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY COUNT(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,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
2847,
17161,... |
How many car makers are there in france? | CREATE TABLE COUNTRIES (CountryId VARCHAR, CountryName VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR) | SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2847,
17161,
25858,
134,
41,
10628,
651,
196,
26,
584,
4280,
28027,
6,
6993,
23954,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
205,
4280,
834,
4148,
439,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
205,
4280,
834,
4148,
439,
9984,
6157,
332,
536,
3,
15355,
3162,
2847,
17161,
25858,
134,
6157,
332,
357,
9191,
332,
5411,
10628,
651,
3274,
332,
4416,
10628,
651,
196,
26,
549,
1744... |
What is the Points against for the ystradgynlais rfc club? | CREATE TABLE table_name_58 (
points_against VARCHAR,
club VARCHAR
) | SELECT points_against FROM table_name_58 WHERE club = "ystradgynlais rfc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4564,
7,
581,
21,
8,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1886,
3274,
96,
63,
3109,
26,
122,
63,
29,
521,
159,
3,
52,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What season had more than 12 contestants in which greydis gil won? | CREATE TABLE table_name_98 (season VARCHAR, number_of_contestants VARCHAR, winner VARCHAR) | SELECT season FROM table_name_98 WHERE number_of_contestants > 12 AND winner = "greydis gil" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
9476,
584,
4280,
28027,
6,
381,
834,
858,
834,
1018,
4377,
2366,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
381,
834,
858,
834,
1018,
4377,
2366,
2490,
586,
3430,
4668,
3274,
96,
3584,
63,
26,
159,
3,
122,
173,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date for the game with team orlando? | CREATE TABLE table_27756314_8 (
date VARCHAR,
team VARCHAR
) | SELECT date FROM table_27756314_8 WHERE team = "Orlando" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3072,
3891,
2534,
834,
927,
41,
833,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
8,
467,
28,
372,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2555,
3072,
3891,
2534,
834,
927,
549,
17444,
427,
372,
3274,
96,
667,
7721,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the names and heights of buildings with at least two institutions founded after 1880. | CREATE TABLE building (
name VARCHAR,
height_feet VARCHAR,
building_id VARCHAR
)
CREATE TABLE institution (
building_id VARCHAR,
founded INTEGER
) | SELECT T1.name, T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded > 1880 GROUP BY T1.building_id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
740,
41,
564,
584,
4280,
28027,
6,
3902,
834,
89,
15,
15,
17,
584,
4280,
28027,
6,
740,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
88,
2632,
834,
89,
15,
15,
17,
21680,
740,
6157,
332,
536,
3,
15355,
3162,
6568,
6157,
332,
357,
9191,
332,
5411,
10905,
834,
23,
26,
3274,
332,
4416,
10905,
834,
23,
26,
549,
17444,... |
Which IHSAA Class is located in charlottesville? | CREATE TABLE table_name_24 (
ihsaa_class VARCHAR,
location VARCHAR
) | SELECT ihsaa_class FROM table_name_24 WHERE location = "charlottesville" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
3,
23,
107,
7,
9,
9,
834,
4057,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
27,
4950,
5498,
4501,
19,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23,
107,
7,
9,
9,
834,
4057,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1128,
3274,
96,
4059,
21538,
9727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the hometown of Devon Bookert who is 6-3 tall? | CREATE TABLE table_name_62 (
hometown VARCHAR,
height VARCHAR,
name VARCHAR
) | SELECT hometown FROM table_name_62 WHERE height = "6-3" AND name = "devon bookert" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
22295,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22295,
13,
23130,
3086,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22295,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
3902,
3274,
96,
24262,
121,
3430,
564,
3274,
96,
9776,
106,
484,
49,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Competition had a Result of 3-0 and VEnue of Suwon? | CREATE TABLE table_name_75 (competition VARCHAR, result VARCHAR, venue VARCHAR) | SELECT competition FROM table_name_75 WHERE result = "3-0" AND venue = "suwon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15571,
141,
3,
9,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
741,
3274,
96,
22773,
121,
3430,
5669,
3274,
96,
7,
76,
210,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the fifth district for william womer | CREATE TABLE table_15442974_1 (fifth_district VARCHAR, third_district VARCHAR) | SELECT fifth_district FROM table_15442974_1 WHERE third_district = "William Womer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3628,
3166,
4581,
834,
536,
41,
89,
99,
189,
834,
26,
23,
20066,
584,
4280,
28027,
6,
1025,
834,
26,
23,
20066,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8486,
834,
26,
23,
20066,
21680,
953,
834,
1808,
3628,
3166,
4581,
834,
536,
549,
17444,
427,
1025,
834,
26,
23,
20066,
3274,
96,
518,
1092,
23,
265,
3488,
935,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street? | CREATE TABLE table_name_81 (
years_as_tallest VARCHAR,
street_address VARCHAR
) | SELECT years_as_tallest FROM table_name_81 WHERE street_address = "01.0 10 light street" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
203,
834,
9,
7,
834,
17,
1748,
222,
584,
4280,
28027,
6,
2815,
834,
9,
26,
12039,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
9,
7,
834,
17,
1748,
222,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
2815,
834,
9,
26,
12039,
3274,
96,
10068,
632,
335,
659,
2815,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the number of documents in each day for all documents on project with details 'Graph Database project' and bin document date by weekday and group by document name with a stacked bar chart, could you show from high to low by the Y? | CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
... | SELECT Document_Date, COUNT(Document_Date) FROM Documents AS T1 JOIN Projects AS T2 ON T1.Project_ID = T2.Project_ID WHERE T2.Project_Details = 'Graph Database project' GROUP BY Document_Name ORDER BY COUNT(Document_Date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
41,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
11167,
834,
25160,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
11167,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11167,
834,
308,
342,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
308,
342,
61,
21680,
11167,
7,
6157,
332,
536,
3,
15355,
3162,
2786,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
11827,
834,
4309,
3274,
332,
4416,
3174... |
What is the name of the driver in 1955? | CREATE TABLE table_57940 (
"Year" text,
"Driver" text,
"Constructor" text,
"Category" text,
"Location" text,
"Report" text
) | SELECT "Driver" FROM table_57940 WHERE "Year" = '1955' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4440,
2445,
41,
96,
476,
2741,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
434,
32,
75,
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,
20982,
52,
121,
21680,
953,
834,
755,
4440,
2445,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3769,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the player for Zimbabwe? | CREATE TABLE table_name_45 (player VARCHAR, country VARCHAR) | SELECT player FROM table_name_45 WHERE country = "zimbabwe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
20846,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
21,
23241,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
684,
3274,
96,
172,
17982,
115,
1123,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date successor seated for failure to elect | CREATE TABLE table_225094_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR) | SELECT date_successor_seated FROM table_225094_4 WHERE reason_for_change = "failure to elect" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
11434,
4240,
834,
591,
41,
5522,
834,
7,
17431,
24901,
834,
22933,
584,
4280,
28027,
6,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
7,
17431,
24901,
834,
22933,
21680,
953,
834,
357,
11434,
4240,
834,
591,
549,
17444,
427,
1053,
834,
1161,
834,
13073,
3274,
96,
89,
9,
173,
1462,
12,
11924,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the time when the opponent is stephanie palmer? | CREATE TABLE table_38729 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Time" FROM table_38729 WHERE "Opponent" = 'stephanie palmer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4225,
3166,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
519,
4225,
3166,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
849,
8237,
23,
15,
8466,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the event when the result is loss and the record is 7-5? | CREATE TABLE table_46873 (
"Date" text,
"Result" text,
"Opponent" text,
"Event" text,
"Location" text,
"Method" text,
"Record" text
) | SELECT "Event" FROM table_46873 WHERE "Result" = 'loss' AND "Record" = '7-5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
4225,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
4448,
4225,
519,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
2298,
7,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
940,
4525,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what week was the game on August 10, 1956 played? | CREATE TABLE table_33343 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Week") FROM table_33343 WHERE "Date" = 'august 10, 1956' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23360,
4906,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
71,
17217,
599,
121,
518,
10266,
8512,
21680,
953,
834,
23360,
4906,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
402,
17198,
10372,
22951,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number one singles for week 1 being 5 | CREATE TABLE table_27441210_20 (number_one_single_s_ VARCHAR, weeks_at__number1 VARCHAR) | SELECT number_one_single_s_ FROM table_27441210_20 WHERE weeks_at__number1 = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3628,
2122,
1714,
834,
1755,
41,
5525,
1152,
834,
782,
834,
7,
53,
109,
834,
7,
834,
584,
4280,
28027,
6,
1274,
834,
144,
834,
834,
5525,
1152,
536,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
381,
834,
782,
834,
7,
53,
109,
834,
7,
834,
21680,
953,
834,
2555,
3628,
2122,
1714,
834,
1755,
549,
17444,
427,
1274,
834,
144,
834,
834,
5525,
1152,
536,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the vote for Alvin Green when other was 9%? | CREATE TABLE table_name_22 (alvin_greene__d_ VARCHAR, other VARCHAR) | SELECT alvin_greene__d_ FROM table_name_22 WHERE other = "9%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
138,
2494,
834,
9423,
15,
834,
834,
26,
834,
584,
4280,
28027,
6,
119,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2902,
21,
901,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
491,
2494,
834,
9423,
15,
834,
834,
26,
834,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
119,
3274,
96,
7561,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those dates with a max temperature greater than or equal to 80, I would like a line chart to show the tendency, I want to list x axis from high to low order. | CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE weather (
date TEXT,
... | SELECT date, COUNT(date) FROM weather WHERE max_temperature_f >= 80 GROUP BY date ORDER BY date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,
26,
3,
21342,
17966,
6,
564,
3,
3463,
4,
382,
6,
50,
17,
13046,
13098,
4666,
6,
307,
13046,
13098,
4666,
6,
12908,
834,
13362,
3,
21342,
17966,
6,
690,
3,
3463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
6,
2847,
17161,
599,
5522,
61,
21680,
1969,
549,
17444,
427,
9858,
834,
21010,
15,
834,
89,
2490,
2423,
2775,
350,
4630,
6880,
272,
476,
833,
4674,
11300,
272,
476,
833,
309,
25067,
1,
-100,
-100,
-100,
-100,
-... |
What was the population in Stanthorpe in the year when the population in Rosenthal was 1548? | CREATE TABLE table_12584173_1 (population__stanthorpe_ INTEGER, population__rosenthal_ VARCHAR) | SELECT MAX(population__stanthorpe_) FROM table_12584173_1 WHERE population__rosenthal_ = 1548 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
4608,
2517,
519,
834,
536,
41,
9791,
7830,
834,
834,
5627,
189,
127,
855,
834,
3,
21342,
17966,
6,
2074,
834,
834,
1859,
35,
13958,
834,
584,
4280,
28027,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9791,
7830,
834,
834,
5627,
189,
127,
855,
834,
61,
21680,
953,
834,
10124,
4608,
2517,
519,
834,
536,
549,
17444,
427,
2074,
834,
834,
1859,
35,
13958,
834,
3274,
627,
3707,
1,
-100,
-100,
-100,
-100,... |
How many times did kingfisher east bengal fc win? | CREATE TABLE table_17598 (
"#" real,
"Nation" text,
"Winners" real,
"Runners-up" real,
"3rd Place" real,
"4th Place" real
) | SELECT MIN("Winners") FROM table_17598 WHERE "Nation" = 'Kingfisher East Bengal FC' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
3072,
3916,
41,
96,
4663,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
18455,
687,
7,
121,
490,
6,
96,
23572,
7,
18,
413,
121,
490,
6,
96,
519,
52,
26,
3399,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
18455,
687,
7,
8512,
21680,
953,
834,
536,
3072,
3916,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
439,
53,
6779,
49,
1932,
20008,
7914,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
patient 002-75209 had any #1:? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
... | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-75209')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutpu... | [
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,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
11963,
670,
2562,
549,
17444,
427,
11963,
670,
2562,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
174... |
What kind of brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres? | CREATE TABLE table_27284 (
"Model" text,
"Power" text,
"Torque" text,
"Gearbox" text,
"Weight" text,
"Seating" text,
"Brakes" text,
"Wheels" text,
"Tyres" text
) | SELECT "Brakes" FROM table_27284 WHERE "Wheels" = '16x8.0JJ (front) 16x8.0JJ (rear)' AND "Tyres" = '225/50R16 92V(front) 225/50R16 92V(rear)' AND "Model" = 'Type RB 4AT' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
357,
4608,
41,
96,
24663,
121,
1499,
6,
96,
23553,
121,
1499,
6,
96,
382,
127,
835,
121,
1499,
6,
96,
517,
2741,
2689,
121,
1499,
6,
96,
1326,
2632,
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,
18304,
7735,
121,
21680,
953,
834,
2555,
357,
4608,
549,
17444,
427,
96,
518,
88,
3573,
121,
3274,
3,
31,
2938,
226,
27376,
683,
683,
41,
6849,
61,
898,
226,
27376,
683,
683,
41,
60,
291,
61,
31,
3430,
96,
3... |
What is the Places amount of the United States Ranking 8? | CREATE TABLE table_name_71 (
places INTEGER,
nation VARCHAR,
rank VARCHAR
) | SELECT AVG(places) FROM table_name_71 WHERE nation = "united states" AND rank = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1747,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3399,
7,
866,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
4687,
7,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
2982,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
11003,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which second's skip is Chris Plys? | CREATE TABLE table_name_10 (second VARCHAR, skip VARCHAR) | SELECT second FROM table_name_10 WHERE skip = "chris plys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
12091,
584,
4280,
28027,
6,
11202,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
511,
31,
7,
11202,
19,
4409,
276,
120,
7,
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,
511,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
11202,
3274,
96,
524,
52,
159,
3,
102,
120,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the tournament venue for big sky conference | CREATE TABLE table_22849575_6 (
tournament_venue__city_ VARCHAR,
conference VARCHAR
) | SELECT tournament_venue__city_ FROM table_22849575_6 WHERE conference = "Big Sky conference" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4608,
3301,
3072,
834,
948,
41,
5892,
834,
15098,
834,
834,
6726,
834,
584,
4280,
28027,
6,
2542,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5892,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
834,
15098,
834,
834,
6726,
834,
21680,
953,
834,
2884,
4608,
3301,
3072,
834,
948,
549,
17444,
427,
2542,
3274,
96,
23805,
5643,
2542,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number for gold where there were total 1, and bronze 1? | CREATE TABLE table_name_86 (
gold VARCHAR,
total VARCHAR,
bronze VARCHAR
) | SELECT COUNT(gold) FROM table_name_86 WHERE total = 1 AND bronze = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
21,
2045,
213,
132... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
792,
3274,
209,
3430,
13467,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the data point for s hindu where the buddhist data point is 73.0%? | CREATE TABLE table_1079 (
"Composition" text,
"s Hindu" text,
"s Muslim" text,
"Christians" text,
"s Sikh" text,
"Buddhist" text,
"s Jain" text,
"Others" text
) | SELECT COUNT("s Hindu") FROM table_1079 WHERE "Buddhist" = '73.0%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4440,
41,
96,
5890,
4718,
121,
1499,
6,
96,
7,
18528,
121,
1499,
6,
96,
7,
10148,
121,
1499,
6,
96,
28412,
7,
121,
1499,
6,
96,
7,
180,
19030,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
7,
18528,
8512,
21680,
953,
834,
1714,
4440,
549,
17444,
427,
96,
7793,
26,
26,
107,
343,
121,
3274,
3,
31,
4552,
5,
6932,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What format has a catalogue of asw 40362? | CREATE TABLE table_name_81 (
format VARCHAR,
catalogue VARCHAR
) | SELECT format FROM table_name_81 WHERE catalogue = "asw 40362" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
1910,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1910,
65,
3,
9,
14978,
13,
38,
210,
1283,
3420,
357,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
14978,
3274,
96,
9,
7,
210,
1283,
3420,
357,
121,
1,
-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 diagnoses long title is electrolyte and fluid disorders not elsewhere classified and drug route is sl? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Electrolyte and fluid disorders not elsewhere classified" AND prescriptions.route = "SL" | [
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,
3... |
How many % same-sex marriages are marriages between men for 923? | CREATE TABLE table_23101 (
"Year" text,
"Marriages between men" real,
"Marriages between women" real,
"Same-sex marriages" real,
"Total marriages" real,
"% same-sex marriages" text
) | SELECT COUNT("% same-sex marriages") FROM table_23101 WHERE "Marriages between men" = '923' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
19621,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
10269,
2568,
344,
1076,
121,
490,
6,
96,
329,
10269,
2568,
344,
887,
121,
490,
6,
96,
134,
265,
15,
18,
7,
994,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1454,
337,
18,
7,
994,
5281,
7,
8512,
21680,
953,
834,
2773,
19621,
549,
17444,
427,
96,
329,
10269,
2568,
344,
1076,
121,
3274,
3,
31,
4508,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the location when the opponent is aleksandr pitchkounov? | CREATE TABLE table_46869 (
"Date" text,
"Result" text,
"Opponent" text,
"Event" text,
"Location" text,
"Method" text,
"Record" text
) | SELECT "Location" FROM table_46869 WHERE "Opponent" = 'aleksandr pitchkounov' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3651,
3951,
41,
96,
308,
342,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
591,
3651,
3951,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
138,
16789,
232,
52,
6242,
157,
1063,
5326,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest swimsuit score where the contestant scored less than 8.56 in the interview and greater than 8.54 in the evening gown? | CREATE TABLE table_name_85 (swimsuit INTEGER, interview VARCHAR, evening_gown VARCHAR) | SELECT MIN(swimsuit) FROM table_name_85 WHERE interview < 8.56 AND evening_gown > 8.54 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
7,
210,
603,
7628,
3,
21342,
17966,
6,
2772,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
7,
210,
603,
7628,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
2772,
3,
2,
4848,
4834,
3430,
2272,
834,
122,
9197,
2490,
4848,
5062,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the record on March 14? | CREATE TABLE table_36860 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Record" FROM table_36860 WHERE "Date" = 'march 14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3651,
3328,
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,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
519,
3651,
3328,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
51,
7064,
968,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is hugh white's weight? | CREATE TABLE table_1008 (
"Player" text,
"Position" text,
"Games started" text,
"Hometown" text,
"Height" text,
"Weight" real,
"Class" text,
"Prior experience" text
) | SELECT MAX("Weight") FROM table_1008 WHERE "Player" = 'Hugh White' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
927,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
23055,
7,
708,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
3845,
2632,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
1326,
2632,
8512,
21680,
953,
834,
2915,
927,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
566,
14439,
1945,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give the number of patients whose admission location is emergency room admit and drug code is esmobase. | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND prescriptions.formulary_drug_cd = "ESMOBASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
In the match against Masahiro Oishi, what was the record? | CREATE TABLE table_70358 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
) | SELECT "Record" FROM table_70358 WHERE "Opponent" = 'masahiro oishi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
519,
3449,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
2518,
519,
3449,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
2754,
9,
9288,
32,
3,
32,
1273,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has the highest ranking from 1996–13, and more than 17 goals? | CREATE TABLE table_name_80 (ranking INTEGER, years VARCHAR, goals VARCHAR) | SELECT MAX(ranking) FROM table_name_80 WHERE years = "1996–13" AND goals > 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
6254,
53,
3,
21342,
17966,
6,
203,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
8,
2030,
11592,
45,
6911,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
6254,
53,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
203,
3274,
96,
2294,
4314,
104,
2368,
121,
3430,
1766,
2490,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest total produced with a model of M-420? | CREATE TABLE table_name_47 (total_produced INTEGER, model VARCHAR) | SELECT MIN(total_produced) FROM table_name_47 WHERE model = "m-420" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
235,
1947,
834,
29462,
3,
21342,
17966,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
792,
2546,
28,
3,
9,
825,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
235,
1947,
834,
29462,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
825,
3274,
96,
51,
18,
21899,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date successor seated for failure to elect | CREATE TABLE table_225094_4 (
date_successor_seated VARCHAR,
reason_for_change VARCHAR
) | SELECT date_successor_seated FROM table_225094_4 WHERE reason_for_change = "failure to elect" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
11434,
4240,
834,
591,
41,
833,
834,
7,
17431,
24901,
834,
22933,
584,
4280,
28027,
6,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
7,
17431,
24901,
834,
22933,
21680,
953,
834,
357,
11434,
4240,
834,
591,
549,
17444,
427,
1053,
834,
1161,
834,
13073,
3274,
96,
89,
9,
173,
1462,
12,
11924,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the builder launched 30 october 1944? | CREATE TABLE table_1206583_2 (builder VARCHAR, launched VARCHAR) | SELECT builder FROM table_1206583_2 WHERE launched = "30 October 1944" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
4122,
4591,
834,
357,
41,
16422,
49,
584,
4280,
28027,
6,
3759,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
918,
49,
3759,
604,
3,
32,
75,
235,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
49,
21680,
953,
834,
15518,
4122,
4591,
834,
357,
549,
17444,
427,
3759,
3274,
96,
1458,
1797,
21930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Year, when Notes is '5.19km, 18controls'? | CREATE TABLE table_name_24 (
year INTEGER,
notes VARCHAR
) | SELECT MIN(year) FROM table_name_24 WHERE notes = "5.19km, 18controls" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
215,
3,
21342,
17966,
6,
3358,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
2929,
6,
116,
2507,
7,
19,
3,
31,
9125,
2294... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
3358,
3274,
96,
9125,
2294,
5848,
6,
507,
15247,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the least listed owner for pete raymer | CREATE TABLE table_26896 (
"Team" text,
"Truck(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Listed Owner(s)" text,
"Crew Chief" text
) | SELECT MIN("#") FROM table_26896 WHERE "Listed Owner(s)" = 'Pete Raymer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3651,
4314,
41,
96,
18699,
121,
1499,
6,
96,
21921,
2406,
599,
7,
61,
121,
1499,
6,
96,
4663,
121,
490,
6,
96,
20982,
52,
599,
7,
61,
121,
1499,
6,
96,
7855,
51,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
4663,
8512,
21680,
953,
834,
357,
3651,
4314,
549,
17444,
427,
96,
28886,
13307,
599,
7,
61,
121,
3274,
3,
31,
345,
15,
17,
15,
8279,
935,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
calculate the average age of widow patients who were hospitalized for 27 days. | 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 AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.days_stay = "27" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
518,
4309,
15251,
2326,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
2555,
121,
1,
-100,... |
What home team had 2 ties? | CREATE TABLE table_79605 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Home team" FROM table_79605 WHERE "Tie no" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
3328,
755,
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,
188,
17,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4440,
3328,
755,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
The boat named Agamemnon has what status? | CREATE TABLE table_name_94 (
status VARCHAR,
name VARCHAR
) | SELECT status FROM table_name_94 WHERE name = "agamemnon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
2637,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
3432,
2650,
71,
7261,
51,
29,
106,
65,
125,
2637,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
564,
3274,
96,
9,
7261,
51,
29,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Richard Bachmann's PBA team? | CREATE TABLE table_66032 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
) | SELECT "PBA team" FROM table_66032 WHERE "Player" = 'richard bachmann' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
2668,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
13,
5233,
1935,
121,
1499,
6,
96,
345,
4882,
372,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
4882,
372,
121,
21680,
953,
834,
27720,
2668,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3723,
986,
3,
6425,
2434,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many airlines have the star alliance and are in brazil? | CREATE TABLE table_name_13 (
rank VARCHAR,
alliance VARCHAR,
country VARCHAR
) | SELECT COUNT(rank) FROM table_name_13 WHERE alliance = "star alliance" AND country = "brazil" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
11003,
584,
4280,
28027,
6,
15454,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
19184,
43,
8,
2213,
15454,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
15454,
3274,
96,
3624,
15454,
121,
3430,
684,
3274,
96,
1939,
702,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Milena Reljin's place with a smaller than 9.8 rope? | CREATE TABLE table_61086 (
"Place" real,
"Name" text,
"All Around" real,
"Rope" real,
"Total" real
) | SELECT "Place" FROM table_61086 WHERE "Rope" < '9.8' AND "Name" = 'milena reljin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
3840,
41,
96,
345,
11706,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
6838,
16140,
121,
490,
6,
96,
448,
32,
855,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
27097,
3840,
549,
17444,
427,
96,
448,
32,
855,
121,
3,
2,
3,
31,
8797,
927,
31,
3430,
96,
23954,
121,
3274,
3,
31,
8770,
29,
9,
8318,
354,
77,
31,
1,
-100,
-100,
-100,
-1... |
How many stages did Team Sky lead the teams classification? | CREATE TABLE table_28248 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Points Classification" text,
"Young Rider Classification" text,
"Teams Classification" text
) | SELECT MAX("Stage") FROM table_28248 WHERE "Teams Classification" = 'Team Sky' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
357,
3707,
41,
96,
134,
6505,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
4501,
2420,
121,
1499,
6,
96,
22512,
7,
4501,
2420,
121,
1499,
6,
96,
3774,
1725... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
6505,
8512,
21680,
953,
834,
2577,
357,
3707,
549,
17444,
427,
96,
18699,
7,
4501,
2420,
121,
3274,
3,
31,
18699,
5643,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many of the patients on government insurance had icd9 code 2219? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.icd9_code = "2219" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the average number of yards on a red tee that has a hole of 1 and a par above 4? | CREATE TABLE table_56131 (
"Hole" text,
"Yards (red tees)" real,
"Par (red tees)" real,
"Yards (white tees)" real,
"Par (white tees)" real
) | SELECT AVG("Yards (red tees)") FROM table_56131 WHERE "Hole" = '1' AND "Par (white tees)" > '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
22048,
41,
96,
4489,
109,
121,
1499,
6,
96,
476,
986,
7,
41,
1271,
3,
17,
15,
15,
7,
61,
121,
490,
6,
96,
13212,
41,
1271,
3,
17,
15,
15,
7,
61,
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,
71,
17217,
599,
121,
476,
986,
7,
41,
1271,
3,
17,
15,
15,
7,
61,
8512,
21680,
953,
834,
4834,
22048,
549,
17444,
427,
96,
4489,
109,
121,
3274,
3,
31,
536,
31,
3430,
96,
13212,
41,
13698,
3,
17,
15,
15,
7,
... |
how many patients born before year 2110 had the lab test bands? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2110" AND lab.label = "Bands" | [
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,... |
Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold? | CREATE TABLE table_name_96 (incumbent VARCHAR, first_elected VARCHAR, result VARCHAR) | SELECT incumbent FROM table_name_96 WHERE first_elected = "1892" AND result = "retired to run for the senate democratic hold" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
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,
28406,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
166,
834,
19971,
3274,
96,
2606,
4508,
121,
3430,
741,
3274,
96,
10682,
1271,
12,
661,
21,
8,
3,
7,
35,
342,
15053,
1520,
121,
1,
-100,
-100,
-100,
-100,
-... |
What was the title for episode 2? | CREATE TABLE table_73188 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
) | SELECT "Title" FROM table_73188 WHERE "Episode #" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
25794,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
382,
155,
109,
121,
21680,
953,
834,
4552,
25794,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
1713,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the away team score for the game with a crowd of 5391? | CREATE TABLE table_16388478_4 (
away_team VARCHAR,
crowd VARCHAR
) | SELECT away_team AS score FROM table_16388478_4 WHERE crowd = 5391 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3747,
4608,
3940,
834,
591,
41,
550,
834,
11650,
584,
4280,
28027,
6,
4374,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
372,
2604,
21,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
2938,
3747,
4608,
3940,
834,
591,
549,
17444,
427,
4374,
3274,
12210,
4729,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the release price (USD) for part number hh80557pg0491m? | CREATE TABLE table_name_98 (release_price___usd__ VARCHAR, part_number_s_ VARCHAR) | SELECT release_price___usd__ FROM table_name_98 WHERE part_number_s_ = "hh80557pg0491m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
21019,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
294,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
294,
834,
5525,
1152,
834,
7,
834,
3274,
96,
107,
107,
2079,
755,
3436,
102,
122,
6348,
4729,
51,
121,
1,
... |
How many Played have a Lost smaller than 3, and a Difference of 6, and Points larger than 6? | CREATE TABLE table_name_99 (played VARCHAR, points VARCHAR, lost VARCHAR, difference VARCHAR) | SELECT COUNT(played) FROM table_name_99 WHERE lost < 3 AND difference = "6" AND points > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
4895,
15,
26,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
1750,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1513,
3,
2,
220,
3430,
1750,
3274,
96,
948,
121,
3430,
979,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the oder part number for the model with 10x mult. 1? | CREATE TABLE table_27277284_28 (order_part_number VARCHAR, mult_1 VARCHAR) | SELECT order_part_number FROM table_27277284_28 WHERE mult_1 = "10x" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2555,
5865,
4608,
834,
2577,
41,
9397,
834,
2274,
834,
5525,
1152,
584,
4280,
28027,
6,
980,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
455,
834,
2274,
834,
5525,
1152,
21680,
953,
834,
2555,
2555,
5865,
4608,
834,
2577,
549,
17444,
427,
980,
834,
536,
3274,
96,
1714,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date was the game played when it was located at bells beach? | CREATE TABLE table_41994 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
) | SELECT "Date" FROM table_41994 WHERE "Location" = 'bells beach' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2294,
4240,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
18455,
687,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
2294,
4240,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
7708,
7,
2608,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the status of joon-hyung park ? | CREATE TABLE table_name_58 (
status VARCHAR,
name VARCHAR
) | SELECT status FROM table_name_58 WHERE name = "joon-hyung park 박준형" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2637,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2637,
13,
3,
1927,
106,
18,
107,
63,
425,
2447,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
564,
3274,
96,
1927,
106,
18,
107,
63,
425,
2447,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In the Hamburg Masters Tournament, during which Ji Nov k was absent(A) in 1996, how did he do in 2003? | CREATE TABLE table_7413 (
"Tournament" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text
) | SELECT "2003" FROM table_7413 WHERE "1996" = 'a' AND "Tournament" = 'hamburg masters' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
2368,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
19479,
17395,
1499,
6,
96,
2294,
4314,
121,
1499,
6,
96,
2294,
4327,
121,
1499,
6,
96,
2294,
3916,
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,
23948,
121,
21680,
953,
834,
4581,
2368,
549,
17444,
427,
96,
2294,
4314,
121,
3274,
3,
31,
9,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
1483,
4824,
2325,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many viewers in millions did the Alison McDonald episode get? | CREATE TABLE table_26961951_4 (us_viewers__million_ VARCHAR, written_by VARCHAR) | SELECT us_viewers__million_ FROM table_26961951_4 WHERE written_by = "Alison McDonald" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4314,
2294,
5553,
834,
591,
41,
302,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
178,
834,
4576,
277,
834,
834,
17030,
834,
21680,
953,
834,
2688,
4314,
2294,
5553,
834,
591,
549,
17444,
427,
1545,
834,
969,
3274,
96,
188,
40,
23,
739,
17970,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
st elevation >= 1 mm ( >= 0.1 mv ) in two contiguous limb leads or >= 2 mm ( >= 0.2 mv ) in two contiguous precordial leads | CREATE TABLE table_dev_59 (
"id" int,
"gender" string,
"st_elevation" int,
"tow_contiguous_limb" bool,
"body_weight" float,
"renal_disease" bool,
"estimated_glomerular_filtration_rate_egfr" int,
"two_contiguous_precordial_leads" bool,
"unprotected_left_main_stenosis" int,
"body_m... | SELECT * FROM table_dev_59 WHERE (st_elevation >= 1 AND tow_contiguous_limb = 1) OR (st_elevation >= 2 AND two_contiguous_precordial_leads = 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
3390,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
7,
17,
834,
15,
10912,
257,
121,
16,
17,
6,
96,
17,
2381,
834,
1018,
2880,
13281,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9776,
834,
3390,
549,
17444,
427,
41,
7,
17,
834,
15,
10912,
257,
2490,
2423,
209,
3430,
12,
210,
834,
1018,
2880,
13281,
834,
9577,
3274,
8925,
4674,
41,
7,
17,
834,
15,
10912,
257,
2490,
2... |
How many bronzes for the nation with over 20 total, under 26 golds, and over 0 silvers? | CREATE TABLE table_name_81 (bronze VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR) | SELECT COUNT(bronze) FROM table_name_81 WHERE silver > 0 AND total > 20 AND gold < 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
13711,
776,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
4294,
2490,
3,
632,
3430,
792,
2490,
460,
3430,
2045,
3,
2,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many were in attendance during week 12? | CREATE TABLE table_46885 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_46885 WHERE "Week" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3651,
4433,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
591,
3651,
4433,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of gold medals when the silver is less than 0? | CREATE TABLE table_47309 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Gold") FROM table_47309 WHERE "Silver" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
1458,
1298,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23576,
8512,
21680,
953,
834,
4177,
1458,
1298,
549,
17444,
427,
96,
134,
173,
624,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the incorporated for principal activites of travel agency | CREATE TABLE table_name_73 (
incorporated_in VARCHAR,
principal_activities VARCHAR
) | SELECT incorporated_in FROM table_name_73 WHERE principal_activities = "travel agency" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
3,
10975,
834,
77,
584,
4280,
28027,
6,
3218,
834,
8463,
2197,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
10975,
21,
3218,
581... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10975,
834,
77,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
3218,
834,
8463,
2197,
3274,
96,
25687,
3193,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is fuzzy zoeller's to par? | CREATE TABLE table_name_12 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_12 WHERE player = "fuzzy zoeller" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
235,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
31089,
3,
172,
32,
9670,
31,
7,
12,
260,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1959,
3274,
96,
22845,
4164,
3,
172,
32,
9670,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Event, when Opponent is "Joe Pardo"? | CREATE TABLE table_name_41 (event VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_41 WHERE opponent = "joe pardo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
15,
2169,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8042,
6,
116,
4495,
9977,
19,
96,
683,
32,
15,
2180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
15264,
3274,
96,
1927,
15,
260,
26,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many points did patrick carpentier earn during the 1999 miller lite 225 ? | CREATE TABLE table_204_946 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) | SELECT "points" FROM table_204_946 WHERE "driver" = 'patrick carpentier' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4240,
948,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
381,
6,
96,
29,
32,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
8478,
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,
2700,
7,
121,
21680,
953,
834,
26363,
834,
4240,
948,
549,
17444,
427,
96,
13739,
52,
121,
3274,
3,
31,
4665,
5206,
443,
3208,
3276,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Venue has Attendances of 11,045? | CREATE TABLE table_name_97 (
venue VARCHAR,
attendance VARCHAR
) | SELECT venue FROM table_name_97 WHERE attendance = "11,045" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
5669,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
29940,
65,
22497,
663,
7,
13,
9694,
632,
2128,
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,
5669,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
11364,
3274,
96,
2596,
6,
6348,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the gold number when the total is 8 and bronze is more than 4? | CREATE TABLE table_name_19 (gold INTEGER, total VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_19 WHERE total = 8 AND bronze > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
14910,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2045,
381,
116,
8,
792,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
792,
3274,
505,
3430,
13467,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the 1st round when team 1 is stade lavallois (d2)? | CREATE TABLE table_14201 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
) | SELECT "1st round" FROM table_14201 WHERE "Team 1" = 'stade lavallois (d2)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
22772,
41,
96,
18699,
209,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
1751,
121,
1499,
6,
96,
357,
727,
1751,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
1751,
121,
21680,
953,
834,
2534,
22772,
549,
17444,
427,
96,
18699,
209,
121,
3274,
3,
31,
2427,
221,
50,
2165,
14970,
41,
26,
7318,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)? | CREATE TABLE table_26609958_1 (groundwater_discharge__million_m_3__ INTEGER, hydrographic_basin VARCHAR) | SELECT MIN(groundwater_discharge__million_m_3__) FROM table_26609958_1 WHERE hydrographic_basin = "Cabarita River" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3328,
3264,
3449,
834,
536,
41,
9232,
3552,
834,
26,
159,
7993,
834,
834,
17030,
834,
51,
834,
519,
834,
834,
3,
21342,
17966,
6,
7668,
14797,
834,
4883,
77,
584,
428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
9232,
3552,
834,
26,
159,
7993,
834,
834,
17030,
834,
51,
834,
519,
834,
834,
61,
21680,
953,
834,
2688,
3328,
3264,
3449,
834,
536,
549,
17444,
427,
7668,
14797,
834,
4883,
77,
3274,
96,
254,
8699,
... |
Investment income of 2%, and an other income sources of 3%, and an employment (salaries & wages) of 71% involves which self employed? | CREATE TABLE table_35401 (
"Region" text,
"Employment ( salaries & wages)" text,
"Self employed" text,
"Investment income" text,
"Working tax credit" text,
"State pensions" text,
"Occupational pensions" text,
"Disability benefits" text,
"Other social security benefits" text,
"Oth... | SELECT "Self employed" FROM table_35401 WHERE "Investment income" = '2%' AND "Other income sources" = '3%' AND "Employment ( salaries & wages)" = '71%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
20016,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
427,
51,
7379,
63,
297,
41,
21331,
3,
184,
15488,
61,
121,
1499,
6,
96,
134,
10386,
8152,
121,
1499,
6,
96,
13898,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
10386,
8152,
121,
21680,
953,
834,
2469,
20016,
549,
17444,
427,
96,
13898,
297,
2055,
121,
3274,
3,
31,
5406,
31,
3430,
96,
667,
189,
49,
2055,
2836,
121,
3274,
3,
31,
5170,
31,
3430,
96,
427,
51,
7379,
... |
count the number of patients whose days of hospital stay is greater than 27 and lab test name is albumin, body fluid? | 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "27" AND lab.label = "Albumin, Body Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the empowering legislation where the responsible minister is broadcasting and the category is ace ? | CREATE TABLE table_204_988 (
id number,
"responsible minister(s)" text,
"crown entities" text,
"monitoring department(s)" text,
"category / type" text,
"empowering legislation" text
) | SELECT "empowering legislation" FROM table_204_988 WHERE "responsible minister(s)" = 'broadcasting' AND "category / type" = 'ace' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3916,
927,
41,
3,
23,
26,
381,
6,
96,
60,
7,
5041,
7,
2317,
6323,
599,
7,
61,
121,
1499,
6,
96,
75,
3623,
29,
12311,
121,
1499,
6,
96,
8823,
235,
1007,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23988,
6704,
121,
21680,
953,
834,
26363,
834,
3916,
927,
549,
17444,
427,
96,
60,
7,
5041,
7,
2317,
6323,
599,
7,
61,
121,
3274,
3,
31,
115,
8635,
5254,
53,
31,
3430,
96,
8367,
839,
651,
3,
87,
686,
121,
... |
What's the highest reign on march 10, 2007? | CREATE TABLE table_name_66 (reign INTEGER, date VARCHAR) | SELECT MAX(reign) FROM table_name_66 WHERE date = "march 10, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
60,
3191,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2030,
17367,
30,
10556,
10372,
4101,
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,
60,
3191,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
833,
3274,
96,
51,
7064,
10372,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the chassis for tyre of g and carlos reutemann | CREATE TABLE table_58177 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
) | SELECT "Chassis" FROM table_58177 WHERE "Tyre" = 'g' AND "Driver" = 'carlos reutemann' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
26793,
41,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3541,
6500,
7,
121,
21680,
953,
834,
3449,
26793,
549,
17444,
427,
96,
382,
63,
60,
121,
3274,
3,
31,
122,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
1720,
2298,
3,
60,
2810,
2434,
31,
1,
-100,
-100,
-100,
... |
How many branches where have more than average number of memberships are there? | CREATE TABLE branch (membership_amount INTEGER) | SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6421,
41,
12066,
2009,
834,
9,
11231,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9678,
213,
43,
72,
145,
1348,
381,
13,
4757,
7,
33,
132,
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,
2847,
17161,
599,
1935,
61,
21680,
6421,
549,
17444,
427,
4757,
834,
9,
11231,
2490,
41,
23143,
14196,
71,
17217,
599,
12066,
2009,
834,
9,
11231,
61,
21680,
6421,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the greatest number of losses a team that played fewer than 25 games in 2010 had? | CREATE TABLE table_name_87 (
losses INTEGER,
games VARCHAR,
season VARCHAR
) | SELECT MAX(losses) FROM table_name_87 WHERE games < 25 AND season = "2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
8467,
3,
21342,
17966,
6,
1031,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4016,
381,
13,
8467,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1031,
3,
2,
944,
3430,
774,
3274,
96,
14926,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what team was the visitor in the chicago game | CREATE TABLE table_name_33 (visitor VARCHAR, home VARCHAR) | SELECT visitor FROM table_name_33 WHERE home = "chicago" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
3466,
155,
127,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
372,
47,
8,
7019,
16,
8,
8780,
9,
839,
467,
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,
7019,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
234,
3274,
96,
1436,
658,
839,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the competition that occured on 27 July 2004? | CREATE TABLE table_name_98 (
competition VARCHAR,
date VARCHAR
) | SELECT competition FROM table_name_98 WHERE date = "27 july 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
2259,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2259,
24,
4093,
15,
26,
30,
2307,
1718,
4406,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
833,
3274,
96,
2555,
3,
2047,
120,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which customer is associated with the latest policy? | CREATE TABLE policies (
policy_id number,
customer_id number,
policy_type_code text,
start_date time,
end_date time
)
CREATE TABLE claims_processing_stages (
claim_stage_id number,
next_claim_stage_id number,
claim_status_name text,
claim_status_description text
)
CREATE TABLE clai... | SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT MAX(start_date) FROM policies) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3101,
41,
1291,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
1291,
834,
6137,
834,
4978,
1499,
6,
456,
834,
5522,
97,
6,
414,
834,
5522,
97,
3,
61,
3,
32102,
32103,
32102,
205,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
4416,
25697,
49,
834,
221,
5756,
7,
21680,
3101,
6157,
3,
17,
536,
3,
15355,
3162,
722,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
25697,
49,
834,
23,
26,
549,
17444... |
What day was the visitor Chicago Black Hawks and the record 0-2? | CREATE TABLE table_13207 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Date" FROM table_13207 WHERE "Visitor" = 'chicago black hawks' AND "Record" = '0-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
26426,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
2368,
26426,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
1436,
658,
839,
1001,
3,
14400,
7,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
632,
4949,
31,
1,
-100,
... |
When lake oval is the venue, what's the score of the home team? | CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_4 WHERE venue = "lake oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
6957,
17986,
19,
8,
5669,
6,
125,
31,
7,
8,
2604,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
5669,
3274,
96,
16948,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fewest Points that has Willie Heston as Player and less than 3 as Touchdowns? | CREATE TABLE table_name_12 (points INTEGER, player VARCHAR, touchdowns VARCHAR) | SELECT MIN(points) FROM table_name_12 WHERE player = "willie heston" AND touchdowns < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
2700,
7,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
19396,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
360,
222,
4564,
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,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1959,
3274,
96,
8894,
23,
15,
3,
88,
4411,
121,
3430,
19396,
7,
3,
2,
220,
1,
-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.