NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What stadium was the December 29, 2008 game played at? | CREATE TABLE table_name_95 (stadium VARCHAR, date VARCHAR) | SELECT stadium FROM table_name_95 WHERE date = "december 29, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
2427,
12925,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
14939,
47,
8,
1882,
14405,
2628,
467,
1944,
44,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
14405,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose gender is m and diagnoses long title is unspecified procedure as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Unspecified procedure as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time ... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the first number in series that had the production code 1ACX03? | CREATE TABLE table_14724369_1 (no_in_series INTEGER, production_code VARCHAR) | SELECT MAX(no_in_series) FROM table_14724369_1 WHERE production_code = "1ACX03" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
27730,
3951,
834,
536,
41,
29,
32,
834,
77,
834,
10833,
7,
3,
21342,
17966,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
166,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
24719,
27730,
3951,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
536,
5173,
4,
4928,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which To Par has a Money ($) of 350, and a Player of henry picard? | CREATE TABLE table_name_69 (
to_par VARCHAR,
money___$__ VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_69 WHERE money___$__ = 350 AND player = "henry picard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
12,
834,
1893,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
3274,
10239,
3430,
1959,
3274,
96,
3225,
651,
6686,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the pick number of the player from Springfield Olympics (Nejhl)? | CREATE TABLE table_1013129_3 (pick VARCHAR, college_junior_club_team VARCHAR) | SELECT pick FROM table_1013129_3 WHERE college_junior_club_team = "Springfield Olympics (NEJHL)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2368,
22174,
834,
519,
41,
17967,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
21680,
953,
834,
1714,
2368,
22174,
834,
519,
549,
17444,
427,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
3274,
96,
14562,
53,
1846,
17793,
41,
4171,
683,
13641,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the agg for team 2 of asl sport guyanais. | CREATE TABLE table_name_34 (
agg VARCHAR,
team_2 VARCHAR
) | SELECT agg FROM table_name_34 WHERE team_2 = "asl sport guyanais" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
3,
9,
4102,
584,
4280,
28027,
6,
372,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
9,
4102,
21,
372,
204,
13,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9,
4102,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
372,
834,
357,
3274,
96,
9,
7,
40,
2600,
4024,
152,
9,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What type is the settlement of Lok? | CREATE TABLE table_2562572_19 (type VARCHAR, settlement VARCHAR) | SELECT type FROM table_2562572_19 WHERE settlement = "Lok" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
2294,
41,
6137,
584,
4280,
28027,
6,
7025,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
686,
19,
8,
7025,
13,
19863,
58,
3,
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,
686,
21680,
953,
834,
19337,
1828,
5865,
834,
2294,
549,
17444,
427,
7025,
3274,
96,
434,
1825,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was the week 10 game? | CREATE TABLE table_name_89 (
date VARCHAR,
week VARCHAR
) | SELECT date FROM table_name_89 WHERE week = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
833,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
471,
335,
467,
58,
1,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
471,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the next highest mountain peak after north palisade ? | CREATE TABLE table_204_25 (
id number,
"rank" number,
"mountain peak" text,
"mountain range" text,
"elevation" text,
"prominence" text,
"isolation" text,
"location" text
) | SELECT "mountain peak" FROM table_204_25 WHERE "rank" = (SELECT "rank" FROM table_204_25 WHERE "mountain peak" = 'north palisade') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1828,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
11231,
9,
77,
6734,
121,
1499,
6,
96,
11231,
9,
77,
620,
121,
1499,
6,
96,
15,
10912,
257,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11231,
9,
77,
6734,
121,
21680,
953,
834,
26363,
834,
1828,
549,
17444,
427,
96,
6254,
121,
3274,
41,
23143,
14196,
96,
6254,
121,
21680,
953,
834,
26363,
834,
1828,
549,
17444,
427,
96,
11231,
9,
77,
6734,
121,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of hire_date and the sum of department_id bin hire_date by time, order in asc by the sum department id. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEP... | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(DEPARTMENT_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
5... |
What is the Result with a Date with 22 january 2008? | CREATE TABLE table_11128 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_11128 WHERE "Date" = '22 january 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
2577,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
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,
20119,
121,
21680,
953,
834,
15866,
2577,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2884,
3,
7066,
76,
1208,
2628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the official 4+ rating of the episode with a 16-39 share of 24,59%? | CREATE TABLE table_74429 (
"Date" text,
"Episode" real,
"Official rating 4+" text,
"Share 4+" text,
"Official rating 16-39" text,
"Share 16-39" text
) | SELECT "Official rating 4+" FROM table_74429 WHERE "Share 16-39" = '24,59%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
591,
3166,
41,
96,
308,
342,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
667,
89,
22816,
5773,
314,
1220,
121,
1499,
6,
96,
24501,
314,
1220,
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,
667,
89,
22816,
5773,
314,
1220,
121,
21680,
953,
834,
4581,
591,
3166,
549,
17444,
427,
96,
24501,
898,
18,
3288,
121,
3274,
3,
31,
357,
26392,
7561,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Visualize a bar chart for simply displaying the email address of the employee and the corresponding salary, and order in desc by the X please. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE T... | SELECT EMAIL, SALARY FROM employees ORDER BY EMAIL DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20211,
3502,
6,
180,
4090,
24721,
21680,
1652,
4674,
11300,
272,
476,
3,
20211,
3502,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of courses offered by Psychology department in each year with a line chart, and could you order X in ascending order? | CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
st... | SELECT year, COUNT(year) FROM course AS T1 JOIN section AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
740,
3,
4331,
4059,
599,
1808,
201,
1487,
206,
17552,
599,
2122,
6,
7318,
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,
215,
6,
2847,
17161,
599,
1201,
61,
21680,
503,
6157,
332,
536,
3,
15355,
3162,
1375,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
549,
17444,
427,
332,
5411,
26,
6707,
... |
What is the Money of the Player in Place 5? | CREATE TABLE table_76989 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT SUM("Money ( $ )") FROM table_76989 WHERE "Place" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3951,
3914,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
9168,
15,
63,
41,
1514,
3,
61,
8512,
21680,
953,
834,
940,
3951,
3914,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the date of natural cause situation? | CREATE TABLE table_name_12 (
date VARCHAR,
circumstances VARCHAR
) | SELECT date FROM table_name_12 WHERE circumstances = "natural cause" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
833,
584,
4280,
28027,
6,
4616,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
793,
1137,
1419,
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,
833,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
4616,
3274,
96,
14884,
1137,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Country has a Director of 2007? | CREATE TABLE table_name_43 (country VARCHAR, director_s_ VARCHAR) | SELECT country FROM table_name_43 WHERE director_s_ = "2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
17529,
584,
4280,
28027,
6,
2090,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6993,
65,
3,
9,
2578,
13,
4101,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
2090,
834,
7,
834,
3274,
96,
20615,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List the dates of enrollment and completion of the student with family name 'Zieme' and personal name 'Bernie'. | CREATE TABLE Student_Course_Enrolment (
date_of_enrolment VARCHAR,
date_of_completion VARCHAR,
student_id VARCHAR
)
CREATE TABLE Students (
student_id VARCHAR,
family_name VARCHAR,
personal_name VARCHAR
) | SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = "Zieme" AND T2.personal_name = "Bernie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
41,
833,
834,
858,
834,
35,
3491,
297,
584,
4280,
28027,
6,
833,
834,
858,
834,
7699,
109,
1575,
584,
4280,
28027,
6,
1236,
834,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
5522,
834,
858,
834,
35,
3491,
297,
6,
332,
5411,
5522,
834,
858,
834,
7699,
109,
1575,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
536,
3,
15355,
3162,
4375,
6157,
332,
357,
9191,
... |
how many singles were released at least as early as 2009 ? | CREATE TABLE table_204_365 (
id number,
"year" number,
"single" text,
"chart positions\nusa billboard hot dance club play" number,
"chart positions\npolish charts" number,
"album" text
) | SELECT COUNT("single") FROM table_204_365 WHERE "year" <= 2009 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
10402,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
7,
53,
109,
121,
1499,
6,
96,
4059,
17,
4655,
2,
29,
302,
9,
2876,
1976,
1312,
2595,
1886,
577,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
53,
109,
8512,
21680,
953,
834,
26363,
834,
10402,
549,
17444,
427,
96,
1201,
121,
3,
2,
2423,
2464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the record for black knights points 54 | CREATE TABLE table_21092444_1 (
record VARCHAR,
black_knights_points VARCHAR
) | SELECT record FROM table_21092444_1 WHERE black_knights_points = 54 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
17304,
2266,
3628,
834,
536,
41,
1368,
584,
4280,
28027,
6,
1001,
834,
157,
7602,
7,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
357,
17304,
2266,
3628,
834,
536,
549,
17444,
427,
1001,
834,
157,
7602,
7,
834,
2700,
7,
3274,
10630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many devices are there? | CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version text,
applications text,
software_platform text
)
CREATE TABLE stock (
shop_id number... | SELECT COUNT(*) FROM device | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1814,
41,
1814,
834,
23,
26,
381,
6,
1814,
834,
4350,
1499,
6,
1128,
1499,
6,
539,
834,
5522,
1499,
6,
539,
834,
1201,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many seasons have an Actual adjusted record of 0 19? | CREATE TABLE table_33482 (
"Season" real,
"Coach" text,
"Record as played" text,
"Actual adjusted record" text,
"Regular season Vacated" text
) | SELECT COUNT("Season") FROM table_33482 WHERE "Actual adjusted record" = '0–19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
3707,
357,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
3881,
1836,
121,
1499,
6,
96,
1649,
7621,
38,
1944,
121,
1499,
6,
96,
23312,
3471,
13108,
1368,
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,
2847,
17161,
599,
121,
134,
15,
9,
739,
8512,
21680,
953,
834,
4201,
3707,
357,
549,
17444,
427,
96,
23312,
3471,
13108,
1368,
121,
3274,
3,
31,
632,
104,
2294,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Use a bar chart to show the number of delegates in each county, and order from low to high by the total number. | CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
... | SELECT County_name, COUNT(County_name) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY County_name ORDER BY COUNT(County_name) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
834,
4309,
16,
17,
6,
2929,
490,
6,
3450,
1499,
6,
10510,
1499,
6,
30943,
834,
27304,
127,
1499,
6,
4961,
17,
4046,
49,
1499,
6,
10154,
834,
20857,
1499,
6,
837,
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,
1334,
834,
4350,
6,
2847,
17161,
599,
10628,
63,
834,
4350,
61,
21680,
5435,
6157,
332,
536,
3,
15355,
3162,
4356,
6157,
332,
357,
9191,
332,
5411,
10628,
63,
834,
196,
26,
3274,
332,
4416,
308,
23,
20066,
350,
4630... |
What is Opening, when White is Kramnik, when Year is less than 2001, and when Tournament is 'Siemens Giants'? | CREATE TABLE table_name_77 (
opening VARCHAR,
tournament VARCHAR,
white VARCHAR,
year VARCHAR
) | SELECT opening FROM table_name_77 WHERE white = "kramnik" AND year < 2001 AND tournament = "siemens giants" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
2101,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
6,
872,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
2101,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
872,
3274,
96,
157,
2375,
4953,
121,
3430,
215,
3,
2,
4402,
3430,
5892,
3274,
96,
2452,
904,
7,
6079,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients whose admission location is clinic referral/premature and admission year is less than 2124? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.admityear < "2124" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
254,
20931,
4666,
4083,
20805,
21415,
87,
5554,
20211,
25380,
1... |
Which events id does not have any participant with detail 'Kenyatta Kuhn'? | CREATE TABLE events (
event_id number,
service_id number,
event_details text
)
CREATE TABLE participants (
participant_id number,
participant_type_code text,
participant_details text
)
CREATE TABLE participants_in_events (
event_id number,
participant_id number
)
CREATE TABLE services... | SELECT event_id FROM events EXCEPT SELECT T1.event_id FROM participants_in_events AS T1 JOIN participants AS T2 ON T1.participant_id = T2.participant_id WHERE participant_details = 'Kenyatta Kuhn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
984,
41,
605,
834,
23,
26,
381,
6,
313,
834,
23,
26,
381,
6,
605,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3008,
41,
8344,
834,
23,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
605,
834,
23,
26,
21680,
984,
262,
4,
30416,
3,
23143,
14196,
332,
5411,
15,
2169,
834,
23,
26,
21680,
3008,
834,
77,
834,
15,
2169,
7,
6157,
332,
536,
3,
15355,
3162,
3008,
6157,
332,
357,
9191,
332,
5411,
2274,
... |
Who was the artist for Spoofed title Genteel Ben in an issue later than 74? | CREATE TABLE table_42688 (
"Spoofed Title" text,
"Writer" text,
"Artist" text,
"Issue" real,
"Date" text
) | SELECT "Artist" FROM table_42688 WHERE "Issue" > '74' AND "Spoofed Title" = 'genteel ben' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2688,
4060,
41,
96,
134,
18450,
19565,
11029,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
196,
7,
7,
76,
15,
121,
490,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7754,
343,
121,
21680,
953,
834,
591,
2688,
4060,
549,
17444,
427,
96,
196,
7,
7,
76,
15,
121,
2490,
3,
31,
4581,
31,
3430,
96,
134,
18450,
19565,
11029,
121,
3274,
3,
31,
5560,
15,
15,
40,
36,
29,
31,
1,
... |
What category was Kasautii Zindagii Kay nominated for after 2005? | CREATE TABLE table_name_20 (
category VARCHAR,
year VARCHAR,
for_the_show VARCHAR
) | SELECT category FROM table_name_20 WHERE year > 2005 AND for_the_show = "kasautii zindagii kay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
3295,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
21,
834,
532,
834,
10049,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3295,
47,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3295,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
215,
2490,
3105,
3430,
21,
834,
532,
834,
10049,
3274,
96,
1258,
7348,
17,
23,
23,
3,
7196,
26,
6623,
23,
3,
18075,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the 2010 for tournament of us open | CREATE TABLE table_name_95 (
tournament VARCHAR
) | SELECT 2010 FROM table_name_95 WHERE tournament = "us open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2735,
21,
5892,
13,
178,
539,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2735,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
5892,
3274,
96,
302,
539,
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 method against Bj rn Bregy? | CREATE TABLE table_name_29 (
method VARCHAR,
opponent VARCHAR
) | SELECT method FROM table_name_29 WHERE opponent = "björn bregy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
1573,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1573,
581,
272,
354,
3,
52,
29,
3004,
122,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
15264,
3274,
96,
115,
354,
4446,
29,
3,
1999,
122,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lab test abnormal status of Paul Edwards? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT lab.flag FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Paul Edwards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7690,
5,
89,
5430,
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,
427,
14798,
5,
4350,
3274,
96,
23183,
8200,
7,
121,
1,
... |
What was the final score in a 2002 fifa world cup qualification that was less than 10? | CREATE TABLE table_15247 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_15247 WHERE "Competition" = '2002 fifa world cup qualification' AND "Goal" < '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
4177,
41,
96,
6221,
138,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
26320,
4177,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
24898,
361,
89,
9,
296,
4119,
15513,
31,
3430,
96,
6221,
138,
121,
3,
2,
3,
31,
1714,
31,
1,
-100,
-100,
-10... |
What shows for nationality when there is a rank larger than 6, and a Time of 2:14.95? | CREATE TABLE table_name_52 (
nationality VARCHAR,
rank VARCHAR,
time VARCHAR
) | SELECT nationality FROM table_name_52 WHERE rank > 6 AND time = "2:14.95" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
1157,
485,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
21,
1157,
485,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
11003,
2490,
431,
3430,
97,
3274,
96,
357,
10,
2534,
5,
3301,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the nominee of best musical | CREATE TABLE table_75509 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT "Nominee" FROM table_75509 WHERE "Category" = 'best musical' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
1752,
1298,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
8695,
15,
121,
1499,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
4168,
8695,
15,
121,
21680,
953,
834,
3072,
1752,
1298,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
9606,
4183,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For numbers of 2600-2825 (223 buses), what is the length? | CREATE TABLE table_55003 (
"Year" text,
"Make & Model" text,
"Length" text,
"Engine Type" text,
"Numbers" text
) | SELECT "Length" FROM table_55003 WHERE "Numbers" = '2600-2825 (223 buses)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17147,
4928,
41,
96,
476,
2741,
121,
1499,
6,
96,
22638,
3,
184,
5154,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
31477,
6632,
121,
1499,
6,
96,
567,
5937,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4606,
189,
121,
21680,
953,
834,
17147,
4928,
549,
17444,
427,
96,
567,
5937,
277,
121,
3274,
3,
31,
18365,
9498,
2577,
1828,
4743,
2773,
14264,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many candidates with result being new seat democratic gain | CREATE TABLE table_1341604_10 (candidates VARCHAR, result VARCHAR) | SELECT COUNT(candidates) FROM table_1341604_10 WHERE result = "New seat Democratic gain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
1714,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
4341,
28,
741,
271,
126,
3143,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1608,
12416,
6203,
61,
21680,
953,
834,
23747,
19129,
591,
834,
1714,
549,
17444,
427,
741,
3274,
96,
6861,
3143,
10021,
2485,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the stage winner when the start of stage is Cauterets? | CREATE TABLE table_13564 (
"Year" real,
"Stage" real,
"Start of stage" text,
"Distance (km)" text,
"Category of climb" text,
"Stage winner" text,
"Yellow jersey" text
) | SELECT "Stage winner" FROM table_13564 WHERE "Start of stage" = 'cauterets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2469,
4389,
41,
96,
476,
2741,
121,
490,
6,
96,
134,
6505,
121,
490,
6,
96,
7681,
17,
13,
1726,
121,
1499,
6,
96,
308,
23,
8389,
41,
5848,
61,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
6505,
4668,
121,
21680,
953,
834,
536,
2469,
4389,
549,
17444,
427,
96,
7681,
17,
13,
1726,
121,
3274,
3,
31,
658,
10525,
15,
17,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of each aircraft and how many flights does each one complete Show bar chart, and sort by the Y in descending please. | CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE employee (
ei... | SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
89,
40,
29,
32,
381,
599,
8525,
632,
201,
5233,
3,
4331,
4059,
357,
599,
1755,
201,
3954,
3,
4331,
4059,
357,
599,
1755,
201,
2357,
381,
599,
11071,
632,
201,
12028,
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,
564,
6,
2847,
17161,
599,
1935,
61,
21680,
3777,
6157,
332,
536,
3,
15355,
3162,
6442,
6157,
332,
357,
9191,
332,
5411,
6146,
3274,
332,
4416,
6146,
350,
4630,
6880,
272,
476,
332,
5411,
6146,
4674,
11300,
272,
476,
... |
Which Year did not qualify for Playoffs, and had a Division smaller than 3? | CREATE TABLE table_name_97 (the_year INTEGER, playoffs VARCHAR, division VARCHAR) | SELECT SUM(the_year) FROM table_name_97 WHERE playoffs = "did not qualify" AND division < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
532,
834,
1201,
3,
21342,
17966,
6,
15289,
7,
584,
4280,
28027,
6,
4889,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
410,
59,
9448,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
532,
834,
1201,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
15289,
7,
3274,
96,
12416,
59,
9448,
121,
3430,
4889,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Visitor of the game on December 25? | CREATE TABLE table_name_26 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_26 WHERE date = "december 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
3466,
155,
127,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4957,
127,
13,
8,
467,
30,
1882,
944,
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,
7019,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the nationality of the player with a score of 72-72-67=211? | CREATE TABLE table_name_38 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_38 WHERE score = 72 - 72 - 67 = 211 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
17529,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1157,
485,
13,
8,
1959,
28,
3,
9,
2604,
13,
9455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
2604,
3274,
9455,
3,
18,
9455,
3,
18,
3,
3708,
3274,
3,
27278,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
when did patient 002-76184 for the first time have an intake? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-76184')) AND intakeoutput.cellpath LIKE '%intake%... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11963,
670,
2562,
5,
77,
4914,
670,
2562,
715,
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... |
What is the earliest year where the mintage (proof) is 25,000? | CREATE TABLE table_11916083_1 (
year INTEGER,
mintage__proof_ VARCHAR
) | SELECT MIN(year) FROM table_11916083_1 WHERE mintage__proof_ = "25,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
19129,
4591,
834,
536,
41,
215,
3,
21342,
17966,
6,
13983,
545,
834,
834,
8592,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
19993,
19129,
4591,
834,
536,
549,
17444,
427,
13983,
545,
834,
834,
8592,
834,
3274,
96,
24338,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
there are in tobago species name helicops angulatus | CREATE TABLE table_1850282_5 (tobago VARCHAR, species VARCHAR) | SELECT tobago FROM table_1850282_5 WHERE species = "Helicops angulatus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
4305,
4613,
834,
755,
41,
235,
7893,
32,
584,
4280,
28027,
6,
3244,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
132,
33,
16,
12,
7893,
32,
3244,
564,
3,
178... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
7893,
32,
21680,
953,
834,
21594,
4305,
4613,
834,
755,
549,
17444,
427,
3244,
3274,
96,
3845,
2176,
9280,
46,
6106,
144,
302,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Yards has a Long smaller than 3? | CREATE TABLE table_name_2 (yards INTEGER, long INTEGER) | SELECT AVG(yards) FROM table_name_2 WHERE long < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
6636,
7,
3,
21342,
17966,
6,
307,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
16093,
7,
65,
3,
9,
3230,
2755,
145,
220,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
6636,
7,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
307,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Place, when the Score is 68-70-71=209? | CREATE TABLE table_41295 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_41295 WHERE "Score" = '68-70-71=209' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
3301,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
591,
2122,
3301,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3651,
18,
2518,
18,
4450,
2423,
357,
4198,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Event, when Date is "19 December 2009"? | CREATE TABLE table_name_6 (event VARCHAR, date VARCHAR) | SELECT event FROM table_name_6 WHERE date = "19 december 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
15,
2169,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8042,
6,
116,
7678,
19,
96,
2294,
1882,
2464,
121,
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,
605,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
833,
3274,
96,
2294,
20,
75,
18247,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the name of enzymes in descending lexicographical order. | CREATE TABLE enzyme (name VARCHAR) | SELECT name FROM enzyme ORDER BY name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15735,
41,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
564,
13,
15735,
7,
16,
3,
30960,
3,
30949,
32,
16982,
455,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
15735,
4674,
11300,
272,
476,
564,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
WHAT COUNTRY HAS A T7 PLACE, WITH IAN WOOSNAM? | CREATE TABLE table_name_13 (
country VARCHAR,
place VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_13 WHERE place = "t7" AND player = "ian woosnam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
2847,
17161,
11824,
454,
3291,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
286,
3274,
96,
17,
940,
121,
3430,
1959,
3274,
96,
23,
152,
3,
14952,
7,
13363,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many runners-up with nation being india | CREATE TABLE table_12303563_2 (
runners_up VARCHAR,
nation VARCHAR
) | SELECT COUNT(runners_up) FROM table_12303563_2 WHERE nation = "India" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
1458,
2469,
3891,
834,
357,
41,
16448,
834,
413,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
16448,
18,
413,
28,
2982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10806,
7,
834,
413,
61,
21680,
953,
834,
2122,
1458,
2469,
3891,
834,
357,
549,
17444,
427,
2982,
3274,
96,
22126,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what City/State did the ATCC Round 4 series take place? | CREATE TABLE table_name_62 (city___state VARCHAR, series VARCHAR) | SELECT city___state FROM table_name_62 WHERE series = "atcc round 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
6726,
834,
834,
834,
5540,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
896,
87,
134,
4748,
410,
8,
8043,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
834,
834,
834,
5540,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
939,
3274,
96,
144,
75,
75,
1751,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many stores are headquarted in each city Plot them as bar chart, and show in descending by the y axis please. | CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
)
CREATE TABLE store_district (
Store_ID int,
District_ID int
)
CREATE TABLE store (
Store_ID ... | SELECT Headquartered_City, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.Store_ID = t2.Store_ID JOIN district AS t3 ON t2.District_ID = t3.District_ID GROUP BY t3.Headquartered_City ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1078,
834,
15892,
41,
4493,
834,
4309,
16,
17,
6,
6246,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3939,
41,
3570,
834,
4309,
16,
17,
6,
3570,
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,
3642,
19973,
15,
26,
834,
254,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
1078,
6157,
3,
17,
536,
3,
15355,
3162,
1078,
834,
26,
23,
20066,
6157,
3,
17,
357,
9191,
3,
17,
5411,
28719,
834,
4309,
3274,
3,
17,
441... |
does ras bodik publish a lot ? | CREATE TABLE field (
fieldid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid ... | SELECT COUNT(paper.paperid) FROM author, paper, writes WHERE author.authorname = 'ras bodik' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1057,
41,
1057,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
41,
1040,
23,
26,
16,
17,
6,
2233,
3,
4331,
4059,
6,
5669,
23,
26,
16,
17,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
19587,
5,
19587,
23,
26,
61,
21680,
2291,
6,
1040,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
52,
9,
7,
23322,
157,
31,
3430,
11858,
5,
17415,
23,
26,
3274,
2291,
5,
17415,
2... |
What is the earliest year a chassis of ferrari 312t and results of 31 points occurred? | CREATE TABLE table_57184 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" text
) | SELECT MIN("Year") FROM table_57184 WHERE "Chassis" = 'ferrari 312t' AND "Points" = '31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
25987,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
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,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3436,
25987,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
1010,
52,
1665,
220,
2122,
17,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
3341,
31,
1,
-100... |
What was the final score for the match where Hereford United was the home team? | CREATE TABLE table_50149 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_50149 WHERE "Home team" = 'hereford united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
24816,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,
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,
134,
9022,
121,
21680,
953,
834,
1752,
24816,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
88,
60,
2590,
18279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many years have an accolade of 50 best albums of the year, with #3 as the rank? | CREATE TABLE table_name_6 (
year INTEGER,
accolade VARCHAR,
rank VARCHAR
) | SELECT SUM(year) FROM table_name_6 WHERE accolade = "50 best albums of the year" AND rank = "#3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
215,
3,
21342,
17966,
6,
30022,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
43,
46,
30022,
13,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
30022,
3274,
96,
1752,
200,
14234,
13,
8,
215,
121,
3430,
11003,
3274,
96,
4663,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose death status is 0 and days of hospital stay is greater than 23? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.days_stay > "23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
632,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
96,... |
What is the tournament on July 29 hosted by SK Brann? | CREATE TABLE table_37343 (
"Date" text,
"Host" text,
"Agg." text,
"Visitor" text,
"Ground" text,
"Attendance" real,
"Tournament" text
) | SELECT "Tournament" FROM table_37343 WHERE "Host" = 'sk brann' AND "Date" = 'july 29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
3710,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
517,
7775,
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,
382,
1211,
20205,
17,
121,
21680,
953,
834,
4118,
3710,
519,
549,
17444,
427,
96,
566,
3481,
121,
3274,
3,
31,
7,
157,
3858,
29,
29,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2047,
120,
2838,
31,
1,
-100,
... |
What is the rank when there are more than 107 laps and the qual is 137.825? | CREATE TABLE table_name_26 (rank VARCHAR, laps VARCHAR, qual VARCHAR) | SELECT rank FROM table_name_26 WHERE laps > 107 AND qual = "137.825" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
6254,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
3,
11433,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
116,
132,
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,
11003,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
14941,
7,
2490,
3,
18057,
3430,
3,
11433,
3274,
96,
24636,
5,
4613,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the EU status of ESP? | CREATE TABLE table_72486 (
"N" real,
"P" text,
"Name" text,
"EU" text,
"Country" text,
"Age" real,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" text,
"Transfer fee" text,
"Source" text
) | SELECT "EU" FROM table_72486 WHERE "Country" = 'ESP' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2266,
3840,
41,
96,
567,
121,
490,
6,
96,
345,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
12062,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
188,
397,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12062,
121,
21680,
953,
834,
940,
2266,
3840,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
26130,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List all car plates in the capital of Wilno since the year of 1937. | CREATE TABLE table_11654169_1 (car_plates__since_1937_ VARCHAR, capital VARCHAR) | SELECT car_plates__since_1937_ FROM table_11654169_1 WHERE capital = "Wilno" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
5062,
27096,
834,
536,
41,
1720,
834,
17628,
7,
834,
834,
27296,
834,
2294,
4118,
834,
584,
4280,
28027,
6,
1784,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
443,
834,
17628,
7,
834,
834,
27296,
834,
2294,
4118,
834,
21680,
953,
834,
20159,
5062,
27096,
834,
536,
549,
17444,
427,
1784,
3274,
96,
518,
173,
29,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the highest year with rank of 22 and accolade of singles of 1999 | CREATE TABLE table_10642 (
"Publication" text,
"Country" text,
"Accolade" text,
"Year" real,
"Rank" text
) | SELECT MAX("Year") FROM table_10642 WHERE "Accolade" = 'singles of 1999' AND "Rank" = '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
4165,
41,
96,
30931,
257,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
19543,
32,
14712,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
22557,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
16431,
4165,
549,
17444,
427,
96,
19543,
32,
14712,
121,
3274,
3,
31,
7,
53,
965,
13,
5247,
31,
3430,
96,
22557,
121,
3274,
3,
31,
2884,
31,
1,
-100,
-100,
-1... |
what is the number of patients whose gender is f and primary disease is transient ischemic attack? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "TRANSIENT ISCHEMIC ATTACK" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
11359,
7369,
196,
6431,... |
Which Opponent is on april 28? | CREATE TABLE table_name_19 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_19 WHERE date = "april 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
19,
30,
3,
9,
2246,
40,
2059,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the last year árni þór hallgrímsson drífa harðardóttir won mixed doubles | CREATE TABLE table_14903999_1 (year INTEGER, mixed_doubles VARCHAR) | SELECT MAX(year) FROM table_14903999_1 WHERE mixed_doubles = "Árni Þór Hallgrímsson Drífa Harðardóttir" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
4928,
19446,
834,
536,
41,
1201,
3,
21342,
17966,
6,
4838,
834,
25761,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
336,
215,
3,
2975,
52,
29,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
24816,
4928,
19446,
834,
536,
549,
17444,
427,
4838,
834,
25761,
7,
3274,
96,
2,
52,
29,
23,
3,
2,
4922,
52,
2501,
122,
52,
2,
51,
7,
739,
707,
2,
89,
9,
3504,
2,
986... |
What is the assembled date of the parliament elected in 1620/21? | CREATE TABLE table_name_47 (assembled VARCHAR, elected VARCHAR) | SELECT assembled FROM table_name_47 WHERE elected = "1620/21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
15222,
26,
584,
4280,
28027,
6,
8160,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17583,
833,
13,
8,
20417,
8160,
16,
898,
1755,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
17583,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
8160,
3274,
96,
2938,
1755,
87,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average Year with a Veritas rs chassis and more than 0 points? | CREATE TABLE table_15422 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT AVG("Year") FROM table_15422 WHERE "Chassis" = 'veritas rs' AND "Points" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
2884,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
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,
71,
17217,
599,
121,
476,
2741,
8512,
21680,
953,
834,
27308,
2884,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
162,
10694,
7,
3,
52,
7,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
632,
31,
1,
-100,
-1... |
Who had 0 total votes in the purple team? | CREATE TABLE table_name_18 (status VARCHAR, total_votes VARCHAR, couples_team VARCHAR) | SELECT status FROM table_name_18 WHERE total_votes = "0" AND couples_team = "purple team" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
8547,
302,
584,
4280,
28027,
6,
792,
834,
1621,
1422,
584,
4280,
28027,
6,
11992,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
792,
834,
1621,
1422,
3274,
96,
632,
121,
3430,
11992,
834,
11650,
3274,
96,
3791,
4788,
372,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
in how many dates the game was 2 | CREATE TABLE table_30049462_3 (
date VARCHAR,
game VARCHAR
) | SELECT COUNT(date) FROM table_30049462_3 WHERE game = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3647,
4448,
357,
834,
519,
41,
833,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
16,
149,
186,
5128,
8,
467,
47,
204,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
5426,
3647,
4448,
357,
834,
519,
549,
17444,
427,
467,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the home captain that won AUS by 245 runs? | CREATE TABLE table_name_93 (
home_captain VARCHAR,
result VARCHAR
) | SELECT home_captain FROM table_name_93 WHERE result = "aus by 245 runs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
234,
834,
4010,
17,
9,
77,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
234,
14268,
24,
751,
71,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
4010,
17,
9,
77,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
741,
3274,
96,
2064,
57,
204,
2128,
3154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the lowest number of members on the Agricultural Panel, when the Industrial and Commercial Panel had 9 members, and when the National University of Ireland had more than 3 members? | CREATE TABLE table_name_29 (agricultural_panel INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR) | SELECT MIN(agricultural_panel) FROM table_name_29 WHERE industrial_and_commercial_panel = 9 AND national_university_of_ireland > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
9,
3496,
14700,
834,
28726,
3,
21342,
17966,
6,
2913,
834,
232,
834,
27260,
834,
28726,
584,
4280,
28027,
6,
1157,
834,
7846,
485,
834,
858,
834,
2060,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9,
3496,
14700,
834,
28726,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
2913,
834,
232,
834,
27260,
834,
28726,
3274,
668,
3430,
1157,
834,
7846,
485,
834,
858,
834,
2060,
40,
232,
2490,
22... |
Who is the December playmate with a February playmate Anne-Marie Fox? | CREATE TABLE table_name_76 (december VARCHAR, february VARCHAR) | SELECT december FROM table_name_76 WHERE february = "anne-marie fox" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
221,
75,
18247,
584,
4280,
28027,
6,
29976,
76,
1208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1882,
577,
5058,
28,
3,
9,
2083... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20,
75,
18247,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
29976,
76,
1208,
3274,
96,
4515,
18,
17289,
15,
3,
20400,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the series number of the episode seen by 2.43 million viewers in the UK? | CREATE TABLE table_19236587_4 (series_no VARCHAR, uk_viewers__million_ VARCHAR) | SELECT series_no FROM table_19236587_4 WHERE uk_viewers__million_ = "2.43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
10402,
4225,
834,
591,
41,
10833,
7,
834,
29,
32,
584,
4280,
28027,
6,
3,
1598,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
939,
834,
29,
32,
21680,
953,
834,
19978,
10402,
4225,
834,
591,
549,
17444,
427,
3,
1598,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
17638,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is game 34's record? | CREATE TABLE table_48739 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_48739 WHERE "Game" = '34' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4225,
3288,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
591,
4225,
3288,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
3710,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest score with 0 wins and more than 2 Byes? | CREATE TABLE table_39953 (
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MAX("Against") FROM table_39953 WHERE "Wins" = '0' AND "Byes" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
3301,
519,
41,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
20749,
121,
490,
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,
4800,
4,
599,
121,
20749,
8512,
21680,
953,
834,
3288,
3301,
519,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
279,
10070,
121,
2490,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the name of the only c mill located in colney health ? | CREATE TABLE table_204_929 (
id number,
"location" text,
"name of mill and\ngrid reference" text,
"type" text,
"maps" text,
"first mention\nor built" text,
"last mention\nor demise" number
) | SELECT "name of mill and\ngrid reference" FROM table_204_929 WHERE "location" = 'colney heath' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1298,
3166,
41,
3,
23,
26,
381,
6,
96,
14836,
121,
1499,
6,
96,
4350,
13,
3293,
11,
2,
1725,
4055,
2848,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
11576,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
13,
3293,
11,
2,
1725,
4055,
2848,
121,
21680,
953,
834,
26363,
834,
1298,
3166,
549,
17444,
427,
96,
14836,
121,
3274,
3,
31,
3297,
3186,
1678,
107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the week 3 with addison miller in week 2? | CREATE TABLE table_name_17 (
week_3 VARCHAR,
week_2 VARCHAR
) | SELECT week_3 FROM table_name_17 WHERE week_2 = "addison miller" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
471,
834,
519,
584,
4280,
28027,
6,
471,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
471,
220,
28,
617,
23,
739,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
834,
519,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
471,
834,
357,
3274,
96,
13039,
23,
739,
3293,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest SHTS of Kasey Keller | CREATE TABLE table_40773 (
"Rank" real,
"Goalkeeper" text,
"Club" text,
"MINS" real,
"SHTS" real,
"W\u2013L\u2013T" text
) | SELECT MAX("SHTS") FROM table_40773 WHERE "Goalkeeper" = 'kasey keller' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4013,
519,
41,
96,
22557,
121,
490,
6,
96,
6221,
138,
10477,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
17684,
134,
121,
490,
6,
96,
9122,
4578,
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,
4800,
4,
599,
121,
9122,
4578,
8512,
21680,
953,
834,
2445,
4013,
519,
549,
17444,
427,
96,
6221,
138,
10477,
121,
3274,
3,
31,
1258,
7,
15,
63,
3,
157,
9670,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was the Kymberly Paige the Centerfold? | CREATE TABLE table_72692 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | SELECT "Date" FROM table_72692 WHERE "Centerfold model" = 'Kymberly Paige' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
3951,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5865,
3951,
357,
549,
17444,
427,
96,
24382,
10533,
825,
121,
3274,
3,
31,
439,
63,
51,
1152,
120,
14697,
397,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
hba1c value of > 6.5 to < 9.5 % | CREATE TABLE table_train_159 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"estimated_glomerular_filtration_rate_egfr" int,
"kidney_disease" bool,
"serum_triglyceride" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_159 WHERE hemoglobin_a1c_hba1c > 6.5 AND hemoglobin_a1c_hba1c < 9.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
27904,
41,
96,
23,
26,
121,
16,
17,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
121,
3,
12660,
6,
96,
3340,
51,
920,
834,
24422... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9719,
834,
27904,
549,
17444,
427,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
2490,
3,
17255,
3430,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
3,
2,
... |
how many patients born before the year 2103 had a base drug type? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2103" AND prescriptions.drug_type = "BASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What are the death and injury situations caused by the ship with tonnage 't'? | CREATE TABLE ship (Id VARCHAR); CREATE TABLE death (killed VARCHAR, injured VARCHAR, caused_by_ship_id VARCHAR) | SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1687,
41,
10824,
15,
26,
584,
4280,
28027,
6,
7532,
584,
4280,
28027,
6,
2953,
834,
969,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
10824,
15,
26,
6,
332,
5411,
77,
2047,
1271,
21680,
1687,
6157,
332,
536,
3,
15355,
3162,
4383,
6157,
3,
17,
357,
9191,
332,
5411,
658,
10064,
834,
969,
834,
2009,
834,
23,
26,
3274,
332,
4416,
23,
26,
... |
Which Names have Deciles larger than 7? | CREATE TABLE table_name_38 (
name VARCHAR,
decile INTEGER
) | SELECT name FROM table_name_38 WHERE decile > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
564,
584,
4280,
28027,
6,
7908,
109,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5570,
7,
43,
14600,
965,
2186,
145,
489,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
7908,
109,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many analogue satellite channels does Sky [Analogue] have? | CREATE TABLE table_58974 (
"Provider" text,
"Years" text,
"Free or pay" text,
"No. of channels" text,
"Colour" text,
"Digital" text,
"Transmission" text
) | SELECT "No. of channels" FROM table_58974 WHERE "Transmission" = 'analogue satellite' AND "Provider" = 'sky [analogue]' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
4327,
591,
41,
96,
3174,
6961,
49,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
16393,
42,
726,
121,
1499,
6,
96,
4168,
5,
13,
6047,
121,
1499,
6,
96,
9939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4168,
5,
13,
6047,
121,
21680,
953,
834,
3449,
4327,
591,
549,
17444,
427,
96,
18474,
5451,
121,
3274,
3,
31,
152,
9,
10384,
7605,
31,
3430,
96,
3174,
6961,
49,
121,
3274,
3,
31,
5352,
784,
152,
9,
10384,
90... |
Name of sue bird that involves what team? | CREATE TABLE table_name_27 (team VARCHAR, name VARCHAR) | SELECT team FROM table_name_27 WHERE name = "sue bird" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
11650,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
13,
2629,
15,
5963,
24,
5806,
125,
372,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
564,
3274,
96,
7,
76,
15,
5963,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Indicia has anEnd month in feb-75? | CREATE TABLE table_name_52 (indicia VARCHAR, end_month VARCHAR) | SELECT indicia FROM table_name_52 WHERE end_month = "feb-75" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
8482,
4915,
584,
4280,
28027,
6,
414,
834,
7393,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
10194,
4915,
65,
46,
8532,
26,
847,
16,
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,
16,
26,
1294,
9,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
414,
834,
7393,
3274,
96,
89,
15,
115,
18,
3072,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the distribution of All_Home and Team_ID , and group by attribute ACC_Home in a bar chart, and show by the total number from high to low. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY Team_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
432,
834,
19040,
4674,
11300,
272,
476,
2271,
834,
4309,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
... |
Where did the Vit ria de Set bal club place in the 2006-2007 season? | CREATE TABLE table_name_13 (
club VARCHAR
) | SELECT 2006 AS _2007_season FROM table_name_13 WHERE club = "vitória de setúbal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
8,
11491,
3,
52,
23,
9,
20,
2821,
6561,
1886,
286,
16,
8,
3581,
18,
20615,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3581,
6157,
3,
834,
20615,
834,
9476,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1886,
3274,
96,
5566,
4922,
52,
23,
9,
20,
356,
2,
3849,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the season when the number is 9 | CREATE TABLE table_15463188_16 (season VARCHAR, number VARCHAR) | SELECT season FROM table_15463188_16 WHERE number = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
3891,
25794,
834,
2938,
41,
9476,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
774,
116,
8,
381,
19,
668,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
27308,
3891,
25794,
834,
2938,
549,
17444,
427,
381,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
allergy to dha ( omega 3 ) or vitamin d | CREATE TABLE table_train_270 (
"id" int,
"gender" string,
"allergy_to_omega_3" bool,
"serum_low_density_lipoprotein_cholesterol" int,
"stimulated_c_peptide" float,
"allergy_to_dha" bool,
"allergy_to_vitamin_d" bool,
"serum_triglyceride" int,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_270 WHERE allergy_to_dha = 1 OR allergy_to_omega_3 = 1 OR allergy_to_vitamin_d = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
17485,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
11211,
122,
63,
834,
235,
834,
7159,
122,
9,
834,
519,
121,
3,
12840,
40,
6,
96,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
17485,
549,
17444,
427,
23886,
834,
235,
834,
26,
1024,
3274,
209,
4674,
23886,
834,
235,
834,
7159,
122,
9,
834,
519,
3274,
209,
4674,
23886,
834,
235,
834,
12411,
1109,
834,
26,
3... |
What was the platform of Red Dead Redemption? | CREATE TABLE table_65634 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT "Platform(s)" FROM table_65634 WHERE "Game" = 'red dead redemption' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3891,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
23055,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
10146,
2032,
599,
7,
61,
121,
1499,
6,
96,
2962,
162,
8745,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10146,
2032,
599,
7,
61,
121,
21680,
953,
834,
4122,
3891,
591,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
1271,
3654,
24904,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is primary disease and discharge time of subject id 2560? | 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 demographic.diagnosis, demographic.dischtime FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
6,
14798,
5,
26,
2499,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What city in the east region in North Carolina was the round where the University of Richmond was the host? | CREATE TABLE table_name_20 (city VARCHAR, host VARCHAR, region VARCHAR, state VARCHAR) | SELECT city FROM table_name_20 WHERE region = "east" AND state = "north carolina" AND host = "university of richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
6726,
584,
4280,
28027,
6,
2290,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
1719,
3274,
96,
11535,
121,
3430,
538,
3274,
96,
29,
127,
189,
443,
12057,
9,
121,
3430,
2290,
3274,
96,
7846,
485,
13,
2354,
6764,
121,
1,
-100,
-100,
-100,
... |
In which location is aci vallelunga circuit? | CREATE TABLE table_23315271_2 (
location VARCHAR,
circuit VARCHAR
) | SELECT location FROM table_23315271_2 WHERE circuit = "ACI Vallelunga circuit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
26320,
4450,
834,
357,
41,
1128,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
1128,
19,
3,
4268,
3,
2165,
109,
6521,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
20879,
26320,
4450,
834,
357,
549,
17444,
427,
4558,
3274,
96,
188,
3597,
21131,
15,
6521,
9,
4558,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest number of games played for teams that lost over 5 games and had an against total of 228? | CREATE TABLE table_33277 (
"Club" text,
"Played" real,
"Lost" real,
"Drawn" real,
"Against" real,
"Diff." real,
"Points" real
) | SELECT MAX("Played") FROM table_33277 WHERE "Lost" > '5' AND "Against" = '228' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2668,
4013,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
20749,
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,
4800,
4,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
519,
2668,
4013,
549,
17444,
427,
96,
434,
3481,
121,
2490,
3,
31,
755,
31,
3430,
96,
20749,
121,
3274,
3,
31,
357,
2577,
31,
1,
-100,
-100,
-100,
-100,
-... |
WHich Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov? | CREATE TABLE table_36267 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Asian rider classification" text,
"Team classification" text,
"Asian team classification" text
) | SELECT "Mountains classification" FROM table_36267 WHERE "Asian team classification" = 'seoul cycling team' AND "Winner" = 'alexandre usov' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
357,
3708,
41,
96,
134,
6505,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
32,
14016,
77,
7,
13774,
121,
21680,
953,
834,
3420,
357,
3708,
549,
17444,
427,
96,
188,
10488,
372,
13774,
121,
3274,
3,
31,
7,
15,
7115,
13771,
372,
31,
3430,
96,
18455,
687,
121,
3274,
3,
31,
138,
9... |
What is the grid for the rider who rides a Suzuki and has the time of +1:01.894? | CREATE TABLE table_name_9 (
grid INTEGER,
manufacturer VARCHAR,
time_retired VARCHAR
) | SELECT MAX(grid) FROM table_name_9 WHERE manufacturer = "suzuki" AND time_retired = "+1:01.894" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
8634,
3,
21342,
17966,
6,
4818,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8634,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
4818,
3274,
96,
7,
76,
1000,
2168,
121,
3430,
97,
834,
10682,
1271,
3274,
96,
18446,
10,
10068,
3914,
20364,
1,
-100,
-100,
-100,
-100,
... |
What is the smallest number of wins for a top-25 value greater than 5 and more than 38 cuts? | CREATE TABLE table_38402 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT MIN("Wins") FROM table_38402 WHERE "Top-25" > '5' AND "Cuts made" > '38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2445,
357,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
8512,
21680,
953,
834,
3747,
2445,
357,
549,
17444,
427,
96,
22481,
14855,
121,
2490,
3,
31,
755,
31,
3430,
96,
15784,
17,
7,
263,
121,
2490,
3,
31,
3747,
31,
1,
-100,
-100,
-100,
-... |
What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows? | CREATE TABLE table_name_65 (total_horses INTEGER, cows VARCHAR, bulls VARCHAR, total_cattle VARCHAR, oxen VARCHAR) | SELECT MIN(total_horses) FROM table_name_65 WHERE total_cattle < 6274.1 AND oxen < 156.5 AND bulls = "40.0" AND cows < 3377 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
235,
1947,
834,
107,
127,
2260,
3,
21342,
17966,
6,
9321,
7,
584,
4280,
28027,
6,
8434,
7,
584,
4280,
28027,
6,
792,
834,
658,
8692,
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,
235,
1947,
834,
107,
127,
2260,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
792,
834,
658,
8692,
3,
2,
431,
2555,
19708,
3430,
3,
32,
226,
35,
3,
2,
627,
17255,
3430,
8434,
7,
3274,
96,... |
What is the registration of the station at Cambridge? | CREATE TABLE table_52856 (
"Station Number" text,
"District" text,
"Location" text,
"Type" text,
"Appliances" text,
"Registrations" text
) | SELECT "Registrations" FROM table_52856 WHERE "District" = 'cambridge' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2577,
4834,
41,
96,
134,
6821,
7720,
121,
1499,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
9648,
9928,
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,
18752,
1628,
121,
21680,
953,
834,
755,
2577,
4834,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
6527,
9818,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.