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 average round for martin havlat? | CREATE TABLE table_12048 (
"Round" real,
"Overall" real,
"Player" text,
"Nationality" text,
"Club team" text
) | SELECT AVG("Round") FROM table_12048 WHERE "Player" = 'martin havlat' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
3707,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
254,
11158,
372,
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,
71,
17217,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
15518,
3707,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
1635,
17,
77,
3,
18261,
40,
144,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19? | CREATE TABLE table_name_48 (
coach VARCHAR,
loss VARCHAR,
pct VARCHAR,
pts VARCHAR
) | SELECT coach FROM table_name_48 WHERE pct > 0.1 AND pts > 9 AND loss = 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
3763,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
6,
3,
102,
75,
17,
584,
4280,
28027,
6,
3,
102,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3763,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3,
102,
75,
17,
2490,
3,
16029,
3430,
3,
102,
17,
7,
2490,
668,
3430,
1453,
3274,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the density of yushan county? | CREATE TABLE table_1300525_1 (density VARCHAR, english_name VARCHAR) | SELECT COUNT(density) FROM table_1300525_1 WHERE english_name = "Yushan County" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
3076,
1828,
834,
536,
41,
537,
7,
485,
584,
4280,
28027,
6,
22269,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11048,
13,
3,
63,
302,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
537,
7,
485,
61,
21680,
953,
834,
21448,
3076,
1828,
834,
536,
549,
17444,
427,
22269,
834,
4350,
3274,
96,
476,
302,
2618,
1334,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent when the record was 61-57? | CREATE TABLE table_name_89 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_89 WHERE record = "61-57" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
116,
8,
1368,
47,
3,
4241,
18,
3436,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1368,
3274,
96,
4241,
18,
3436,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and show bars from high to low order please. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
44... |
What is the average grid for vehicles manufactured by Aprilia and having run more than 16 laps? | CREATE TABLE table_name_2 (
grid INTEGER,
manufacturer VARCHAR,
laps VARCHAR
) | SELECT AVG(grid) FROM table_name_2 WHERE manufacturer = "aprilia" AND laps > 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
8634,
3,
21342,
17966,
6,
4818,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
8634,
21,
3203,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
4818,
3274,
96,
9,
102,
52,
13565,
121,
3430,
14941,
7,
2490,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired? | CREATE TABLE table_52954 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_52954 WHERE "Laps" < '53' AND "Driver" = 'innes ireland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
3301,
591,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
5373,
3301,
591,
549,
17444,
427,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
4867,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
14029,
7,
3,
2060,
40,
232,
31,
1,
... |
What is the record with a 3:56 time? | CREATE TABLE table_name_63 (record VARCHAR, time VARCHAR) | SELECT record FROM table_name_63 WHERE time = "3:56" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
60,
7621,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
28,
3,
9,
220,
10,
4834,
97,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
97,
3274,
96,
519,
10,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who was the party leader before colin eglin ? | CREATE TABLE table_204_690 (
id number,
"election" number,
"party name" text,
"total votes" number,
"share of votes" text,
"seats" number,
"share of seats" text,
"party leader(s)" text,
"notes" text
) | SELECT "party leader(s)" FROM table_204_690 WHERE "election" < (SELECT MIN("election") FROM table_204_690 WHERE "party leader(s)" = 'colin eglin') ORDER BY "election" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
2394,
41,
3,
23,
26,
381,
6,
96,
15,
12252,
121,
381,
6,
96,
8071,
564,
121,
1499,
6,
96,
235,
1947,
11839,
121,
381,
6,
96,
12484,
13,
11839,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8071,
2488,
599,
7,
61,
121,
21680,
953,
834,
26363,
834,
948,
2394,
549,
17444,
427,
96,
15,
12252,
121,
3,
2,
41,
23143,
14196,
3,
17684,
599,
121,
15,
12252,
8512,
21680,
953,
834,
26363,
834,
948,
2394,
54... |
calculate the maximum days of hospitalization of patients who died before 2165. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.dod_year < "2165.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
96,
27184,
20734,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which inhabitants have lega lombarda as the party, with an election greater than 2010? | CREATE TABLE table_name_26 (
inhabitants VARCHAR,
party VARCHAR,
election VARCHAR
) | SELECT inhabitants FROM table_name_26 WHERE party = "lega lombarda" AND election > 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
21155,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
4356,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
21155,
43,
4553,
9,
3,
17551,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21155,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1088,
3274,
96,
5772,
9,
3,
17551,
986,
9,
121,
3430,
4356,
2490,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE WINNER WITH A FIFTH OF JOSS STONE? | CREATE TABLE table_name_97 (winner VARCHAR, fifth VARCHAR) | SELECT winner FROM table_name_97 WHERE fifth = "joss stone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
3757,
687,
584,
4280,
28027,
6,
8486,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3,
21394,
18206,
11951,
71,
377,
6058,
4611,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4668,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
8486,
3274,
96,
1927,
7,
7,
3372,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What writers are associated with a viewing figure of 7.01 million? | CREATE TABLE table_15026994_2 (writer VARCHAR, viewing_figure VARCHAR) | SELECT writer FROM table_15026994_2 WHERE viewing_figure = "7.01 million" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
2688,
3264,
591,
834,
357,
41,
12756,
584,
4280,
28027,
6,
7426,
834,
9178,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5943,
33,
1968,
28,
3,
9,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4346,
21680,
953,
834,
12278,
2688,
3264,
591,
834,
357,
549,
17444,
427,
7426,
834,
9178,
15,
3274,
96,
26346,
536,
770,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the tie number for the round against visiting opponent Newcastle United? | CREATE TABLE table_name_53 (tie_no VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_53 WHERE away_team = "newcastle united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
17,
23,
15,
834,
29,
32,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6177,
381,
21,
8,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6177,
834,
29,
32,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
550,
834,
11650,
3274,
96,
5534,
5254,
109,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which was the only race held in cameroon ? | CREATE TABLE table_204_409 (
id number,
"date" text,
"race name" text,
"location" text,
"uci rating" number,
"winner" text,
"team" text
) | SELECT "race name" FROM table_204_409 WHERE "location" = 'cameroon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
4198,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
12614,
564,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
6809,
5773,
121,
381,
6,
96,
3757,
687,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12614,
564,
121,
21680,
953,
834,
26363,
834,
591,
4198,
549,
17444,
427,
96,
14836,
121,
3274,
3,
31,
6527,
49,
32,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What date has wrexham as the home team? | CREATE TABLE table_13314 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Date" FROM table_13314 WHERE "Home team" = 'wrexham' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
2534,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
22974,
2534,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
210,
60,
226,
1483,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When colgate is the team how many times did they place fourth? | CREATE TABLE table_1311 (
"Team" text,
"Titles" real,
"Runner-up" real,
"Third place" real,
"Fourth place" real,
"Years participated" real
) | SELECT COUNT("Fourth place") FROM table_1311 WHERE "Team" = 'Colgate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
2596,
41,
96,
18699,
121,
1499,
6,
96,
382,
155,
965,
121,
490,
6,
96,
23572,
18,
413,
121,
490,
6,
96,
382,
9288,
26,
286,
121,
490,
6,
96,
371,
1211,
189,
286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
371,
1211,
189,
286,
8512,
21680,
953,
834,
2368,
2596,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
9939,
5339,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the commanders when 8 off 0 men were wounded? | CREATE TABLE table_11793221_2 (commander VARCHAR, wounded VARCHAR) | SELECT commander FROM table_11793221_2 WHERE wounded = "8 off 0 men" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4440,
2668,
2658,
834,
357,
41,
13695,
49,
584,
4280,
28027,
6,
21372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
17604,
7,
116,
505,
326,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
17604,
21680,
953,
834,
2596,
4440,
2668,
2658,
834,
357,
549,
17444,
427,
21372,
3274,
96,
927,
326,
3,
632,
1076,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the date of the game that had a goal of 3? | CREATE TABLE table_name_48 (date VARCHAR, goal VARCHAR) | SELECT date FROM table_name_48 WHERE goal = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5522,
584,
4280,
28027,
6,
1288,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
24,
141,
3,
9,
1288,
13,
220,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1288,
3274,
220,
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,... |
Where is the player from that wears the number 29? | CREATE TABLE table_45426 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
) | SELECT "From" FROM table_45426 WHERE "Jersey Number(s)" = '29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
591,
2688,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
22674,
121,
21680,
953,
834,
2128,
591,
2688,
549,
17444,
427,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
3274,
3,
31,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What area did Julius Boros play at? | CREATE TABLE table_name_92 (
place VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_92 WHERE player = "julius boros" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
616,
410,
9983,
302,
1491,
1859,
577,
44,
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,
286,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1959,
3274,
96,
2047,
29705,
3,
14901,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result of the game at Cleveland Browns Stadium with an attendance of 65,995? | CREATE TABLE table_48414 (
"Date" text,
"Opponent #" text,
"Result" text,
"Score" text,
"Attendance" real,
"Stadium" text
) | SELECT "Result" FROM table_48414 WHERE "Attendance" > '65,995' AND "Stadium" = 'cleveland browns stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
591,
2534,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
1713,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
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,
20119,
121,
21680,
953,
834,
3707,
591,
2534,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
4122,
6,
3264,
755,
31,
3430,
96,
134,
17,
9,
12925,
121,
3274,
3,
31,
75,
4563,
232,
4216,
7,
14... |
Find the list of page size which have more than 3 product listed | CREATE TABLE product (max_page_size VARCHAR) | SELECT max_page_size FROM product GROUP BY max_page_size HAVING COUNT(*) > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
556,
41,
9128,
834,
6492,
834,
7991,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
570,
13,
543,
812,
84,
43,
72,
145,
220,
556,
2616,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9858,
834,
6492,
834,
7991,
21680,
556,
350,
4630,
6880,
272,
476,
9858,
834,
6492,
834,
7991,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
A bar chart showing the number of members in each country, and sort y-axis in desc order. | CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Location text
)
CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round int
)
CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
) | SELECT Country, COUNT(Country) FROM member GROUP BY Country ORDER BY COUNT(Country) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
1888,
834,
4309,
16,
17,
6,
5570,
1499,
6,
10310,
834,
23954,
1499,
6,
1888,
834,
434,
32,
75,
257,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1751,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
6,
2847,
17161,
599,
10628,
651,
61,
21680,
1144,
350,
4630,
6880,
272,
476,
6993,
4674,
11300,
272,
476,
2847,
17161,
599,
10628,
651,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the drawn for llandaff rfc | CREATE TABLE table_13741576_4 (drawn VARCHAR, club VARCHAR) | SELECT drawn FROM table_13741576_4 WHERE club = "Llandaff RFC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4581,
1808,
3959,
834,
591,
41,
19489,
29,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6796,
21,
3,
195,
232,
4127,
3,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6796,
21680,
953,
834,
2368,
4581,
1808,
3959,
834,
591,
549,
17444,
427,
1886,
3274,
96,
434,
40,
232,
4127,
391,
5390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Courtside reporter has a Channel of fsn new england in 2006-07? | CREATE TABLE table_75213 (
"Year" text,
"Channel" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Courtside reporter" text,
"Studio host" text,
"Studio analysts" text
) | SELECT "Courtside reporter" FROM table_75213 WHERE "Channel" = 'fsn new england' AND "Year" = '2006-07' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
357,
2368,
41,
96,
476,
2741,
121,
1499,
6,
96,
3541,
4515,
40,
121,
1499,
6,
96,
15800,
18,
969,
18,
4895,
121,
1499,
6,
96,
3881,
322,
1670,
1016,
599,
7,
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,
1... | [
3,
23143,
14196,
96,
254,
1211,
17,
1583,
17021,
121,
21680,
953,
834,
3072,
357,
2368,
549,
17444,
427,
96,
3541,
4515,
40,
121,
3274,
3,
31,
89,
7,
29,
126,
3,
4606,
40,
232,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
21196,
... |
What is score of the game that was at a paace of t4, and had the player Butch Baird? | CREATE TABLE table_name_36 (
score VARCHAR,
place VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_36 WHERE place = "t4" AND player = "butch baird" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
2604,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2604,
13,
8,
467,
24,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
286,
3274,
96,
17,
20364,
3430,
1959,
3274,
96,
2780,
524,
3,
115,
2256,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When Richmond was the home team, what was the home team score? | CREATE TABLE table_name_24 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_24 WHERE home_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
5515,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
17247,
47,
8,
234,
372,
6,
125,
47,
8,
234,
372,
2604,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Prize, when Name is "Valdemar Kwaysser"? | CREATE TABLE table_name_58 (prize VARCHAR, name VARCHAR) | SELECT prize FROM table_name_58 WHERE name = "valdemar kwaysser" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2246,
776,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11329,
6,
116,
5570,
19,
96,
18392,
221,
1635,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6441,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
564,
3274,
96,
2165,
221,
1635,
3,
157,
6415,
7,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many episodes were titled 'Going Bodmin'? | CREATE TABLE table_24061 (
"Episode No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Viewers (millions)" text,
"Original airdate" text
) | SELECT "Episode No." FROM table_24061 WHERE "Title" = 'Going Bodmin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
4241,
41,
96,
427,
102,
159,
32,
221,
465,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
102,
159,
32,
221,
465,
535,
21680,
953,
834,
11944,
4241,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
6221,
53,
1491,
26,
1109,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the number of web accelerators used for each Operating system, I want to display by the y-axis in ascending. | CREATE TABLE browser (
id int,
name text,
market_share real
)
CREATE TABLE Web_client_accelerator (
id int,
name text,
Operating_system text,
Client text,
Connection text
)
CREATE TABLE accelerator_compatible_browser (
accelerator_id int,
browser_id int,
compatible_since_ye... | SELECT Operating_system, COUNT(*) FROM Web_client_accelerator GROUP BY Operating_system ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3509,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
512,
834,
12484,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1620,
834,
26693,
834,
6004,
15,
1171,
1016,
41,
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,
21606,
834,
3734,
6,
2847,
17161,
599,
1935,
61,
21680,
1620,
834,
26693,
834,
6004,
15,
1171,
1016,
350,
4630,
6880,
272,
476,
21606,
834,
3734,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,... |
How many wins has more than 165 against? | CREATE TABLE table_name_80 (
wins INTEGER,
against INTEGER
) | SELECT MAX(wins) FROM table_name_80 WHERE against > 165 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
9204,
3,
21342,
17966,
6,
581,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9204,
65,
72,
145,
3,
22823,
581,
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,
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,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
581,
2490,
3,
22823,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was the game with a score of 5 2, and a Loss of lilly (9 9)? | CREATE TABLE table_name_98 (
date VARCHAR,
score VARCHAR,
loss VARCHAR
) | SELECT date FROM table_name_98 WHERE score = "5–2" AND loss = "lilly (9–9)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
467,
28,
3,
9,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2604,
3274,
96,
755,
104,
357,
121,
3430,
1453,
3274,
96,
40,
173,
120,
14156,
104,
11728,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest extra total before 2003 at the Meeting of all africa games? | CREATE TABLE table_name_51 (
extra INTEGER,
meeting VARCHAR,
year VARCHAR
) | SELECT MAX(extra) FROM table_name_51 WHERE meeting = "all africa games" AND year < 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
996,
3,
21342,
17966,
6,
1338,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
996,
792,
274,
3888,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
25666,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1338,
3274,
96,
1748,
24040,
1031,
121,
3430,
215,
3,
2,
3888,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the district name is the Academy of Flint, what is the authorizing agency? | CREATE TABLE table_25210 (
"District name" text,
"Dist. ID" real,
"ISD" text,
"County" text,
"Authorizing agency" text,
"Date opened" text,
"Services" text
) | SELECT "Authorizing agency" FROM table_25210 WHERE "District name" = 'Academy of Flint' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
15239,
41,
96,
308,
23,
20066,
564,
121,
1499,
6,
96,
308,
343,
5,
4699,
121,
490,
6,
96,
4555,
308,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
23602,
127,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23602,
127,
2610,
3193,
121,
21680,
953,
834,
1828,
15239,
549,
17444,
427,
96,
308,
23,
20066,
564,
121,
3274,
3,
31,
188,
6615,
2258,
13,
29612,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the tournament with a clay surface and sofia shapatava as the opponent? | CREATE TABLE table_name_54 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR) | SELECT tournament FROM table_name_54 WHERE surface = "clay" AND opponent = "sofia shapatava" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5892,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
15264,
3274,
96,
7,
858,
23,
9,
3,
7,
9516,
144,
8644,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score in Tie number 16? | CREATE TABLE table_60421 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_60421 WHERE "Tie no" = '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
591,
2658,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3328,
591,
2658,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Attendance on Week 10? | CREATE TABLE table_name_34 (
attendance VARCHAR,
week VARCHAR
) | SELECT attendance FROM table_name_34 WHERE week = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
11364,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
22497,
663,
30,
6551,
335,
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,
11364,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
471,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013? | CREATE TABLE table_name_36 (
division INTEGER,
year VARCHAR,
reg_season VARCHAR,
playoffs VARCHAR
) | SELECT AVG(division) FROM table_name_36 WHERE reg_season = "1st, western" AND playoffs = "champions" AND year < 2013 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
4889,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
5925,
834,
9476,
584,
4280,
28027,
6,
15289,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
26,
23,
6610,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
5925,
834,
9476,
3274,
96,
536,
7,
17,
6,
8282,
121,
3430,
15289,
7,
3274,
96,
17788,
12364,
7,
121,
3430,
215,
3,
2,
2038,
1,... |
How many products have the characteristic named "hot"? | CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) | SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "hot" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
15892,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
28027,
5173,
5946,
13582,
21202,
41,
31886,
3040,
834,
23,
26,
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,
2847,
17161,
599,
1935,
61,
21680,
494,
6157,
3,
17,
536,
3,
15355,
3162,
556,
834,
31886,
3040,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
15892,
834,
23,
26,
3274,
3,
17,
4416,
15892,
834,
23,
26,
3,
15355,
3162,... |
What is the number of games for Shaun Stonerook? | CREATE TABLE table_name_86 (games INTEGER, name VARCHAR) | SELECT MIN(games) FROM table_name_86 WHERE name = "shaun stonerook" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
7261,
7,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
1031,
21,
3926,
202,
5614,
52,
32,
1825,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
564,
3274,
96,
7,
1024,
202,
3372,
52,
32,
1825,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who won the kansas state game on 11/26/1988 | CREATE TABLE table_15740666_6 (kansas_state_vs VARCHAR, last_meeting VARCHAR) | SELECT kansas_state_vs FROM table_15740666_6 WHERE last_meeting = "11/26/1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4581,
5176,
3539,
834,
948,
41,
3304,
7,
9,
7,
834,
5540,
834,
208,
7,
584,
4280,
28027,
6,
336,
834,
526,
15,
1222,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
3304,
7,
9,
7,
834,
5540,
834,
208,
7,
21680,
953,
834,
1808,
4581,
5176,
3539,
834,
948,
549,
17444,
427,
336,
834,
526,
15,
1222,
3274,
96,
2596,
87,
2688,
13523,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What hand guard system is used with a gas piston commando? | CREATE TABLE table_12834315_5 (hand_guards VARCHAR, name VARCHAR) | SELECT hand_guards FROM table_12834315_5 WHERE name = "Gas Piston Commando" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4591,
4906,
1808,
834,
755,
41,
2894,
834,
11010,
7,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
609,
4879,
358,
19,
261,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
609,
834,
11010,
7,
21680,
953,
834,
2122,
4591,
4906,
1808,
834,
755,
549,
17444,
427,
564,
3274,
96,
517,
9,
7,
2745,
4411,
13901,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the prize (eur) for the 6th division? | CREATE TABLE table_20195922_3 (prize__eur_ VARCHAR, divisions VARCHAR) | SELECT prize__eur_ FROM table_20195922_3 WHERE divisions = "6th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8584,
3390,
2884,
834,
519,
41,
2246,
776,
834,
834,
1238,
834,
584,
4280,
28027,
6,
4889,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6441,
41,
123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6441,
834,
834,
1238,
834,
21680,
953,
834,
8584,
3390,
2884,
834,
519,
549,
17444,
427,
4889,
7,
3274,
96,
948,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many ties are there where attendance is 11,997? | CREATE TABLE table_name_43 (tie_no VARCHAR, attendance VARCHAR) | SELECT tie_no FROM table_name_43 WHERE attendance = "11,997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
17,
23,
15,
834,
29,
32,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
3010,
33,
132,
213,
11364,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6177,
834,
29,
32,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
11364,
3274,
96,
2596,
6,
3264,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date for motogp winner of casey stoner and grand prix of valencian grand prix | CREATE TABLE table_name_15 (
date VARCHAR,
motogp_winner VARCHAR,
grand_prix VARCHAR
) | SELECT date FROM table_name_15 WHERE motogp_winner = "casey stoner" AND grand_prix = "valencian grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
833,
584,
4280,
28027,
6,
3,
11188,
122,
102,
834,
3757,
687,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
3,
11188,
122,
102,
834,
3757,
687,
3274,
96,
6701,
63,
3372,
52,
121,
3430,
1907,
834,
2246,
226,
3274,
96,
2165,
35,
4915,
29,
1907,
3407,
121,
1,
-100,
-1... |
Which title aired on 18 dec 2006- 10 feb 2007? | CREATE TABLE table_name_67 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR) | SELECT english_title__chinese_title_ FROM table_name_67 WHERE airing_date = "18 dec 2006- 10 feb 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
4606,
40,
1273,
834,
21869,
834,
834,
1436,
1496,
15,
834,
21869,
834,
584,
4280,
28027,
6,
799,
53,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
22269,
834,
21869,
834,
834,
1436,
1496,
15,
834,
21869,
834,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
799,
53,
834,
5522,
3274,
96,
2606,
20,
75,
3581,
18,
335,
3,
89,
15,
115,
4101,
121,
1,
-100,
-100,... |
What is the away side score when footscray is the home side? | CREATE TABLE table_name_38 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team AS score FROM table_name_38 WHERE home_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
596,
2604,
116,
2418,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
234,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the title of the episode with production code 2alf03? | CREATE TABLE table_28414 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Rank (week)" text,
"Original air date" text,
"Production code" text
) | SELECT "Title" FROM table_28414 WHERE "Production code" = '2ALF03' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
2534,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
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,
382,
155,
109,
121,
21680,
953,
834,
357,
4608,
2534,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
357,
4090,
371,
4928,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Result of l, and a Competition of 1966 asian games, and a Score of 0 1 had what date? | CREATE TABLE table_35094 (
"Date" text,
"Result" text,
"Score" text,
"Venue" text,
"Competition" text
) | SELECT "Date" FROM table_35094 WHERE "Result" = 'l' AND "Competition" = '1966 asian games' AND "Score" = '0–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16975,
4240,
41,
96,
308,
342,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
16975,
4240,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
31,
3430,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
2294,
3539,
3,
9,
10488,
1031,
31,
3430,
96,
134,
9022,
121,
3... |
Who were the builders of the boat designed by Botin Carkeek? | CREATE TABLE table_19872699_1 (
builder VARCHAR,
design_firm VARCHAR
) | SELECT builder FROM table_19872699_1 WHERE design_firm = "Botin Carkeek" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4225,
2688,
3264,
834,
536,
41,
918,
49,
584,
4280,
28027,
6,
408,
834,
7001,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
19334,
13,
8,
3432... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
49,
21680,
953,
834,
2294,
4225,
2688,
3264,
834,
536,
549,
17444,
427,
408,
834,
7001,
3274,
96,
26465,
77,
1184,
157,
10266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which class has laps under 77? | CREATE TABLE table_name_85 (class VARCHAR, laps INTEGER) | SELECT class FROM table_name_85 WHERE laps < 77 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
4057,
584,
4280,
28027,
6,
14941,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
853,
65,
14941,
7,
365,
3,
4013,
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,
853,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
14941,
7,
3,
2,
3,
4013,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
in what year were 2 points scored? | CREATE TABLE table_name_19 (year INTEGER, points VARCHAR) | SELECT MAX(year) FROM table_name_19 WHERE points = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
1201,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
16,
125,
215,
130,
204,
979,
5799,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
979,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When a home team scored 17.15 (117) and the away team scored 6.9 (45), what was the away team? | CREATE TABLE table_78110 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_78110 WHERE "Home team score" = '17.15 (117)' AND "Away team score" = '6.9 (45)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
19277,
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,
188,
1343,
372,
121,
21680,
953,
834,
3940,
19277,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
2517,
5,
1808,
41,
20275,
61,
31,
3430,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
948,
5,
1298,
4... |
what is the maximum age of patients whose marital status is divorced and primary disease is ventricular tachycardia? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.diagnosis = "VENTRICULAR TACHYCARDIA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
24992,
23503,
4254,
... |
A bar graph listing the services and how many services provided by all stations, and order from high to low by the total number please. | CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
win... | SELECT services, COUNT(services) FROM station GROUP BY services ORDER BY COUNT(services) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2981,
41,
2412,
834,
23,
26,
16,
17,
6,
2478,
834,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,
26,
16,
17,
6,
1229,
834,
4350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
364,
6,
2847,
17161,
599,
5114,
7,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
364,
4674,
11300,
272,
476,
2847,
17161,
599,
5114,
7,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which new conference is the Toreros Western Collegiate Lacrosse team playing in? | CREATE TABLE table_19751 (
"Institution" text,
"Location" text,
"Team Nickname" text,
"Tenure" text,
"New Conference" text,
"New Classification" text
) | SELECT "New Conference" FROM table_19751 WHERE "Team Nickname" = 'Toreros' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
5553,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
18699,
7486,
4350,
121,
1499,
6,
96,
382,
35,
1462,
121,
1499,
6,
96,
6861,
4379,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6861,
4379,
121,
21680,
953,
834,
27181,
5553,
549,
17444,
427,
96,
18699,
7486,
4350,
121,
3274,
3,
31,
3696,
60,
1859,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date when the game had a save by Aguilera (5)? | CREATE TABLE table_5078 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | SELECT "Date" FROM table_5078 WHERE "Save" = 'aguilera (5)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3940,
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,
23163,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
1752,
3940,
549,
17444,
427,
96,
23163,
121,
3274,
3,
31,
9,
7938,
1171,
9,
3,
15757,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the position of the player from New York City, NY? | CREATE TABLE table_name_56 (position VARCHAR, home_town VARCHAR) | SELECT position FROM table_name_56 WHERE home_town = "new york city, ny" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
4718,
584,
4280,
28027,
6,
234,
834,
3540,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
13,
8,
1959,
45,
368,
1060,
896,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
234,
834,
3540,
3274,
96,
5534,
25453,
690,
6,
3,
29,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the episode title is Pressures, what are the names of the cast? | CREATE TABLE table_3386 (
"Episode #" text,
"Original Air Date (UK)" text,
"Episode Title" text,
"Director" text,
"Writer" text,
"Cast" text
) | SELECT "Cast" FROM table_3386 WHERE "Episode Title" = 'Pressures' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
3840,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
1499,
6,
96,
667,
3380,
10270,
1761,
7678,
41,
15787,
61,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
11029,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
9,
7,
17,
121,
21680,
953,
834,
4201,
3840,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
11029,
121,
3274,
3,
31,
24313,
7665,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
4512 is the enrollment what is the team nickname? | CREATE TABLE table_30396 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
) | SELECT "Team Nickname" FROM table_30396 WHERE "Enrollment" = '4512' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23335,
4314,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
8532,
4046,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
7486,
4350,
121,
21680,
953,
834,
23335,
4314,
549,
17444,
427,
96,
8532,
4046,
297,
121,
3274,
3,
31,
2128,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when was the last time that patient 018-20179 was prescribed medication via an intravenous route in their current hospital encounter? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost numbe... | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaldischargetime IS NULL)) AND med... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7757,
5,
26,
13534,
10208,
715,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
37... |
how many patients whose admission location is clinic referral/premature and item id is 51099? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND lab.itemid = "51099" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the highest React that has a 7.61 Mark and a heat bigger than 1? | CREATE TABLE table_name_84 (react INTEGER, mark VARCHAR, heat VARCHAR) | SELECT MAX(react) FROM table_name_84 WHERE mark = "7.61" AND heat > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
60,
2708,
3,
21342,
17966,
6,
3946,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
419,
2708,
24,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
60,
2708,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
3946,
3274,
96,
940,
5,
4241,
121,
3430,
1678,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many people were in attendance on the day there was a 30-22 victory? | CREATE TABLE table_name_13 (attendance VARCHAR, record VARCHAR) | SELECT COUNT(attendance) FROM table_name_13 WHERE record = "30-22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
130,
16,
11364,
30,
8,
239,
132,
47,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1368,
3274,
96,
1458,
16149,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the original air date for production code 216? | CREATE TABLE table_24018430_3 (
original_air_date VARCHAR,
production_code VARCHAR
) | SELECT original_air_date FROM table_24018430_3 WHERE production_code = 216 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
25987,
1458,
834,
519,
41,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
926,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
11944,
25987,
1458,
834,
519,
549,
17444,
427,
999,
834,
4978,
3274,
3,
27184,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Winning score on oct 22, 2000? | CREATE TABLE table_name_93 (winning_score VARCHAR, date VARCHAR) | SELECT winning_score FROM table_name_93 WHERE date = "oct 22, 2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
8163,
834,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
549,
10503,
2604,
30,
3,
32,
75,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
833,
3274,
96,
32,
75,
17,
12889,
2766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the manager of FK Andijan? | CREATE TABLE table_25527255_2 (manager VARCHAR, team VARCHAR) | SELECT manager FROM table_25527255_2 WHERE team = "FK Andijan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
2555,
25502,
834,
357,
41,
24185,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2743,
13,
377,
439,
275,
23,
7066,
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,
2743,
21680,
953,
834,
25502,
2555,
25502,
834,
357,
549,
17444,
427,
372,
3274,
96,
371,
439,
275,
23,
7066,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many times is the cyrillic name сибач? | CREATE TABLE table_2562572_52 (dominant_religion__2002_ VARCHAR, cyrillic_name VARCHAR) | SELECT COUNT(dominant_religion__2002_) FROM table_2562572_52 WHERE cyrillic_name = "Сибач" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
5373,
41,
5012,
77,
288,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
584,
4280,
28027,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
5012,
77,
288,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
5373,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
3274,
96,
2,
2795,
2,
2533,
... |
What championship had a margin of playoff 2? | CREATE TABLE table_13026799_1 (
championship VARCHAR,
margin VARCHAR
) | SELECT championship FROM table_13026799_1 WHERE margin = "Playoff 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
357,
3708,
3264,
834,
536,
41,
10183,
584,
4280,
28027,
6,
6346,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
10183,
141,
3,
9,
6346,
13,
15289,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10183,
21680,
953,
834,
21448,
357,
3708,
3264,
834,
536,
549,
17444,
427,
6346,
3274,
96,
15800,
1647,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the nation when the world rank is 2 and the birth date is 1976-12-20? | CREATE TABLE table_name_35 (
nation VARCHAR,
world_rank VARCHAR,
birth_date VARCHAR
) | SELECT nation FROM table_name_35 WHERE world_rank = "2" AND birth_date = "1976-12-20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
2982,
584,
4280,
28027,
6,
296,
834,
6254,
584,
4280,
28027,
6,
3879,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
296,
834,
6254,
3274,
96,
357,
121,
3430,
3879,
834,
5522,
3274,
96,
2294,
3959,
5947,
7988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the starting year of the oldest technicians? | CREATE TABLE machine (
machine_id number,
making_year number,
class text,
team text,
machine_series text,
value_points number,
quality_rank number
)
CREATE TABLE repair (
repair_id number,
name text,
launch_date text,
notes text
)
CREATE TABLE technician (
technician_id... | SELECT starting_year FROM technician ORDER BY age DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1437,
41,
1437,
834,
23,
26,
381,
6,
492,
834,
1201,
381,
6,
853,
1499,
6,
372,
1499,
6,
1437,
834,
10833,
7,
1499,
6,
701,
834,
2700,
7,
381,
6,
463,
834,
6254,
381,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1684,
834,
1201,
21680,
17730,
4674,
11300,
272,
476,
1246,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which other athlete with the same record 4.08 m -lrb- 13ft . 4 1/2 in | CREATE TABLE table_204_678 (
id number,
"record" text,
"athlete" text,
"nation" text,
"venue" text,
"date" text,
"#" number
) | SELECT "athlete" FROM table_204_678 WHERE "record" = '4.08 m (13 ft 41⁄2 in)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3708,
927,
41,
3,
23,
26,
381,
6,
96,
60,
7621,
121,
1499,
6,
96,
26170,
15,
121,
1499,
6,
96,
29,
257,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
5522,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26170,
15,
121,
21680,
953,
834,
26363,
834,
3708,
927,
549,
17444,
427,
96,
60,
7621,
121,
3274,
3,
31,
15021,
927,
3,
51,
41,
2368,
3,
89,
17,
8798,
2,
357,
16,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Find the first names and offices of all instructors who have taught some course and the course description and the department name. | CREATE TABLE enroll (
class_code text,
stu_num number,
enroll_grade text
)
CREATE TABLE student (
stu_num number,
stu_lname text,
stu_fname text,
stu_init text,
stu_dob time,
stu_hrs number,
stu_class text,
stu_gpa number,
stu_transfer number,
dept_code text,
stu... | SELECT T2.emp_fname, T4.prof_office, T3.crs_description, T5.dept_name FROM class AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17990,
41,
853,
834,
4978,
1499,
6,
21341,
834,
5525,
381,
6,
17990,
834,
6801,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
834,
5525,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
15,
1167,
834,
89,
4350,
6,
332,
7984,
1409,
89,
834,
19632,
6,
332,
5787,
75,
52,
7,
834,
221,
11830,
6,
332,
9125,
26,
6707,
834,
4350,
21680,
853,
6157,
332,
536,
3,
15355,
3162,
3490,
6157,
332,
3... |
How many seasons did Otsuka Pharmaceuticals come in third? | CREATE TABLE table_29446183_2 (season VARCHAR, third_place VARCHAR) | SELECT COUNT(season) FROM table_29446183_2 WHERE third_place = "Otsuka Pharmaceuticals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3628,
4241,
4591,
834,
357,
41,
9476,
584,
4280,
28027,
6,
1025,
834,
4687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9385,
410,
411,
17,
7,
1598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9476,
61,
21680,
953,
834,
3166,
3628,
4241,
4591,
834,
357,
549,
17444,
427,
1025,
834,
4687,
3274,
96,
667,
17,
7,
1598,
9,
24464,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the score when the Tie no was 9? | CREATE TABLE table_name_56 (
score VARCHAR,
tie_no VARCHAR
) | SELECT score FROM table_name_56 WHERE tie_no = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
2604,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
8,
2262,
15,
150,
47,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many events are there for each party, and sort in asc by the the total number . | CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text... | SELECT Party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
15,
2169,
7,
41,
8042,
834,
4309,
16,
17,
6,
8042,
834,
23954,
1499,
6,
3450,
834,
4309,
16,
17,
6,
8541,
834,
77,
834,
7993,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3450,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1088,
834,
15,
2169,
7,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
834,
4309,
3274,
332,
4416,
13725,
63,
834,
4309,
350,... |
What team did the Chicago Black Hawks visit on April 20? | CREATE TABLE table_name_92 (
home VARCHAR,
visitor VARCHAR,
date VARCHAR
) | SELECT home FROM table_name_92 WHERE visitor = "chicago black hawks" AND date = "april 20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
410,
8,
3715,
1589,
12833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
7019,
3274,
96,
1436,
658,
839,
1001,
3,
14400,
7,
121,
3430,
833,
3274,
96,
9,
2246,
40,
460,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most points when the entrant was Jaguar racing earlier than 2001? | CREATE TABLE table_name_25 (points INTEGER, entrant VARCHAR, year VARCHAR) | SELECT MAX(points) FROM table_name_25 WHERE entrant = "jaguar racing" AND year < 2001 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
2700,
7,
3,
21342,
17966,
6,
3,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
979,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
3,
295,
3569,
3274,
96,
1191,
1744,
291,
8191,
121,
3430,
215,
3,
2,
4402,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
At what venues did Lorena Ochoa win the championship? | CREATE TABLE table_1520559_1 (venue VARCHAR, champion VARCHAR) | SELECT venue FROM table_1520559_1 WHERE champion = "Lorena Ochoa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
23201,
3390,
834,
536,
41,
15098,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
11778,
410,
8410,
35,
9,
411,
3995,
9,
1369,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
1808,
23201,
3390,
834,
536,
549,
17444,
427,
6336,
3274,
96,
434,
127,
35,
9,
411,
3995,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What position did the team with 3 losses finish? | CREATE TABLE table_1407 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
) | SELECT MIN("Position") FROM table_1407 WHERE "Loses" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4560,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
23055,
7,
1944,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
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,
3,
17684,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
2534,
4560,
549,
17444,
427,
96,
434,
32,
2260,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the maximum speed of the car with 1.556 cc capacity? | CREATE TABLE table_name_45 (vmax VARCHAR, capacity VARCHAR) | SELECT vmax FROM table_name_45 WHERE capacity = "1.556 cc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
208,
9128,
584,
4280,
28027,
6,
2614,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2411,
1634,
13,
8,
443,
28,
8613,
4834,
3,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
208,
9128,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2614,
3274,
96,
16593,
4834,
3,
75,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the name for when overs bowled is 31.2 | CREATE TABLE table_15700367_2 (
name VARCHAR,
overs_bowled VARCHAR
) | SELECT name FROM table_15700367_2 WHERE overs_bowled = "31.2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
9295,
519,
3708,
834,
357,
41,
564,
584,
4280,
28027,
6,
147,
7,
834,
17710,
1361,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
564,
21,
116,
147,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
1808,
9295,
519,
3708,
834,
357,
549,
17444,
427,
147,
7,
834,
17710,
1361,
3274,
96,
519,
10917,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of silver medals of the nation with more than 16 total medals? | CREATE TABLE table_name_40 (
silver VARCHAR,
total INTEGER
) | SELECT COUNT(silver) FROM table_name_40 WHERE total > 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
4294,
584,
4280,
28027,
6,
792,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
4294,
9365,
7,
13,
8,
2982,
28,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
792,
2490,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Surface of clay, and a Partnering of j lio silva had what score? | CREATE TABLE table_name_69 (
score VARCHAR,
surface VARCHAR,
partnering VARCHAR
) | SELECT score FROM table_name_69 WHERE surface = "clay" AND partnering = "júlio silva" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
2604,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
3,
26361,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
18884,
13,
14364,
6,
11,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
3,
26361,
3274,
96,
354,
2,
40,
23,
32,
108,
40,
900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What number in the season was episode 52 in the series? | CREATE TABLE table_2738 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Rank (week)" real,
"Original air date" text
) | SELECT MIN("#") FROM table_2738 WHERE "No." = '52' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3747,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
4663,
8512,
21680,
953,
834,
2555,
3747,
549,
17444,
427,
96,
4168,
535,
3274,
3,
31,
5373,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the Stage winner when the stage was smaller than 16, earlier than 1986, and a distance (km) was 19.6? | CREATE TABLE table_name_44 (
stage VARCHAR,
distance__km_ VARCHAR,
year VARCHAR
) | SELECT stage AS winner FROM table_name_44 WHERE stage < 16 AND year < 1986 AND distance__km_ = "19.6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
1726,
584,
4280,
28027,
6,
2357,
834,
834,
5848,
834,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
47,
8,
135... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1726,
6157,
4668,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1726,
3,
2,
898,
3430,
215,
3,
2,
12698,
3430,
2357,
834,
834,
5848,
834,
3274,
96,
2294,
5,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who watches North Melbourne when they are away? | CREATE TABLE table_32564 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_32564 WHERE "Away team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
1828,
4389,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
3623,
26,
121,
21680,
953,
834,
519,
1828,
4389,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is on at 8:00 when at 8:30 it is the bachelorette? | CREATE TABLE table_53928 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
) | SELECT "8:00" FROM table_53928 WHERE "8:30" = 'the bachelorette' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3288,
2577,
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,
15692,
121,
21680,
953,
834,
755,
3288,
2577,
549,
17444,
427,
96,
927,
10,
1458,
121,
3274,
3,
31,
532,
16428,
1954,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver? | CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR) | SELECT COUNT(bronze) FROM table_name_67 WHERE total > 4 AND rank < 4 AND nation = "germany" AND silver < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
13711,
776,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
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,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
792,
2490,
314,
3430,
11003,
3,
2,
314,
3430,
2982,
3274,
96,
1304,
348,
63,
121,
3430,
4294,
3,
2,
305,
1,
-100,
-100,
-100,
-1... |
Which R 51 O value corresponds to a D 42 O value of r 19? | CREATE TABLE table_name_8 (
r_51_o VARCHAR,
d_42_o VARCHAR
) | SELECT r_51_o FROM table_name_8 WHERE d_42_o = "r 19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
3,
52,
834,
5553,
834,
32,
584,
4280,
28027,
6,
3,
26,
834,
4165,
834,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
391,
11696,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
52,
834,
5553,
834,
32,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
3,
26,
834,
4165,
834,
32,
3274,
96,
52,
957,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which episode had at least 1.0 viewers ? | CREATE TABLE table_204_449 (
id number,
"no" number,
"episode" text,
"title" text,
"original airdate" text,
"viewers" number,
"nightly\nrank" number
) | SELECT "title" FROM table_204_449 WHERE "viewers" >= 1.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
3647,
41,
3,
23,
26,
381,
6,
96,
29,
32,
121,
381,
6,
96,
15,
102,
159,
32,
221,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
21878,
799,
5522,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
26363,
834,
591,
3647,
549,
17444,
427,
96,
4576,
277,
121,
2490,
2423,
3,
12734,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the attendance on April 7? | CREATE TABLE table_67000 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT SUM("Attendance") FROM table_67000 WHERE "Date" = 'april 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
2313,
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,
180,
6122,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3708,
2313,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Pie chart. how many counties correspond to each police force? | CREATE TABLE city (
City_ID int,
County_ID int,
Name text,
White real,
Black real,
Amerindian real,
Asian real,
Multiracial real,
Hispanic real
)
CREATE TABLE county_public_safety (
County_ID int,
Name text,
Population int,
Police_officers int,
Residents_per_offi... | SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
896,
834,
4309,
16,
17,
6,
1334,
834,
4309,
16,
17,
6,
5570,
1499,
6,
1945,
490,
6,
1589,
490,
6,
736,
6655,
8603,
490,
6,
6578,
490,
6,
4908,
52,
9,
4703,
490,
6,
978... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5076,
834,
10880,
6,
2847,
17161,
599,
1935,
61,
21680,
5435,
834,
15727,
834,
15233,
17,
63,
350,
4630,
6880,
272,
476,
5076,
834,
10880,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Opponent has a Result of 0-3? | CREATE TABLE table_name_98 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_98 WHERE result = "0-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
32,
102,
9977,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
65,
3,
9,
3,
20119,
13,
3,
632,
3486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
741,
3274,
96,
632,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the city/state for the holden racing team with winner of mark skaife todd kelly | CREATE TABLE table_57354 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
) | SELECT "City / State" FROM table_57354 WHERE "Team" = 'holden racing team' AND "Winner" = 'mark skaife todd kelly' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
2469,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
254,
485,
3,
87,
1015,
121,
1499,
6,
96,
18455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
485,
3,
87,
1015,
121,
21680,
953,
834,
3436,
2469,
591,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
6134,
35,
8191,
372,
31,
3430,
96,
18455,
687,
121,
3274,
3,
31,
3920,
3,
10717,
99,
15,
12,
26,
... |
How many caps did Mitchell Duke have overall? | CREATE TABLE table_name_32 (caps VARCHAR, player VARCHAR) | SELECT COUNT(caps) FROM table_name_32 WHERE player = "mitchell duke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
4010,
7,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
16753,
410,
17949,
15090,
43,
1879,
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,
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,
4010,
7,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1959,
3274,
96,
1538,
1033,
195,
146,
1050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who had the high points when they played in Philips Arena 14,413? | CREATE TABLE table_name_48 (high_points VARCHAR, location_attendance VARCHAR) | SELECT high_points FROM table_name_48 WHERE location_attendance = "philips arena 14,413" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
979,
116,
79,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
2700,
7,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
18118,
15432,
15134,
11363,
591,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about the sum of employee_id over the hire_date bin hire_date by time, and sort in desc by the Y-axis please. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
... |
triglycerides greater than 600 mg / dl | CREATE TABLE table_dev_15 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"hepatic_enzymes" bool,
"platelet_count" float,
"liver_disease" bool,
"hba1c" float,
"triglyceride_tg" float,
"NOUSE" float
) | SELECT * FROM table_dev_15 WHERE triglyceride_tg > 600 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
1808,
41,
96,
23,
26,
121,
16,
17,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
121,
3,
12660,
6,
96,
88,
7768,
75,
834,
35,
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,
1429,
21680,
953,
834,
9776,
834,
1808,
549,
17444,
427,
3,
17,
3380,
120,
2110,
1599,
834,
17,
122,
2490,
7366,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.