NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What team finished in 4th place in 2007? | CREATE TABLE table_2964 (
"Year" real,
"Champions" text,
"Runners-up" text,
"Score in the final" text,
"3rd-place" text,
"4th-place" text
) | SELECT "4th-place" FROM table_2964 WHERE "Year" = '2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4389,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
4624,
2865,
121,
1499,
6,
96,
23572,
7,
18,
413,
121,
1499,
6,
96,
134,
9022,
16,
8,
804,
121,
1499,
6,
96,
519,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
591,
189,
18,
4687,
121,
21680,
953,
834,
3166,
4389,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
20615,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In what year 2000 tournment did Angeles Montolio have a career win-loss record of 2-4? | CREATE TABLE table_79839 (
"Tournament" text,
"2000" text,
"2001" text,
"2002" text,
"Career SR" text,
"Career Win-Loss" text
) | SELECT "Tournament" FROM table_79839 WHERE "2000" = '2-4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3916,
3288,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
13527,
121,
1499,
6,
96,
23658,
121,
1499,
6,
96,
24898,
121,
1499,
6,
96,
6936,
15,
49,
3,
6857,
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,
382,
1211,
20205,
17,
121,
21680,
953,
834,
940,
3916,
3288,
549,
17444,
427,
96,
13527,
121,
3274,
3,
31,
21432,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most points for champion, won in the final against am lie mauresmo | CREATE TABLE table_1973321_5 (
points INTEGER,
status VARCHAR
) | SELECT MAX(points) FROM table_1973321_5 WHERE status = "Champion, won in the final against Amélie Mauresmo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
4201,
2658,
834,
755,
41,
979,
3,
21342,
17966,
6,
2637,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
979,
21,
6336,
6,
751,
16,
8,
804,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
27181,
4201,
2658,
834,
755,
549,
17444,
427,
2637,
3274,
96,
254,
1483,
12364,
6,
751,
16,
8,
804,
581,
736,
154,
1896,
1534,
7665,
51,
32,
121,
1,
-100,
-100,
-100,
... |
What is the record for April 22? | CREATE TABLE table_name_25 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_25 WHERE date = "april 22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
21,
1186,
1630,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
1630,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many people attended game 42? | CREATE TABLE table_55378 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_55378 WHERE "Game" = '42' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
519,
3940,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
3769,
519,
3940,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
4165,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and price , and group by attribute headquarter. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3642,
19... |
What is the l2 cache for the model with a release price of $669? | CREATE TABLE table_16400024_1 (l2_cache VARCHAR, release_price___usd__ VARCHAR) | SELECT l2_cache FROM table_16400024_1 WHERE release_price___usd__ = "$669" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26987,
2313,
2266,
834,
536,
41,
40,
357,
834,
75,
4933,
584,
4280,
28027,
6,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
40,
357,
834,
75,
4933,
21680,
953,
834,
26987,
2313,
2266,
834,
536,
549,
17444,
427,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
3274,
96,
3229,
948,
3951,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the opponent on November 14? | CREATE TABLE table_49893 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Opponent" FROM table_49893 WHERE "Date" = 'november 14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
3914,
519,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
3647,
3914,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
968,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What player goes to Torrey Pines High School? | CREATE TABLE table_17050 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
) | SELECT "Player" FROM table_17050 WHERE "School" = 'Torrey Pines High School' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
1752,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
6858,
279,
21409,
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,
15800,
49,
121,
21680,
953,
834,
536,
2518,
1752,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
382,
127,
60,
63,
13395,
7,
1592,
1121,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the region for 39.2% vehicle | CREATE TABLE table_25042332_27 (
region VARCHAR,
vehicle VARCHAR
) | SELECT region FROM table_25042332_27 WHERE vehicle = "39.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
591,
2773,
2668,
834,
2555,
41,
1719,
584,
4280,
28027,
6,
1689,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1719,
21,
6352,
5,
5406,
1689,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1719,
21680,
953,
834,
11434,
591,
2773,
2668,
834,
2555,
549,
17444,
427,
1689,
3274,
96,
3288,
5,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which rampage killed 8 in Israel? | CREATE TABLE table_name_44 (
name VARCHAR,
killed VARCHAR,
country VARCHAR
) | SELECT name FROM table_name_44 WHERE killed = "8" AND country = "israel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
564,
584,
4280,
28027,
6,
4792,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
10785,
545,
4792,
505,
16,
3352,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
4792,
3274,
96,
927,
121,
3430,
684,
3274,
96,
30178,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the province amount if the % 2011 is 0.0% | CREATE TABLE table_2038 (
"Province" text,
"Arabs 2001" real,
"% 2001" text,
"Arabs 2011" real,
"% 2011" text
) | SELECT COUNT("Province") FROM table_2038 WHERE "% 2011" = '0.0%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3747,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
188,
7093,
7,
4402,
121,
490,
6,
96,
1454,
4402,
121,
1499,
6,
96,
188,
7093,
7,
2722,
121,
490,
6,
96,
1454,
272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3174,
2494,
565,
8512,
21680,
953,
834,
1755,
3747,
549,
17444,
427,
96,
1454,
2722,
121,
3274,
3,
31,
11739,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by time, and list by the total number in asc. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,... |
what is the most amount of stars ? | CREATE TABLE table_204_543 (
id number,
"national team" text,
"title(s)\nrepresented" text,
"first\nworn" number,
"number\nof stars" number,
"notes" text
) | SELECT MAX("number\nof stars") FROM table_204_543 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
5062,
519,
41,
3,
23,
26,
381,
6,
96,
16557,
372,
121,
1499,
6,
96,
21869,
599,
7,
61,
2,
29,
29845,
121,
1499,
6,
96,
14672,
2,
29,
25237,
121,
381,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
5525,
1152,
2,
29,
858,
4811,
8512,
21680,
953,
834,
26363,
834,
5062,
519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006? | CREATE TABLE table_70957 (
"Parties and voter communities" text,
"% 2006" real,
"seats 2006" real,
"% 2001" real,
"seats 2001" real
) | SELECT AVG("% 2006") FROM table_70957 WHERE "seats 2001" > '15' AND "% 2001" > '100' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
3301,
940,
41,
96,
13725,
725,
11,
10018,
2597,
121,
1499,
6,
96,
1454,
3581,
121,
490,
6,
96,
7,
1544,
7,
3581,
121,
490,
6,
96,
1454,
4402,
121,
490,
6,
96,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
1454,
3581,
8512,
21680,
953,
834,
2518,
3301,
940,
549,
17444,
427,
96,
7,
1544,
7,
4402,
121,
2490,
3,
31,
1808,
31,
3430,
96,
1454,
4402,
121,
2490,
3,
31,
2915,
31,
1,
-100,
-100,
-100,
... |
What is the lowest total that has draws less than 2 and wins less than 1, losses bigger than 1 with a goal difference of 1:2 | CREATE TABLE table_name_89 (total INTEGER, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR, wins VARCHAR) | SELECT MIN(total) FROM table_name_89 WHERE draws < 2 AND wins < 1 AND goal_difference = "1:2" AND losses > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
235,
1947,
3,
21342,
17966,
6,
8467,
584,
4280,
28027,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
6,
9204,
584,
4280,
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,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
14924,
3,
2,
204,
3430,
9204,
3,
2,
209,
3430,
1288,
834,
26,
99,
11788,
3274,
96,
536,
10,
357,
121,
3430,
8467,
2490,
209,
1,
-1... |
Who are the opponents of Mike Byron and partner in matches where the score was 6–4, 4–6, 7–6 (7–4)? | CREATE TABLE table_1964010_2 (opponents VARCHAR, score VARCHAR) | SELECT opponents FROM table_1964010_2 WHERE score = "6–4, 4–6, 7–6 (7–4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
23714,
1714,
834,
357,
41,
32,
102,
9977,
7,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
8,
16383,
13,
4794,
3,
30507,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16383,
21680,
953,
834,
2294,
23714,
1714,
834,
357,
549,
17444,
427,
2604,
3274,
96,
948,
104,
8525,
314,
104,
11071,
489,
104,
948,
13649,
104,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients who have had a gentamicin - trough test done until 3 years ago. | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'gentamicin - trough' AND DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TIME(), '-3 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
7690,
5,
10061,
15129,
21545,
23,
26,
21680,
7690,
549,
... |
What is the sum of the pick of the lw position player? | CREATE TABLE table_name_25 (pick INTEGER, position VARCHAR) | SELECT SUM(pick) FROM table_name_25 WHERE position = "lw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
17967,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
1432,
13,
8,
3,
40,
210,
1102,
1959,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
17967,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1102,
3274,
96,
40,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When was a game played where the away team is St Kilda? | CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_63 WHERE away_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
3,
9,
467,
1944,
213,
8,
550,
372,
19,
472,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
834,
3891,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the D 47 when the D 49 is r 32? | CREATE TABLE table_56226 (
"D 50" text,
"D 49" text,
"D 48" text,
"D 47" text,
"D 46" text,
"D 45" text,
"D 44" text,
"D 43" text,
"D 42" text,
"D 41" text
) | SELECT "D 47" FROM table_56226 WHERE "D 49" = 'r 32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
357,
2688,
41,
96,
308,
943,
121,
1499,
6,
96,
308,
9526,
121,
1499,
6,
96,
308,
4678,
121,
1499,
6,
96,
308,
10635,
121,
1499,
6,
96,
308,
9668,
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,
308,
10635,
121,
21680,
953,
834,
4834,
357,
2688,
549,
17444,
427,
96,
308,
9526,
121,
3274,
3,
31,
52,
3538,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the score in al jefferson (24) high points? | CREATE TABLE table_27734286_1 (
score VARCHAR,
high_points VARCHAR
) | SELECT COUNT(score) FROM table_27734286_1 WHERE high_points = "Al Jefferson (24)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
4165,
3840,
834,
536,
41,
2604,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2604,
16,
491,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7,
9022,
61,
21680,
953,
834,
2555,
4552,
4165,
3840,
834,
536,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
188,
40,
17858,
4743,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the overall pick for Doug Sproule of the United States? | CREATE TABLE table_56996 (
"Round" real,
"Overall" real,
"Player" text,
"Nationality" text,
"Club team" text
) | SELECT "Overall" FROM table_56996 WHERE "Nationality" = 'united states' AND "Player" = 'doug sproule' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3951,
4314,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
254,
11158,
372,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23847,
1748,
121,
21680,
953,
834,
755,
3951,
4314,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
26,
1063,
122,
3,
7,
1409,
83,
15,
31,
... |
give the number of representatives listed in the table . | CREATE TABLE table_203_409 (
id number,
"rank" number,
"representative" text,
"party" text,
"district" text,
"seniority date" text,
"notes" text
) | SELECT COUNT("representative") FROM table_203_409 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
4198,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
60,
12640,
1528,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
26,
23,
20066,
121,
1499,
6,
96,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
60,
12640,
1528,
8512,
21680,
953,
834,
23330,
834,
591,
4198,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the position for the player born 2 november 1987 | CREATE TABLE table_name_80 (position VARCHAR, date_of_birth__age_ VARCHAR) | SELECT position FROM table_name_80 WHERE date_of_birth__age_ = "2 november 1987" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
4718,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
834,
834,
545,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1102,
21,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
833,
834,
858,
834,
20663,
834,
834,
545,
834,
3274,
96,
357,
3,
5326,
18247,
12701,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the number of patients who died in or before the year 2154 and their primary disease was acidosis. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ACIDOSIS" AND demographic.dod_year <= "2154.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
188,
3597,
9857,
14408,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
... |
Group and count the durations for each actor with a bar graph, order in descending by the X-axis please. | CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
) | SELECT Duration, COUNT(Duration) FROM actor GROUP BY Duration ORDER BY Duration DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4183,
41,
22307,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2929,
16,
17,
6,
3677,
1499,
6,
17459,
1499,
6,
465,
8695,
15,
1499,
6,
3,
20119,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20610,
6,
2847,
17161,
599,
12998,
2661,
61,
21680,
7556,
350,
4630,
6880,
272,
476,
20610,
4674,
11300,
272,
476,
20610,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0% | CREATE TABLE table_23266 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Incumbent" FROM table_23266 WHERE "Candidates" = 'Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
3539,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
1570,
75,
5937,
295,
121,
21680,
953,
834,
23188,
3539,
549,
17444,
427,
96,
14050,
12416,
6203,
121,
3274,
3,
31,
134,
76,
15,
499,
5206,
41,
448,
61,
3,
3951,
5,
6932,
8507,
7582,
41,
308,
61,
2664,
5,
693... |
How much money was spent in 2Q when the total receipts were $1,117,566? | CREATE TABLE table_name_69 (
money_spent VARCHAR,
_2q VARCHAR,
total_receipts VARCHAR
) | SELECT money_spent, _2q FROM table_name_69 WHERE total_receipts = "$1,117,566" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
540,
834,
7,
102,
295,
584,
4280,
28027,
6,
3,
834,
357,
1824,
584,
4280,
28027,
6,
792,
834,
60,
565,
23,
102,
17,
7,
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,
540,
834,
7,
102,
295,
6,
3,
834,
357,
1824,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
792,
834,
60,
565,
23,
102,
17,
7,
3274,
96,
3229,
4347,
20275,
6,
755,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
Which location held the Iron 8 Championship tournament? | CREATE TABLE table_40107 (
"Championship" text,
"Current champion(s)" text,
"Previous champion(s)" text,
"Date won" text,
"Location" text
) | SELECT "Location" FROM table_40107 WHERE "Championship" = 'iron 8 championship tournament' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
18057,
41,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
254,
450,
5320,
6336,
599,
7,
61,
121,
1499,
6,
96,
10572,
19117,
6336,
599,
7,
61,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
2445,
18057,
549,
17444,
427,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
17773,
505,
10183,
5892,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show all book categories and the number of books in each category with a bar chart, and I want to sort by the X in asc. | CREATE TABLE culture_company (
Company_name text,
Type text,
Incorporated_in text,
Group_Equity_Shareholding real,
book_club_id text,
movie_id text
)
CREATE TABLE book_club (
book_club_id int,
Year int,
Author_or_Editor text,
Book_Title text,
Publisher text,
Category text,
Result text
)
CREATE TABLE movie (
movie_id int,
Title text,
Year int,
Director text,
Budget_million real,
Gross_worldwide int
) | SELECT Category, COUNT(*) FROM book_club GROUP BY Category ORDER BY Category | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1543,
834,
29179,
41,
1958,
834,
4350,
1499,
6,
6632,
1499,
6,
86,
25762,
26,
834,
77,
1499,
6,
1531,
834,
427,
10073,
63,
834,
24501,
21647,
490,
6,
484,
834,
13442,
834,
23,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
17459,
6,
2847,
17161,
599,
1935,
61,
21680,
484,
834,
13442,
350,
4630,
6880,
272,
476,
17459,
4674,
11300,
272,
476,
17459,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the EP winning team when the CP winning team was Dave Clark and the GM winning team was Stuart Northrup? | CREATE TABLE table_29225103_2 (ep_winning_team VARCHAR, cp_winning_team VARCHAR, gm_winning_team VARCHAR) | SELECT ep_winning_team FROM table_29225103_2 WHERE cp_winning_team = "Dave Clark" AND gm_winning_team = "Stuart Northrup" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
20489,
17864,
834,
357,
41,
15,
102,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
75,
102,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
122,
51,
834,
8163,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15,
102,
834,
8163,
834,
11650,
21680,
953,
834,
3166,
20489,
17864,
834,
357,
549,
17444,
427,
3,
75,
102,
834,
8163,
834,
11650,
3274,
96,
308,
9,
162,
8265,
121,
3430,
3,
122,
51,
834,
8163,
834,
11650,
3274... |
Which Current Conference has a Nickname of lynx? | CREATE TABLE table_15613 (
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real,
"Left" real,
"Current Conference" text
) | SELECT "Current Conference" FROM table_15613 WHERE "Nickname" = 'lynx' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
2368,
41,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
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,
254,
450,
5320,
4379,
121,
21680,
953,
834,
25463,
2368,
549,
17444,
427,
96,
567,
3142,
4350,
121,
3274,
3,
31,
120,
29,
226,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1% | CREATE TABLE table_74004 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "First elected" FROM table_74004 WHERE "Candidates" = 'Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.1%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
5548,
591,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
25171,
8160,
121,
21680,
953,
834,
940,
5548,
591,
549,
17444,
427,
96,
14050,
12416,
6203,
121,
3274,
3,
31,
4489,
7,
15,
9,
283,
1647,
155,
17,
41,
371,
61,
3,
3436,
5,
7561,
2194,
7,
23,
9,
107,
14119,
... |
what is the most games lost when there were 0 draws? | CREATE TABLE table_name_15 (
lost INTEGER,
drawn INTEGER
) | SELECT MAX(lost) FROM table_name_15 WHERE drawn < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
1513,
3,
21342,
17966,
6,
6796,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
167,
1031,
1513,
116,
132,
130,
3,
632,
14924,
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,
4800,
4,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
6796,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the apps for less than 61 goals and before rank 6? | CREATE TABLE table_name_51 (
apps INTEGER,
rank VARCHAR,
goals VARCHAR
) | SELECT SUM(apps) FROM table_name_51 WHERE rank < 6 AND goals < 61 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
4050,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
4050,
21,
705,
145,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
3096,
7,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
11003,
3,
2,
431,
3430,
1766,
3,
2,
3,
4241,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many of the patients with unspecified protein-calorie malnutrition were treated with a base drug? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Unspecified protein-calorie malnutrition" AND prescriptions.drug_type = "BASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Who was the presenter on Monday of "Big Brother 13" in which Alice Levine Jamie East presented on Sunday? | CREATE TABLE table_name_45 (monday VARCHAR, sunday VARCHAR, series VARCHAR) | SELECT monday FROM table_name_45 WHERE sunday = "alice levine jamie east" AND series = "big brother 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
2157,
1135,
584,
4280,
28027,
6,
1997,
1135,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
915,
49,
30,
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,
0,
0,
0... | [
3,
23143,
14196,
1911,
1135,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1997,
1135,
3274,
96,
138,
867,
90,
8402,
2662,
2720,
5727,
121,
3430,
939,
3274,
96,
12911,
4284,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the diagnoses of Rafael Stewart. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Rafael Stewart" | [
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,
18730,
7,
5,
7,
14184,
834,
21869,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
... |
how many female patients had the primary disease left femur fracture? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "LEFT FEMUR FRACTURE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
3765,
6245,
377,
6037,
... |
On what day was Tie #29 played? | CREATE TABLE table_45780 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Date" FROM table_45780 WHERE "Tie no" = '29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3436,
2079,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
3436,
2079,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many papers have 'Atsushi Ohori' published? | CREATE TABLE authors (
authid number,
lname text,
fname text
)
CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
) | SELECT COUNT(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Atsushi" AND t1.lname = "Ohori" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
185,
17,
11740,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
16,
7,
17,
41,
16,
2248,
26,
381,
6,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
5921,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
402,
17,
11740,
3274,
3,
17,
4416,
402,
17,
11740,
3,
15355,
3162,
5778,
6157,
3,
17,
5... |
What team did the player represent that was picked after 196? | CREATE TABLE table_14898 (
"Player" text,
"Position" text,
"Round" real,
"Pick" real,
"NFL Club" text
) | SELECT "NFL Club" FROM table_14898 WHERE "Pick" > '196' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24748,
3916,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
12619,
434,
1949,
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,
12619,
434,
1949,
121,
21680,
953,
834,
24748,
3916,
549,
17444,
427,
96,
345,
3142,
121,
2490,
3,
31,
26937,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest year with fewer than 5 wins and 89 points? | CREATE TABLE table_35199 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT MIN("Year") FROM table_35199 WHERE "Wins" < '5' AND "Points" = '89' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
19479,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
2469,
19479,
549,
17444,
427,
96,
18455,
7,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
3914,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
besides nascar , what other racing series have espy winning drivers come from ? | CREATE TABLE table_203_364 (
id number,
"year" number,
"driver" text,
"nation of citizenship" text,
"racing series" text,
"type of vehicle" text
) | SELECT DISTINCT "racing series" FROM table_203_364 WHERE "racing series" <> 'nascar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3420,
591,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
29,
257,
13,
22214,
121,
1499,
6,
96,
3738,
53,
939,
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,
3,
15438,
25424,
6227,
96,
3738,
53,
939,
121,
21680,
953,
834,
23330,
834,
3420,
591,
549,
17444,
427,
96,
3738,
53,
939,
121,
3,
2,
3155,
3,
31,
29,
8419,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For directors who had more than one movie, return the titles and produced years of all movies directed by them. | CREATE TABLE Movie (director VARCHAR, title VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, director VARCHAR) | SELECT T1.title, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
25982,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
21869,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
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,
21869,
6,
332,
5411,
1201,
21680,
10743,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
25982,
3274,
332,
4416,
25982,
549,
17444,
427,
332,
5411,
21869,
3,
2,
3155,
332,
4416,
2186... |
What was the Attendance on May 12, when the New York Yankees were the Opponent? | CREATE TABLE table_name_71 (
attendance VARCHAR,
opponent VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_71 WHERE opponent = "new york yankees" AND date = "may 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
11364,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
22497,
663,
30,
932,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
15264,
3274,
96,
5534,
25453,
3,
63,
5979,
15,
15,
7,
121,
3430,
833,
3274,
96,
13726,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the average pick made by the Texas Rangers? | CREATE TABLE table_name_82 (pick INTEGER, team VARCHAR) | SELECT AVG(pick) FROM table_name_82 WHERE team = "texas rangers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
17967,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
1432,
263,
57,
8,
2514,
12612,
277,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
17967,
61,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
372,
3274,
96,
10354,
9,
7,
620,
52,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the smallest season for a tv series with a yes and human was the species? | CREATE TABLE table_name_58 (tv_seasons INTEGER, tv_series VARCHAR, species VARCHAR) | SELECT MIN(tv_seasons) FROM table_name_58 WHERE tv_series = "yes" AND species = "human" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
17,
208,
834,
9476,
7,
3,
21342,
17966,
6,
3,
17,
208,
834,
10833,
7,
584,
4280,
28027,
6,
3244,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
17,
208,
834,
9476,
7,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
3,
17,
208,
834,
10833,
7,
3274,
96,
10070,
121,
3430,
3244,
3274,
96,
12450,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Bar chart of the number of hometown from each hometown, could you display X-axis from low to high order? | CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City text,
membership_amount text
)
CREATE TABLE member (
Member_ID int,
Card_Number text,
Name text,
Hometown text,
Level int
)
CREATE TABLE membership_register_branch (
Member_ID int,
Branch_ID text,
Register_Year text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Year text,
Total_pounds real
) | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY Hometown | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6421,
41,
14009,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2384,
834,
1201,
1499,
6,
13246,
834,
8635,
1499,
6,
896,
1499,
6,
4757,
834,
9,
11231,
1499,
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,
1210,
3540,
6,
2847,
17161,
599,
19040,
3540,
61,
21680,
1144,
350,
4630,
6880,
272,
476,
1210,
3540,
4674,
11300,
272,
476,
1210,
3540,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what Round was Derrick Franklin picked? | CREATE TABLE table_name_23 (
round VARCHAR,
player VARCHAR
) | SELECT round FROM table_name_23 WHERE player = "derrick franklin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1751,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
9609,
47,
660,
5206,
16079,
4758,
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,
1751,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1959,
3274,
96,
588,
5206,
3,
6296,
20529,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the team when the schedule is limited, year is earlier than 2007 and the driver is jason white? | CREATE TABLE table_name_54 (
team VARCHAR,
driver VARCHAR,
schedule VARCHAR,
year VARCHAR
) | SELECT team FROM table_name_54 WHERE schedule = "limited" AND year < 2007 AND driver = "jason white" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
372,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
6,
2023,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
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,
372,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
2023,
3274,
96,
29901,
121,
3430,
215,
3,
2,
4101,
3430,
2535,
3274,
96,
1191,
739,
872,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes? | CREATE TABLE table_name_26 (
filename_extension VARCHAR,
interactivity_support VARCHAR,
word_wrap_support VARCHAR,
open_standard VARCHAR
) | SELECT filename_extension FROM table_name_26 WHERE word_wrap_support = "yes" AND open_standard = "no" AND interactivity_support = "yes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
1042,
4350,
834,
994,
13177,
584,
4280,
28027,
6,
1413,
21661,
834,
20390,
584,
4280,
28027,
6,
1448,
834,
210,
5846,
834,
20390,
584,
4280,
28027,
6,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1042,
4350,
834,
994,
13177,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1448,
834,
210,
5846,
834,
20390,
3274,
96,
10070,
121,
3430,
539,
834,
16020,
3274,
96,
29,
32,
121,
3430,
1413,
21661,
834,
20390,
3274... |
What was the margin of victory when the winning score was 14 (70-68-67=205)? | CREATE TABLE table_40275 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Margin of victory" FROM table_40275 WHERE "Winning score" = '–14 (70-68-67=205)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
25988,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
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,
7286,
122,
77,
13,
6224,
121,
21680,
953,
834,
2445,
25988,
549,
17444,
427,
96,
518,
10503,
2604,
121,
3274,
3,
31,
104,
2534,
41,
2518,
18,
3651,
18,
3708,
2423,
23201,
61,
31,
1,
-100,
-100,
-100,
-100,
-10... |
With team #21/#07 ss-green light racing, what was the average finish number? | CREATE TABLE table_2190919_3 (
avg_finish VARCHAR,
team_s_ VARCHAR
) | SELECT avg_finish FROM table_2190919_3 WHERE team_s_ = "#21/#07 SS-Green Light Racing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
4198,
2294,
834,
519,
41,
3,
9,
208,
122,
834,
25535,
584,
4280,
28027,
6,
372,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
9,
208,
122,
834,
25535,
21680,
953,
834,
357,
2294,
4198,
2294,
834,
519,
549,
17444,
427,
372,
834,
7,
834,
3274,
96,
4663,
2658,
87,
4663,
4560,
3,
4256,
18,
22918,
2892,
16046,
121,
1,
-100,
-100,
-100,
-10... |
On week 11 when Dixon scored an 8, what was tonioli's score? | CREATE TABLE table_2803106_1 (tonioli VARCHAR, week__number VARCHAR, dixon VARCHAR) | SELECT tonioli FROM table_2803106_1 WHERE week__number = 11 AND dixon = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
519,
16431,
834,
536,
41,
17,
106,
23,
4172,
584,
4280,
28027,
6,
471,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
20679,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
12,
29,
23,
4172,
21680,
953,
834,
17518,
519,
16431,
834,
536,
549,
17444,
427,
471,
834,
834,
5525,
1152,
3274,
850,
3430,
20679,
106,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Week of the game against Seattle Seahawks? | CREATE TABLE table_name_30 (week INTEGER, opponent VARCHAR) | SELECT AVG(week) FROM table_name_30 WHERE opponent = "seattle seahawks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
8041,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6551,
13,
8,
467,
581,
8854,
3319,
14400,
7,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8041,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
15264,
3274,
96,
7,
15,
9,
8692,
2805,
14400,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how long was joseph lyons in office ? | CREATE TABLE table_204_812 (
id number,
"#" number,
"prime minister" text,
"date of birth" text,
"start date\nof (first) term" text,
"age at beginning\nof (first) term" text,
"end date\nof (final) term" text,
"total time in\noffice" text,
"date of death" text,
"lifespan" text
) | SELECT "total time in\noffice" FROM table_204_812 WHERE "prime minister" = 'joseph lyons' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4959,
357,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
8234,
15,
6323,
121,
1499,
6,
96,
5522,
13,
3879,
121,
1499,
6,
96,
10208,
833,
2,
29,
858,
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,
235,
1947,
97,
16,
2,
29,
19632,
121,
21680,
953,
834,
26363,
834,
4959,
357,
549,
17444,
427,
96,
8234,
15,
6323,
121,
3274,
3,
31,
1927,
7,
15,
102,
107,
3,
120,
106,
7,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What date has @ new orleans as the team? | CREATE TABLE table_49195 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_49195 WHERE "Team" = '@ new orleans' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
22464,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3647,
22464,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
1741,
126,
42,
109,
3247,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the attendance of the game on October 17, 2004? | CREATE TABLE table_name_41 (
attendance VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_41 WHERE date = "october 17, 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
13,
8,
467,
30,
1797,
12864,
4406,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
12864,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the number of completion students in each day and bin date of completion by weekday with a bar chart. | CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
) | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
834,
23602,
127,
7,
834,
232,
834,
28676,
7,
41,
2291,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
17,
76,
17,
127,
834,
5767,
279,
584,
4280,
28027,
17867,
6,
11255,
834,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
7699,
109,
1575,
6,
2847,
17161,
599,
5522,
834,
858,
834,
7699,
109,
1575,
61,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the affiliation of a location called Issaquah? | CREATE TABLE table_75459 (
"High School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text,
"Division" text
) | SELECT "Affiliation" FROM table_75459 WHERE "Location" = 'issaquah' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
591,
3390,
41,
96,
21417,
1121,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
8532,
4046... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
89,
8027,
23,
257,
121,
21680,
953,
834,
3072,
591,
3390,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
159,
7,
9,
4960,
107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What round was on 7 January 2003? | CREATE TABLE table_name_67 (
round VARCHAR,
date VARCHAR
) | SELECT round FROM table_name_67 WHERE date = "7 january 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1751,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1751,
47,
30,
489,
1762,
3888,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
833,
3274,
96,
940,
3,
7066,
76,
1208,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the date of the game on week 7? | CREATE TABLE table_name_49 (
date VARCHAR,
week VARCHAR
) | SELECT date FROM table_name_49 WHERE week = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
833,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
30,
471,
489,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
471,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many channels were the games shown on in 2001-02? | CREATE TABLE table_72593 (
"Year" text,
"Channel" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Courtside reporter" text,
"Studio host" text,
"Studio analysts" text
) | SELECT COUNT("Channel") FROM table_72593 WHERE "Year" = '2001-02' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1828,
4271,
41,
96,
476,
2741,
121,
1499,
6,
96,
3541,
4515,
40,
121,
1499,
6,
96,
15800,
18,
969,
18,
4895,
121,
1499,
6,
96,
3881,
322,
1670,
1016,
599,
7,
61,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3541,
4515,
40,
8512,
21680,
953,
834,
940,
1828,
4271,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
23658,
18,
4305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the name of department that offers the class whose description has the word "Statistics". | CREATE TABLE course (dept_code VARCHAR, crs_description VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR) | SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
26,
6707,
834,
4978,
584,
4280,
28027,
6,
5764,
7,
834,
221,
11830,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
26,
6707,
834,
4350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
26,
6707,
834,
4350,
21680,
503,
6157,
332,
536,
3,
15355,
3162,
3066,
6157,
332,
357,
9191,
332,
5411,
26,
6707,
834,
4978,
3274,
332,
4416,
26,
6707,
834,
4978,
549,
17444,
427,
332,
5411,
75,
52,
7,
... |
The order number 713726-713735 has what serial number? | CREATE TABLE table_2351952_1 (
serial_numbers VARCHAR,
order_number VARCHAR
) | SELECT serial_numbers FROM table_2351952_1 WHERE order_number = "713726-713735" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
22464,
357,
834,
536,
41,
10501,
834,
5525,
1152,
7,
584,
4280,
28027,
6,
455,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
455,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10501,
834,
5525,
1152,
7,
21680,
953,
834,
25174,
22464,
357,
834,
536,
549,
17444,
427,
455,
834,
5525,
1152,
3274,
96,
4450,
4118,
357,
25302,
24636,
2469,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the artist with a start date of 1966-10-23? | CREATE TABLE table_3320 (
"Episode #" text,
"Fan Title" text,
"Writer" text,
"Artist(s)" text,
"Start Date" text,
"End Date" text,
"Inc. Dailies?" text,
"Inc. Sundays?" text
) | SELECT "Artist(s)" FROM table_3320 WHERE "Start Date" = '1966-10-23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
1755,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
1499,
6,
96,
371,
152,
11029,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
7754,
343,
599,
7,
61,
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,
7754,
343,
599,
7,
61,
121,
21680,
953,
834,
4201,
1755,
549,
17444,
427,
96,
7681,
17,
7678,
121,
3274,
3,
31,
2294,
3539,
4536,
18,
2773,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
The Zeehond was built by whom? | CREATE TABLE table_name_49 (
builder VARCHAR,
ship VARCHAR
) | SELECT builder FROM table_name_49 WHERE ship = "zeehond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
918,
49,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
4603,
15,
107,
106,
26,
47,
1192,
57,
4068,
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,
918,
49,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
4383,
3274,
96,
776,
15,
107,
106,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
first album released | CREATE TABLE table_204_394 (
id number,
"year" number,
"album" text,
"label" text,
"peak chart\npositions\nus" number,
"peak chart\npositions\nus r&b" number
) | SELECT "album" FROM table_204_394 ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3288,
591,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
23703,
121,
1499,
6,
96,
40,
10333,
121,
1499,
6,
96,
14661,
5059,
2,
29,
4718,
7,
2,
29,
302... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23703,
121,
21680,
953,
834,
26363,
834,
3288,
591,
4674,
11300,
272,
476,
96,
1201,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team was the home team when Colorado was the visitor and the record became 22 13 6? | CREATE TABLE table_name_88 (
home VARCHAR,
visitor VARCHAR,
record VARCHAR
) | SELECT home FROM table_name_88 WHERE visitor = "colorado" AND record = "22–13–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
234,
372,
116,
6144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
7019,
3274,
96,
8135,
19042,
121,
3430,
1368,
3274,
96,
2884,
104,
2368,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what was the difference in attendance between july 7 and july 8 ? | CREATE TABLE table_203_336 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text
) | SELECT ABS((SELECT "attendance" FROM table_203_336 WHERE "date" = 'july 7') - (SELECT "attendance" FROM table_203_336 WHERE "date" = 'july 8')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3420,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
3757,
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,
20798,
599,
599,
23143,
14196,
96,
15116,
663,
121,
21680,
953,
834,
23330,
834,
519,
3420,
549,
17444,
427,
96,
5522,
121,
3274,
3,
31,
2047,
120,
489,
31,
61,
3,
18,
41,
23143,
14196,
96,
15116,
663,
121,
21680,
... |
In 1984, Did the Falcons have a win or loss against the New Orleans Saints? | CREATE TABLE table_1504 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Falcons points" real,
"Opponents" real,
"Record" text,
"Streak" text,
"Attendance" real
) | SELECT "Result" FROM table_1504 WHERE "Opponent" = 'New Orleans Saints' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
591,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
371,
138,
8056,
979,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
12278,
591,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
6861,
14433,
2788,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which city is the University of Montana located in? | CREATE TABLE table_name_80 (city VARCHAR, host VARCHAR) | SELECT city FROM table_name_80 WHERE host = "university of montana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
6726,
584,
4280,
28027,
6,
2290,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
690,
19,
8,
636,
13,
16751,
1069,
16,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
2290,
3274,
96,
7846,
485,
13,
6278,
152,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2001 tournament with a 2005 4r? | CREATE TABLE table_name_83 (Id VARCHAR) | SELECT 2001 FROM table_name_83 WHERE 2005 = "4r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4402,
5892,
28,
3,
9,
3105,
314,
52,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4402,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
3105,
3274,
96,
591,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the date of vacancy when Viorel Moldovan replaced a manager? | CREATE TABLE table_1606 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Date of vacancy" FROM table_1606 WHERE "Replaced by" = 'Viorel Moldovan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
5176,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13,
3,
29685,
121,
21680,
953,
834,
2938,
5176,
549,
17444,
427,
96,
1649,
4687,
26,
57,
121,
3274,
3,
31,
553,
23,
127,
15,
40,
8880,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the margin of error when the undicided is 8% and other is 4%? | CREATE TABLE table_10800 (
"Poll source" text,
"Date(s) administered" text,
"Sample size" text,
"Margin of error" text,
"Barbara Boxer (D)" text,
"Carly Fiorina (R)" text,
"Other" text,
"Undecided" text
) | SELECT "Margin of error" FROM table_10800 WHERE "Undecided" = '8%' AND "Other" = '4%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
6192,
41,
96,
8931,
40,
1391,
121,
1499,
6,
96,
308,
342,
599,
7,
61,
19092,
121,
1499,
6,
96,
134,
9,
9208,
812,
121,
1499,
6,
96,
7286,
122,
77,
13,
3505,
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,
7286,
122,
77,
13,
3505,
121,
21680,
953,
834,
1714,
6192,
549,
17444,
427,
96,
5110,
24223,
221,
26,
121,
3274,
3,
31,
5953,
31,
3430,
96,
667,
189,
49,
121,
3274,
3,
31,
5988,
31,
1,
-100,
-100,
-100,
-100... |
for how many patients born before the year 2121, the drug route is pr? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2121" AND prescriptions.route = "PR" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Opponents of sebasti n decoud santiago giraldo had what surface? | CREATE TABLE table_name_71 (
surface VARCHAR,
opponents VARCHAR
) | SELECT surface FROM table_name_71 WHERE opponents = "sebastián decoud santiago giraldo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1774,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4495,
9977,
7,
13,
142,
4883,
17,
23,
3,
29,
20,
3422,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
16383,
3274,
96,
7,
15,
4883,
17,
23,
12916,
20,
3422,
26,
3,
7,
5965,
9,
839,
3,
9427,
138,
26,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which High points have High rebounds of lamar odom (15), and a Date of april 27? | CREATE TABLE table_name_80 (
high_points VARCHAR,
high_rebounds VARCHAR,
date VARCHAR
) | SELECT high_points FROM table_name_80 WHERE high_rebounds = "lamar odom (15)" AND date = "april 27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
306,
834,
23768,
3274,
96,
521,
1635,
3,
32,
5012,
17251,
61,
121,
3430,
833,
3274,
96,
9,
2246,
40,
2307,
121,
1,
-100,
-100,
-100,
-100,
-100... |
Who is the required actor when Robert Austin was the actor in the original production? | CREATE TABLE table_name_29 (actor_required VARCHAR, actor_in_original_production VARCHAR) | SELECT actor_required FROM table_name_29 WHERE actor_in_original_production = "robert austin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
9,
5317,
834,
60,
1169,
1271,
584,
4280,
28027,
6,
7556,
834,
77,
834,
21878,
834,
20762,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
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,
7556,
834,
60,
1169,
1271,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
7556,
834,
77,
834,
21878,
834,
20762,
3274,
96,
5840,
49,
17,
403,
17,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest number of games played of the club with a position number less than 4 and a 29-24 goals for/against? | CREATE TABLE table_name_85 (
games_played INTEGER,
position VARCHAR,
goals_for_against VARCHAR
) | SELECT MAX(games_played) FROM table_name_85 WHERE position < 4 AND goals_for_against = "29-24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1031,
834,
4895,
15,
26,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1766,
834,
1161,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
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,
4800,
4,
599,
7261,
7,
834,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1102,
3,
2,
314,
3430,
1766,
834,
1161,
834,
9,
16720,
7,
17,
3274,
96,
3166,
14962,
121,
1,
-100,
-100,
-100,
-10... |
which church not in atlanta has weekly collections in excess of $ 25,000 ? | CREATE TABLE table_203_387 (
id number,
"parish est" number,
"church" text,
"city" text,
"current bldg begun" number,
"weekly collections" text,
"notes" number
) | SELECT "church" FROM table_203_387 WHERE "city" <> 'atlanta' AND "weekly collections" > 25000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
4225,
41,
3,
23,
26,
381,
6,
96,
1893,
1273,
259,
121,
381,
6,
96,
28854,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
14907,
3,
115,
40,
26,
122,
11173,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
28854,
121,
21680,
953,
834,
23330,
834,
519,
4225,
549,
17444,
427,
96,
6726,
121,
3,
2,
3155,
3,
31,
144,
6761,
9,
31,
3430,
96,
8041,
120,
8274,
121,
2490,
944,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the leader in Points when Al Jefferson (7) was the leader in Rebounds? | CREATE TABLE table_name_12 (points VARCHAR, rebounds VARCHAR) | SELECT points FROM table_name_12 WHERE rebounds = "al jefferson (7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
2700,
7,
584,
4280,
28027,
6,
3,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2488,
16,
4564,
7,
116,
901,
17858,
3,
24358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
23768,
3274,
96,
138,
528,
7010,
739,
3,
24358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times has habte jifar placed in a 10000 m race ? | CREATE TABLE table_203_189 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT COUNT(*) FROM table_203_189 WHERE "notes" = '10,000 m' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
25312,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
7977,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
25312,
549,
17444,
427,
96,
7977,
7,
121,
3274,
3,
31,
29573,
3,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What university is houston dynamo affiliated with? | CREATE TABLE table_3287 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
) | SELECT "Affiliation" FROM table_3287 WHERE "MLS Team" = 'Houston Dynamo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
4225,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
17976,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
188,
89,
8027,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
89,
8027,
23,
257,
121,
21680,
953,
834,
2668,
4225,
549,
17444,
427,
96,
17976,
2271,
121,
3274,
3,
31,
4489,
76,
4411,
13967,
51,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the rank for the person with time 11.14? | CREATE TABLE table_name_54 (
rank INTEGER,
time___sec__ VARCHAR
) | SELECT AVG(rank) FROM table_name_54 WHERE time___sec__ = 11.14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
11003,
3,
21342,
17966,
6,
97,
834,
834,
834,
7549,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
21,
8,
568,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
97,
834,
834,
834,
7549,
834,
834,
3274,
7806,
2534,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Authority has a Decile smaller than 6, and an Area of opoutere? | CREATE TABLE table_70466 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT "Authority" FROM table_70466 WHERE "Decile" < '6' AND "Area" = 'opoutere' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
591,
3539,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23602,
127,
485,
121,
21680,
953,
834,
2518,
591,
3539,
549,
17444,
427,
96,
2962,
75,
699,
121,
3,
2,
3,
31,
948,
31,
3430,
96,
188,
864,
121,
3274,
3,
31,
32,
102,
670,
49,
15,
31,
1,
-100,
-100,
-100,
... |
What round did the spartak moscow club play? | CREATE TABLE table_name_12 (round VARCHAR, club VARCHAR) | SELECT round FROM table_name_12 WHERE club = "spartak moscow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
7775,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1751,
410,
8,
3,
7,
2274,
1639,
2288,
3523,
210,
1886,
577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1886,
3274,
96,
7,
2274,
1639,
2288,
3523,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average number of games drawn among teams that played over 14 games? | CREATE TABLE table_name_53 (drawn INTEGER, played INTEGER) | SELECT AVG(drawn) FROM table_name_53 WHERE played > 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
19489,
29,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
1031,
6796,
859,
2323,
24,
1944,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
1944,
2490,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want the sum of stories for guadalajara done after 2007 | CREATE TABLE table_name_87 (
stories INTEGER,
city VARCHAR,
completed VARCHAR
) | SELECT SUM(stories) FROM table_name_87 WHERE city = "guadalajara" AND completed > 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
1937,
3,
21342,
17966,
6,
690,
584,
4280,
28027,
6,
2012,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
4505,
13,
1937,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7279,
725,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
690,
3274,
96,
1744,
9,
26,
138,
9,
5670,
9,
121,
3430,
2012,
2490,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the production code for the episode that had 9.18 million viewers (U.S.)? | CREATE TABLE table_73321 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text,
"Production code" real
) | SELECT MAX("Production code") FROM table_73321 WHERE "U.S. viewers (million)" = '9.18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
519,
2658,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3174,
8291,
1081,
8512,
21680,
953,
834,
4552,
519,
2658,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
61,
121,
3274,
3,
31,
8797,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many electronvolts is 3,600 joules? | CREATE TABLE table_name_44 (
electronvolt VARCHAR,
joule VARCHAR
) | SELECT electronvolt FROM table_name_44 WHERE joule = "3,600" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
21126,
10897,
584,
4280,
28027,
6,
3,
8921,
109,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
21126,
10897,
7,
19,
6180,
6007,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
21126,
10897,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
3,
8921,
109,
3274,
96,
6355,
6007,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which sport was in the 1992 Barcelona games? | CREATE TABLE table_name_92 (sport VARCHAR, games VARCHAR) | SELECT sport FROM table_name_92 WHERE games = "1992 barcelona" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
6661,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2600,
47,
16,
8,
9047,
11869,
1031,
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,
2600,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1031,
3274,
96,
19479,
357,
1207,
7125,
106,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Year(s) won has a To par of +8? | CREATE TABLE table_name_65 (
year_s__won VARCHAR,
to_par VARCHAR
) | SELECT year_s__won FROM table_name_65 WHERE to_par = "+8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
599,
7,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
7,
834,
834,
210,
106,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
12,
834,
1893,
3274,
96,
1220,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the distance of the maldegem > brussels route? | CREATE TABLE table_60902 (
"Stage" text,
"Route" text,
"Distance" text,
"Date" text,
"Winner" text
) | SELECT "Distance" FROM table_60902 WHERE "Route" = 'maldegem > brussels' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
2394,
357,
41,
96,
134,
6505,
121,
1499,
6,
96,
448,
670,
15,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
8389,
121,
21680,
953,
834,
3328,
2394,
357,
549,
17444,
427,
96,
448,
670,
15,
121,
3274,
3,
31,
1982,
221,
397,
51,
2490,
3,
9052,
9816,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the tournament with a clay surface and sofia shapatava as the opponent? | CREATE TABLE table_name_54 (
tournament VARCHAR,
surface VARCHAR,
opponent VARCHAR
) | SELECT tournament FROM table_name_54 WHERE surface = "clay" AND opponent = "sofia shapatava" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
5892,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5892,
28,
3,
9,
14364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
15264,
3274,
96,
7,
858,
23,
9,
3,
7,
9516,
144,
8644,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is minimum age of patients whose admission type is emergency and year of death is less than 2154? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dod_year < "2154.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
96,
357,
1808,
15021,
... |
What party did Frank J. Becker represent? | CREATE TABLE table_1342013_31 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1342013_31 WHERE incumbent = "Frank J. Becker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
11138,
834,
3341,
41,
8071,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1088,
410,
4937,
446,
5,
9864,
49,
4221,
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,
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,
1088,
21680,
953,
834,
23747,
11138,
834,
3341,
549,
17444,
427,
28406,
3274,
96,
371,
6254,
446,
5,
9864,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia? | CREATE TABLE table_name_89 (
rider VARCHAR,
manufacturer VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT rider FROM table_name_89 WHERE laps < 24 AND grid < 12 AND manufacturer = "aprilia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
2564,
52,
584,
4280,
28027,
6,
4818,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
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,
2564,
52,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
14941,
7,
3,
2,
997,
3430,
8634,
3,
2,
586,
3430,
4818,
3274,
96,
9,
102,
52,
13565,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.