NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the lowest Rank with a Nation that is east germany? | CREATE TABLE table_name_43 (
rank INTEGER,
nation VARCHAR
) | SELECT MIN(rank) FROM table_name_43 WHERE nation = "east germany" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
11003,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
3,
22557,
28,
3,
9,
11046,
24,
19,
5727,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
2982,
3274,
96,
11535,
13692,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of last_name and salary , order by the y axis in ascending. | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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)
) | SELECT LAST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
12510,
834,
567,
17683,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
17966,... |
Where did the home team score 11.18 (84)? | CREATE TABLE table_77738 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_77738 WHERE "Home team score" = '11.18 (84)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26225,
3747,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
26225,
3747,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
10032,
2606,
13642,
7256,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978? | CREATE TABLE table_name_6 (
bronze VARCHAR,
location VARCHAR,
year VARCHAR
) | SELECT bronze FROM table_name_6 WHERE location = "bangkok" AND year = 1978 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
13467,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2616,
21,
8,
20841,
6,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13467,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
1128,
3274,
96,
115,
1468,
157,
1825,
121,
3430,
215,
3274,
14834,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the population density of Caramoran? | CREATE TABLE table_255829_1 (pop_density__per_km_2__ VARCHAR, municipality VARCHAR) | SELECT pop_density__per_km_2__ FROM table_255829_1 WHERE municipality = "Caramoran" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3449,
3166,
834,
536,
41,
9791,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
6,
27597,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2783,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
834,
357,
834,
834,
21680,
953,
834,
1828,
3449,
3166,
834,
536,
549,
17444,
427,
27597,
3274,
96,
6936,
9,
2528,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the land area of Switzerland with a population density fewer than 188 km²? | CREATE TABLE table_name_98 (land_area__km²_ INTEGER, country VARCHAR, population_density__pop_per_km²_ VARCHAR) | SELECT AVG(land_area__km²_) FROM table_name_98 WHERE country = "switzerland" AND population_density__pop_per_km²_ < 188 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
40,
232,
834,
498,
834,
834,
5848,
357,
834,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
2074,
834,
537,
7,
485,
834,
834,
9791,
834,
883,
834,
584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
232,
834,
498,
834,
834,
5848,
357,
834,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
684,
3274,
96,
7,
15686,
15,
7721,
121,
3430,
2074,
834,
537,
7,
485,
834,
834,
9791,
834,
883,
... |
What is the lowest number of drawn games by a team? | CREATE TABLE table_30389 (
"Position" real,
"Club" text,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"Pts For" real,
"Pts Agst" real,
"Points" real,
"Percent" text
) | SELECT MIN("Drawn") FROM table_30389 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23335,
3914,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
518,
106,
121,
490,
6,
96,
308,
10936,
29,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
10936,
29,
8512,
21680,
953,
834,
23335,
3914,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest amount of goals with more than 51 goals against and less than 30 played? | CREATE TABLE table_name_66 (goals_for INTEGER, goals_against VARCHAR, played VARCHAR) | SELECT MAX(goals_for) FROM table_name_66 WHERE goals_against > 51 AND played < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
839,
5405,
834,
1161,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
839,
5405,
834,
1161,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
2490,
11696,
3430,
1944,
3,
2,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the player is Jasmine Wynne, what is the minimum number of steals? | CREATE TABLE table_23346303_5 (
steals INTEGER,
player VARCHAR
) | SELECT MIN(steals) FROM table_23346303_5 WHERE player = "Jasmine Wynne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
4448,
23335,
834,
755,
41,
11332,
7,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1959,
19,
2215,
7,
8695,
11314,
29,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
849,
5405,
61,
21680,
953,
834,
20879,
4448,
23335,
834,
755,
549,
17444,
427,
1959,
3274,
96,
683,
9,
7,
8695,
11314,
29,
29,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What village has an area of 27.19 km2? | CREATE TABLE table_28164 (
"Village" text,
"Area km\u00b2" text,
"Population (2000 census )" real,
"Region" text,
"Pop. Density" real
) | SELECT "Village" FROM table_28164 WHERE "Area km\u00b2" = '27.19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
26987,
41,
96,
553,
17614,
121,
1499,
6,
96,
188,
864,
2280,
2,
76,
1206,
115,
357,
121,
1499,
6,
96,
27773,
7830,
41,
13527,
23087,
3,
61,
121,
490,
6,
96,
17748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
17614,
121,
21680,
953,
834,
2577,
26987,
549,
17444,
427,
96,
188,
864,
2280,
2,
76,
1206,
115,
357,
121,
3274,
3,
31,
2555,
5,
2294,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was on the pole position at the monaco grand prix? | CREATE TABLE table_1137695_3 (
pole_position VARCHAR,
grand_prix VARCHAR
) | SELECT pole_position FROM table_1137695_3 WHERE grand_prix = "Monaco grand_prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
3959,
3301,
834,
519,
41,
11148,
834,
4718,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
30,
8,
11148,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11148,
834,
4718,
21680,
953,
834,
20522,
3959,
3301,
834,
519,
549,
17444,
427,
1907,
834,
2246,
226,
3274,
96,
9168,
9,
509,
1907,
834,
2246,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For engines of Maserati Straight-6 and entrants of H H Gould, what is the latest year? | CREATE TABLE table_name_14 (
year INTEGER,
engine VARCHAR,
entrant VARCHAR
) | SELECT MAX(year) FROM table_name_14 WHERE engine = "maserati straight-6" AND entrant = "h h gould" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
215,
3,
21342,
17966,
6,
1948,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
7277,
13,
6664,
15,
6850... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1948,
3274,
96,
2754,
15,
6850,
2541,
5783,
121,
3430,
3,
295,
3569,
3274,
96,
107,
3,
107,
281,
83,
26,
121,
1,
-100,
-100,
-100,
-100,
... |
What are the average ages for male and female students? | CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT AVG(age), sex FROM student GROUP BY sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
834,
6137,
41,
23886,
1499,
6,
23886,
6137,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
65,
834,
11211,
122,
63,
41,
21341,
23,
26,
381,
6,
23886,
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,
71,
17217,
599,
545,
201,
3,
7,
994,
21680,
1236,
350,
4630,
6880,
272,
476,
3,
7,
994,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest geohash length when the lat error is 0.00068, and the lat bits larger than 17? | CREATE TABLE table_7441 (
"geohash length" real,
"lat bits" real,
"lng bits" real,
"lat error" text,
"lng error" text,
"km error" text
) | SELECT MAX("geohash length") FROM table_7441 WHERE "lat error" = '±0.00068' AND "lat bits" > '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4853,
41,
96,
397,
32,
107,
3198,
2475,
121,
490,
6,
96,
40,
144,
14120,
121,
490,
6,
96,
40,
1725,
14120,
121,
490,
6,
96,
40,
144,
3505,
121,
1499,
6,
96,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
397,
32,
107,
3198,
2475,
8512,
21680,
953,
834,
4581,
4853,
549,
17444,
427,
96,
40,
144,
3505,
121,
3274,
3,
31,
2,
5311,
3651,
31,
3430,
96,
40,
144,
14120,
121,
2490,
3,
31,
2517,
31,
1,
... |
What is the largest number of seats with more than 32 of a MCI make? | CREATE TABLE table_name_24 (number_of_seats INTEGER, make VARCHAR, quantity VARCHAR) | SELECT MAX(number_of_seats) FROM table_name_24 WHERE make = "mci" AND quantity > 32 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
5525,
1152,
834,
858,
834,
7,
1544,
7,
3,
21342,
17966,
6,
143,
584,
4280,
28027,
6,
8708,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
5525,
1152,
834,
858,
834,
7,
1544,
7,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
143,
3274,
96,
51,
75,
23,
121,
3430,
8708,
2490,
3538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What team played against Al-Ismaily (team 1)? | CREATE TABLE table_name_79 (
team_2 VARCHAR,
team_1 VARCHAR
) | SELECT team_2 FROM table_name_79 WHERE team_1 = "al-ismaily" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
372,
834,
357,
584,
4280,
28027,
6,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
1944,
581,
901,
18,
196,
7,
1963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
357,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
372,
834,
536,
3274,
96,
138,
18,
159,
1963,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many places have 17 varsity teams? | CREATE TABLE table_2439728_1 (location VARCHAR, varsity_teams VARCHAR) | SELECT COUNT(location) FROM table_2439728_1 WHERE varsity_teams = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
4327,
2577,
834,
536,
41,
14836,
584,
4280,
28027,
6,
3,
31336,
834,
11650,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
1747,
43,
1003,
3,
31336,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14836,
61,
21680,
953,
834,
27730,
4327,
2577,
834,
536,
549,
17444,
427,
3,
31336,
834,
11650,
7,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the date of the Collingwood away game? | CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_38 WHERE away_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
9919,
53,
2037,
550,
467,
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,
3747,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Rec has Jerel Myers as the Player? | CREATE TABLE table_name_25 (
rec VARCHAR,
player VARCHAR
) | SELECT rec FROM table_name_25 WHERE player = "jerel myers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
5026,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7136,
65,
1022,
60,
40,
499,
277,
38,
8,
12387,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5026,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1959,
3274,
96,
12488,
15,
40,
82,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the leg for c. atkinson | CREATE TABLE table_13050822_2 (leg VARCHAR, rally_leader VARCHAR) | SELECT leg FROM table_13050822_2 WHERE rally_leader = "C. Atkinson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
1752,
4613,
357,
834,
357,
41,
5772,
584,
4280,
28027,
6,
13980,
834,
22900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4553,
21,
3,
75,
5,
44,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4553,
21680,
953,
834,
21448,
1752,
4613,
357,
834,
357,
549,
17444,
427,
13980,
834,
22900,
3274,
96,
254,
5,
486,
7815,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the lowest pick for a defensive back at Drake? | CREATE TABLE table_name_99 (
pick INTEGER,
position VARCHAR,
school VARCHAR
) | SELECT MIN(pick) FROM table_name_99 WHERE position = "defensive back" AND school = "drake" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
1432,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
7402,
1432,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17967,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1102,
3274,
96,
221,
23039,
15,
223,
121,
3430,
496,
3274,
96,
3515,
1050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006? | CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR) | SELECT score FROM table_name_67 WHERE location = "clemson, sc" AND winner = "clemson" AND date = "november 11, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1128,
3274,
96,
2482,
51,
739,
6,
3,
7,
75,
121,
3430,
4668,
3274,
96,
2482,
51,
739,
121,
3430,
833,
3274,
96,
5326,
18247,
9694,
3581,
121,
1,
-100,
-100,... |
What is the title of series 23? | CREATE TABLE table_22360 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
) | SELECT "Title" FROM table_22360 WHERE "No. in series" = '23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
19208,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
2884,
19208,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
2773,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the decision of the game with more than 17,496 attendance on April 30? | CREATE TABLE table_55878 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real
) | SELECT "Decision" FROM table_55878 WHERE "Attendance" > '17,496' AND "Date" = 'april 30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3449,
3940,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
2962,
18901,
121,
21680,
953,
834,
755,
3449,
3940,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
2517,
6,
591,
4314,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
604,
31,
1,
-100... |
Who is the director of the best foreign film? | CREATE TABLE table_name_14 (director VARCHAR, original_title VARCHAR) | SELECT director FROM table_name_14 WHERE original_title = "best foreign film" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
25982,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2090,
13,
8,
200,
2959,
814,
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,
2090,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
926,
834,
21869,
3274,
96,
9606,
2959,
814,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the H/A when Cork City is the opponent? | CREATE TABLE table_48783 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real
) | SELECT "H / A" FROM table_48783 WHERE "Opponents" = 'cork city' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3940,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
566,
3,
87,
71,
121,
1499,
6,
96,
20119,
377,
3,
2,
76,
11138,
71,
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,
566,
3,
87,
71,
121,
21680,
953,
834,
3707,
3940,
519,
549,
17444,
427,
96,
667,
102,
9977,
7,
121,
3274,
3,
31,
5715,
157,
690,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how much more are the weekly collections from cathedral of christ the king than most blessed sacrament catholic church ? | CREATE TABLE table_203_387 (
id number,
"parish est" number,
"church" text,
"city" text,
"current bldg begun" number,
"weekly collections" text,
"notes" number
) | SELECT (SELECT "weekly collections" FROM table_203_387 WHERE "church" = 'cathedral of christ the king') - (SELECT "weekly collections" FROM table_203_387 WHERE "church" = 'most blessed sacrament catholic church') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
4225,
41,
3,
23,
26,
381,
6,
96,
1893,
1273,
259,
121,
381,
6,
96,
28854,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
14907,
3,
115,
40,
26,
122,
11173,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
8041,
120,
8274,
121,
21680,
953,
834,
23330,
834,
519,
4225,
549,
17444,
427,
96,
28854,
121,
3274,
3,
31,
2138,
88,
26,
4900,
13,
3,
15294,
8,
3,
1765,
31,
61,
3,
18,
41,
23143,
14196,
96... |
What is the total number of bronzes from the Netherlands? | CREATE TABLE table_name_44 (
bronze VARCHAR,
nation VARCHAR
) | SELECT COUNT(bronze) FROM table_name_44 WHERE nation = "netherlands" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
13467,
7,
45,
8,
12023,
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,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
2982,
3274,
96,
29,
16764,
6347,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the round for 2nd elimination final | CREATE TABLE table_31905 (
"Round" text,
"Match" text,
"Name" text,
"Team 1" text,
"!!Team 2" text
) | SELECT "Round" FROM table_31905 WHERE "Match" = '2nd elimination final' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2294,
3076,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
329,
14547,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
18699,
209,
121,
1499,
6,
96,
1603,
18699,
204,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
519,
2294,
3076,
549,
17444,
427,
96,
329,
14547,
121,
3274,
3,
31,
357,
727,
23458,
804,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
has patient 030-47098 visited an admission? | 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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '030-47098' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
4928,
9498,
27760,
3916,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id, display by the Y-axis in descending. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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)
) | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
... |
What was the report when the average speed (mph) was 87.599? | CREATE TABLE table_2175685_1 (report VARCHAR, average_speed__mph_ VARCHAR) | SELECT report FROM table_2175685_1 WHERE average_speed__mph_ = "87.599" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
4834,
4433,
834,
536,
41,
60,
1493,
584,
4280,
28027,
6,
1348,
834,
9993,
834,
834,
7656,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
357,
2517,
4834,
4433,
834,
536,
549,
17444,
427,
1348,
834,
9993,
834,
834,
7656,
834,
3274,
96,
927,
15731,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List top 10 employee work longest in the company. List employee's first and last name. | CREATE TABLE sqlite_sequence (
name text,
seq text
)
CREATE TABLE customers (
id number,
first_name text,
last_name text,
company text,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text,
support_rep_id number
)
CREATE TABLE invoices (
id number,
customer_id number,
invoice_date time,
billing_address text,
billing_city text,
billing_state text,
billing_country text,
billing_postal_code text,
total number
)
CREATE TABLE tracks (
id number,
name text,
album_id number,
media_type_id number,
genre_id number,
composer text,
milliseconds number,
bytes number,
unit_price number
)
CREATE TABLE invoice_lines (
id number,
invoice_id number,
track_id number,
unit_price number,
quantity number
)
CREATE TABLE media_types (
id number,
name text
)
CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text
)
CREATE TABLE albums (
id number,
title text,
artist_id number
)
CREATE TABLE playlist_tracks (
playlist_id number,
track_id number
)
CREATE TABLE genres (
id number,
name text
)
CREATE TABLE artists (
id number,
name text
)
CREATE TABLE playlists (
id number,
name text
) | SELECT first_name, last_name FROM employees ORDER BY hire_date LIMIT 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11820,
6311,
834,
7,
15,
835,
3772,
41,
564,
1499,
6,
142,
1824,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
3,
23,
26,
381,
6,
166,
834,
4350,
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,
166,
834,
4350,
6,
336,
834,
4350,
21680,
1652,
4674,
11300,
272,
476,
3804,
834,
5522,
8729,
12604,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the pole position in Milwaukee? | CREATE TABLE table_27913160_3 (pole_position VARCHAR, race VARCHAR) | SELECT pole_position FROM table_27913160_3 WHERE race = "Milwaukee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4440,
2368,
19129,
834,
519,
41,
14332,
834,
4718,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
11148,
1102,
16,
21140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11148,
834,
4718,
21680,
953,
834,
357,
4440,
2368,
19129,
834,
519,
549,
17444,
427,
1964,
3274,
96,
329,
173,
210,
402,
1050,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was the 1991 world group I with the opponent of Li Fang? | CREATE TABLE table_name_2 (
date VARCHAR,
edition VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_2 WHERE edition = "1991 world group i" AND opponent = "li fang" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
833,
584,
4280,
28027,
6,
4182,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
9957,
296,
563,
27,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
4182,
3274,
96,
2294,
4729,
296,
563,
3,
23,
121,
3430,
15264,
3274,
96,
40,
23,
1819,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Top-25 with Wins less than 0? | CREATE TABLE table_name_2 (top_25 INTEGER, wins INTEGER) | SELECT MIN(top_25) FROM table_name_2 WHERE wins < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
2916,
834,
1828,
3,
21342,
17966,
6,
9204,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
2224,
14855,
28,
4871,
7,
705,
145,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
9204,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest attandance recorded at Cappielow? | CREATE TABLE table_11207040_5 (
lowest INTEGER,
stadium VARCHAR
) | SELECT MIN(lowest) FROM table_11207040_5 WHERE stadium = "Cappielow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
1755,
2518,
2445,
834,
755,
41,
7402,
3,
21342,
17966,
6,
14939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
44,
17,
232,
663,
4381,
44,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3216,
222,
61,
21680,
953,
834,
2596,
1755,
2518,
2445,
834,
755,
549,
17444,
427,
14939,
3274,
96,
19566,
8082,
3216,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What did the home team score at Western Oval? | CREATE TABLE table_name_4 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_4 WHERE venue = "western oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
8,
234,
372,
2604,
44,
3782,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
5669,
3274,
96,
24411,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total titles did Rupesh Kumar Sanave Thomas and Jwala Gutta Ashwini Ponnappa win total? | CREATE TABLE table_459 (
"Season" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT COUNT("Womens singles") FROM table_459 WHERE "Mens doubles" = 'Rupesh Kumar Sanave Thomas' AND "Womens doubles" = 'Jwala Gutta Ashwini Ponnappa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3390,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
329,
35,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
7,
1486,
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,
2847,
17161,
599,
121,
518,
32,
904,
7,
712,
7,
8512,
21680,
953,
834,
591,
3390,
549,
17444,
427,
96,
329,
35,
7,
1486,
7,
121,
3274,
3,
31,
17137,
855,
7,
107,
23400,
1051,
9,
162,
3576,
31,
3430,
96,
518,
3... |
history of heart failure with ef < 30 | CREATE TABLE table_train_228 (
"id" int,
"ejection_fraction_ef" int,
"hiv_infection" bool,
"heart_disease" bool,
"body_weight" float,
"body_mass_index_bmi" float,
"allergy_to_beef" bool,
"NOUSE" float
) | SELECT * FROM table_train_228 WHERE heart_disease = 1 AND ejection_fraction_ef < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
2577,
41,
96,
23,
26,
121,
16,
17,
6,
96,
15,
21440,
834,
22513,
834,
15,
89,
121,
16,
17,
6,
96,
107,
23,
208,
834,
77,
17856,
121,
3,
12840,
40,
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,
1429,
21680,
953,
834,
9719,
834,
357,
2577,
549,
17444,
427,
842,
834,
26,
159,
14608,
3274,
209,
3430,
3,
15,
21440,
834,
22513,
834,
15,
89,
3,
2,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many went to cincinnati ? | CREATE TABLE table_204_585 (
id number,
"year" text,
"player" text,
"high school" text,
"college" text,
"nba/aba draft" text
) | SELECT COUNT(*) FROM table_204_585 WHERE "college" = 'cincinnati' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3449,
755,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
6739,
496,
121,
1499,
6,
96,
3297,
7883,
121,
1499,
6,
96,
29,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
3449,
755,
549,
17444,
427,
96,
3297,
7883,
121,
3274,
3,
31,
75,
11542,
29,
18530,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the location when the year is after 1974 and the date is september 19? | CREATE TABLE table_name_36 (
location VARCHAR,
year VARCHAR,
date VARCHAR
) | SELECT location FROM table_name_36 WHERE year > 1974 AND date = "september 19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1128,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1128,
116,
8,
215,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
215,
2490,
17184,
3430,
833,
3274,
96,
7,
6707,
18247,
957,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the competition when the result is won and the date is september 13, 1996? | CREATE TABLE table_name_87 (competition VARCHAR, result VARCHAR, date VARCHAR) | SELECT competition FROM table_name_87 WHERE result = "won" AND date = "september 13, 1996" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2259,
116,
8,
741... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2259,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
741,
3274,
96,
210,
106,
121,
3430,
833,
3274,
96,
7,
6707,
18247,
10670,
6911,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the opponent from September 28? | CREATE TABLE table_name_13 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_13 WHERE date = "september 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
15264,
45,
1600,
2059,
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,
15264,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the co-driver in 1970 for the race of Targa Florio? | CREATE TABLE table_name_46 (co_driver VARCHAR, year VARCHAR, race VARCHAR) | SELECT co_driver FROM table_name_46 WHERE year = 1970 AND race = "targa florio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
509,
834,
13739,
52,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
576,
18,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
576,
834,
13739,
52,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
215,
3274,
7434,
3430,
1964,
3274,
96,
17,
8240,
9,
12215,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Time of 10.82 has what location? | CREATE TABLE table_name_84 (location VARCHAR, time VARCHAR) | SELECT location FROM table_name_84 WHERE time = 10.82 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
14836,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2900,
13,
5477,
4613,
65,
125,
1128,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
97,
3274,
5477,
4613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What loss has 26-9 as a loss? | CREATE TABLE table_name_96 (
loss VARCHAR,
record VARCHAR
) | SELECT loss FROM table_name_96 WHERE record = "26-9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1453,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1453,
65,
2208,
7141,
38,
3,
9,
1453,
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,
1453,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1368,
3274,
96,
2688,
7141,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose age is less than 61 and diagnoses short title is hypothyroidism nos? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "61" AND diagnoses.short_title = "Hypothyroidism NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Tell me the % of wt 2nd for bp 3rd comp of 98.4 | CREATE TABLE table_name_77 (_percentage_wt_2nd VARCHAR, bp_3rd_comp__˚c_ VARCHAR) | SELECT _percentage_wt_2nd FROM table_name_77 WHERE bp_3rd_comp__˚c_ = "98.4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
834,
883,
3728,
545,
834,
210,
17,
834,
357,
727,
584,
4280,
28027,
6,
3,
115,
102,
834,
519,
52,
26,
834,
7699,
834,
834,
3,
2,
75,
834,
584,
4280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
883,
3728,
545,
834,
210,
17,
834,
357,
727,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
3,
115,
102,
834,
519,
52,
26,
834,
7699,
834,
834,
3,
2,
75,
834,
3274,
96,
3916,
5,
20364,
1,
-100,
-10... |
When did the term end that began December 4, 1978? | CREATE TABLE table_224672_2 (
term_ended VARCHAR,
term_began VARCHAR
) | SELECT term_ended FROM table_224672_2 WHERE term_began = "December 4, 1978" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
3708,
357,
834,
357,
41,
1657,
834,
14550,
584,
4280,
28027,
6,
1657,
834,
346,
2565,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
1657,
414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1657,
834,
14550,
21680,
953,
834,
24622,
3708,
357,
834,
357,
549,
17444,
427,
1657,
834,
346,
2565,
3274,
96,
29835,
6464,
14834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the sum of draw for artist hari mata hari with less than 70 points? | CREATE TABLE table_11271 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" real
) | SELECT SUM("Draw") FROM table_11271 WHERE "Artist" = 'hari mata hari' AND "Points" < '70' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2555,
536,
41,
96,
308,
10936,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
345,
11706,
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,
180,
6122,
599,
121,
308,
10936,
8512,
21680,
953,
834,
2596,
2555,
536,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
16250,
6928,
9,
3,
16250,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
2518,
31,
1,
-100,
... |
Name the opponent for black knights points 27 | CREATE TABLE table_21091145_1 (
opponent VARCHAR,
black_knights_points VARCHAR
) | SELECT opponent FROM table_21091145_1 WHERE black_knights_points = 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15239,
4729,
20987,
834,
536,
41,
15264,
584,
4280,
28027,
6,
1001,
834,
157,
7602,
7,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
15239,
4729,
20987,
834,
536,
549,
17444,
427,
1001,
834,
157,
7602,
7,
834,
2700,
7,
3274,
2307,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 1991 with a 2r 1996? | CREATE TABLE table_60359 (
"Tournament" text,
"1988" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"Career SR" text,
"Career Win-Loss" text
) | SELECT "1991" FROM table_60359 WHERE "1996" = '2r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
519,
3390,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
4060,
121,
1499,
6,
96,
2294,
2394,
121,
1499,
6,
96,
2294,
4729,
121,
1499,
6,
96,
19479,
357,
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,
2294,
4729,
121,
21680,
953,
834,
3328,
519,
3390,
549,
17444,
427,
96,
2294,
4314,
121,
3274,
3,
31,
357,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds? | CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER); CREATE TABLE drivers (driverid VARCHAR, nationality VARCHAR) | SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14941,
715,
7,
41,
13739,
4055,
584,
4280,
28027,
6,
3293,
23,
12091,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3863,
41,
13739,
4055,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
13739,
4055,
6,
332,
5411,
16557,
485,
21680,
3863,
6157,
332,
536,
3,
15355,
3162,
14941,
715,
7,
6157,
332,
357,
9191,
332,
5411,
13739,
4055,
3274,
332,
4416,
13739,
4055,
549,
174... |
Total of 38.55, and a 3 Balls, 2 Ribbons smaller than 19.4 had what lowest place? | CREATE TABLE table_38207 (
"Place" real,
"Nation" text,
"5 Hoops" real,
"3 Balls, 2 Ribbons" real,
"Total" real
) | SELECT MIN("Place") FROM table_38207 WHERE "Total" = '38.55' AND "3 Balls, 2 Ribbons" < '19.4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
26426,
41,
96,
345,
11706,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
755,
1546,
9280,
121,
490,
6,
96,
519,
4155,
7,
6,
204,
30548,
7,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
11706,
8512,
21680,
953,
834,
3747,
26426,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
3747,
5,
3769,
31,
3430,
96,
519,
4155,
7,
6,
204,
30548,
7,
121,
3,
2,
3,
31,
2294,
5,
59... |
Which Drawn has Points for of 782? | CREATE TABLE table_name_2 (
drawn VARCHAR,
points_for VARCHAR
) | SELECT drawn FROM table_name_2 WHERE points_for = "782" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
6796,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
19183,
29,
65,
4564,
7,
21,
13,
489,
4613,
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,
6796,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
979,
834,
1161,
3274,
96,
3940,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the finish of the Kentucky Derby? | CREATE TABLE table_name_32 (
finish VARCHAR,
race VARCHAR
) | SELECT finish FROM table_name_32 WHERE race = "kentucky derby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1992,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1992,
13,
8,
13401,
21485,
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,
1992,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1964,
3274,
96,
2217,
17,
4636,
63,
74,
969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What it the international designation for the kosmos 2379 satellite? | CREATE TABLE table_18161217_2 (cospar_id VARCHAR, satellite VARCHAR) | SELECT cospar_id FROM table_18161217_2 WHERE satellite = "Kosmos 2379" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2938,
2122,
2517,
834,
357,
41,
509,
7,
1893,
834,
23,
26,
584,
4280,
28027,
6,
7605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
34,
8,
1038,
21767,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
576,
7,
1893,
834,
23,
26,
21680,
953,
834,
2606,
2938,
2122,
2517,
834,
357,
549,
17444,
427,
7605,
3274,
96,
439,
32,
7,
3972,
1902,
4440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold? | CREATE TABLE table_name_88 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_88 WHERE bronze < 34 AND gold < 14 AND silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
235,
1947,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
13467,
3,
2,
6154,
3430,
2045,
3,
2,
968,
3430,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the response received dates for the documents described as 'Regular' or granted with more than 100? | CREATE TABLE Document_Types (
document_type_code VARCHAR,
document_description VARCHAR
)
CREATE TABLE Grants (
grant_id VARCHAR,
grant_amount VARCHAR
)
CREATE TABLE Documents (
response_received_date VARCHAR,
document_type_code VARCHAR,
grant_id VARCHAR
) | SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
834,
25160,
7,
41,
1708,
834,
6137,
834,
4978,
584,
4280,
28027,
6,
1708,
834,
221,
11830,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8059,
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,
332,
5411,
60,
7,
5041,
7,
15,
834,
60,
565,
757,
26,
834,
5522,
21680,
11167,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
834,
25160,
7,
6157,
332,
357,
9191,
332,
5411,
28244,
834,
6137,
834,
4978,
3274,
332,
4416... |
When did the episode that had 5.09 million total viewers (both Live and SD types) first air? | CREATE TABLE table_24222929_3 (
original_airdate VARCHAR,
live VARCHAR,
sd_total_viewers VARCHAR
) | SELECT original_airdate FROM table_24222929_3 WHERE live + sd_total_viewers = "5.09 million" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2884,
3166,
3166,
834,
519,
41,
926,
834,
2256,
5522,
584,
4280,
28027,
6,
619,
584,
4280,
28027,
6,
3,
7,
26,
834,
235,
1947,
834,
4576,
277,
584,
4280,
28027,
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,
926,
834,
2256,
5522,
21680,
953,
834,
2266,
2884,
3166,
3166,
834,
519,
549,
17444,
427,
619,
1768,
3,
7,
26,
834,
235,
1947,
834,
4576,
277,
3274,
96,
20734,
1298,
770,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest rank when there are fewer than 1 silver, 4 golds and less than 0 bronze? | CREATE TABLE table_name_10 (
rank INTEGER,
bronze VARCHAR,
silver VARCHAR,
gold VARCHAR
) | SELECT MIN(rank) FROM table_name_10 WHERE silver < 1 AND gold = 4 AND bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
11003,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
4294,
3,
2,
209,
3430,
2045,
3274,
314,
3430,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Episode has a Rank of 1? | CREATE TABLE table_64377 (
"Rank" real,
"Show" text,
"Episode" text,
"Number of Viewers" real,
"Date" text
) | SELECT "Episode" FROM table_64377 WHERE "Rank" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
519,
4013,
41,
96,
22557,
121,
490,
6,
96,
134,
4067,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
567,
5937,
49,
13,
4197,
277,
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,
427,
102,
159,
32,
221,
121,
21680,
953,
834,
4389,
519,
4013,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients with brain mass; intracranial hemorrhage primary disease have ou route of drug administration? | 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
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND prescriptions.route = "OU" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What was the team record when the team played @ Utah? | CREATE TABLE table_21197135_1 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_21197135_1 WHERE opponent = "@ Utah" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2294,
4450,
2469,
834,
536,
41,
60,
7621,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
372,
1368,
116,
8,
372,
1944,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2658,
2294,
4450,
2469,
834,
536,
549,
17444,
427,
15264,
3274,
96,
1741,
12339,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What record has a score of 111-96? | CREATE TABLE table_33956 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Record" FROM table_33956 WHERE "Score" = '111-96' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3288,
4834,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
519,
3288,
4834,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
15866,
18,
4314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
have a glycosylated hemoglobin ( a1c ) of >= 7 % and <= 10.5 % at study screening | CREATE TABLE table_train_280 (
"id" int,
"fpg" float,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"renal_disease" bool,
"hba1c" float,
"body_mass_index_bmi" float,
"NOUSE" float
) | SELECT * FROM table_train_280 WHERE hba1c > 7 AND hemoglobin_a1c_hba1c <= 10.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
17518,
41,
96,
23,
26,
121,
16,
17,
6,
96,
89,
102,
122,
121,
3,
12660,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
121,
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,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
17518,
549,
17444,
427,
3,
107,
115,
9,
536,
75,
2490,
489,
3430,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
3,
2,
2423,
209,
12100,
1,
-100,
-100,
-100,
-100... |
How many laps were in 1955? | CREATE TABLE table_name_89 (laps VARCHAR, year VARCHAR) | SELECT COUNT(laps) FROM table_name_89 WHERE year = "1955" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
8478,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
130,
16,
23652,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
215,
3274,
96,
22464,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Visualize a bar chart for what are the ids and trade names of the medicine that can interact with at least 3 enzymes?, display Trade_Name in ascending order. | CREATE TABLE medicine_enzyme_interaction (
enzyme_id int,
medicine_id int,
interaction_type text
)
CREATE TABLE medicine (
id int,
name text,
Trade_Name text,
FDA_approved text
)
CREATE TABLE enzyme (
id int,
name text,
Location text,
Product text,
Chromosome text,
OMIM int,
Porphyria text
) | SELECT Trade_Name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id ORDER BY Trade_Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
834,
35,
4164,
526,
834,
3870,
4787,
41,
15735,
834,
23,
26,
16,
17,
6,
4404,
834,
23,
26,
16,
17,
6,
6565,
834,
6137,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6550,
834,
23954,
6,
3,
23,
26,
21680,
4404,
6157,
332,
536,
3,
15355,
3162,
4404,
834,
35,
4164,
526,
834,
3870,
4787,
6157,
332,
357,
9191,
332,
4416,
29368,
834,
23,
26,
3274,
332,
5411,
23,
26,
4674,
11300,
27... |
How many teams have been in Topperserien for 8 seasons? | CREATE TABLE table_2522473_1 (team VARCHAR, seasons VARCHAR) | SELECT COUNT(team) FROM table_2522473_1 WHERE seasons = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
24622,
4552,
834,
536,
41,
11650,
584,
4280,
28027,
6,
9385,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2323,
43,
118,
16,
2224,
4660,
15,
3483,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
11650,
61,
21680,
953,
834,
1828,
24622,
4552,
834,
536,
549,
17444,
427,
9385,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHich Score has a Record of 31 28 3? | CREATE TABLE table_37298 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Score" FROM table_37298 WHERE "Record" = '31–28–3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
357,
3916,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4118,
357,
3916,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
3341,
104,
2577,
104,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
whose name is listed before chris ashton ? | CREATE TABLE table_204_387 (
id number,
"name" text,
"country" text,
"top rugby league level" text,
"top union level" text,
"top representation level" text,
"rugby league debut" number,
"rugby union debut" number
) | SELECT "name" FROM table_204_387 WHERE id = (SELECT id FROM table_204_387 WHERE "name" = 'chris ashton') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
4225,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
2916,
22209,
5533,
593,
121,
1499,
6,
96,
2916,
7021,
593,
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,
4350,
121,
21680,
953,
834,
26363,
834,
519,
4225,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
519,
4225,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
524,
52,
... |
Who is the player with a score of 68-71=139? | CREATE TABLE table_47810 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_47810 WHERE "Score" = '68-71=139' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3940,
1714,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
591,
3940,
1714,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3651,
18,
4450,
2423,
24090,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many games were played against Tulane? | CREATE TABLE table_24010 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Hurricanes points" real,
"Opponents" real,
"Record" text
) | SELECT COUNT("Opponents") FROM table_24010 WHERE "Opponent" = 'Tulane' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
1714,
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,
566,
450,
2234,
9,
1496,
979,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
667,
102,
9977,
7,
8512,
21680,
953,
834,
11944,
1714,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
382,
76,
8102,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the numbers for lc models built in 2009? | CREATE TABLE table_4651 (
"Total" real,
"Builder" text,
"Model" text,
"Year built" real,
"Numbers" text
) | SELECT "Numbers" FROM table_4651 WHERE "Model" = 'lc' AND "Year built" = '2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
5553,
41,
96,
3696,
1947,
121,
490,
6,
96,
24752,
49,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
476,
2741,
1192,
121,
490,
6,
96,
567,
5937,
277,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
567,
5937,
277,
121,
21680,
953,
834,
4448,
5553,
549,
17444,
427,
96,
24663,
121,
3274,
3,
31,
40,
75,
31,
3430,
96,
476,
2741,
1192,
121,
3274,
3,
31,
16660,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When has a Week of 9? | CREATE TABLE table_34269 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" text
) | SELECT "Date" FROM table_34269 WHERE "Week" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
357,
3951,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3710,
357,
3951,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score for alcobaça when the opponent was in the final of xinyun han? | CREATE TABLE table_name_27 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR) | SELECT score FROM table_name_27 WHERE tournament = "alcobaça" AND opponent_in_the_final = "xinyun han" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
7,
9022,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
5892,
3274,
96,
138,
509,
115,
9,
11666,
121,
3430,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
226,
77,
63,
202,
3,
2618,
121,
1,
-100,
-100,
-100,
-10... |
what's the engine where number range is 8–9, 13–16 | CREATE TABLE table_1181375_1 (engine VARCHAR, number_range VARCHAR) | SELECT engine FROM table_1181375_1 WHERE number_range = "8–9, 13–16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
2368,
3072,
834,
536,
41,
20165,
584,
4280,
28027,
6,
381,
834,
5517,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
1948,
213,
381,
620,
19,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1948,
21680,
953,
834,
20056,
2368,
3072,
834,
536,
549,
17444,
427,
381,
834,
5517,
3274,
96,
927,
104,
1298,
6,
1179,
104,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What round pick was pick number 101 who plays defensive back? | CREATE TABLE table_name_92 (
round VARCHAR,
position VARCHAR,
pick__number VARCHAR
) | SELECT round FROM table_name_92 WHERE position = "defensive back" AND pick__number = "101" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
1751,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1751,
1432... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1102,
3274,
96,
221,
23039,
15,
223,
121,
3430,
1432,
834,
834,
5525,
1152,
3274,
96,
19621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average number of points for a difference of 55 and an against less than 47? | CREATE TABLE table_38506 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT AVG("Points") FROM table_38506 WHERE "Difference" = '55' AND "Against" < '47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
1752,
948,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3747,
1752,
948,
549,
17444,
427,
96,
308,
99,
11788,
121,
3274,
3,
31,
3769,
31,
3430,
96,
20749,
121,
3,
2,
3,
31,
4177,
31,
1,
-100,
-100,
-100,
-100,
-10... |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by time. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
what were the number of goals scored by team a.d.isidro metapan ? | CREATE TABLE table_203_30 (
id number,
"place" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals\nscored" number,
"goals\nconceded" number,
"+/-" number,
"points" number
) | SELECT "goals\nscored" FROM table_203_30 WHERE "team" = 'a.d. isidro metapan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1458,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
210,
106,
121,
381,
6,
96,
19489,
121,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
839,
5405,
2,
29,
3523,
1271,
121,
21680,
953,
834,
23330,
834,
1458,
549,
17444,
427,
96,
11650,
121,
3274,
3,
31,
9,
5,
26,
5,
19,
23,
26,
52,
32,
10531,
2837,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the domestic box office for the film that had a foreign box office of $26,600,000? | CREATE TABLE table_2203760_4 (
domestic_box_office VARCHAR,
foreign_box_office VARCHAR
) | SELECT domestic_box_office FROM table_2203760_4 WHERE foreign_box_office = "$26,600,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
23330,
28212,
834,
591,
41,
4422,
834,
2689,
834,
19632,
584,
4280,
28027,
6,
2959,
834,
2689,
834,
19632,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4422,
834,
2689,
834,
19632,
21680,
953,
834,
357,
23330,
28212,
834,
591,
549,
17444,
427,
2959,
834,
2689,
834,
19632,
3274,
96,
3229,
2688,
6,
6007,
6,
2313,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Record of 22 20 involved what score? | CREATE TABLE table_75025 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Score" FROM table_75025 WHERE "Record" = '22–20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
1828,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
9979,
1828,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2884,
104,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the number of papers published by authors from the institution 'Tokohu University'. | CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE authors (
authid number,
lname text,
fname text
)
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
) | SELECT COUNT(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Tokohu University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16,
7,
17,
41,
16,
2248,
26,
381,
6,
564,
1499,
6,
684,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
185,
17,
11740,
381,
6,
3,
40,
4350,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
3,
17,
5411,
21869,
61,
21680,
5778,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
19587,
23,
26,
3274,
3,
17,
4416,
19587,
23,
26,
3,
1... |
What are the ids of the problems which are reported before 1978-06-26? | CREATE TABLE problem_log (
problem_log_id number,
assigned_to_staff_id number,
problem_id number,
problem_category_code text,
problem_status_code text,
log_entry_date time,
log_entry_description text,
log_entry_fix text,
other_log_details text
)
CREATE TABLE problem_status_codes (
problem_status_code text,
problem_status_description text
)
CREATE TABLE product (
product_id number,
product_name text,
product_details text
)
CREATE TABLE problem_category_codes (
problem_category_code text,
problem_category_description text
)
CREATE TABLE problems (
problem_id number,
product_id number,
closure_authorised_by_staff_id number,
reported_by_staff_id number,
date_problem_reported time,
date_problem_closed time,
problem_description text,
other_problem_details text
)
CREATE TABLE staff (
staff_id number,
staff_first_name text,
staff_last_name text,
other_staff_details text
) | SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
682,
834,
2152,
41,
682,
834,
2152,
834,
23,
26,
381,
6,
7604,
834,
235,
834,
26416,
834,
23,
26,
381,
6,
682,
834,
23,
26,
381,
6,
682,
834,
8367,
839,
651,
834,
4978,
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,
682,
834,
23,
26,
21680,
982,
549,
17444,
427,
833,
834,
19307,
834,
60,
16262,
3,
2,
96,
2294,
3940,
18,
5176,
18,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If -750 is 45.505, what is the maximum rank? | CREATE TABLE table_1912276_2 (rank INTEGER, __750m VARCHAR) | SELECT MAX(rank) FROM table_1912276_2 WHERE __750m = "45.505" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
20889,
3959,
834,
357,
41,
6254,
3,
21342,
17966,
6,
3,
834,
834,
9979,
51,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
3,
18,
9979,
19,
314,
15938,
307... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
6254,
61,
21680,
953,
834,
2294,
20889,
3959,
834,
357,
549,
17444,
427,
3,
834,
834,
9979,
51,
3274,
96,
2128,
5,
1752,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many copies per particle are there for the base pair that is size 1059? | CREATE TABLE table_927 (
"RNA Segment (Gene)" real,
"Size ( s base pair )" real,
"Protein" text,
"Molecular weight kDa" text,
"Location" text,
"Copies per particle" text,
"Function" text
) | SELECT COUNT("Copies per particle") FROM table_927 WHERE "Size ( s base pair )" = '1059' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1298,
2555,
41,
96,
11840,
15696,
297,
41,
13714,
15,
61,
121,
490,
6,
96,
134,
1737,
41,
3,
7,
1247,
3116,
3,
61,
121,
490,
6,
96,
3174,
17,
2455,
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,
3881,
8497,
399,
24317,
8512,
21680,
953,
834,
1298,
2555,
549,
17444,
427,
96,
134,
1737,
41,
3,
7,
1247,
3116,
3,
61,
121,
3274,
3,
31,
1714,
3390,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Where is the origin of the tth version? | CREATE TABLE table_name_37 (
origin VARCHAR,
versions VARCHAR
) | SELECT origin FROM table_name_37 WHERE versions = "tth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
5233,
584,
4280,
28027,
6,
5204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
5233,
13,
8,
3,
17,
189,
988,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5233,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
5204,
3274,
96,
17,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What were the goals at Sydney? | CREATE TABLE table_38155 (
"Date" text,
"Venue" text,
"Result" text,
"Goals" real,
"Competition" text
) | SELECT "Goals" FROM table_38155 WHERE "Venue" = 'sydney' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
20896,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
6221,
5405,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
6221,
5405,
121,
21680,
953,
834,
3747,
20896,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
7,
63,
26,
3186,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many Malaysia Cups have a total less than 0? | CREATE TABLE table_7162 (
"Player" text,
"League" real,
"Malaysia Cup" real,
"FA Cup" real,
"Total" real
) | SELECT COUNT("Malaysia Cup") FROM table_7162 WHERE "Total" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
4056,
41,
96,
15800,
49,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
329,
9,
20244,
23,
9,
3802,
121,
490,
6,
96,
4795,
3802,
121,
490,
6,
96,
3696,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
329,
9,
20244,
23,
9,
3802,
8512,
21680,
953,
834,
4450,
4056,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the coach located in Oakden? | CREATE TABLE table_49656 (
"Team" text,
"Coach" text,
"Home Ground" text,
"Location" text,
"Founded" real
) | SELECT "Coach" FROM table_49656 WHERE "Location" = 'oakden' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4314,
4834,
41,
96,
18699,
121,
1499,
6,
96,
3881,
1836,
121,
1499,
6,
96,
19040,
13908,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
3881,
1836,
121,
21680,
953,
834,
591,
4314,
4834,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
32,
1639,
537,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the lowest Floors with Feet that's larger htan 262, has a Name of Standard Bank Building, and Metres that's larger htan 138.8? | CREATE TABLE table_35789 (
"Name" text,
"City" text,
"Years as tallest" text,
"Metres" real,
"Feet" real,
"Floors" real
) | SELECT MIN("Floors") FROM table_35789 WHERE "Feet" > '262' AND "Name" = 'standard bank building' AND "Metres" > '138.8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3436,
3914,
41,
96,
23954,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
476,
2741,
7,
38,
5065,
222,
121,
1499,
6,
96,
23351,
60,
7,
121,
490,
6,
96,
371,
15,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11251,
127,
7,
8512,
21680,
953,
834,
519,
3436,
3914,
549,
17444,
427,
96,
371,
15,
15,
17,
121,
2490,
3,
31,
2688,
357,
31,
3430,
96,
23954,
121,
3274,
3,
31,
16020,
2137,
740,
31,
3430,
96... |
What location and how many people were in attendance where the record was 9-4 for the season? | CREATE TABLE table_23285849_5 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_23285849_5 WHERE record = "9-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
3449,
3647,
834,
755,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1128,
11,
149,
186,
151,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2773,
2577,
3449,
3647,
834,
755,
549,
17444,
427,
1368,
3274,
96,
1298,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visitor of calgary has what record? | CREATE TABLE table_34041 (
"Game #" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
) | SELECT "Record" FROM table_34041 WHERE "Visitor" = 'calgary' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21129,
4853,
41,
96,
23055,
1713,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
21129,
4853,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
1489,
1478,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many times what the position 6th, the competition was super league xvii and played was larger than 27? | CREATE TABLE table_name_22 (
drawn VARCHAR,
played VARCHAR,
position VARCHAR,
competition VARCHAR
) | SELECT COUNT(drawn) FROM table_name_22 WHERE position = "6th" AND competition = "super league xvii" AND played > 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
6796,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1102,
3274,
96,
948,
189,
121,
3430,
2259,
3274,
96,
21771,
5533,
3,
226,
14553,
121,
3430,
1944,
2490,
2307,
1,
-100,
-100,
-100,
... |
What is at 8:30 when at 9:30 it is rules of engagement (reruns)? | CREATE TABLE table_53930 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
) | SELECT "8:30" FROM table_53930 WHERE "9:30" = 'rules of engagement (reruns)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3288,
1458,
41,
96,
15692,
121,
1499,
6,
96,
927,
10,
1458,
121,
1499,
6,
96,
1298,
10,
1206,
121,
1499,
6,
96,
21150,
121,
1499,
6,
96,
536,
25713,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
927,
10,
1458,
121,
21680,
953,
834,
755,
3288,
1458,
549,
17444,
427,
96,
21150,
121,
3274,
3,
31,
5155,
15,
7,
13,
3813,
41,
60,
4312,
7,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Silver has a Rank of 1, and a Total smaller than 11? | CREATE TABLE table_48309 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Silver") FROM table_48309 WHERE "Rank" = '1' AND "Total" < '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
1458,
1298,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
3707,
1458,
1298,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
536,
31,
3430,
96,
3696,
1947,
121,
3,
2,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-1... |
Who is the Director of the Filmography with Production Number of 11-14? | CREATE TABLE table_name_76 (director VARCHAR, production_number VARCHAR) | SELECT director FROM table_name_76 WHERE production_number = "11-14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
25982,
584,
4280,
28027,
6,
999,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2578,
13,
8,
3417,
5984,
28,
11114,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
999,
834,
5525,
1152,
3274,
96,
2596,
11590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total silver when bronze is smaller than 0? | CREATE TABLE table_name_92 (silver VARCHAR, bronze INTEGER) | SELECT COUNT(silver) FROM table_name_92 WHERE bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
7,
173,
624,
584,
4280,
28027,
6,
13467,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
4294,
116,
13467,
19,
2755,
145,
3,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
13467,
3,
2,
3,
632,
1,
-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.