NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who is the player when the pick is 22 and the year [A] is after 1979? | CREATE TABLE table_name_5 (player_name VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR) | SELECT player_name FROM table_name_5 WHERE pick = "22" AND year_[a_] > 1979 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
20846,
834,
4350,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
215,
834,
584,
4280,
28027,
6,
3,
9,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1959,
834,
4350,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1432,
3274,
96,
2884,
121,
3430,
215,
834,
6306,
9,
834,
908,
2490,
15393,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis first name y axis salary, and rank in desc by the y axis. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT FIRST_NAME, SALARY FROM employees ORDER BY SALARY DESC | [
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,
30085,
834,
567,
17683,
6,
180,
4090,
24721,
21680,
1652,
4674,
11300,
272,
476,
180,
4090,
24721,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the score of the game with 1,125 people in attendance? | CREATE TABLE table_name_37 (score VARCHAR, attendance VARCHAR) | SELECT score FROM table_name_37 WHERE attendance = "1,125" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
7,
9022,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
467,
28,
1914,
10124,
151,
16,
11364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
11364,
3274,
96,
4347,
10124,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Draw a bar chart about the distribution of Sex and the average of Weight , and group by attribute Sex, and I want to order by the total number from high to low. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
) | SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY AVG(Weight) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
679,
226,
1499,
6,
5570,
1499,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
6,
24231,
490,
6,
14230,
490,
3,
61,
3,
32102,
32103,
32102,
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,
679,
226,
6,
71,
17217,
599,
1326,
2632,
61,
21680,
151,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
71,
17217,
599,
1326,
2632,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many faculty members do we have for each gender? Draw a bar chart, and I want to order by the names in asc please. | CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
) | SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex ORDER BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15077,
6203,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
834,
13725,
23,
3389,
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,
679,
226,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the 1st leg score when Team 1 was Gor Mahia? | CREATE TABLE table_name_1 (team_1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_1 WHERE team_1 = "gor mahia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
11650,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
209,
7,
17,
4553,
2604,
116,
2271,
209,
47,
9826,
8555,
23,
9,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
372,
834,
536,
3274,
96,
122,
127,
954,
107,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory? | CREATE TABLE table_name_24 (
date VARCHAR,
margin_of_victory VARCHAR,
tournament VARCHAR
) | SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
833,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
536,
9529,
121,
3430,
5892,
3274,
96,
532,
3,
3302,
563,
2431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of hire_date and the average of manager_id bin hire_date by weekday in a bar chart. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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)
) | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
... |
What is the average wins of a team with more than 0 ples and less than 3 podiums? | CREATE TABLE table_name_12 (
wins INTEGER,
poles VARCHAR,
podiums VARCHAR
) | SELECT AVG(wins) FROM table_name_12 WHERE poles > 0 AND podiums < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
9204,
3,
21342,
17966,
6,
11148,
7,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
9204,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
11148,
7,
2490,
3,
632,
3430,
22828,
7,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients marital status is widowed and follow the procedure icd9 code 8968? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.icd9_code = "8968" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the round when the college is syracuse and the pick is less than 3? | CREATE TABLE table_name_94 (
round INTEGER,
college VARCHAR,
pick VARCHAR
) | SELECT AVG(round) FROM table_name_94 WHERE college = "syracuse" AND pick < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1751,
3,
21342,
17966,
6,
1900,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1751,
116,
8,
1900,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1900,
3274,
96,
7,
63,
3738,
1074,
121,
3430,
1432,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was the Singapore Gross 1999? | CREATE TABLE table_6957 (
"Date" text,
"Title" text,
"Director" text,
"Producer" text,
"Production Cost" text,
"Singapore Gross" text
) | SELECT "Date" FROM table_6957 WHERE "Singapore Gross" = '1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3436,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
4817,
49,
121,
1499,
6,
96,
3174,
8291,
6409,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3951,
3436,
549,
17444,
427,
96,
134,
53,
9,
21642,
17969,
121,
3274,
3,
31,
2294,
3264,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What source of wealth has a value of 5726m? | CREATE TABLE table_name_51 (
source_of_wealth VARCHAR,
value VARCHAR
) | SELECT source_of_wealth FROM table_name_51 WHERE value = "£5726m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1391,
834,
858,
834,
1123,
138,
189,
584,
4280,
28027,
6,
701,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1391,
13,
5987,
65,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1391,
834,
858,
834,
1123,
138,
189,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
701,
3274,
96,
19853,
3436,
2688,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which incumbent was first elected in 1972? | CREATE TABLE table_683 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | SELECT "Incumbent" FROM table_683 WHERE "First elected" = '1972' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
519,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
7,
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,
1570,
75,
5937,
295,
121,
21680,
953,
834,
3651,
519,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
5865,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the all-time rank associated with a rank less than 9 and a debut in 1994? | CREATE TABLE table_33654 (
"Rank" real,
"All-time Rank" text,
"Name" text,
"Debut Year" real,
"Current Club" text,
"Apps" real
) | SELECT "All-time Rank" FROM table_33654 WHERE "Rank" < '9' AND "Debut Year" = '1994' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
10402,
591,
41,
96,
22557,
121,
490,
6,
96,
6838,
18,
715,
3,
22557,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
2962,
2780,
2929,
121,
490,
6,
96,
254,
450,
5320,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6838,
18,
715,
3,
22557,
121,
21680,
953,
834,
519,
10402,
591,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
1298,
31,
3430,
96,
2962,
2780,
2929,
121,
3274,
3,
31,
2294,
4240,
31,
1,
-100,
-100,
-100,
-100... |
What was the time/retired of Darren Manning? | CREATE TABLE table_name_7 (time_retired VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_7 WHERE driver = "darren manning" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
97,
87,
10682,
1271,
13,
3,
29367,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2535,
3274,
96,
3439,
1536,
3,
2434,
53,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country do the Winnipeg Jets come from? | CREATE TABLE table_3655 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Nationality" FROM table_3655 WHERE "NHL team" = 'Winnipeg Jets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10402,
755,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
10402,
755,
549,
17444,
427,
96,
15743,
434,
372,
121,
3274,
3,
31,
18455,
29,
23,
855,
122,
12434,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients with right upper quadrant pain primary disease who were less than 71 years of age. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "RUQ PAIN" AND demographic.age < "71" | [
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,
25930,
4844,
159,
3274,
96,
8503,
2247,
276,
13570,
121,
3430,
14798,
5,
545,
3,
2,
96,
4450,
12... |
What is the year when the Winner was the new york jets, with a Result of 24–17, played at giants stadium? | CREATE TABLE table_name_39 (year INTEGER, location VARCHAR, winner VARCHAR, result VARCHAR) | SELECT SUM(year) FROM table_name_39 WHERE winner = "new york jets" AND result = "24–17" AND location = "giants stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1201,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
4668,
3274,
96,
5534,
25453,
8757,
7,
121,
3430,
741,
3274,
96,
2266,
104,
2517,
121,
3430,
1128,
3274,
96,
22898,
17,
7,
14939,
121,
1,
... |
What round was Bob Randall selected in? | CREATE TABLE table_name_16 (
round INTEGER,
name VARCHAR
) | SELECT MAX(round) FROM table_name_16 WHERE name = "bob randall" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1751,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1751,
47,
5762,
11377,
1748,
2639,
16,
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,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
564,
3274,
96,
17396,
4037,
26,
1748,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the highest Long that has an Avg/G smaller than 8.4, and an GP-GS of 4 0? | CREATE TABLE table_name_88 (
long INTEGER,
avg_g VARCHAR,
gp_gs VARCHAR
) | SELECT MAX(long) FROM table_name_88 WHERE avg_g < 8.4 AND gp_gs = "4–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
307,
3,
21342,
17966,
6,
3,
9,
208,
122,
834,
122,
584,
4280,
28027,
6,
3,
122,
102,
834,
122,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
2961,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
3,
9,
208,
122,
834,
122,
3,
2,
4848,
591,
3430,
3,
122,
102,
834,
122,
7,
3274,
96,
591,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-1... |
Which First public release has a Name of rational software modeler? | CREATE TABLE table_name_25 (
first_public_release VARCHAR,
name VARCHAR
) | SELECT first_public_release FROM table_name_25 WHERE name = "rational software modeler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
166,
834,
15727,
834,
21019,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1485,
452,
1576,
65,
3,
9,
5570,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
166,
834,
15727,
834,
21019,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
564,
3274,
96,
2661,
138,
889,
825,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When is the lane less than 5 and is named gnes kov cs? | CREATE TABLE table_14392 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Time" FROM table_14392 WHERE "Lane" < '5' AND "Name" = 'ágnes kovács' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4508,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
25133,
4508,
549,
17444,
427,
96,
434,
152,
15,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
23954,
121,
3274,
3,
31,
2975,
15141,
7,
3,
9789,
2975,
75,
7,
31,
1,
-100,
-100,
-100,
-10... |
On what date was a match played at Lake Oval? | CREATE TABLE table_name_4 (
date VARCHAR,
venue VARCHAR
) | SELECT date FROM table_name_4 WHERE venue = "lake oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
833,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
3,
9,
1588,
1944,
44,
2154,
411,
2165,
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,
833,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
5669,
3274,
96,
16948,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many players named sanath jayasuriya? | CREATE TABLE table_15700367_6 (runs_conceded VARCHAR, name VARCHAR) | SELECT COUNT(runs_conceded) FROM table_15700367_6 WHERE name = "Sanath Jayasuriya" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
9295,
519,
3708,
834,
948,
41,
4312,
7,
834,
11620,
221,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
2650,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4312,
7,
834,
11620,
221,
26,
61,
21680,
953,
834,
1808,
9295,
519,
3708,
834,
948,
549,
17444,
427,
564,
3274,
96,
134,
152,
9,
189,
9373,
9,
7,
459,
63,
9,
121,
1,
-100,
-100,
-100,
-100,
-10... |
How many platinum points were awarded when 70 silver points were awarded? | CREATE TABLE table_16593 (
"Finishing position" text,
"Points awarded (Platinum)" real,
"Points awarded (Gold)" real,
"Points awarded (Silver)" real,
"Points awarded (Satellite)" real
) | SELECT "Points awarded (Platinum)" FROM table_16593 WHERE "Points awarded (Silver)" = '70' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
4271,
41,
96,
371,
77,
1273,
53,
1102,
121,
1499,
6,
96,
22512,
7,
5539,
41,
10146,
77,
440,
61,
121,
490,
6,
96,
22512,
7,
5539,
41,
23576,
61,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22512,
7,
5539,
41,
10146,
77,
440,
61,
121,
21680,
953,
834,
22823,
4271,
549,
17444,
427,
96,
22512,
7,
5539,
41,
134,
173,
624,
61,
121,
3274,
3,
31,
2518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Rd. Time for October 3, 2009? | CREATE TABLE table_name_86 (
rd VARCHAR,
_time VARCHAR,
date VARCHAR
) | SELECT rd, _time FROM table_name_86 WHERE date = "october 3, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3,
52,
26,
584,
4280,
28027,
6,
3,
834,
715,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
391,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
52,
26,
6,
3,
834,
715,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
6180,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many results are there with the theme Group Round? | CREATE TABLE table_28503 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT COUNT("Result") FROM table_28503 WHERE "Theme" = 'Group Round' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1752,
519,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20119,
8512,
21680,
953,
834,
2577,
1752,
519,
549,
17444,
427,
96,
634,
526,
121,
3274,
3,
31,
27247,
9609,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date where Guatemala is the Away team? | CREATE TABLE table_name_44 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_44 WHERE away_team = "guatemala" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
213,
25527,
19,
8,
71,
1343,
372,
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,
833,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1744,
342,
1982,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what country is Hiroshima Airport located? | CREATE TABLE table_67886 (
"City" text,
"Province/Region" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "Country" FROM table_67886 WHERE "Airport" = 'hiroshima airport' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
927,
3840,
41,
96,
254,
485,
121,
1499,
6,
96,
3174,
2494,
565,
87,
17748,
23,
106,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
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,
10628,
651,
121,
21680,
953,
834,
3708,
927,
3840,
549,
17444,
427,
96,
20162,
1493,
121,
3274,
3,
31,
9288,
32,
7,
10813,
9,
3761,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the tournament surface at Aptos? | CREATE TABLE table_name_88 (surface VARCHAR, tournament VARCHAR) | SELECT surface FROM table_name_88 WHERE tournament = "aptos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
26899,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5892,
1774,
44,
5085,
235,
7,
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,
1774,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
5892,
3274,
96,
6789,
32,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What country is the player moving to Hamburger SV from? | CREATE TABLE table_name_36 (country VARCHAR, moving_to VARCHAR) | SELECT country FROM table_name_36 WHERE moving_to = "hamburger sv" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
17529,
584,
4280,
28027,
6,
1735,
834,
235,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
19,
8,
1959,
1735,
12,
7330,
49,
3,
7416,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1735,
834,
235,
3274,
96,
1483,
9079,
3,
7,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE TITLE WITH CATEGORY OF best r&b song? | CREATE TABLE table_name_95 (title VARCHAR, category VARCHAR) | SELECT title FROM table_name_95 WHERE category = "best r&b song" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
21869,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
332,
3177,
3765,
11951,
205,
6048,
5577,
11824,
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,
2233,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
3295,
3274,
96,
9606,
3,
52,
184,
115,
2324,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the Money for Player Ernie Els? | CREATE TABLE table_name_22 (
money___$__ VARCHAR,
player VARCHAR
) | SELECT money___$__ FROM table_name_22 WHERE player = "ernie els" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
8833,
21,
12387,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
540,
834,
834,
834,
3229,
834,
834,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1959,
3274,
96,
15,
23752,
3,
3573,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the part number that has a turbo of low power? | CREATE TABLE table_13848 (
"Model number" text,
"sSpec number" text,
"Cores" text,
"Frequency" text,
"Turbo" text,
"L2 cache" text,
"L3 cache" text,
"GPU model" text,
"GPU frequency" text,
"Socket" text,
"I/O bus" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) | SELECT "Part number(s)" FROM table_13848 WHERE "Turbo" = 'low power' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
3707,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
254,
14846,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
382,
450,
115,
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,
13725,
381,
599,
7,
61,
121,
21680,
953,
834,
22744,
3707,
549,
17444,
427,
96,
382,
450,
115,
32,
121,
3274,
3,
31,
3216,
579,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many people attended the green bay packers game? | CREATE TABLE table_46371 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text,
"Streak" text,
"Attendance" real
) | SELECT SUM("Attendance") FROM table_46371 WHERE "Opponent" = 'green bay packers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
4118,
536,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
164... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
4448,
4118,
536,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
9423,
10210,
4153,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the guest 3 in the show where guest 4 is Jill Douglas? | CREATE TABLE table_20466963_4 (
guest_3 VARCHAR,
guest_4 VARCHAR
) | SELECT guest_3 FROM table_20466963_4 WHERE guest_4 = "Jill Douglas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4448,
3951,
3891,
834,
591,
41,
3886,
834,
519,
584,
4280,
28027,
6,
3886,
834,
591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3886,
220,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3886,
834,
519,
21680,
953,
834,
1755,
4448,
3951,
3891,
834,
591,
549,
17444,
427,
3886,
834,
591,
3274,
96,
683,
1092,
14154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the smallest Matches with a Goalkeeper of jos berm dez, and Goals larger than 18? | CREATE TABLE table_name_26 (
matches INTEGER,
goalkeeper VARCHAR,
goals VARCHAR
) | SELECT MIN(matches) FROM table_name_26 WHERE goalkeeper = "josé bermúdez" AND goals > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
6407,
3,
21342,
17966,
6,
1288,
10477,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
12296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19515,
15,
7,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1288,
10477,
3274,
96,
1927,
7,
154,
3,
1152,
51,
2,
26,
457,
121,
3430,
1766,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the game when they were 2-1? | CREATE TABLE table_20746062_1 (result VARCHAR, record VARCHAR) | SELECT result FROM table_20746062_1 WHERE record = "2-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
25991,
4056,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
116,
79,
130... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
26426,
25991,
4056,
834,
536,
549,
17444,
427,
1368,
3274,
96,
17234,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the game played against on 2004-02-28 at Skytteholms IP? | CREATE TABLE table_43713 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Comp" text
) | SELECT "Opponents" FROM table_43713 WHERE "Venue" = 'skytteholms ip' AND "Date" = '2004-02-28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4118,
2368,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
5890,
102,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
9977,
7,
121,
21680,
953,
834,
591,
4118,
2368,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
5352,
17,
17,
15,
2831,
51,
7,
3,
23,
102,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2165... |
In the county where Bush won 77.76%, how many total votes were cast? | CREATE TABLE table_13625792_1 (total__number VARCHAR, bush__percentage VARCHAR) | SELECT total__number FROM table_13625792_1 WHERE bush__percentage = "77.76%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
1828,
4440,
357,
834,
536,
41,
235,
1947,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
17907,
834,
834,
883,
3728,
545,
584,
4280,
28027,
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,
0,
0... | [
3,
23143,
14196,
792,
834,
834,
5525,
1152,
21680,
953,
834,
23459,
1828,
4440,
357,
834,
536,
549,
17444,
427,
17907,
834,
834,
883,
3728,
545,
3274,
96,
4013,
5,
3959,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the distance of the course for stage 4? | CREATE TABLE table_name_13 (distance VARCHAR, stage VARCHAR) | SELECT distance FROM table_name_13 WHERE stage = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
26,
23,
8389,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2357,
13,
8,
503,
21,
1726,
314,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2357,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1726,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the outcome for zurich | CREATE TABLE table_23944006_4 (
outcome VARCHAR,
championship VARCHAR
) | SELECT outcome FROM table_23944006_4 WHERE championship = "Zurich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4240,
5548,
948,
834,
591,
41,
6138,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6138,
21,
881,
362,
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,
6138,
21680,
953,
834,
2773,
4240,
5548,
948,
834,
591,
549,
17444,
427,
10183,
3274,
96,
956,
450,
362,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the margin of victory for the Players Championship tournament? | CREATE TABLE table_name_70 (
margin_of_victory VARCHAR,
tournament VARCHAR
) | SELECT margin_of_victory FROM table_name_70 WHERE tournament = "the players championship" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6346,
13,
6224,
21,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
5892,
3274,
96,
532,
1508,
10183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Season 3 has a Season 7 of jim treliving? | CREATE TABLE table_name_93 (season_3 VARCHAR, season_7 VARCHAR) | SELECT season_3 FROM table_name_93 WHERE season_7 = "jim treliving" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
9476,
834,
519,
584,
4280,
28027,
6,
774,
834,
940,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7960,
220,
65,
3,
9,
7960,
489,
13,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
834,
519,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
774,
834,
940,
3274,
96,
354,
603,
3,
929,
24257,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Team with a Lap that is 5? | CREATE TABLE table_42181 (
"Name" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Team" FROM table_42181 WHERE "Laps" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
2606,
536,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
26,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
4165,
2606,
536,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When was Pablo Andújar the opponent? | CREATE TABLE table_name_38 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_38 WHERE opponent = "pablo andújar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
30017,
275,
2,
5670,
8,
15264,
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,
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,
3747,
549,
17444,
427,
15264,
3274,
96,
102,
9,
4672,
11,
2,
5670,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many top 10s did he have the year he won $80,490? | CREATE TABLE table_2559 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT COUNT("Top 10") FROM table_2559 WHERE "Winnings" = '$80,490' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3390,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
893... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22481,
335,
8512,
21680,
953,
834,
1828,
3390,
549,
17444,
427,
96,
518,
10503,
7,
121,
3274,
3,
31,
3229,
2079,
6,
591,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the goal difference number with a position of 15? | CREATE TABLE table_name_35 (goal_difference VARCHAR, position VARCHAR) | SELECT goal_difference FROM table_name_35 WHERE position = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
839,
138,
834,
26,
99,
11788,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1288,
1750,
381,
28,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1288,
834,
26,
99,
11788,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1102,
3274,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Investing Dragons had a request of £100,000? | CREATE TABLE table_name_87 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR) | SELECT investing_dragon_s_ FROM table_name_87 WHERE money_requested__£_ = "100,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
15601,
53,
834,
3515,
5307,
834,
7,
834,
584,
4280,
28027,
6,
540,
834,
60,
835,
6265,
834,
834,
19853,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
8448,
834,
3515,
5307,
834,
7,
834,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
540,
834,
60,
835,
6265,
834,
834,
19853,
834,
3274,
96,
2915,
6,
2313,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the turbo when the cores is standard power? | CREATE TABLE table_name_30 (
turbo VARCHAR,
cores VARCHAR
) | SELECT turbo FROM table_name_30 WHERE cores = "standard power" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
20353,
584,
4280,
28027,
6,
2583,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
20353,
116,
8,
2583,
7,
19,
1068,
579,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
20353,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
2583,
7,
3274,
96,
16020,
579,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 8.9% is the electricity reduction percentage how many sets of tonnes of co2 saved is there? | CREATE TABLE table_31187 (
"Year" text,
"Universities" real,
"No. of Students Signed up" real,
"% electricity reduction" text,
"Tonnes of CO2 Saved" real,
"\u00a3 Saved" text
) | SELECT COUNT("Tonnes of CO2 Saved") FROM table_31187 WHERE "% electricity reduction" = '8.9%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
25828,
41,
96,
476,
2741,
121,
1499,
6,
96,
8313,
2197,
121,
490,
6,
96,
4168,
5,
13,
4375,
6365,
15,
26,
95,
121,
490,
6,
96,
1454,
6373,
4709,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
382,
5993,
7,
13,
2847,
357,
7242,
26,
8512,
21680,
953,
834,
3341,
25828,
549,
17444,
427,
96,
1454,
6373,
4709,
121,
3274,
3,
31,
927,
5,
7561,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the To par when the place was 4? | CREATE TABLE table_name_60 (to_par VARCHAR, place VARCHAR) | SELECT to_par FROM table_name_60 WHERE place = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
235,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
304,
260,
116,
8,
286,
47,
314,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
286,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the series score when st. louis was away on april 18? | CREATE TABLE table_name_96 (series VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT series FROM table_name_96 WHERE visitor = "st. louis" AND date = "april 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
10833,
7,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
939,
2604,
116,
3,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
7019,
3274,
96,
7,
17,
5,
16585,
159,
121,
3430,
833,
3274,
96,
9,
2246,
40,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the type of Kuang-Hsing? | CREATE TABLE table_name_71 (
type VARCHAR,
name__wade_giles_ VARCHAR
) | SELECT type FROM table_name_71 WHERE name__wade_giles_ = "kuang-hsing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
686,
584,
4280,
28027,
6,
564,
834,
834,
210,
9,
221,
834,
122,
699,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
686,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
564,
834,
834,
210,
9,
221,
834,
122,
699,
7,
834,
3274,
96,
2729,
1468,
18,
107,
7,
53,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Shooting Total with a Bronze less than 0? | CREATE TABLE table_name_40 (
total INTEGER,
sport VARCHAR,
bronze VARCHAR
) | SELECT MAX(total) FROM table_name_40 WHERE sport = "shooting" AND bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
792,
3,
21342,
17966,
6,
2600,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
20450,
53,
9273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2600,
3274,
96,
5630,
32,
1222,
121,
3430,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
did they have more or less than 1 home win in 2010-2011 ? | CREATE TABLE table_203_741 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"aggregate" text
) | SELECT (SELECT COUNT(*) FROM table_203_741 WHERE "home" > "home" AND "season" = '2010-11') > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4581,
536,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
7775,
121,
1499,
6,
96,
32,
102,
9977,
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,
41,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
4581,
536,
549,
17444,
427,
96,
5515,
121,
2490,
96,
5515,
121,
3430,
96,
9476,
121,
3274,
3,
31,
14926,
9169,
31,
61,
2490,
209,
1,
-100,
... |
What years was El Mabrouk the area of operation? | CREATE TABLE table_name_42 (years_of_operation VARCHAR, area_of_operation VARCHAR) | SELECT years_of_operation FROM table_name_42 WHERE area_of_operation = "el mabrouk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
1201,
7,
834,
858,
834,
22280,
584,
4280,
28027,
6,
616,
834,
858,
834,
22280,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
203,
47,
1289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
834,
858,
834,
22280,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
616,
834,
858,
834,
22280,
3274,
96,
15,
40,
954,
5702,
1598,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the number of stage winners for team columbia | CREATE TABLE table_19115414_4 (stage__winner_ VARCHAR, team_classification VARCHAR) | SELECT COUNT(stage__winner_) FROM table_19115414_4 WHERE team_classification = "Team Columbia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
15660,
591,
2534,
834,
591,
41,
10705,
834,
834,
3757,
687,
834,
584,
4280,
28027,
6,
372,
834,
4057,
2420,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
10705,
834,
834,
3757,
687,
834,
61,
21680,
953,
834,
2294,
15660,
591,
2534,
834,
591,
549,
17444,
427,
372,
834,
4057,
2420,
3274,
96,
18699,
8183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the date for the match where Tweedie-Yates' partner was jodi kenoyer? | CREATE TABLE table_name_18 (
date VARCHAR,
partner VARCHAR
) | SELECT date FROM table_name_18 WHERE partner = "jodi kenoyer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
833,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
21,
8,
1588,
213,
332,
8578,
23,
15,
18,
476... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
2397,
3274,
96,
1927,
26,
23,
3,
2217,
32,
7975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the airline with the most routes? | CREATE TABLE routes (
rid number,
dst_apid number,
dst_ap text,
src_apid number,
src_ap text,
alid number,
airline text,
codeshare text
)
CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active text
)
CREATE TABLE airports (
apid number,
name text,
city text,
country text,
x number,
y number,
elevation number,
iata text,
icao text
) | SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9729,
41,
5413,
381,
6,
3,
26,
7,
17,
834,
9,
12417,
381,
6,
3,
26,
7,
17,
834,
9,
102,
1499,
6,
3,
7,
52,
75,
834,
9,
12417,
381,
6,
3,
7,
52,
75,
834,
9,
102,
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,
332,
5411,
4350,
21680,
19184,
6157,
332,
536,
3,
15355,
3162,
9729,
6157,
332,
357,
9191,
332,
5411,
9,
8130,
3274,
332,
4416,
9,
8130,
350,
4630,
6880,
272,
476,
332,
5411,
4350,
4674,
11300,
272,
476,
2847,
17161,
... |
Show the studios that have produced films with director 'Nicholas Meyer' and 'Walter Hill'. | CREATE TABLE film (
Studio VARCHAR,
Director VARCHAR
) | SELECT Studio FROM film WHERE Director = "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director = "Walter Hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
41,
5929,
584,
4280,
28027,
6,
2578,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
3100,
7,
24,
43,
2546,
4852,
28,
2090,
3,
31,
567,
23,
14297,
9,
7,
19191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5929,
21680,
814,
549,
17444,
427,
2578,
3274,
96,
567,
23,
14297,
9,
7,
19191,
121,
3,
21342,
5249,
14196,
3,
23143,
14196,
5929,
21680,
814,
549,
17444,
427,
2578,
3274,
96,
518,
8818,
3588,
121,
1,
-100,
-100,
-1... |
Which Series are on may 18? | CREATE TABLE table_name_86 (series VARCHAR, date VARCHAR) | SELECT series FROM table_name_86 WHERE date = "may 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
10833,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4531,
33,
30,
164,
507,
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,
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,
939,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
833,
3274,
96,
13726,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the mens singles and womens singlses is wang shixian? | CREATE TABLE table_13553701_1 (
mens_singles VARCHAR,
womens_singles VARCHAR
) | SELECT mens_singles FROM table_13553701_1 WHERE womens_singles = "Wang Shixian" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3769,
22520,
536,
834,
536,
41,
1076,
7,
834,
7,
53,
965,
584,
4280,
28027,
6,
887,
7,
834,
7,
53,
965,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1076,
7,
834,
7,
53,
965,
21680,
953,
834,
2368,
3769,
22520,
536,
834,
536,
549,
17444,
427,
887,
7,
834,
7,
53,
965,
3274,
96,
518,
1468,
4804,
19838,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who athe party where district is louisiana 2? | CREATE TABLE table_1342198_18 (party VARCHAR, district VARCHAR) | SELECT party FROM table_1342198_18 WHERE district = "Louisiana 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
24151,
834,
2606,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
44,
88,
1088,
213,
3939,
19,
16585,
159,
13662,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
2368,
4165,
24151,
834,
2606,
549,
17444,
427,
3939,
3274,
96,
28365,
13662,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What Venue has Basketball as a Sport? | CREATE TABLE table_name_92 (
venue VARCHAR,
sport VARCHAR
) | SELECT venue FROM table_name_92 WHERE sport = "basketball" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
5669,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
29940,
65,
21249,
38,
3,
9,
3349,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2600,
3274,
96,
4883,
8044,
3184,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Women's Cup was won by Blyth Spartans Ladies? | CREATE TABLE table_67003 (
"Season" text,
"Northumberland Senior Cup" text,
"Northumberland Senior Benevolent Bowl" text,
"Northumberland Minor Cup" text,
"Northumberland Women's Cup" text
) | SELECT "Northumberland Senior Benevolent Bowl" FROM table_67003 WHERE "Northumberland Women's Cup" = 'blyth spartans ladies' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
1206,
519,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
22969,
5937,
15,
7721,
5523,
3802,
121,
1499,
6,
96,
22969,
5937,
15,
7721,
5523,
2798,
15,
4571,
295,
9713,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22969,
5937,
15,
7721,
5523,
2798,
15,
4571,
295,
9713,
121,
21680,
953,
834,
3708,
1206,
519,
549,
17444,
427,
96,
22969,
5937,
15,
7721,
4047,
31,
7,
3802,
121,
3274,
3,
31,
115,
120,
189,
3,
7,
2274,
3247,
... |
what is the last season that ton won ? | CREATE TABLE table_203_288 (
id number,
"season" text,
"premiere date" text,
"the winner" text,
"runner-up" text,
"finalists" text,
"contestants in order of elimination" text,
"number of contestants" text,
"number of concerts" number
) | SELECT "season" FROM table_203_288 WHERE "the winner" = 'ton' ORDER BY "premiere date" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
4060,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
2026,
2720,
60,
833,
121,
1499,
6,
96,
532,
4668,
121,
1499,
6,
96,
10806,
18,
413,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9476,
121,
21680,
953,
834,
23330,
834,
357,
4060,
549,
17444,
427,
96,
532,
4668,
121,
3274,
3,
31,
17,
106,
31,
4674,
11300,
272,
476,
96,
2026,
2720,
60,
833,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-10... |
What is the amount of Avg that has Yards more 265 and a Car more 105? | CREATE TABLE table_5287 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real
) | SELECT COUNT("Avg.") FROM table_5287 WHERE "Yards" > '265' AND "Car." > '105' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
4225,
41,
96,
15800,
49,
121,
1499,
6,
96,
6936,
535,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
188,
208,
122,
535,
490,
6,
96,
10494,
31,
7,
121,
490,
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,
2847,
17161,
599,
121,
188,
208,
122,
5,
8512,
21680,
953,
834,
5373,
4225,
549,
17444,
427,
96,
476,
986,
7,
121,
2490,
3,
31,
357,
4122,
31,
3430,
96,
6936,
535,
2490,
3,
31,
12869,
31,
1,
-100,
-100,
-100,
-1... |
What was the surface for the game that was played on 12-Apr-2005? | CREATE TABLE table_70304 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
) | SELECT "Surface" FROM table_70304 WHERE "Date" = '12-apr-2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
23702,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
4861,
121,
21680,
953,
834,
2518,
23702,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2122,
18,
9,
102,
52,
18,
22594,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT IS THE HIGHEST # OF CARS WITH A START YEAR LESS THAN 2012, TBA CURRENT CAR, AND MORE THAN 1 CAR? | CREATE TABLE table_name_95 (number_of_cars INTEGER, car__number VARCHAR, year_started VARCHAR, current_car VARCHAR) | SELECT MAX(number_of_cars) FROM table_name_95 WHERE year_started < 2012 AND current_car = "tba" AND car__number > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
5525,
1152,
834,
858,
834,
1720,
7,
3,
21342,
17966,
6,
443,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
215,
834,
3624,
1054,
584,
4280,
28027,
6,
750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5525,
1152,
834,
858,
834,
1720,
7,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
215,
834,
3624,
1054,
3,
2,
1673,
3430,
750,
834,
1720,
3274,
96,
17,
115,
9,
121,
3430,
443,
834,
834,
55... |
Name the most silver with bronze more than 1 and gold more than 1 with total less than 7 | CREATE TABLE table_34280 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Silver") FROM table_34280 WHERE "Bronze" > '1' AND "Total" < '7' AND "Gold" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
17518,
41,
96,
22557,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
3710,
17518,
549,
17444,
427,
96,
22780,
29,
776,
121,
2490,
3,
31,
536,
31,
3430,
96,
3696,
1947,
121,
3,
2,
3,
31,
940,
31,
3430,
96,
23576,
121,
2490,
... |
Which Lost is the highest one that has a Season of 2001 02, and Points larger than 47? | CREATE TABLE table_6837 (
"Season" text,
"League" text,
"Draw" real,
"Lost" real,
"Points" real,
"Position" text
) | SELECT MAX("Lost") FROM table_6837 WHERE "Season" = '2001–02' AND "Points" > '47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4118,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
308,
10936,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
22512,
7,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
434,
3481,
8512,
21680,
953,
834,
3651,
4118,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
23658,
104,
4305,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
4177,
31,
1,
-100,
-100,
-100,... |
What is Distance, when Date is "2008-01-12"? | CREATE TABLE table_name_18 (distance VARCHAR, date VARCHAR) | SELECT distance FROM table_name_18 WHERE date = "2008-01-12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
26,
23,
8389,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
27370,
6,
116,
7678,
19,
96,
16128,
14772,
5947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2357,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
833,
3274,
96,
16128,
14772,
5947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average decile for te puru school? | CREATE TABLE table_70462 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT AVG("Decile") FROM table_70462 WHERE "Name" = 'te puru school' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
4448,
357,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
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,
71,
17217,
599,
121,
2962,
75,
699,
8512,
21680,
953,
834,
2518,
4448,
357,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17,
15,
3990,
76,
496,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which report shows that Frank Lockhart was a winning driver? | CREATE TABLE table_69597 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning drivers" text,
"Winning constructor" text,
"Report" text
) | SELECT "Report" FROM table_69597 WHERE "Winning drivers" = 'frank lockhart' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3390,
940,
41,
96,
23954,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
3863,
121,
1499,
6,
96,
518,
10503,
6774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1493,
121,
21680,
953,
834,
3951,
3390,
940,
549,
17444,
427,
96,
518,
10503,
3863,
121,
3274,
3,
31,
89,
6254,
6081,
13626,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the Hamaoka-4 unit commercial operation date? | CREATE TABLE table_name_42 (commercial_operation VARCHAR, unit VARCHAR) | SELECT commercial_operation FROM table_name_42 WHERE unit = "hamaoka-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
27260,
834,
22280,
584,
4280,
28027,
6,
1745,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
5845,
9,
1825,
9,
4278,
1745,
1328,
2986,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1328,
834,
22280,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1745,
3274,
96,
1483,
9,
1825,
9,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Title was awarded the gold RIAA Sales Certification? | CREATE TABLE table_name_5 (
title VARCHAR,
riaa_sales_certification VARCHAR
) | SELECT title FROM table_name_5 WHERE riaa_sales_certification = "gold" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
2233,
584,
4280,
28027,
6,
3,
52,
23,
9,
9,
834,
7,
4529,
834,
2110,
17,
2420,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
11029,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
3,
52,
23,
9,
9,
834,
7,
4529,
834,
2110,
17,
2420,
3274,
96,
14910,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Bar chart of mean age from each city code, and list in ascending by the city_code. | CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT city_code, AVG(Age) FROM Student GROUP BY city_code ORDER BY city_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3306,
7,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
103,
52,
6983,
3,
21342,
17966,
6,
562,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
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,
690,
834,
4978,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
690,
834,
4978,
4674,
11300,
272,
476,
690,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest number of extra points for players with less than 2 touchdowns and less than 1 point? | CREATE TABLE table_75197 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MAX("Extra points") FROM table_75197 WHERE "Touchdowns" < '2' AND "Points" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
27181,
41,
96,
15800,
49,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979,
121,
490,
6,
96,
3183,
8804,
1766,
121,
490,
6,
96,
22512,
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,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
5420,
1313,
979,
8512,
21680,
953,
834,
3072,
27181,
549,
17444,
427,
96,
3696,
2295,
3035,
7,
121,
3,
2,
3,
31,
357,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
... |
Name the fastest lap for round 14 | CREATE TABLE table_27533 (
"Round" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
) | SELECT COUNT("Fastest Lap") FROM table_27533 WHERE "Round" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
4201,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
371,
9,
7,
4377,
325,
102,
8512,
21680,
953,
834,
25988,
4201,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross? | CREATE TABLE table_62421 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"Team from" text,
"League from" text
) | SELECT "League from" FROM table_62421 WHERE "Position" = 'lw' AND "Pick #" > '34' AND "Player" = 'bradley ross' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2266,
2658,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
18699,
45,
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,
2796,
9,
5398,
45,
121,
21680,
953,
834,
948,
2266,
2658,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
40,
210,
31,
3430,
96,
345,
3142,
1713,
121,
2490,
3,
31,
3710,
31,
3430,
96,
15800,
49,
1... |
What is the location of the Moorabbin Oval stadium? | CREATE TABLE table_28885977_1 (location VARCHAR, stadium VARCHAR) | SELECT location FROM table_28885977_1 WHERE stadium = "Moorabbin Oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
10927,
3390,
4013,
834,
536,
41,
14836,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
1290,
127,
12982,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
357,
10927,
3390,
4013,
834,
536,
549,
17444,
427,
14939,
3274,
96,
16334,
7093,
4517,
411,
2165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the Record 41 32 6? | CREATE TABLE table_name_95 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_95 WHERE record = "41–32–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
11392,
8798,
3538,
431,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1368,
3274,
96,
4853,
104,
2668,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if you lined the contestants up by height with shortest first and tallest last , which contestant would be next after carolina ayala cromen ? | CREATE TABLE table_203_791 (
id number,
"represented" text,
"contestant" text,
"age" number,
"height" text,
"hometown" text
) | SELECT "contestant" FROM table_203_791 WHERE "height" > (SELECT "height" FROM table_203_791 WHERE "contestant" = 'carolina ayala cromen') ORDER BY "height" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4440,
536,
41,
3,
23,
26,
381,
6,
96,
29845,
121,
1499,
6,
96,
1018,
4377,
288,
121,
1499,
6,
96,
545,
121,
381,
6,
96,
88,
2632,
121,
1499,
6,
96,
5515,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1018,
4377,
288,
121,
21680,
953,
834,
23330,
834,
4440,
536,
549,
17444,
427,
96,
88,
2632,
121,
2490,
41,
23143,
14196,
96,
88,
2632,
121,
21680,
953,
834,
23330,
834,
4440,
536,
549,
17444,
427,
96,
1018,
437... |
What is the smallest draws for Byes less than 4? | CREATE TABLE table_12507 (
"Benalla DFL" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Byes" real,
"Against" real
) | SELECT MIN("Draws") FROM table_12507 WHERE "Byes" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
4560,
41,
96,
279,
35,
1748,
9,
309,
10765,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
279,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
10936,
7,
8512,
21680,
953,
834,
10124,
4560,
549,
17444,
427,
96,
279,
10070,
121,
3,
2,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the reader is Syal, Meera Meera Syal, what was the release date? | CREATE TABLE table_23604 (
"Title" text,
"Author" text,
"Reader" text,
"Format" text,
"Company" text,
"Release Date" text,
"Notes" text
) | SELECT "Release Date" FROM table_23604 WHERE "Reader" = 'Syal, Meera Meera Syal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
19208,
591,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
19915,
49,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
5890,
2837,
63,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
40,
14608,
7678,
121,
21680,
953,
834,
357,
19208,
591,
549,
17444,
427,
96,
19915,
49,
121,
3274,
3,
31,
134,
63,
138,
6,
14255,
9,
14255,
9,
5224,
138,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which site has the CERCLIS ID fld004092532? | CREATE TABLE table_11971 (
"CERCLIS ID" text,
"Name" text,
"County" text,
"Partially deleted" text,
"Deleted" text
) | SELECT "Name" FROM table_11971 WHERE "CERCLIS ID" = 'fld004092532' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
4450,
41,
96,
4770,
4902,
25769,
4699,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
13725,
23,
1427,
16355,
121,
1499,
6,
96,
28141,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
19993,
4450,
549,
17444,
427,
96,
4770,
4902,
25769,
4699,
121,
3274,
3,
31,
89,
40,
26,
1206,
2445,
28456,
2668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients who were admitted before 2124 and had hematology lab test category. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2124" AND lab."CATEGORY" = "Hematology" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which year had playoffs of champion? | CREATE TABLE table_53224 (
"Year" real,
"Division" text,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT AVG("Year") FROM table_53224 WHERE "Playoffs" = 'champion' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
24622,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
5,
7960,
121,
1499,
6,
96,
15800,
1647,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4867,
24622,
549,
17444,
427,
96,
15800,
1647,
7,
121,
3274,
3,
31,
17788,
12364,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Record has a Time (ET) of 1:00pm, and an Opponent of kansas city chiefs? | CREATE TABLE table_38089 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
) | SELECT "Record" FROM table_38089 WHERE "Time ( ET )" = '1:00pm' AND "Opponent" = 'kansas city chiefs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22671,
3914,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
13368,
41,
10104,
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,
1649,
7621,
121,
21680,
953,
834,
22671,
3914,
549,
17444,
427,
96,
13368,
41,
10104,
3,
61,
121,
3274,
3,
31,
24294,
2028,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
3304,
7,
9,
7,
690,
5752,
7,
31,
... |
Give the date of games against minnesota wild | CREATE TABLE table_17360840_4 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_17360840_4 WHERE opponent = "Minnesota Wild" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
19208,
26311,
834,
591,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6434,
8,
833,
13,
1031,
581,
3519,
1496,
32,
17,
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,
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,
2517,
19208,
26311,
834,
591,
549,
17444,
427,
15264,
3274,
96,
12858,
1496,
32,
17,
9,
5342,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the grid average with a +1 lap time and more than 27 laps? | CREATE TABLE table_46104 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Grid") FROM table_46104 WHERE "Time/Retired" = '+1 lap' AND "Laps" > '27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
15442,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
13313,
26,
8512,
21680,
953,
834,
4448,
15442,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
18446,
14941,
31,
3430,
96,
3612,
102,
7,
121,
2490,
3,
31,
2555,
31,
1,
-100,... |
In which colleges is the NFL Team New York Giants and with the position defensive back? | CREATE TABLE table_27357 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_27357 WHERE "NFL Team" = 'New York Giants' AND "Position" = 'Defensive back' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
519,
3436,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9939,
7883,
121,
21680,
953,
834,
2555,
519,
3436,
549,
17444,
427,
96,
12619,
434,
2271,
121,
3274,
3,
31,
6861,
1060,
3156,
2366,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
2962,
23039,
15,
223,
31,
... |
Find the names of procedures which physician John Wen was trained in. | CREATE TABLE nurse (
employeeid number,
name text,
position text,
registered boolean,
ssn number
)
CREATE TABLE patient (
ssn number,
name text,
address text,
phone text,
insuranceid number,
pcp number
)
CREATE TABLE trained_in (
physician number,
treatment number,
certificationdate time,
certificationexpires time
)
CREATE TABLE undergoes (
patient number,
procedures number,
stay number,
dateundergoes time,
physician number,
assistingnurse number
)
CREATE TABLE affiliated_with (
physician number,
department number,
primaryaffiliation boolean
)
CREATE TABLE physician (
employeeid number,
name text,
position text,
ssn number
)
CREATE TABLE appointment (
appointmentid number,
patient number,
prepnurse number,
physician number,
start time,
end time,
examinationroom text
)
CREATE TABLE medication (
code number,
name text,
brand text,
description text
)
CREATE TABLE block (
blockfloor number,
blockcode number
)
CREATE TABLE on_call (
nurse number,
blockfloor number,
blockcode number,
oncallstart time,
oncallend time
)
CREATE TABLE procedures (
code number,
name text,
cost number
)
CREATE TABLE room (
roomnumber number,
roomtype text,
blockfloor number,
blockcode number,
unavailable boolean
)
CREATE TABLE stay (
stayid number,
patient number,
room number,
staystart time,
stayend time
)
CREATE TABLE department (
departmentid number,
name text,
head number
)
CREATE TABLE prescribes (
physician number,
patient number,
medication number,
date time,
appointment number,
dose text
) | SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10444,
41,
3490,
23,
26,
381,
6,
564,
1499,
6,
1102,
1499,
6,
3366,
3,
12840,
109,
152,
6,
3,
7,
7,
29,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
4350,
21680,
10027,
6157,
332,
536,
3,
15355,
3162,
4252,
834,
77,
6157,
332,
357,
9191,
332,
5411,
15,
51,
7379,
63,
15,
15,
23,
26,
3274,
332,
4416,
6941,
7,
1294,
152,
3,
15355,
3162,
4293,
6157,
332... |
show me the length of stay of patient 002-54808 from the last stay in the icu. | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-54808') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
26,
159,
7993,
715,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
21680,
1868,
549,
17444,
427... |
Name the points for games of 16 16 | CREATE TABLE table_69713 (
"Player" text,
"Games" text,
"Tries" text,
"Goals" text,
"F. Goals" text,
"Points" text
) | SELECT "Points" FROM table_69713 WHERE "Games" = '16 16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
4450,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
382,
2593,
121,
1499,
6,
96,
6221,
5405,
121,
1499,
6,
96,
371,
5,
17916,
7,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22512,
7,
121,
21680,
953,
834,
3951,
4450,
519,
549,
17444,
427,
96,
23055,
7,
121,
3274,
3,
31,
2938,
898,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is Peter Little's party? | CREATE TABLE table_2668329_11 (
party VARCHAR,
incumbent VARCHAR
) | SELECT party FROM table_2668329_11 WHERE incumbent = "Peter Little" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
3166,
834,
2596,
41,
1088,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
2737,
5258,
31,
7,
1088,
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,
1088,
21680,
953,
834,
2688,
3651,
519,
3166,
834,
2596,
549,
17444,
427,
28406,
3274,
96,
345,
15,
449,
5258,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many players were the running back draft pick for the New England Patriots? | CREATE TABLE table_27378 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("Player") FROM table_27378 WHERE "NFL Team" = 'New England Patriots' AND "Position" = 'Running back' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
519,
3940,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
49,
8512,
21680,
953,
834,
2555,
519,
3940,
549,
17444,
427,
96,
12619,
434,
2271,
121,
3274,
3,
31,
6861,
2789,
20109,
7,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
17137,
941... |
What are the name and population of each county? | CREATE TABLE county (
county_id number,
county_name text,
population number,
zip_code text
)
CREATE TABLE election (
election_id number,
counties_represented text,
district number,
delegate text,
party number,
first_elected number,
committee text
)
CREATE TABLE party (
party_id number,
year number,
party text,
governor text,
lieutenant_governor text,
comptroller text,
attorney_general text,
us_senate text
) | SELECT county_name, population FROM county | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
5435,
834,
23,
26,
381,
6,
5435,
834,
4350,
1499,
6,
2074,
381,
6,
10658,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
4356,
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,
5435,
834,
4350,
6,
2074,
21680,
5435,
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,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.