NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
which bainbridge class destroyer was launched before december 1900 ? | CREATE TABLE table_204_781 (
id number,
"name(s)" text,
"yard no." number,
"type (as built)" text,
"owner" text,
"imo number" number,
"laid down" text,
"launched" text,
"delivered/\ncommissioned" text,
"fate/\ndecommissioned" text,
"notes" text
) | SELECT "name(s)" FROM table_204_781 WHERE "type (as built)" = 'bainbridge-class destroyer' AND "launched" < 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3940,
536,
41,
3,
23,
26,
381,
6,
96,
4350,
599,
7,
61,
121,
1499,
6,
96,
6636,
150,
535,
381,
6,
96,
6137,
41,
9,
7,
1192,
61,
121,
1499,
6,
96,
13238,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
599,
7,
61,
121,
21680,
953,
834,
26363,
834,
3940,
536,
549,
17444,
427,
96,
6137,
41,
9,
7,
1192,
61,
121,
3274,
3,
31,
9441,
29,
9818,
18,
4057,
10123,
49,
31,
3430,
96,
27493,
15,
26,
121,
3,
2,
... |
Bar chart of department_id from each first name, and sort from low to high by the x axis. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | SELECT FIRST_NAME, DEPARTMENT_ID FROM employees ORDER BY FIRST_NAME | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30085,
834,
567,
17683,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
4674,
11300,
272,
476,
30085,
834,
567,
17683,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps? | CREATE TABLE table_54769 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Date" FROM table_54769 WHERE "Pole position" = 'jack brabham' AND "Circuit" = 'spa-francorchamps' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4177,
3951,
41,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
755,
4177,
3951,
549,
17444,
427,
96,
8931,
15,
1102,
121,
3274,
3,
31,
9325,
3858,
115,
1483,
31,
3430,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
14147,
18,
6296,
5715,
17788,
... |
What is the station that is transmitted at 20 kw and has a frequency of 48 uhf? | CREATE TABLE table_1601792_4 (
television_station VARCHAR,
transmitted VARCHAR,
frequency VARCHAR
) | SELECT television_station FROM table_1601792_4 WHERE transmitted = "20 kW" AND frequency = "48 UHF" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
2517,
4508,
834,
591,
41,
4390,
834,
6682,
584,
4280,
28027,
6,
19751,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4390,
834,
6682,
21680,
953,
834,
19129,
2517,
4508,
834,
591,
549,
17444,
427,
19751,
3274,
96,
1755,
3,
21729,
121,
3430,
7321,
3274,
96,
3707,
412,
17097,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where was the game where attendance was 51478? | CREATE TABLE table_17848578_1 (game_site VARCHAR, attendance VARCHAR) | SELECT game_site FROM table_17848578_1 WHERE attendance = 51478 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4608,
4433,
3940,
834,
536,
41,
7261,
834,
3585,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
213,
11364,
47,
305,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
834,
3585,
21680,
953,
834,
2517,
4608,
4433,
3940,
834,
536,
549,
17444,
427,
11364,
3274,
305,
2534,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the game played on August 5? | CREATE TABLE table_name_66 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_66 WHERE date = "august 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
1944,
30,
1660,
305,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
833,
3274,
96,
402,
17198,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Season, when Lead is 'Michael Goodfellow'? | CREATE TABLE table_name_12 (
season VARCHAR,
lead VARCHAR
) | SELECT season FROM table_name_12 WHERE lead = "michael goodfellow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
774,
584,
4280,
28027,
6,
991,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7960,
6,
116,
12208,
19,
3,
31,
329,
362,
9,
15,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
991,
3274,
96,
51,
362,
9,
15,
40,
207,
4025,
3216,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which venue has a Goal of 3? | CREATE TABLE table_name_81 (venue VARCHAR, goal VARCHAR) | SELECT venue FROM table_name_81 WHERE goal = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
15098,
584,
4280,
28027,
6,
1288,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
65,
3,
9,
17916,
13,
220,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4959,
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... |
Name the stops for stations 36 | CREATE TABLE table_2385460_1 (stops VARCHAR, stations VARCHAR) | SELECT stops FROM table_2385460_1 WHERE stations = 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4433,
25991,
834,
536,
41,
7618,
7,
584,
4280,
28027,
6,
6991,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
10796,
21,
6991,
4475,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10796,
21680,
953,
834,
2773,
4433,
25991,
834,
536,
549,
17444,
427,
6991,
3274,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Position, when Round is less than 6, and when Nationality is "Denmark"? | CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_22 WHERE round < 6 AND nationality = "denmark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
4718,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
14258,
6,
116,
9609,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1751,
3,
2,
431,
3430,
1157,
485,
3274,
96,
537,
3920,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the position number when there were 29 points, and less than 2 is lost? | CREATE TABLE table_7550 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT COUNT("Position") FROM table_7550 WHERE "Points" = '29' AND "Lost" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
1752,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
3072,
1752,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
3166,
31,
3430,
96,
434,
3481,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
... |
Show the average amount of transactions for different lots in a scatter chart | CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Transactions (
transaction_id INTE... | SELECT lot_id, AVG(amount_of_transaction) FROM Transactions AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7107,
41,
1085,
834,
7031,
4787,
834,
23,
26,
3,
21342,
17966,
6,
1085,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
1709... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
418,
834,
23,
26,
6,
71,
17217,
599,
9,
11231,
834,
858,
834,
7031,
4787,
61,
21680,
21469,
7,
6157,
332,
536,
3,
15355,
3162,
21469,
7,
834,
434,
32,
17,
7,
6157,
332,
357,
9191,
332,
5411,
7031,
4787,
834,
23,... |
how many patients have been discharged since 1 year ago? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND DATETIME(patient.hospitaldischargetime) >= DATETIME(CURRENT_TIME(), '-1 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
4486,
1868,
5,
31386,
26,
159,
7993,
715,
6827,
13046,
10376,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
26,
1... |
What is the number enrolled where t/vap is exactly 52.9%? | CREATE TABLE table_29050 (
"District" real,
"Region" text,
"Communes" text,
"Population (2002 census)" real,
"% of total population" text,
"VAP" real,
"Enrolled" real,
"Total votes" real,
"Valid votes" real,
"Turnout" text,
"E/VAP" text,
"T/VAP" text,
"V/VAP" text
) | SELECT "Enrolled" FROM table_29050 WHERE "T/VAP" = '52.9%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
1752,
41,
96,
308,
23,
20066,
121,
490,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
10205,
444,
7,
121,
1499,
6,
96,
27773,
7830,
41,
24898,
23087,
61,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8532,
10671,
121,
21680,
953,
834,
23838,
1752,
549,
17444,
427,
96,
382,
87,
553,
2965,
121,
3274,
3,
31,
5373,
5,
7561,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Conceded has Draws smaller than 5, and a Position larger than 6? | CREATE TABLE table_name_39 (conceded INTEGER, draws VARCHAR, position VARCHAR) | SELECT SUM(conceded) FROM table_name_39 WHERE draws < 5 AND position > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
11620,
221,
26,
3,
21342,
17966,
6,
14924,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1193,
565,
221,
26,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
11620,
221,
26,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
14924,
3,
2,
305,
3430,
1102,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of accounts for different statement details in a bar chart. | CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE ... | SELECT Statement_Details, COUNT(Statement_Details) FROM Accounts AS T1 JOIN Statements AS T2 ON T1.Statement_ID = T2.Statement_ID GROUP BY Statement_Details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
279,
13164,
17,
834,
22737,
7,
41,
12532,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
12532,
834,
25160,
834,
2962,
11830,
584,
4280,
28027,
599,
25502,
61,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16836,
834,
2962,
5756,
7,
6,
2847,
17161,
599,
134,
4748,
297,
834,
2962,
5756,
7,
61,
21680,
6288,
7,
6157,
332,
536,
3,
15355,
3162,
16836,
7,
6157,
332,
357,
9191,
332,
5411,
134,
4748,
297,
834,
4309,
3274,
3... |
Which Site has a Sport of w swimming? | CREATE TABLE table_name_38 (site VARCHAR, sport VARCHAR) | SELECT site FROM table_name_38 WHERE sport = "w swimming" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
3585,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3238,
65,
3,
9,
3349,
13,
3,
210,
5989,
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,
353,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
2600,
3274,
96,
210,
5989,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the date with game being 72 | CREATE TABLE table_13557843_7 (date VARCHAR, game VARCHAR) | SELECT date FROM table_13557843_7 WHERE game = 72 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3769,
3940,
4906,
834,
940,
41,
5522,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
833,
28,
467,
271,
9455,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2368,
3769,
3940,
4906,
834,
940,
549,
17444,
427,
467,
3274,
9455,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 5a06 is the production code what is the highest episode? | CREATE TABLE table_20967430_3 (ep INTEGER, prod_code VARCHAR) | SELECT MAX(ep) FROM table_20967430_3 WHERE prod_code = "5A06" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4314,
4581,
1458,
834,
519,
41,
15,
102,
3,
21342,
17966,
6,
813,
26,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
305,
9,
5176,
19,
8,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15,
102,
61,
21680,
953,
834,
1755,
4314,
4581,
1458,
834,
519,
549,
17444,
427,
813,
26,
834,
4978,
3274,
96,
755,
188,
5176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the handicap 8 st 12 lb? | CREATE TABLE table_2896329_1 (date VARCHAR, handicap VARCHAR) | SELECT date FROM table_2896329_1 WHERE handicap = "8 st 12 lb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
3891,
3166,
834,
536,
41,
5522,
584,
4280,
28027,
6,
14214,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
14214,
505,
3,
7,
17,
586,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
357,
3914,
3891,
3166,
834,
536,
549,
17444,
427,
14214,
3274,
96,
927,
3,
7,
17,
586,
3,
40,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Entered service date of the H1 Locomotive? | CREATE TABLE table_name_54 (entered_service VARCHAR, locomotive VARCHAR) | SELECT entered_service FROM table_name_54 WHERE locomotive = "h1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
35,
11196,
834,
5114,
584,
4280,
28027,
6,
31301,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
695,
11196,
313,
833,
13,
8,
454,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5136,
834,
5114,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
31301,
3274,
96,
107,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the game from September 10, 2000? | CREATE TABLE table_45324 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_45324 WHERE "Date" = 'september 10, 2000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
519,
2266,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
2128,
519,
2266,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
10372,
2766,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score when the Shingo Kunieda Satoshi Saida were the opponents? | CREATE TABLE table_name_84 (score_in_final VARCHAR, opponents_in_final VARCHAR) | SELECT score_in_final FROM table_name_84 WHERE opponents_in_final = "shingo kunieda satoshi saida" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
7,
9022,
834,
77,
834,
12406,
584,
4280,
28027,
6,
16383,
834,
77,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
834,
77,
834,
12406,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
16383,
834,
77,
834,
12406,
3274,
96,
9525,
32,
3,
157,
202,
5973,
9,
3,
7,
9,
235,
5605,
243,
9,
121,
1,
-100,
-100,
-100,
-100,
-10... |
Which name has an Area of makarewa? | CREATE TABLE table_69311 (
"Name" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT "Name" FROM table_69311 WHERE "Area" = 'makarewa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
519,
2596,
41,
96,
23954,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
121,
1499,
6,
96,
2962,
75,
699,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3951,
519,
2596,
549,
17444,
427,
96,
188,
864,
121,
3274,
3,
31,
51,
5667,
60,
210,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the giro wins when jerseys is 2, country is portugal and young rider is more than 0? | CREATE TABLE table_65195 (
"Rank" text,
"Country" text,
"Jerseys" real,
"Giro wins" real,
"Points" real,
"Young rider" real,
"Most recent cyclist" text,
"Most recent date" text,
"Different holders" real
) | SELECT SUM("Giro wins") FROM table_65195 WHERE "Jerseys" = '2' AND "Country" = 'portugal' AND "Young rider" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
22464,
41,
96,
22557,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
683,
277,
15,
63,
7,
121,
490,
6,
96,
30428,
9204,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
30428,
9204,
8512,
21680,
953,
834,
4122,
22464,
549,
17444,
427,
96,
683,
277,
15,
63,
7,
121,
3274,
3,
31,
357,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
1493,
12204,
40,
31,
3430,
96,
3... |
What is the location and attendance of the game when the score is 125-100? | CREATE TABLE table_name_89 (location_attendance VARCHAR, score VARCHAR) | SELECT location_attendance FROM table_name_89 WHERE score = "125-100" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
11,
11364,
13,
8,
467,
116,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
2604,
3274,
96,
10124,
18,
2915,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a scatter chart on what are total salaries and department id for each department that has more than 2 employees? | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTME... | SELECT DEPARTMENT_ID, SUM(SALARY) FROM employees GROUP BY DEPARTMENT_ID | [
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,
3396,
19846,
11810,
834,
4309,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
350,
4630,
6880,
272,
476,
3396,
19846,
11810,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won Silverstone in a round after 10? | CREATE TABLE table_name_90 (
name VARCHAR,
round VARCHAR,
circuit VARCHAR
) | SELECT name FROM table_name_90 WHERE round > 10 AND circuit = "silverstone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
564,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
5642,
3009,
16,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1751,
2490,
335,
3430,
4558,
3274,
96,
7,
173,
624,
3009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date was part number rk80533pz933256 released? | CREATE TABLE table_name_89 (release_date VARCHAR, part_number_s_ VARCHAR) | SELECT release_date FROM table_name_89 WHERE part_number_s_ = "rk80533pz933256" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
294,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
294,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
294,
834,
5525,
1152,
834,
7,
834,
3274,
96,
52,
157,
2079,
4867,
519,
102,
172,
4271,
519,
19337,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many total catagories are there for La Paz? | CREATE TABLE table_21249915_1 (
total VARCHAR,
department VARCHAR
) | SELECT COUNT(total) FROM table_21249915_1 WHERE department = "La Paz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2266,
3264,
1808,
834,
536,
41,
792,
584,
4280,
28027,
6,
3066,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
1712,
9,
839,
2593,
33,
132,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
2658,
2266,
3264,
1808,
834,
536,
549,
17444,
427,
3066,
3274,
96,
3612,
2709,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
hematocrit < 0.25 > 0.55 | CREATE TABLE table_test_6 (
"id" int,
"scr" int,
"anemia" bool,
"blood_hemoglobin" int,
"bleeding" int,
"hemorrhagic_diseases" bool,
"stroke" bool,
"blood_platelet_counts" int,
"trauma" bool,
"renal_disease" bool,
"hematocrit_hct" float,
"hepatic_disease" bool,
"polyg... | SELECT * FROM table_test_6 WHERE hematocrit_hct < 0.25 OR hematocrit_hct > 0.55 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
948,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
75,
52,
121,
16,
17,
6,
96,
152,
11658,
121,
3,
12840,
40,
6,
96,
27798,
834,
6015,
32,
14063,
77,
121,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
948,
549,
17444,
427,
3,
6015,
9,
235,
12563,
834,
107,
75,
17,
3,
2,
4097,
1828,
4674,
3,
6015,
9,
235,
12563,
834,
107,
75,
17,
2490,
4097,
3769,
1,
-100,
-100,
-100,
-100,
-1... |
What's the 2010 when they had a Q2 in 2009? | CREATE TABLE table_name_10 (
Id VARCHAR
) | SELECT 2010 FROM table_name_10 WHERE 2009 = "q2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2735,
116,
79,
141,
3,
9,
1593,
357,
16,
2464,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2735,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
2464,
3274,
96,
1824,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the name and phone for customers with a mailshot with outcome code 'No Response'. | CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR) | SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
25697,
49,
834,
4350,
584,
4280,
28027,
6,
884,
834,
6399,
584,
4280,
28027,
6,
884,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
25697,
49,
834,
4350,
6,
332,
5411,
25697,
49,
834,
6399,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
4842,
11159,
834,
25697,
277,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
4416... |
provide the number of patients whose year of birth is less than 2200 and drug name is aluminum hydroxide suspension? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2200" AND prescriptions.drug = "Aluminum Hydroxide Suspension" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Who had the high rebounds, and how many did he have, for the game played on April 9? | CREATE TABLE table_name_24 (
high_rebounds VARCHAR,
date VARCHAR
) | SELECT high_rebounds FROM table_name_24 WHERE date = "april 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
306,
834,
23768,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
3,
23768,
6,
11,
149,
186,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
23768,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Points have an Opponent of @ calgary flames? | CREATE TABLE table_name_77 (
points INTEGER,
opponent VARCHAR
) | SELECT SUM(points) FROM table_name_77 WHERE opponent = "@ calgary flames" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
979,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4564,
7,
43,
46,
4495,
9977,
13,
3320,
3,
1489,
1478,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
15264,
3274,
96,
1741,
3,
1489,
1478,
63,
12314,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In what class is the laps greater than 134 and the position is 4th? | CREATE TABLE table_name_74 (class VARCHAR, laps VARCHAR, pos VARCHAR) | SELECT class FROM table_name_74 WHERE laps > 134 AND pos = "4th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
4057,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
853,
19,
8,
14941,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
14941,
7,
2490,
3,
23747,
3430,
3,
2748,
3274,
96,
591,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What capital's county had a population of 730129 as of 2009? | CREATE TABLE table_16278894_1 (capital VARCHAR, population_census_2009 VARCHAR) | SELECT capital FROM table_16278894_1 WHERE population_census_2009 = 730129 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2555,
4060,
4240,
834,
536,
41,
4010,
9538,
584,
4280,
28027,
6,
2074,
834,
75,
35,
7,
302,
834,
16660,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1784,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1784,
21680,
953,
834,
2938,
2555,
4060,
4240,
834,
536,
549,
17444,
427,
2074,
834,
75,
35,
7,
302,
834,
16660,
3274,
489,
1458,
22174,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List the pictorals from issues when lindsey roeper was the cover model. | CREATE TABLE table_1566852_8 (
pictorials VARCHAR,
cover_model VARCHAR
) | SELECT pictorials FROM table_1566852_8 WHERE cover_model = "Lindsey Roeper" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
3651,
5373,
834,
927,
41,
6686,
17,
11929,
7,
584,
4280,
28027,
6,
1189,
834,
21770,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
6686,
17,
8563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6686,
17,
11929,
7,
21680,
953,
834,
25463,
3651,
5373,
834,
927,
549,
17444,
427,
1189,
834,
21770,
3274,
96,
434,
77,
26,
7,
15,
63,
2158,
15,
883,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's Ontario's highest Ends Lost? | CREATE TABLE table_5427 (
"Locale" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT MAX("Ends Lost") FROM table_5427 WHERE "Locale" = 'ontario' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
2555,
41,
96,
434,
32,
1489,
15,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
8532,
26,
7,
549,
106,
121,
490,
6,
96,
8532,
26,
7,
19576,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
8532,
26,
7,
19576,
8512,
21680,
953,
834,
5062,
2555,
549,
17444,
427,
96,
434,
32,
1489,
15,
121,
3274,
3,
31,
1770,
14414,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In the 6th round match with home team Bahia, who was the away team? | CREATE TABLE table_name_96 (away_team VARCHAR, round VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_96 WHERE round = "6th" AND home_team = "bahia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
431,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1751,
3274,
96,
948,
189,
121,
3430,
234,
834,
11650,
3274,
96,
17670,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Is the iin range 4 active? | CREATE TABLE table_15905399_1 (active VARCHAR, iin_ranges VARCHAR) | SELECT active FROM table_15905399_1 WHERE iin_ranges = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
2394,
4867,
3264,
834,
536,
41,
6645,
584,
4280,
28027,
6,
3,
23,
77,
834,
5517,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
7,
8,
3,
23,
77,
620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1676,
21680,
953,
834,
1808,
2394,
4867,
3264,
834,
536,
549,
17444,
427,
3,
23,
77,
834,
5517,
7,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
The plural word of hands uses what singular word? | CREATE TABLE table_name_24 (singular_word VARCHAR, plural_word VARCHAR) | SELECT singular_word FROM table_name_24 WHERE plural_word = "hands" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
7,
53,
4885,
834,
6051,
584,
4280,
28027,
6,
28037,
834,
6051,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
37,
28037,
1448,
13,
1780,
2284,
125,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22166,
834,
6051,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
28037,
834,
6051,
3274,
96,
2894,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship? | CREATE TABLE table_name_26 (
finals_mvp VARCHAR,
eastern_champion VARCHAR,
western_champion VARCHAR
) | SELECT finals_mvp FROM table_name_26 WHERE eastern_champion = "detroit shock" AND western_champion = "sacramento monarchs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
804,
7,
834,
51,
208,
102,
584,
4280,
28027,
6,
13350,
834,
17788,
12364,
584,
4280,
28027,
6,
8282,
834,
17788,
12364,
584,
4280,
28027,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
804,
7,
834,
51,
208,
102,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
13350,
834,
17788,
12364,
3274,
96,
26,
15252,
155,
8700,
121,
3430,
8282,
834,
17788,
12364,
3274,
96,
7,
9,
2935,
297,
32,
28397,
7,
... |
give me the number of patients whose year of birth is less than 2090 and lab test fluid is cerebrospinal fluid (csf)? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2090" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Find the name of instructor who is the advisor of the student who has the highest number of total credits. | CREATE TABLE advisor (
i_id VARCHAR,
s_id VARCHAR
)
CREATE TABLE instructor (
name VARCHAR,
id VARCHAR
)
CREATE TABLE student (
id VARCHAR,
tot_cred VARCHAR
) | SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8815,
41,
3,
23,
834,
23,
26,
584,
4280,
28027,
6,
3,
7,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10617,
41,
564,
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,
332,
4416,
4350,
21680,
8815,
6157,
332,
536,
3,
15355,
3162,
10617,
6157,
332,
357,
9191,
332,
5411,
23,
834,
23,
26,
3274,
332,
4416,
23,
26,
3,
15355,
3162,
1236,
6157,
332,
519,
9191,
332,
5411,
7,
834,
23,
26... |
How many Operating Expenditures have Receipts of 44,259,386? | CREATE TABLE table_54364 (
"Candidate" text,
"Contributions" real,
"Loans Received" real,
"All Receipts" real,
"Operating Expenditures" real,
"All Disbursements" real
) | SELECT COUNT("Operating Expenditures") FROM table_54364 WHERE "All Receipts" = '44,259,386' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
3420,
591,
41,
96,
14050,
12416,
342,
121,
1499,
6,
96,
4302,
5135,
10872,
121,
490,
6,
96,
434,
32,
3247,
24083,
26,
121,
490,
6,
96,
6838,
7136,
15,
23,
102,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
667,
883,
1014,
3,
12882,
989,
23,
10471,
8512,
21680,
953,
834,
5062,
3420,
591,
549,
17444,
427,
96,
6838,
7136,
15,
23,
102,
17,
7,
121,
3274,
3,
31,
3628,
6,
357,
3390,
6,
519,
3840,
3... |
What is the figure for December 25 for the film that totalled p15.3 million for December 25-28 total? | CREATE TABLE table_31003 (
"Movies" text,
"December 25" text,
"December 26" text,
"December 27" text,
"December 28" text,
"December 25-28 total" text,
"Total 2-week Gross" text
) | SELECT "December 25" FROM table_31003 WHERE "December 25-28 total" = 'P15.3 million' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19947,
4928,
41,
96,
329,
9881,
15,
7,
121,
1499,
6,
96,
29835,
944,
121,
1499,
6,
96,
29835,
2208,
121,
1499,
6,
96,
29835,
2307,
121,
1499,
6,
96,
29835,
2059,
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,
29835,
944,
121,
21680,
953,
834,
19947,
4928,
549,
17444,
427,
96,
29835,
944,
18,
2577,
792,
121,
3274,
3,
31,
345,
536,
26627,
770,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what chassis was on the last team on the chart 's car ? | CREATE TABLE table_204_864 (
id number,
"pos" number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text
) | SELECT "chassis" FROM table_204_864 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3840,
591,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
381,
6,
96,
4057,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
13739,
52,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
524,
6500,
7,
121,
21680,
953,
834,
26363,
834,
3840,
591,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Compute the number of services by services and then split by local authorities. Show the result with a stacked bar graph. | CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CREATE TABLE station (
id int,
network_name text,
services text,
local... | SELECT local_authority, COUNT(local_authority) FROM station GROUP BY services, local_authority | [
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,
5547,
834,
26809,
41,
2478,
834,
23,
26,
16,
17,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
415,
834,
17415,
485,
6,
2847,
17161,
599,
16882,
834,
17415,
485,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
364,
6,
415,
834,
17415,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill? | CREATE TABLE table_name_69 (
chassis VARCHAR,
driver VARCHAR,
rounds VARCHAR,
entrant VARCHAR
) | SELECT chassis FROM table_name_69 WHERE rounds = "all" AND entrant = "benson and hedges jordan" AND driver = "damon hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
22836,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
6,
14419,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
14419,
3274,
96,
1748,
121,
3430,
3,
295,
3569,
3274,
96,
28162,
29,
11,
18179,
7,
3,
12775,
3768,
121,
3430,
2535,
3274,
96,
7812,
106,
9956,
121,
1,
-100,
... |
What is the name of the instructor who advises the student with the greatest number of total credits? | CREATE TABLE instructor (
id text,
name text,
dept_name text,
salary number
)
CREATE TABLE takes (
id text,
course_id text,
sec_id text,
semester text,
year number,
grade text
)
CREATE TABLE course (
course_id text,
title text,
dept_name text,
credits number
)
... | SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10617,
41,
3,
23,
26,
1499,
6,
564,
1499,
6,
20,
102,
17,
834,
4350,
1499,
6,
9090,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1217,
41,
3,
23,
26,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
4350,
21680,
8815,
6157,
332,
536,
3,
15355,
3162,
10617,
6157,
332,
357,
9191,
332,
5411,
23,
834,
23,
26,
3274,
332,
4416,
23,
26,
3,
15355,
3162,
1236,
6157,
332,
519,
9191,
332,
5411,
7,
834,
23,
26... |
What is the away team's score at princes park? | CREATE TABLE table_name_49 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team AS score FROM table_name_49 WHERE venue = "princes park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
372,
31,
7,
2604,
44,
22277,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
5669,
3274,
96,
12298,
2319,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show first name and last name for all students. | CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR) | SELECT Fname, Lname FROM Student | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
371,
4350,
584,
4280,
28027,
6,
301,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
166,
564,
11,
336,
564,
21,
66,
481,
5,
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,
377,
4350,
6,
301,
4350,
21680,
6341,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many Israelis and or foreigners were wounded in the attack with more than 1 Israeli death? | CREATE TABLE table_name_45 (israeli_and_or_foreigner_wounded VARCHAR, israeli_deaths INTEGER) | SELECT israeli_and_or_foreigner_wounded FROM table_name_45 WHERE israeli_deaths > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
30178,
23,
834,
232,
834,
127,
834,
1161,
15,
3191,
49,
834,
210,
14471,
584,
4280,
28027,
6,
3,
30178,
23,
834,
221,
9,
189,
7,
3,
21342,
17966,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
30178,
23,
834,
232,
834,
127,
834,
1161,
15,
3191,
49,
834,
210,
14471,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3,
30178,
23,
834,
221,
9,
189,
7,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is on the reverse side of the 500 coin? | CREATE TABLE table_298883_5 (
reverse VARCHAR,
value VARCHAR
) | SELECT reverse FROM table_298883_5 WHERE value = "₩500" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
10927,
519,
834,
755,
41,
7211,
584,
4280,
28027,
6,
701,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
30,
8,
7211,
596,
13,
8,
2899,
7485,
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,
7211,
21680,
953,
834,
3166,
10927,
519,
834,
755,
549,
17444,
427,
701,
3274,
96,
2,
2560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest Long, when Name is Kass, Rob, and when Avg/g is less than -0.30000000000000004? | CREATE TABLE table_name_81 (long INTEGER, name VARCHAR, avg_g VARCHAR) | SELECT MIN(long) FROM table_name_81 WHERE name = "kass, rob" AND avg_g < -0.30000000000000004 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
2961,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
122,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2961,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
564,
3274,
96,
1258,
7,
7,
6,
3,
5840,
121,
3430,
3,
9,
208,
122,
834,
122,
3,
2,
3,
18,
19997,
2313,
2313,
19568,
19568,
6348,
1,
-1... |
What is the L3 cache for the processor having a speed of 2.93 GHz? | CREATE TABLE table_269920_16 (
l3_cache__mb_ VARCHAR,
speed__ghz_ VARCHAR
) | SELECT l3_cache__mb_ FROM table_269920_16 WHERE speed__ghz_ = "2.93" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3264,
1755,
834,
2938,
41,
3,
40,
519,
834,
75,
4933,
834,
834,
51,
115,
834,
584,
4280,
28027,
6,
1634,
834,
834,
122,
107,
172,
834,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
40,
519,
834,
75,
4933,
834,
834,
51,
115,
834,
21680,
953,
834,
2688,
3264,
1755,
834,
2938,
549,
17444,
427,
1634,
834,
834,
122,
107,
172,
834,
3274,
96,
4416,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Who were the comptrollers of the parties associated with the delegates from district 1 or district 2, and count them by a bar chart, and could you list X-axis in desc order? | CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
A... | SELECT Comptroller, COUNT(Comptroller) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 GROUP BY Comptroller ORDER BY Comptroller DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
19488,
834,
4309,
16,
17,
6,
3,
10628,
725,
834,
1649,
12640,
15,
26,
1499,
6,
3570,
16,
17,
6,
374,
8791,
1499,
6,
3450,
16,
17,
6,
1485,
834,
21543,
15,
26,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4961,
17,
4046,
49,
6,
2847,
17161,
599,
5890,
102,
17,
4046,
49,
61,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
3274,
332,
4416,
13725,
63,
834,
4309,
549,
17444,... |
what's the party for the first elected in 1980 | CREATE TABLE table_1341472_15 (
party VARCHAR,
first_elected VARCHAR
) | SELECT party FROM table_1341472_15 WHERE first_elected = "1980" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
24719,
357,
834,
1808,
41,
1088,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
1088,
21,
8,
166,
8160,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1088,
21680,
953,
834,
23747,
24719,
357,
834,
1808,
549,
17444,
427,
166,
834,
19971,
3274,
96,
2294,
2079,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the tournament when 2011 is qf and 2012 is sf? | CREATE TABLE table_15068 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "Tournament" FROM table_15068 WHERE "2011" = 'qf' AND "2012" = 'sf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
3651,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172,
121,
1499,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
12278,
3651,
549,
17444,
427,
96,
13907,
121,
3274,
3,
31,
1824,
89,
31,
3430,
96,
12172,
121,
3274,
3,
31,
7,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the opponent in the final for 3 6, 1 6 | CREATE TABLE table_25861 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Opponent in the final" FROM table_25861 WHERE "Score in the final" = '3–6, 1–6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3840,
536,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
16,
8,
804,
121,
21680,
953,
834,
1828,
3840,
536,
549,
17444,
427,
96,
134,
9022,
16,
8,
804,
121,
3274,
3,
31,
519,
104,
11071,
209,
104,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which teams were the last to qualify ? | CREATE TABLE table_204_642 (
id number,
"team" text,
"domestic tournament" text,
"position" text,
"appearance" text,
"qualified" text
) | SELECT "team" FROM table_204_642 WHERE "qualified" = (SELECT MAX("qualified") FROM table_204_642) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4389,
357,
41,
3,
23,
26,
381,
6,
96,
11650,
121,
1499,
6,
96,
5012,
222,
447,
5892,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
3096,
2741,
663,
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,
11650,
121,
21680,
953,
834,
26363,
834,
4389,
357,
549,
17444,
427,
96,
23058,
121,
3274,
41,
23143,
14196,
4800,
4,
599,
121,
23058,
8512,
21680,
953,
834,
26363,
834,
4389,
7318,
1,
-100,
-100,
-100,
-100,
-100... |
Who is the friday presenter for each show, when the monday presenter is Emma Willis Jamie East? | CREATE TABLE table_11748792_2 (
friday VARCHAR,
monday VARCHAR
) | SELECT friday FROM table_11748792_2 WHERE monday = "Emma Willis Jamie East" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
3707,
4440,
357,
834,
357,
41,
9030,
1135,
584,
4280,
28027,
6,
1911,
1135,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
9030,
1135,
915,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9030,
1135,
21680,
953,
834,
20275,
3707,
4440,
357,
834,
357,
549,
17444,
427,
1911,
1135,
3274,
96,
427,
635,
9,
2003,
159,
17845,
1932,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Opposition has a City of taunton? | CREATE TABLE table_5766 (
"Opposition" text,
"Score" text,
"Venue" text,
"City" text,
"Year" real
) | SELECT "Opposition" FROM table_5766 WHERE "City" = 'taunton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3539,
41,
96,
667,
102,
4718,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
476,
2741,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
4718,
121,
21680,
953,
834,
3436,
3539,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
17,
402,
6992,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the design when quantity is 5,000,000? | CREATE TABLE table_27701 (
"Date of Issue" text,
"Theme" text,
"Denomination" text,
"Design" text,
"Illustration" text,
"Quantity" text,
"Printing Process" text,
"Paper Type" text,
"First Day Cover Cancellation" text
) | SELECT "Design" FROM table_27701 WHERE "Quantity" = '5,000,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2518,
536,
41,
96,
308,
342,
13,
13235,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
308,
35,
32,
14484,
121,
1499,
6,
96,
19103,
121,
1499,
6,
96,
196,
40,
1000... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19103,
121,
21680,
953,
834,
2555,
2518,
536,
549,
17444,
427,
96,
5991,
288,
485,
121,
3274,
3,
31,
755,
23916,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which line has an operator of the London Overground and ends at the Crystal Palace? | CREATE TABLE table_name_87 (line VARCHAR, operator VARCHAR, destination VARCHAR) | SELECT line FROM table_name_87 WHERE operator = "london overground" AND destination = "crystal palace" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
747,
584,
4280,
28027,
6,
7221,
584,
4280,
28027,
6,
3954,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
689,
65,
46,
7221,
13,
8,
1524,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
689,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
7221,
3274,
96,
40,
106,
2029,
147,
9232,
121,
3430,
3954,
3274,
96,
75,
651,
8407,
20212,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When jordan fa cup is the tournament how many draws? | CREATE TABLE table_2985714_2 (
draws VARCHAR,
tournament VARCHAR
) | SELECT COUNT(draws) FROM table_2985714_2 WHERE tournament = "Jordan FA Cup" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3916,
3436,
2534,
834,
357,
41,
14924,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
12775,
3768,
3,
89,
9,
4119,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
19489,
7,
61,
21680,
953,
834,
357,
3916,
3436,
2534,
834,
357,
549,
17444,
427,
5892,
3274,
96,
683,
127,
3768,
8536,
3802,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the 1st leg that had a 1st get home for the Boca Juniors? | CREATE TABLE table_12742 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
) | SELECT "1st Leg" FROM table_12742 WHERE "Home (1st leg)" = 'boca juniors' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
4165,
41,
96,
19040,
4077,
7,
17,
4553,
61,
121,
1499,
6,
96,
19040,
4743,
727,
4553,
61,
121,
1499,
6,
96,
536,
7,
17,
18978,
121,
1499,
6,
96,
357,
727,
4553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
18978,
121,
21680,
953,
834,
22367,
4165,
549,
17444,
427,
96,
19040,
4077,
7,
17,
4553,
61,
121,
3274,
3,
31,
26943,
9,
9212,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the maximum season that has exactly 2 podiums? | CREATE TABLE table_4190 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | SELECT MAX("Season") FROM table_4190 WHERE "Podiums" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
11776,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
15,
9,
739,
8512,
21680,
953,
834,
591,
11776,
549,
17444,
427,
96,
16665,
2552,
7,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Venue of the 2009 St. Louis Rams Home game? | CREATE TABLE table_78680 (
"Year" real,
"Date" text,
"Home Team" text,
"Result" text,
"Visiting Team" text,
"Venue" text
) | SELECT "Venue" FROM table_78680 WHERE "Year" = '2009' AND "Home Team" = 'st. louis rams' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3840,
2079,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
30338,
2271,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
940,
3840,
2079,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
16660,
31,
3430,
96,
19040,
2271,
121,
3274,
3,
31,
7,
17,
5,
16585,
159,
3,
2375,
7,
31,
1,
-100,
... |
Who is the driver when the tyre is p and the entrant is officine alfieri maserati? | CREATE TABLE table_56267 (
"Driver" text,
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text
) | SELECT "Driver" FROM table_56267 WHERE "Tyre" = 'p' AND "Entrant" = 'officine alfieri maserati' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
357,
3708,
41,
96,
20982,
52,
121,
1499,
6,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
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,
20982,
52,
121,
21680,
953,
834,
4834,
357,
3708,
549,
17444,
427,
96,
382,
63,
60,
121,
3274,
3,
31,
102,
31,
3430,
96,
16924,
3569,
121,
3274,
3,
31,
1647,
23,
14760,
491,
89,
9626,
3,
2754,
15,
6850,
31,
... |
Which Playoffs have a Year smaller than 2012, and an Open Cup of did not enter? | CREATE TABLE table_name_83 (
playoffs VARCHAR,
year VARCHAR,
open_cup VARCHAR
) | SELECT playoffs FROM table_name_83 WHERE year < 2012 AND open_cup = "did not enter" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
15289,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
539,
834,
4658,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2911,
1647,
7,
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,
15289,
7,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
215,
3,
2,
1673,
3430,
539,
834,
4658,
3274,
96,
12416,
59,
2058,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the maximum, minimum and average market share of the listed browsers? | CREATE TABLE browser (market_share INTEGER) | SELECT MAX(market_share), MIN(market_share), AVG(market_share) FROM browser | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3509,
41,
8809,
834,
12484,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
6,
2559,
11,
1348,
512,
698,
13,
8,
2616,
3509,
7,
58,
1,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8809,
834,
12484,
201,
3,
17684,
599,
8809,
834,
12484,
201,
71,
17217,
599,
8809,
834,
12484,
61,
21680,
3509,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
WHich competition was held on Alvor with a score 1-0? | CREATE TABLE table_name_77 (competition VARCHAR, score VARCHAR, location VARCHAR) | SELECT competition FROM table_name_77 WHERE score = "1-0" AND location = "alvor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
362,
2259,
47,
1213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2604,
3274,
96,
18930,
121,
3430,
1128,
3274,
96,
138,
1967,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When the quiabaya municipality is 2 what is the combaya municipality? | CREATE TABLE table_2509202_2 (
combaya_municipality VARCHAR,
quiabaya_municipality VARCHAR
) | SELECT combaya_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4198,
19818,
834,
357,
41,
3,
287,
11119,
9,
834,
11760,
3389,
10355,
584,
4280,
28027,
6,
285,
9,
11119,
9,
834,
11760,
3389,
10355,
584,
4280,
28027,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
287,
11119,
9,
834,
11760,
3389,
10355,
21680,
953,
834,
1828,
4198,
19818,
834,
357,
549,
17444,
427,
285,
9,
11119,
9,
834,
11760,
3389,
10355,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What format is Première Chaîne? | CREATE TABLE table_name_44 (format VARCHAR, branding VARCHAR) | SELECT format FROM table_name_44 WHERE branding = "première chaîne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
8995,
584,
4280,
28027,
6,
14282,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1910,
19,
3,
30803,
3643,
3851,
15,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
14282,
3274,
96,
2026,
51,
5442,
20357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the earliest year the new york giants lost at new meadowlands stadium? | CREATE TABLE table_47789 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
) | SELECT MIN("Year") FROM table_47789 WHERE "Loser" = 'new york giants' AND "Location" = 'new meadowlands stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4013,
3914,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
434,
32,
7,
49,
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,
476,
2741,
8512,
21680,
953,
834,
591,
4013,
3914,
549,
17444,
427,
96,
434,
32,
7,
49,
121,
3274,
3,
31,
5534,
25453,
6079,
7,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
5534,
140,
... |
When did the season air where the viewership was 14.71 million? | CREATE TABLE table_1145977_2 (season VARCHAR, viewers__in_millions_ VARCHAR) | SELECT season AS premiere FROM table_1145977_2 WHERE viewers__in_millions_ = "14.71" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
3390,
4013,
834,
357,
41,
9476,
584,
4280,
28027,
6,
13569,
834,
834,
77,
834,
17030,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
6157,
13539,
21680,
953,
834,
18959,
3390,
4013,
834,
357,
549,
17444,
427,
13569,
834,
834,
77,
834,
17030,
7,
834,
3274,
96,
2534,
5,
4450,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name and age of the person who is a friend of both Dan and Alice. | CREATE TABLE personfriend (
name text,
friend text,
year number
)
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
) | SELECT T1.name, T1.age FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
15504,
41,
564,
1499,
6,
1565,
1499,
6,
215,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
41,
564,
1499,
6,
1246,
381,
6,
690,
1499,
6,
7285,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
545,
21680,
568,
6157,
332,
536,
3,
15355,
3162,
568,
15504,
6157,
332,
357,
9191,
332,
5411,
4350,
3274,
332,
4416,
4350,
549,
17444,
427,
332,
4416,
15504,
3274,
3,
31,
308,
152,
31,... |
What is the zip code of the hosue of the employee named Janessa Sawayn? | CREATE TABLE addresses (
address_id number,
line_1_number_building text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE customer_payments (
customer_id number,
datetime_payment time,
payment_method_code text,
amount_payment number
)
CREATE... | SELECT T1.zip_postcode FROM addresses AS T1 JOIN staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7181,
41,
1115,
834,
23,
26,
381,
6,
689,
834,
536,
834,
5525,
1152,
834,
10905,
1499,
6,
690,
1499,
6,
10658,
834,
5950,
4978,
1499,
6,
538,
834,
1409,
2494,
565,
834,
13362,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
13453,
834,
5950,
4978,
21680,
7181,
6157,
332,
536,
3,
15355,
3162,
871,
6157,
332,
357,
9191,
332,
5411,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
26416,
834,
9,
26,
12039,
834,
23,
26,
549,
17444,
... |
What are the 2fm's for erp 16? | CREATE TABLE table_18475946_2 (erp__kw_ VARCHAR) | SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE erp__kw_ = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4177,
3390,
4448,
834,
357,
41,
49,
102,
834,
834,
157,
210,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
204,
89,
51,
31,
7,
21,
3,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
204,
6157,
3,
89,
51,
834,
834,
51,
107,
172,
834,
21680,
953,
834,
2606,
4177,
3390,
4448,
834,
357,
549,
17444,
427,
3,
49,
102,
834,
834,
157,
210,
834,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average quantity that has 1104 as the number(s)? | CREATE TABLE table_name_40 (quantity INTEGER, number_s_ VARCHAR) | SELECT AVG(quantity) FROM table_name_40 WHERE number_s_ = "1104" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
13158,
485,
3,
21342,
17966,
6,
381,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
8708,
24,
65,
209,
15442,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
13158,
485,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
381,
834,
7,
834,
3274,
96,
19277,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the 1st leg result in the round where team #1 is Iraklis? | CREATE TABLE table_19130829_4 (
team__number1 VARCHAR
) | SELECT 1 AS st_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2368,
4018,
3166,
834,
591,
41,
372,
834,
834,
5525,
1152,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
209,
7,
17,
4553,
741,
16,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
2294,
2368,
4018,
3166,
834,
591,
549,
17444,
427,
372,
834,
834,
5525,
1152,
536,
3274,
96,
196,
9782,
40,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want to know the tie for drawn of 47 | CREATE TABLE table_name_46 (tied VARCHAR, drawn VARCHAR) | SELECT tied FROM table_name_46 WHERE drawn = "47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
17,
5973,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
12,
214,
8,
6177,
21,
6796,
13,
10635,
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,
10422,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
6796,
3274,
96,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest amount of points of the game with toronto as the home team? | CREATE TABLE table_76502 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT MIN("Points") FROM table_76502 WHERE "Home" = 'toronto' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
1752,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
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,
3,
17684,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3959,
1752,
357,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
235,
4438,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the callsign that has ICAO of SCO? | CREATE TABLE table_40672 (
"AIRLINES" text,
"IATA" text,
"ICAO" text,
"CALLSIGN" text,
"COMMENCED OPERATIONS" real
) | SELECT "CALLSIGN" FROM table_40672 WHERE "ICAO" = 'sco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3708,
357,
41,
96,
18375,
20006,
134,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
21605,
7600,
196,
13738,
121,
1499,
6,
96,
6657,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21605,
7600,
196,
13738,
121,
21680,
953,
834,
2445,
3708,
357,
549,
17444,
427,
96,
15038,
667,
121,
3274,
3,
31,
3523,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
did the team win more home games or away games ? | CREATE TABLE table_203_534 (
id number,
"week" number,
"date" text,
"opponent" text,
"home/away" text,
"result" text,
"bye" text
) | SELECT "home/away" FROM table_203_534 WHERE "result" = 'w' GROUP BY "home/away" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3710,
41,
3,
23,
26,
381,
6,
96,
8041,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
5515,
87,
8006,
121,
1499,
6,
96,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5515,
87,
8006,
121,
21680,
953,
834,
23330,
834,
755,
3710,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
3274,
3,
31,
210,
31,
350,
4630,
6880,
272,
476,
96,
5515,
87,
8006,
121,
4674,
11300,
272,
476,
2847,
17... |
What date shows a Loss of lilly (2 2)? | CREATE TABLE table_name_80 (
date VARCHAR,
loss VARCHAR
) | SELECT date FROM table_name_80 WHERE loss = "lilly (2–2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
833,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
1267,
3,
9,
3144,
7,
13,
3,
40,
173,
120,
4743,
926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1453,
3274,
96,
40,
173,
120,
4743,
104,
7318,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
history of head trauma with prolonged loss of consciousness ( > 10 minutes ) or any neurological condition including stroke or seizure ( excluding childhood febrile seizure ) or history of migraine headache. | CREATE TABLE table_train_126 (
"id" int,
"childhood_febrile_seizure" bool,
"neurodegenerative_disease" bool,
"cns_disease" bool,
"head_injury" bool,
"stroke" bool,
"renal_disease" bool,
"cerebrovascular_disease" bool,
"hepatic_disease" bool,
"headache" bool,
"cardiovascular_d... | SELECT * FROM table_train_126 WHERE head_injury = 1 OR (neurological_disease = 1 OR stroke = 1 OR (seizure_disorder = 1 AND childhood_febrile_seizure = 0) OR headache = 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
21976,
41,
96,
23,
26,
121,
16,
17,
6,
96,
11495,
4500,
834,
89,
15,
2160,
109,
834,
7,
15,
23,
1000,
60,
121,
3,
12840,
40,
6,
96,
8992,
9488,
15,
25181,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
21976,
549,
17444,
427,
819,
834,
77,
10609,
63,
3274,
209,
4674,
41,
29,
1238,
4478,
834,
26,
159,
14608,
3274,
209,
4674,
9529,
3274,
209,
4674,
41,
7,
15,
23,
1000,
60,
834,
26... |
What rank does Rodney Marsh have? | CREATE TABLE table_21100348_15 (
rank INTEGER,
player VARCHAR
) | SELECT MAX(rank) FROM table_21100348_15 WHERE player = "Rodney Marsh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2915,
519,
3707,
834,
1808,
41,
11003,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11003,
405,
8222,
3186,
21614,
43,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
2658,
2915,
519,
3707,
834,
1808,
549,
17444,
427,
1959,
3274,
96,
448,
32,
26,
3186,
21614,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Position has a Pick of 174? | CREATE TABLE table_name_66 (
position VARCHAR,
pick VARCHAR
) | SELECT position FROM table_name_66 WHERE pick = 174 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
1102,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
3,
9,
8356,
13,
3,
27693,
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,
1102,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1432,
3274,
3,
27693,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the minimum stage where Sergei Smetanine won? | CREATE TABLE table_15088557_1 (
stage INTEGER,
winner VARCHAR
) | SELECT MIN(stage) FROM table_15088557_1 WHERE winner = "Sergei Smetanine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4018,
4433,
3436,
834,
536,
41,
1726,
3,
21342,
17966,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2559,
1726,
213,
20843,
23,
180,
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,
3,
17684,
599,
10705,
61,
21680,
953,
834,
1808,
4018,
4433,
3436,
834,
536,
549,
17444,
427,
4668,
3274,
96,
134,
49,
397,
23,
180,
3493,
152,
630,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the number listed under against when there were less than 13 losses and less than 2 byes? | CREATE TABLE table_75805 (
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT COUNT("Against") FROM table_75805 WHERE "Losses" < '13' AND "Byes" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
2079,
755,
41,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
20749,
121,
490,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20749,
8512,
21680,
953,
834,
3072,
2079,
755,
549,
17444,
427,
96,
434,
13526,
7,
121,
3,
2,
3,
31,
2368,
31,
3430,
96,
279,
10070,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
... |
what is marital status and language of subject id 2560? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT demographic.marital_status, demographic.language FROM demographic WHERE demographic.subject_id = "2560" | [
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,
14798,
5,
1635,
9538,
834,
8547,
302,
6,
14798,
5,
24925,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the player for east perth | CREATE TABLE table_53549 (
"Player" text,
"Competition" text,
"Team" text,
"Opponent" text,
"Year" real,
"Score" text
) | SELECT "Player" FROM table_53549 WHERE "Team" = 'east perth' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2469,
3647,
41,
96,
15800,
49,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
476,
2741,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
755,
2469,
3647,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
11535,
399,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
on week 16, what was the lowest attendance? | CREATE TABLE table_name_34 (
attendance INTEGER,
week VARCHAR
) | SELECT MIN(attendance) FROM table_name_34 WHERE week = 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
11364,
3,
21342,
17966,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
30,
471,
11940,
125,
47,
8,
7402,
11364,
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,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
471,
3274,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how much is the hospital stay for patient 007-10615 during the first hospital encounter? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquep... | SELECT SUM(cost.cost) FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-10615' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
11290,
5,
11290,
61,
21680,
583,
549,
17444,
427,
583,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
... |
When was the game played at the Western Oval venue? | CREATE TABLE table_55810 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_55810 WHERE "Venue" = 'western oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3449,
1714,
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,
308,
342,
121,
21680,
953,
834,
755,
3449,
1714,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
24411,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the top ranked nation ? | CREATE TABLE table_204_183 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_183 ORDER BY "rank" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
24361,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
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,
29,
257,
121,
21680,
953,
834,
26363,
834,
24361,
4674,
11300,
272,
476,
96,
6254,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.