NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who was the opponent at the game attended by 23,203? | CREATE TABLE table_67282 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Opponent" FROM table_67282 WHERE "Attendance" = '23,203' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
2577,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3708,
2577,
357,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
2773,
6,
23330,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What League was played in 2007? | CREATE TABLE table_2380212_1 (league VARCHAR, year VARCHAR) | SELECT league FROM table_2380212_1 WHERE year = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2079,
24837,
834,
536,
41,
29512,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3815,
47,
1944,
16,
4101,
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,
5533,
21680,
953,
834,
2773,
2079,
24837,
834,
536,
549,
17444,
427,
215,
3274,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the general classification when the trofeo fast team was Mapei-Bricobi, the points classification went to Mariano Piccoli and the mountains classification went to Marco Pantani in stage 22? | CREATE TABLE table_name_12 (
general_classification VARCHAR,
stage VARCHAR,
mountains_classification VARCHAR,
trofeo_fast_team VARCHAR,
points_classification VARCHAR
) | SELECT general_classification FROM table_name_12 WHERE trofeo_fast_team = "mapei-bricobi" AND points_classification = "mariano piccoli" AND mountains_classification = "marco pantani" AND stage = "22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
879,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
6,
8022,
834,
4057,
2420,
584,
4280,
28027,
6,
10968,
89,
15,
32,
834,
11584,
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,
1... | [
3,
23143,
14196,
879,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
10968,
89,
15,
32,
834,
11584,
834,
11650,
3274,
96,
51,
22348,
18,
2160,
75,
6690,
121,
3430,
979,
834,
4057,
2420,
3274,
96,
1635,
20028,
66... |
What position has a spread greater than -319, and United States as the country, a win loss of 11-13, and gabriel, marty as the name? | CREATE TABLE table_name_96 (
position VARCHAR,
name VARCHAR,
win_loss VARCHAR,
spread VARCHAR,
country VARCHAR
) | SELECT position FROM table_name_96 WHERE spread > -319 AND country = "united states" AND win_loss = "11-13" AND name = "gabriel, marty" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1102,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
1369,
834,
2298,
7,
584,
4280,
28027,
6,
3060,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
3060,
2490,
3,
3486,
2294,
3430,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1369,
834,
2298,
7,
3274,
96,
2596,
13056,
121,
3430,
564,
3274,
96,
21784,
14... |
Which episode was watched by 7.2 million viewers? | CREATE TABLE table_2101431_1 (
episode VARCHAR,
viewers__in_millions_ VARCHAR
) | SELECT episode FROM table_2101431_1 WHERE viewers__in_millions_ = "7.2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15239,
2534,
3341,
834,
536,
41,
5640,
584,
4280,
28027,
6,
13569,
834,
834,
77,
834,
17030,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5640,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5640,
21680,
953,
834,
15239,
2534,
3341,
834,
536,
549,
17444,
427,
13569,
834,
834,
77,
834,
17030,
7,
834,
3274,
96,
25791,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the sum of the number of clubs in seasons before 1992 with more than 3 total wins? | CREATE TABLE table_name_30 (number_of_clubs INTEGER, season VARCHAR, total_wins VARCHAR) | SELECT SUM(number_of_clubs) FROM table_name_30 WHERE season < 1992 AND total_wins > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
5525,
1152,
834,
858,
834,
13442,
7,
3,
21342,
17966,
6,
774,
584,
4280,
28027,
6,
792,
834,
3757,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
5525,
1152,
834,
858,
834,
13442,
7,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
774,
3,
2,
9047,
3430,
792,
834,
3757,
7,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the week of the game played on November 28, 1974? | CREATE TABLE table_name_94 (
week INTEGER,
date VARCHAR
) | SELECT MIN(week) FROM table_name_94 WHERE date = "november 28, 1974" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
471,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
471,
13,
8,
467,
1944,
30,
1671,
13719,
17184,
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,
3,
17684,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
13719,
17184,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
List all the log entry descriptions and count them using a bar chart. | CREATE TABLE Problems (
problem_id INTEGER,
product_id INTEGER,
closure_authorised_by_staff_id INTEGER,
reported_by_staff_id INTEGER,
date_problem_reported DATETIME,
date_problem_closed DATETIME,
problem_description VARCHAR(255),
other_problem_details VARCHAR(255)
)
CREATE TABLE Problem... | SELECT log_entry_description, COUNT(log_entry_description) FROM Problem_Log GROUP BY log_entry_description | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5289,
7,
41,
682,
834,
23,
26,
3,
21342,
17966,
6,
556,
834,
23,
26,
3,
21342,
17966,
6,
12493,
834,
23429,
834,
969,
834,
26416,
834,
23,
26,
3,
21342,
17966,
6,
2196,
834,
969,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4303,
834,
295,
651,
834,
221,
11830,
6,
2847,
17161,
599,
2152,
834,
295,
651,
834,
221,
11830,
61,
21680,
5289,
834,
22084,
350,
4630,
6880,
272,
476,
4303,
834,
295,
651,
834,
221,
11830,
1,
-100,
-100,
-100,
-10... |
When there was a bye in the round of 32, what was the result in the round of 16? | CREATE TABLE table_1745820_5 (
semifinals VARCHAR,
round_of_32 VARCHAR
) | SELECT semifinals FROM table_1745820_5 WHERE round_of_32 = "Bye" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
3449,
1755,
834,
755,
41,
27504,
7,
584,
4280,
28027,
6,
1751,
834,
858,
834,
2668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
132,
47,
3,
9,
57,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27504,
7,
21680,
953,
834,
27693,
3449,
1755,
834,
755,
549,
17444,
427,
1751,
834,
858,
834,
2668,
3274,
96,
279,
63,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Candlelight Records Catalog of Candle053tin format? | CREATE TABLE table_name_93 (
format VARCHAR,
label VARCHAR,
catalog VARCHAR
) | SELECT format FROM table_name_93 WHERE label = "candlelight records" AND catalog = "candle053tin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
1910,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
25870,
2242,
11547,
2242... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1910,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
3783,
3274,
96,
75,
232,
109,
2242,
3187,
121,
3430,
10173,
3274,
96,
75,
232,
109,
3076,
519,
17,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of hire_date and the average of manager_id bin hire_date by time in a bar chart, and order by the y axis in ascending. | 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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID... | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(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,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549... |
What is Place, when To Par is less than 15, and when Score is 76-72-75-71=294? | CREATE TABLE table_8693 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT "Place" FROM table_8693 WHERE "To par" < '15' AND "Score" = '76-72-75-71=294' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3840,
4271,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
6,
96,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
11706,
121,
21680,
953,
834,
3840,
4271,
549,
17444,
427,
96,
3696,
260,
121,
3,
2,
3,
31,
1808,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
3959,
18,
5865,
18,
3072,
18,
4450,
2423,
357,
4240,
31,
1,
... |
Which Age (as of 1 February 2014) has a Rank smaller than 9, and a Death date of 24 january 2007? | CREATE TABLE table_12764 (
"Rank" real,
"Name" text,
"Birth date" text,
"Death date" text,
"Age (as of 1 February 2014)" text,
"Place of death or residence" text
) | SELECT "Age (as of 1 February 2014)" FROM table_12764 WHERE "Rank" < '9' AND "Death date" = '24 january 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
4389,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
279,
23,
52,
189,
833,
121,
1499,
6,
96,
2962,
9,
189,
833,
121,
1499,
6,
96,
188,
397,
41,
9,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
397,
41,
9,
7,
13,
209,
2083,
1412,
61,
121,
21680,
953,
834,
22367,
4389,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
1298,
31,
3430,
96,
2962,
9,
189,
833,
121,
3274,
3,
31,
2266,
3,
7066,
76,
1... |
no team has more cup wins than this team ? | CREATE TABLE table_203_683 (
id number,
"season" text,
"league" text,
"gold" text,
"silver" text,
"bronze" text,
"winning manager" text
) | SELECT "gold" FROM table_203_683 GROUP BY "gold" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3651,
519,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
29512,
121,
1499,
6,
96,
14910,
121,
1499,
6,
96,
7,
173,
624,
121,
1499,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14910,
121,
21680,
953,
834,
23330,
834,
3651,
519,
350,
4630,
6880,
272,
476,
96,
14910,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the season number for the episode with the series number 61? | CREATE TABLE table_16971 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT MAX("Season #") FROM table_16971 WHERE "Series #" = '61' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
4450,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
15,
9,
739,
1713,
8512,
21680,
953,
834,
27096,
4450,
549,
17444,
427,
96,
12106,
7,
1713,
121,
3274,
3,
31,
4241,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who won the silver medal in the games where Hong Chia-yuh took home bronze? | CREATE TABLE table_35835 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
) | SELECT "Silver" FROM table_35835 WHERE "Bronze" = 'hong chia-yuh' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3449,
2469,
41,
96,
476,
2741,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
173,
624,
121,
21680,
953,
834,
519,
3449,
2469,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
23001,
3,
1436,
9,
18,
63,
76,
107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What years did Alvin Mitchell play? | CREATE TABLE table_name_44 (years VARCHAR, player VARCHAR) | SELECT years FROM table_name_44 WHERE player = "alvin mitchell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
1201,
7,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
203,
410,
901,
2494,
17949,
577,
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,
203,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1959,
3274,
96,
138,
2494,
181,
1033,
195,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Score, when Home is 'Montreal Canadiens', and when Date is 'May 16'? | CREATE TABLE table_62265 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Score" FROM table_62265 WHERE "Home" = 'montreal canadiens' AND "Date" = 'may 16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
357,
4122,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4056,
357,
4122,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
4662,
6644,
27114,
7,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
13726,
898,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is Bob Ostovich's opponents record? | CREATE TABLE table_name_20 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_20 WHERE opponent = "bob ostovich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
60,
7621,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5762,
11589,
13388,
107,
31,
7,
16383,
1368,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
15264,
3274,
96,
17396,
3,
3481,
13388,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is his record at ufc 67? | CREATE TABLE table_32704 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_32704 WHERE "Event" = 'ufc 67' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
2518,
591,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
2668,
2518,
591,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
76,
89,
75,
3,
3708,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the player for St. Mary's team? | CREATE TABLE table_53921 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) | SELECT "Player" FROM table_53921 WHERE "School/Club Team/Country" = 'st. mary''s' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3288,
2658,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
5,
599,
7,
61,
121,
1499,
6,
96,
3845,
2632,
16,
377,
17,
535,
1499,
6,
96,
345,
32,
7,
4749,
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,
15800,
49,
121,
21680,
953,
834,
755,
3288,
2658,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
87,
10628,
651,
121,
3274,
3,
31,
7,
17,
5,
3157,
63,
31,
31,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What episode had the last appearances of the late wife of mac taylor? | CREATE TABLE table_11240028_3 (
last_appearance VARCHAR,
relationship VARCHAR
) | SELECT last_appearance FROM table_11240028_3 WHERE relationship = "Late wife of Mac Taylor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
357,
5548,
2577,
834,
519,
41,
336,
834,
3096,
2741,
663,
584,
4280,
28027,
6,
1675,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5640,
141,
8,
336,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
336,
834,
3096,
2741,
663,
21680,
953,
834,
2596,
357,
5548,
2577,
834,
519,
549,
17444,
427,
1675,
3274,
96,
434,
342,
2512,
13,
2143,
7909,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What structure is in Chile? | CREATE TABLE table_45835 (
"Continent" text,
"Structure" text,
"Height" text,
"Year" real,
"Country" text
) | SELECT "Structure" FROM table_45835 WHERE "Country" = 'chile' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
927,
2469,
41,
96,
16798,
295,
121,
1499,
6,
96,
134,
17,
11783,
2693,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
10628,
651,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
17,
11783,
2693,
121,
21680,
953,
834,
2128,
927,
2469,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
1436,
109,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the song released by Travis? | CREATE TABLE table_28090 (
"Entered [A ]" text,
"Weeks in top 10" real,
"Single" text,
"Artist" text,
"Peak" real,
"Peak reached [A ]" text,
"Weeks at number 1" real
) | SELECT "Single" FROM table_28090 WHERE "Artist" = 'Travis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
2394,
41,
96,
16924,
3737,
784,
188,
3,
908,
121,
1499,
6,
96,
1326,
16789,
16,
420,
335,
121,
490,
6,
96,
134,
53,
109,
121,
1499,
6,
96,
7754,
343,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
53,
109,
121,
21680,
953,
834,
17518,
2394,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
9402,
3466,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
If second is Sergey Sirotkin, what is the third name? | CREATE TABLE table_3301 (
"Season" real,
"Champion" text,
"Second" text,
"Third" text,
"Team Champion" text,
"National Trophy/Rookie" text
) | SELECT "Third" FROM table_3301 WHERE "Second" = 'Sergey Sirotkin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17225,
536,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
18699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9288,
26,
121,
21680,
953,
834,
17225,
536,
549,
17444,
427,
96,
134,
15,
1018,
26,
121,
3274,
3,
31,
134,
49,
397,
63,
925,
2719,
2917,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who's the Republican ticket with a Democratic ticket of flora d. johnson? | CREATE TABLE table_name_62 (republican_ticket VARCHAR, democratic_ticket VARCHAR) | SELECT republican_ticket FROM table_name_62 WHERE democratic_ticket = "flora d. johnson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
60,
15727,
152,
834,
26639,
584,
4280,
28027,
6,
15053,
834,
26639,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
8994,
4142,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
20237,
152,
834,
26639,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
15053,
834,
26639,
3274,
96,
89,
322,
9,
3,
26,
5,
3,
27341,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Club/province has a Player of david penalva? | CREATE TABLE table_name_41 (club_province VARCHAR, player VARCHAR) | SELECT club_province FROM table_name_41 WHERE player = "david penalva" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
13442,
834,
1409,
2494,
565,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1949,
87,
1409,
2494,
565,
65,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1886,
834,
1409,
2494,
565,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1959,
3274,
96,
26,
9,
6961,
12299,
900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Candidate Name, when Target/Approach is 'vaccine to amyloid-beta'? | CREATE TABLE table_76644 (
"Target/Approach" text,
"Candidate Name" text,
"Trial Phase" text,
"Trial Start Date" text,
"Expected End Date" text
) | SELECT "Candidate Name" FROM table_76644 WHERE "Target/Approach" = 'vaccine to amyloid-beta' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4389,
591,
41,
96,
382,
291,
2782,
87,
9648,
29590,
121,
1499,
6,
96,
14050,
12416,
342,
5570,
121,
1499,
6,
96,
19310,
138,
12559,
121,
1499,
6,
96,
19310,
138,
3273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14050,
12416,
342,
5570,
121,
21680,
953,
834,
3959,
4389,
591,
549,
17444,
427,
96,
382,
291,
2782,
87,
9648,
29590,
121,
3274,
3,
31,
8938,
14760,
12,
183,
63,
20253,
18,
346,
17,
9,
31,
1,
-100,
-100,
-100,... |
Which City has a Series of Tamra's oc wedding? | CREATE TABLE table_38502 (
"Series" text,
"Premiere date" text,
"No. of seasons" real,
"City" text,
"Starring" text
) | SELECT "City" FROM table_38502 WHERE "Series" = 'tamra''s oc wedding' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
1752,
357,
41,
96,
12106,
7,
121,
1499,
6,
96,
10572,
2720,
60,
833,
121,
1499,
6,
96,
4168,
5,
13,
9385,
121,
490,
6,
96,
254,
485,
121,
1499,
6,
96,
7681,
1007,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
121,
21680,
953,
834,
3747,
1752,
357,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
17,
265,
52,
9,
31,
31,
7,
3,
32,
75,
1683,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the average is 45.65, what is the total number of innings? | CREATE TABLE table_23316034_16 (
innings VARCHAR,
average VARCHAR
) | SELECT COUNT(innings) FROM table_23316034_16 WHERE average = "45.65" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
19129,
3710,
834,
2938,
41,
19714,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1348,
19,
3479,
5,
4122,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
10503,
7,
61,
21680,
953,
834,
20879,
19129,
3710,
834,
2938,
549,
17444,
427,
1348,
3274,
96,
2128,
5,
4122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many stars have a magnitude greater than zero ? | CREATE TABLE table_203_56 (
id number,
"star" text,
"start\nyear" number,
"end\nyear" number,
"maximum\nyear" number,
"maximum\nmagnitude" number,
"distance at\nmaximum (ly)" number,
"current\ndistance" number,
"current\nmagnitude" number
) | SELECT COUNT("star") FROM table_203_56 WHERE "current\nmagnitude" > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4834,
41,
3,
23,
26,
381,
6,
96,
3624,
121,
1499,
6,
96,
10208,
2,
29,
1201,
121,
381,
6,
96,
989,
2,
29,
1201,
121,
381,
6,
96,
9128,
603,
440,
2,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3624,
8512,
21680,
953,
834,
23330,
834,
4834,
549,
17444,
427,
96,
14907,
2,
29,
7493,
29,
20341,
121,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients were prescribed for zolpidem since 6 years ago? | 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,
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'zolpidem' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-6 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
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,
7757,
5,
10061,
15129,
21545,
23,
26,
21680,
7757,
549,
... |
How many countries are there in total? | CREATE TABLE player (
player_id number,
player text,
years_played text,
total_wl text,
singles_wl text,
doubles_wl text,
team number
)
CREATE TABLE team (
team_id number,
name text
)
CREATE TABLE country (
country_id number,
country_name text,
capital text,
official... | SELECT COUNT(*) FROM country | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
1959,
834,
23,
26,
381,
6,
1959,
1499,
6,
203,
834,
4895,
15,
26,
1499,
6,
792,
834,
210,
40,
1499,
6,
712,
7,
834,
210,
40,
1499,
6,
1486,
7,
834,
210,
40,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
684,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Return the name of the member who is in charge of the most events. | CREATE TABLE party (
party_id number,
minister text,
took_office text,
left_office text,
region_id number,
party_name text
)
CREATE TABLE party_events (
event_id number,
event_name text,
party_id number,
member_in_charge_id number
)
CREATE TABLE region (
region_id number,
... | SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
1088,
834,
23,
26,
381,
6,
6323,
1499,
6,
808,
834,
19632,
1499,
6,
646,
834,
19632,
1499,
6,
1719,
834,
23,
26,
381,
6,
1088,
834,
4350,
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,
332,
5411,
12066,
834,
4350,
21680,
1144,
6157,
332,
536,
3,
15355,
3162,
1088,
834,
15,
2169,
7,
6157,
332,
357,
9191,
332,
5411,
12066,
834,
23,
26,
3274,
332,
4416,
12066,
834,
77,
834,
7993,
834,
23,
26,
350,
... |
What was the lowest Crowd Size for the Home Team of North Melbourne? | CREATE TABLE table_11947 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_11947 WHERE "Home team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
4177,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
19993,
4177,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest average for Beijing Guo'an when they played more than 240 games? | CREATE TABLE table_name_26 (
average INTEGER,
team VARCHAR,
games VARCHAR
) | SELECT MIN(average) FROM table_name_26 WHERE team = "beijing guo'an" AND games > 240 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
1348,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
1348,
21,
14465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
28951,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
372,
3274,
96,
5358,
354,
53,
3,
1744,
32,
31,
152,
121,
3430,
1031,
2490,
3,
11944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the county where produces the most number of wines with score higher than 90. | CREATE TABLE grapes (
id number,
grape text,
color text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,
drink text
)
CREATE TABLE appellations (
no numbe... | SELECT T1.county FROM appellations AS T1 JOIN wine AS T2 ON T1.appelation = T2.appelation WHERE T2.score > 90 GROUP BY T1.county ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
3,
23,
26,
381,
6,
11457,
1499,
6,
945,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
150,
381,
6,
11457,
1499,
6,
2013,
651,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
13362,
63,
21680,
8319,
6105,
7,
6157,
332,
536,
3,
15355,
3162,
2013,
6157,
332,
357,
9191,
332,
5411,
13219,
257,
3274,
332,
4416,
13219,
257,
549,
17444,
427,
332,
4416,
7,
9022,
2490,
2777,
350,
4630,
... |
Who was the winner for the world championship formula 1 at the venue, circuit de monaco? | CREATE TABLE table_name_89 (
winner VARCHAR,
notes VARCHAR,
venue VARCHAR
) | SELECT winner FROM table_name_89 WHERE notes = "world championship formula 1" AND venue = "circuit de monaco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
4668,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4668,
21,
8,
296,
1018... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
3358,
3274,
96,
7276,
10183,
5403,
209,
121,
3430,
5669,
3274,
96,
15357,
21560,
20,
1911,
9,
509,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who's from Bay City, TX? | CREATE TABLE table_name_20 (player VARCHAR, hometown VARCHAR) | SELECT player FROM table_name_20 WHERE hometown = "bay city, tx" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
20846,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
45,
2474,
896,
6,
332,
4,
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,
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,
1959,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
22295,
3274,
96,
11119,
690,
6,
3,
17,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which course had a mountain stage type on 3 June? | CREATE TABLE table_11706 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
) | SELECT "Course" FROM table_11706 WHERE "Type" = 'mountain stage' AND "Date" = '3 june' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
5176,
41,
96,
308,
342,
121,
1499,
6,
96,
3881,
3589,
15,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18455,
687,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
3881,
3589,
15,
121,
21680,
953,
834,
20275,
5176,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
11231,
9,
77,
1726,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
519,
3,
6959,
15,
31,
1,
-100,
-100,
-100,
-100,... |
What was the average number of attendance for the game on November 29, 1981 played after week 13? | CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR) | SELECT AVG(attendance) FROM table_name_40 WHERE date = "november 29, 1981" AND week > 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
15116,
663,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
381,
13,
11364,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
14405,
15465,
121,
3430,
471,
2490,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which film has the most number of actors or actresses? List the film name, film id and description. | CREATE TABLE film_actor (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR, description VARCHAR) | SELECT T2.title, T2.film_id, T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
834,
9,
5317,
41,
9988,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
41,
21869,
584,
4280,
28027,
6,
814,
834,
23,
26,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
21869,
6,
332,
4416,
9988,
834,
23,
26,
6,
332,
4416,
221,
11830,
21680,
814,
834,
9,
5317,
6157,
332,
536,
3,
15355,
3162,
814,
6157,
332,
357,
9191,
332,
5411,
9988,
834,
23,
26,
3274,
332,
4416,
9988... |
Show names of actors and names of musicals they are in. | CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR) | SELECT T1.Name, T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
23954,
584,
4280,
28027,
6,
22307,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4183,
41,
23954,
584,
4280,
28027,
6,
22307,
834,
4309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4416,
23954,
21680,
7556,
6157,
332,
536,
3,
15355,
3162,
4183,
6157,
332,
357,
9191,
332,
5411,
29035,
138,
834,
4309,
3274,
332,
4416,
29035,
138,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100... |
how many patients were treated with additive therapy on urgent admission? | 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 te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.drug_type = "ADDITIVE" | [
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... |
What was the nationality of the athlete with a final result of 4.50? | CREATE TABLE table_name_92 (nationality VARCHAR, result VARCHAR) | SELECT nationality FROM table_name_92 WHERE result = "4.50" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
16557,
485,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1157,
485,
13,
8,
17893,
28,
3,
9,
804,
741,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
741,
3274,
96,
12451,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average for the 1990s with a total of 1, and 0 in the 1980s? | CREATE TABLE table_7582 (
"1900s" real,
"1920s" real,
"1930s" real,
"1940s" real,
"1950s" real,
"1960s" real,
"1970s" real,
"1980s" real,
"1990s" real,
"2000s to date" real,
"Total to date" real
) | SELECT AVG("1990s") FROM table_7582 WHERE "Total to date" = '1' AND "1980s" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
4613,
41,
96,
2294,
1206,
7,
121,
490,
6,
96,
2294,
1755,
7,
121,
490,
6,
96,
2294,
1458,
7,
121,
490,
6,
96,
2294,
2445,
7,
121,
490,
6,
96,
2294,
1752,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
2294,
2394,
7,
8512,
21680,
953,
834,
3072,
4613,
549,
17444,
427,
96,
3696,
1947,
12,
833,
121,
3274,
3,
31,
536,
31,
3430,
96,
2294,
2079,
7,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-1... |
Which score has a Home Team of saskatoon accelerators? | CREATE TABLE table_56759 (
"Date" text,
"Home Team" text,
"Score" text,
"Visiting Team" text,
"Stadium" text
) | SELECT "Score" FROM table_56759 WHERE "Home Team" = 'saskatoon accelerators' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3708,
3390,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
30338,
2271,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
755,
3708,
3390,
549,
17444,
427,
96,
19040,
2271,
121,
3274,
3,
31,
7,
9,
10717,
235,
106,
30202,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What college did the player whose position was RB go to? | CREATE TABLE table_28059992_6 (college VARCHAR, position VARCHAR) | SELECT college FROM table_28059992_6 WHERE position = "RB" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3076,
19446,
357,
834,
948,
41,
3297,
7883,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
410,
8,
1959,
3,
2544,
1102,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
2577,
3076,
19446,
357,
834,
948,
549,
17444,
427,
1102,
3274,
96,
12108,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of a grid for driver Patrick Carpentier and less than 103 laps? | CREATE TABLE table_12936 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | SELECT SUM("Grid") FROM table_12936 WHERE "Driver" = 'patrick carpentier' AND "Laps" < '103' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22174,
3420,
41,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
26,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
13313,
26,
8512,
21680,
953,
834,
22174,
3420,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
4665,
5206,
443,
3208,
3276,
31,
3430,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
17864,
31,
1,
-100... |
Name the ebit for eps being 10.6 | CREATE TABLE table_18304259_1 (ebit__£m_ VARCHAR, earnings_per_share__p_ VARCHAR) | SELECT ebit__£m_ FROM table_18304259_1 WHERE earnings_per_share__p_ = "10.6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
1458,
4165,
3390,
834,
536,
41,
15,
2360,
834,
834,
19853,
51,
834,
584,
4280,
28027,
6,
8783,
834,
883,
834,
12484,
834,
834,
102,
834,
584,
4280,
28027,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15,
2360,
834,
834,
19853,
51,
834,
21680,
953,
834,
2606,
1458,
4165,
3390,
834,
536,
549,
17444,
427,
8783,
834,
883,
834,
12484,
834,
834,
102,
834,
3274,
96,
10415,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
what is smallest number in fleet for chassis manufacturer Scania and fleet numbers is 3230? | CREATE TABLE table_1425948_1 (number_in_fleet INTEGER, chassis_manufacturer VARCHAR, fleet_numbers VARCHAR) | SELECT MIN(number_in_fleet) FROM table_1425948_1 WHERE chassis_manufacturer = "Scania" AND fleet_numbers = "3230" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
3390,
3707,
834,
536,
41,
5525,
1152,
834,
77,
834,
89,
109,
15,
17,
3,
21342,
17966,
6,
22836,
834,
348,
76,
8717,
450,
49,
584,
4280,
28027,
6,
9111,
834,
5525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5525,
1152,
834,
77,
834,
89,
109,
15,
17,
61,
21680,
953,
834,
24978,
3390,
3707,
834,
536,
549,
17444,
427,
22836,
834,
348,
76,
8717,
450,
49,
3274,
96,
134,
75,
11219,
121,
3430,
9111,
834,
5525... |
find the number of patients with delta abnormal lab test status who have acute parametritis and pelvic cellulitis diagnoses. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Acute parametritis and pelvic cellulitis" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What side does Clayton Allison Bat/Throw from? | CREATE TABLE table_60073 (
"Players" text,
"Position" text,
"Year" text,
"Ht/Wt" text,
"Bats/Throws" text,
"Hometown (Last School)" text
) | SELECT "Bats/Throws" FROM table_60073 WHERE "Players" = 'clayton allison' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6007,
4552,
41,
96,
15800,
277,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
566,
17,
87,
518,
17,
121,
1499,
6,
96,
279,
144,
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,
96,
279,
144,
7,
87,
11889,
2381,
7,
121,
21680,
953,
834,
6007,
4552,
549,
17444,
427,
96,
15800,
277,
121,
3274,
3,
31,
4651,
21220,
66,
23,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Give me a scatter chart that groups acc road, the x-axis is team id and the y-axis is acc percent. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY ACC_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List the school color of the school that has the largest enrollment. | CREATE TABLE school (
School_Colors VARCHAR,
Enrollment VARCHAR
) | SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
41,
1121,
834,
3881,
322,
7,
584,
4280,
28027,
6,
695,
4046,
297,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
496,
945,
13,
8,
496,
24,
65,
8,
2015,
17938... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1121,
834,
3881,
322,
7,
21680,
496,
4674,
11300,
272,
476,
695,
4046,
297,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the tourist attraction that is associated with the photo 'game1'? | CREATE TABLE staff (
staff_id number,
tourist_attraction_id number,
name text,
other_details text
)
CREATE TABLE royal_family (
royal_family_id number,
royal_family_details text
)
CREATE TABLE street_markets (
market_id number,
market_details text
)
CREATE TABLE hotels (
hotel_id ... | SELECT T2.name FROM photos AS T1 JOIN tourist_attractions AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id WHERE T1.name = "game1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
41,
871,
834,
23,
26,
381,
6,
8548,
834,
144,
10559,
834,
23,
26,
381,
6,
564,
1499,
6,
119,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
4350,
21680,
1302,
6157,
332,
536,
3,
15355,
3162,
8548,
834,
144,
10559,
7,
6157,
332,
357,
9191,
332,
5411,
17,
1211,
343,
834,
144,
10559,
834,
23,
26,
3274,
332,
4416,
17,
1211,
343,
834,
144,
10559,
... |
what is the sum of the year in rhode island | CREATE TABLE table_37379 (
"Year" real,
"Senator" text,
"Party" text,
"State" text,
"Result" text
) | SELECT SUM("Year") FROM table_37379 WHERE "State" = 'rhode island' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
519,
4440,
41,
96,
476,
2741,
121,
490,
6,
96,
134,
35,
1016,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
20119,
121,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4118,
519,
4440,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
52,
107,
32,
221,
3368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Away team when the match score was norths 19 manly 4? | CREATE TABLE table_name_54 (
away_team VARCHAR,
match_score VARCHAR
) | SELECT away_team FROM table_name_54 WHERE match_score = "norths 19 manly 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
550,
834,
11650,
584,
4280,
28027,
6,
1588,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
71,
1343,
372,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1588,
834,
7,
9022,
3274,
96,
29,
127,
189,
7,
957,
388,
120,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which year opened is located in west mifflin, pennsylvania? | CREATE TABLE table_name_50 (
year_opened VARCHAR,
location VARCHAR
) | SELECT year_opened FROM table_name_50 WHERE location = "west mifflin, pennsylvania" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
215,
834,
26940,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
2946,
19,
1069,
16,
4653,
3,
51,
5982,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
26940,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1128,
3274,
96,
12425,
3,
51,
5982,
40,
77,
6,
4550,
29,
7,
63,
40,
16658,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what Date was the Opponent the Tennessee Titans? | CREATE TABLE table_name_47 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_47 WHERE opponent = "tennessee titans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
47,
8,
4495,
9977,
8,
12976,
13622,
7,
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,
833,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
15264,
3274,
96,
324,
655,
15,
15,
29243,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Year has a Position of 9th? | CREATE TABLE table_name_63 (
year INTEGER,
position VARCHAR
) | SELECT AVG(year) FROM table_name_63 WHERE position = "9th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
215,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
65,
3,
9,
14258,
13,
668,
189,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
1102,
3274,
96,
1298,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which opponent was on July 21, 2008? | CREATE TABLE table_64722 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_64722 WHERE "Date" = 'july 21, 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
5865,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
667,
102,
9977,
121,
21680,
953,
834,
4389,
5865,
357,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2047,
120,
12026,
2628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the average losses when the wins is 3? | CREATE TABLE table_name_24 (
losses INTEGER,
wins VARCHAR
) | SELECT AVG(losses) FROM table_name_24 WHERE wins = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
8467,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1348,
8467,
116,
8,
9204,
19,
220,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
9204,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Silver with a Bronze that is larger than 0 with a Gold smaller than 0? | CREATE TABLE table_name_26 (
silver INTEGER,
bronze VARCHAR,
gold VARCHAR
) | SELECT SUM(silver) FROM table_name_26 WHERE bronze > 0 AND gold < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
4294,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
5642,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
13467,
2490,
3,
632,
3430,
2045,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many combined days did Go Shiozaki have? | CREATE TABLE table_26 (
"Rank Each wrestlers total number of days as champion are ranked highest to lowest; wrestlers with the same number mean that they are tied for that certain rank." real,
"Wrestler" text,
"# of reigns" real,
"Combined defenses" real,
"Combined days" text
) | SELECT "Combined days" FROM table_26 WHERE "Wrestler" = 'Go Shiozaki' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
41,
96,
22557,
1698,
26033,
52,
7,
792,
381,
13,
477,
38,
6336,
33,
3,
8232,
2030,
12,
7402,
3,
32102,
32103,
32102,
26033,
52,
7,
28,
8,
337,
381,
1243,
24,
79,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
28257,
477,
121,
21680,
953,
834,
2688,
549,
17444,
427,
96,
518,
6216,
1171,
121,
3274,
3,
31,
6221,
4804,
13277,
2168,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the party of georgia 4 | CREATE TABLE table_1341604_11 (
party VARCHAR,
district VARCHAR
) | SELECT party FROM table_1341604_11 WHERE district = "Georgia 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
2596,
41,
1088,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1088,
13,
873,
1677,
23,
9,
314,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
19129,
591,
834,
2596,
549,
17444,
427,
3939,
3274,
96,
517,
15,
1677,
23,
9,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Fastest Laps have Poles of 4, and Races larger than 178? | CREATE TABLE table_name_81 (fastest_laps INTEGER, poles VARCHAR, races VARCHAR) | SELECT SUM(fastest_laps) FROM table_name_81 WHERE poles = 4 AND races > 178 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
11584,
222,
834,
8478,
7,
3,
21342,
17966,
6,
11148,
7,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
11584,
222,
834,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
11148,
7,
3274,
314,
3430,
10879,
2490,
3,
27640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want to know the highest silver for total of 4 for poland and gold less than 1 | CREATE TABLE table_name_7 (
silver INTEGER,
gold VARCHAR,
total VARCHAR,
nation VARCHAR
) | SELECT MAX(silver) FROM table_name_7 WHERE total = 4 AND nation = "poland" AND gold < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
4294,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
792,
3274,
314,
3430,
2982,
3274,
96,
3233,
232,
121,
3430,
2045,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the minimum population in 2011 of the district of Prakasam? | CREATE TABLE table_1610301_1 (
population__2011_ INTEGER,
district VARCHAR
) | SELECT MIN(population__2011_) FROM table_1610301_1 WHERE district = "Prakasam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
1714,
25626,
834,
536,
41,
2074,
834,
834,
13907,
834,
3,
21342,
17966,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2559,
2074,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9791,
7830,
834,
834,
13907,
834,
61,
21680,
953,
834,
2938,
1714,
25626,
834,
536,
549,
17444,
427,
3939,
3274,
96,
345,
9782,
9,
7,
265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
with Distribution of 10.6% what is the average api level? | CREATE TABLE table_name_7 (api_level INTEGER, distribution VARCHAR) | SELECT AVG(api_level) FROM table_name_7 WHERE distribution = "10.6%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
13306,
834,
4563,
3,
21342,
17966,
6,
3438,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
28,
21968,
13,
5477,
6370,
125,
19,
8,
1348,
3,
13306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
13306,
834,
4563,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
3438,
3274,
96,
10415,
6370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many episodes in the series are also episode 18 in the season? | CREATE TABLE table_23492454_1 (
no_in_series VARCHAR,
no_in_season VARCHAR
) | SELECT COUNT(no_in_series) FROM table_23492454_1 WHERE no_in_season = 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3647,
2266,
5062,
834,
536,
41,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
2773,
3647,
2266,
5062,
834,
536,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where did Essendon play as the home team? | CREATE TABLE table_name_93 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_93 WHERE home_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
15098,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
11722,
2029,
577,
38,
8,
234,
372,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
234,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0? | CREATE TABLE table_56448 (
"Player" text,
"Tackles" real,
"Solo" real,
"Assisted" real,
"Sack" real,
"Yards" real,
"TD's" real
) | SELECT MIN("Sack") FROM table_56448 WHERE "Solo" = '24' AND "Tackles" > '25.5' AND "Yards" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
591,
3707,
41,
96,
15800,
49,
121,
1499,
6,
96,
382,
4365,
965,
121,
490,
6,
96,
5231,
40,
32,
121,
490,
6,
96,
31606,
121,
490,
6,
96,
134,
4365,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
134,
4365,
8512,
21680,
953,
834,
4834,
591,
3707,
549,
17444,
427,
96,
5231,
40,
32,
121,
3274,
3,
31,
2266,
31,
3430,
96,
382,
4365,
965,
121,
2490,
3,
31,
357,
15938,
31,
3430,
96,
476,
98... |
after ` lejila ' what was malberg 's next film ? | CREATE TABLE table_204_91 (
id number,
"year" number,
"original title" text,
"english title" text,
"role" text,
"notes" text
) | SELECT "original title" FROM table_204_91 WHERE id = (SELECT id FROM table_204_91 WHERE "original title" = 'lejla') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4729,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
21878,
2233,
121,
1499,
6,
96,
4606,
40,
1273,
2233,
121,
1499,
6,
96,
3491,
15,
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,
21878,
2233,
121,
21680,
953,
834,
26363,
834,
4729,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
4729,
549,
17444,
427,
96,
21878,
2233,
121,
3274,
3,
31,
109,
3... |
Which district has candidates is dick gephardt (d) 81.9% lee buchschacher (r) 18.1%? | CREATE TABLE table_1341663_26 (
district VARCHAR,
candidates VARCHAR
) | SELECT district FROM table_1341663_26 WHERE candidates = "Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2688,
41,
3939,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3939,
65,
4341,
19,
3,
26,
3142,
873,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2938,
3891,
834,
2688,
549,
17444,
427,
4341,
3274,
96,
308,
3142,
961,
102,
5651,
17,
41,
308,
61,
3,
4959,
5,
7561,
5531,
4675,
860,
9,
1703,
41,
448,
61,
12265,
4704,
121,
1,
-100,... |
Which series episode has a netflix figure of s04e21? | CREATE TABLE table_name_45 (
series_ep VARCHAR,
netflix VARCHAR
) | SELECT series_ep FROM table_name_45 WHERE netflix = "s04e21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
939,
834,
15,
102,
584,
4280,
28027,
6,
3134,
89,
17591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
939,
5640,
65,
3,
9,
3134,
89,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
834,
15,
102,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3134,
89,
17591,
3274,
96,
7,
6348,
15,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Fourth place with a Year that is 1978? | CREATE TABLE table_42908 (
"Year" real,
"Champion" text,
"Runner-up" text,
"Third place" text,
"Fourth place" text,
"Jack Tompkins Trophy (MVP)" text
) | SELECT "Fourth place" FROM table_42908 WHERE "Year" = '1978' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3166,
4018,
41,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
382,
9288,
26,
286,
121,
1499,
6,
96,
371,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
1211,
189,
286,
121,
21680,
953,
834,
591,
3166,
4018,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Date has a Game site of jeppesen stadium? | CREATE TABLE table_name_27 (date VARCHAR, game_site VARCHAR) | SELECT date FROM table_name_27 WHERE game_site = "jeppesen stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
5522,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
4435,
353,
13,
528,
6811,
7,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2555,
549,
17444,
427,
467,
834,
3585,
3274,
96,
1924,
6811,
7,
35,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many viewers did the episode directed by David Nutter draw in? | CREATE TABLE table_72604 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT "U.S. viewers (million)" FROM table_72604 WHERE "Directed by" = 'David Nutter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
3328,
591,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
1265,
5,
134,
5,
13569,
41,
17030,
61,
121,
21680,
953,
834,
5865,
3328,
591,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
308,
9,
6961,
445,
5108,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHich Scored 1,500 Points has a Years Played of 2004 2008 and a Name of jolene anderson? | CREATE TABLE table_48080 (
"Total Points" real,
"Name" text,
"Career Games" text,
"Position" text,
"Years Played" text,
"Scored 1,500 Points" text,
"Date and Opponent" text
) | SELECT "Scored 1,500 Points" FROM table_48080 WHERE "Years Played" = '2004–2008' AND "Name" = 'jolene anderson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20579,
2079,
41,
96,
3696,
1947,
4564,
7,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
6936,
15,
49,
5880,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
26,
1914,
2560,
4564,
7,
121,
21680,
953,
834,
20579,
2079,
549,
17444,
427,
96,
476,
2741,
7,
2911,
15,
26,
121,
3274,
3,
31,
21653,
104,
16128,
31,
3430,
96,
23954,
121,
3274,
3,
31,
1927,
14205,
... |
What is the place of the player with a 72-71-65=208 score? | CREATE TABLE table_79018 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_79018 WHERE "Score" = '72-71-65=208' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2394,
2606,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
940,
2394,
2606,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
5865,
18,
4450,
18,
4122,
2423,
23946,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the minimum D (max) when the Morse Taper number is less than 0? | CREATE TABLE table_name_47 (d__max_ INTEGER, morse_taper_number INTEGER) | SELECT MIN(d__max_) FROM table_name_47 WHERE morse_taper_number < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
26,
834,
834,
9128,
834,
3,
21342,
17966,
6,
8030,
7,
15,
834,
8873,
49,
834,
5525,
1152,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
26,
834,
834,
9128,
834,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
8030,
7,
15,
834,
8873,
49,
834,
5525,
1152,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the least w? | CREATE TABLE table_31305 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT MIN("W") FROM table_31305 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
26724,
41,
96,
434,
32,
1489,
15,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
12017,
121,
490,
6,
96,
3965,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
8512,
21680,
953,
834,
3341,
26724,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Dates have a Builder of laconia car company, and a Number of 63-68? | CREATE TABLE table_name_8 (date VARCHAR, builder VARCHAR, number VARCHAR) | SELECT COUNT(date) FROM table_name_8 WHERE builder = "laconia car company" AND number = "63-68" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
5522,
584,
4280,
28027,
6,
918,
49,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7678,
7,
43,
3,
9,
16799,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
918,
49,
3274,
96,
9700,
8008,
443,
349,
121,
3430,
381,
3274,
96,
3891,
18,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the tries for when L is less than 2.0 | CREATE TABLE table_28204447_3 (tries_for VARCHAR, l INTEGER) | SELECT tries_for FROM table_28204447_3 WHERE l < 2.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1755,
3628,
4177,
834,
519,
41,
9000,
834,
1161,
584,
4280,
28027,
6,
3,
40,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
9000,
21,
116,
301,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
834,
1161,
21680,
953,
834,
2577,
1755,
3628,
4177,
834,
519,
549,
17444,
427,
3,
40,
3,
2,
6864,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the total number of times brazil and argentina did not win gold ? | CREATE TABLE table_204_360 (
id number,
"year" number,
"host" text,
"gold" text,
"silver" text,
"bronze" text
) | SELECT COUNT(*) FROM table_204_360 WHERE "gold" <> 'brazil' AND "gold" <> 'argentina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
19208,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
12675,
121,
1499,
6,
96,
14910,
121,
1499,
6,
96,
7,
173,
624,
121,
1499,
6,
96,
13711,
776,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
19208,
549,
17444,
427,
96,
14910,
121,
3,
2,
3155,
3,
31,
1939,
702,
40,
31,
3430,
96,
14910,
121,
3,
2,
3155,
3,
31,
9917,
77,
9,
31,
1,
-100,
-100,
-... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of email and salary in a bar chart, list in asc by the x-axis. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT EMAIL, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
20211,
3502,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
17966,
834,
4309,
... |
What was the reason for change when the successor was William Milnes, Jr. (C)? | CREATE TABLE table_3007 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | SELECT "Reason for change" FROM table_3007 WHERE "Successor" = 'William Milnes, Jr. (C)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
940,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
483,
121,
1499,
6,
96,
134,
17431,
24901,
121,
1499,
6,
96,
308,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
9,
739,
21,
483,
121,
21680,
953,
834,
5426,
940,
549,
17444,
427,
96,
134,
17431,
24901,
121,
3274,
3,
31,
518,
1092,
23,
265,
8573,
1496,
6,
8206,
5,
41,
254,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
Who is the opposing team when the game was played on the Shea Stadium? | CREATE TABLE table_21665 (
"Week" real,
"Date" text,
"Opponent" text,
"Stadium" text,
"Result" text,
"Record" text,
"Streak" text,
"Attendance" real
) | SELECT "Opponent" FROM table_21665 WHERE "Stadium" = 'Shea Stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
4122,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
20119,
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,
667,
102,
9977,
121,
21680,
953,
834,
27184,
4122,
549,
17444,
427,
96,
134,
17,
9,
12925,
121,
3274,
3,
31,
12736,
9,
12750,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000, and count them by a line chart, order x-axis from low to high order. | CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Investors (
invest... | SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE share_count > 100 OR amount_of_transaction > 1000 ORDER BY date_of_transaction | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14839,
7,
41,
1242,
834,
7031,
4787,
834,
23,
26,
3,
21342,
17966,
6,
1242,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7031,
4787,
6,
2847,
17161,
599,
5522,
834,
858,
834,
7031,
4787,
61,
21680,
21469,
7,
549,
17444,
427,
698,
834,
13362,
2490,
910,
4674,
866,
834,
858,
834,
7031,
4787,
2490,
5580,
4674,
11300,
... |
Plot the number of home city by grouped by home city as a bar graph, could you order in asc by the total number? | CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Ag... | SELECT Home_city, COUNT(Home_city) FROM driver GROUP BY Home_city ORDER BY COUNT(Home_city) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
41,
1121,
834,
4309,
16,
17,
6,
13027,
1499,
6,
1121,
1499,
6,
10450,
1499,
6,
6632,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
834,
3465,
41,
1121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
6726,
6,
2847,
17161,
599,
19040,
834,
6726,
61,
21680,
2535,
350,
4630,
6880,
272,
476,
1210,
834,
6726,
4674,
11300,
272,
476,
2847,
17161,
599,
19040,
834,
6726,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the start date and end date of the apartment bookings made by female guests (gender code 'Female')? | CREATE TABLE apartment_buildings (
building_id number,
building_short_name text,
building_full_name text,
building_description text,
building_address text,
building_manager text,
building_phone text
)
CREATE TABLE apartments (
apt_id number,
building_id number,
apt_type_code tex... | SELECT T1.booking_start_date, T1.booking_start_date FROM apartment_bookings AS T1 JOIN guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4579,
834,
10905,
7,
41,
740,
834,
23,
26,
381,
6,
740,
834,
7,
14184,
834,
4350,
1499,
6,
740,
834,
1329,
40,
834,
4350,
1499,
6,
740,
834,
221,
11830,
1499,
6,
740,
834,
9,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
2567,
53,
834,
10208,
834,
5522,
6,
332,
5411,
2567,
53,
834,
10208,
834,
5522,
21680,
4579,
834,
2567,
53,
7,
6157,
332,
536,
3,
15355,
3162,
2554,
6157,
332,
357,
9191,
332,
5411,
15991,
17,
834,
23,
... |
What area all values for Slovak when value for Ukranian is , ? | CREATE TABLE table_27267 (
"English" text,
"Slovianski" text,
"\u0421\u043b\u043e\u0432\u0458\u0430\u043d\u0441\u043a\u0438" text,
"Russian" text,
"Ukrainian" text,
"Belarusian" text,
"Polish" text,
"Czech" text,
"Slovak" text,
"Upper Sorbian" text,
"Slovene" text,
"Croat... | SELECT "Slovak" FROM table_27267 WHERE "Ukrainian" = 'пес, собака' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
357,
3708,
41,
96,
26749,
121,
1499,
6,
96,
134,
5850,
7137,
2168,
121,
1499,
6,
96,
2,
76,
6348,
2658,
2,
76,
632,
4906,
115,
2,
76,
632,
4906,
15,
2,
76,
6348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
5850,
1639,
121,
21680,
953,
834,
2555,
357,
3708,
549,
17444,
427,
96,
1265,
9669,
23,
15710,
121,
3274,
3,
31,
2,
24392,
6,
24697,
2,
2533,
12095,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Time has a Grid of 19? | CREATE TABLE table_name_59 (
time VARCHAR,
grid VARCHAR
) | SELECT time FROM table_name_59 WHERE grid = 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
97,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2900,
65,
3,
9,
23644,
13,
957,
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,
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,
97,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
8634,
3274,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What the rank in the top 10 when the winnings were $1,741,176? | CREATE TABLE table_2506300_1 (
top_10 INTEGER,
winnings VARCHAR
) | SELECT MIN(top_10) FROM table_2506300_1 WHERE winnings = "$1,741,176" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
5176,
5426,
834,
536,
41,
420,
834,
1714,
3,
21342,
17966,
6,
3447,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
8,
11003,
16,
8,
420,
335,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2916,
834,
16968,
21680,
953,
834,
1828,
5176,
5426,
834,
536,
549,
17444,
427,
3447,
7,
3274,
96,
3229,
4347,
4581,
4347,
26782,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Interregnum ended for Count Palatine of Saxony of frederick augustus i, elector of saxony? | CREATE TABLE table_53876 (
"Interregnum began" text,
"Interregnum ended" text,
"Duration" text,
"Count Palatine of Saxony" text,
"Count Palatine of the Rhine" text
) | SELECT "Interregnum ended" FROM table_53876 WHERE "Count Palatine of Saxony" = 'frederick augustus i, elector of saxony' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3747,
3959,
41,
96,
17555,
60,
122,
5525,
1553,
121,
1499,
6,
96,
17555,
60,
122,
5525,
3492,
121,
1499,
6,
96,
12998,
2661,
121,
1499,
6,
96,
10628,
14294,
4070,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17555,
60,
122,
5525,
3492,
121,
21680,
953,
834,
755,
3747,
3959,
549,
17444,
427,
96,
10628,
14294,
4070,
13,
3,
30004,
63,
121,
3274,
3,
31,
89,
1271,
15,
5206,
14663,
302,
3,
23,
6,
11924,
127,
13,
3,
7,... |
What is the lowest number of wins of a team? | CREATE TABLE table_19741316_1 (wins INTEGER) | SELECT MIN(wins) FROM table_19741316_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
4853,
25946,
834,
536,
41,
3757,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
9204,
13,
3,
9,
372,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
27181,
4853,
25946,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of hire_date and the average of manager_id bin hire_date by weekday, show by the the average of manager id from high to low. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE... | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
... |
What college is Pat Thomas from? | CREATE TABLE table_name_77 (
college VARCHAR,
name VARCHAR
) | SELECT college FROM table_name_77 WHERE name = "pat thomas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
1900,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
19,
5192,
3576,
45,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
564,
3274,
96,
4665,
3,
189,
32,
2754,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average points for the chassis LOLA LC88? | CREATE TABLE table_11402 (
"Year" real,
"Chassis" text,
"Engine(s)" text,
"Tyres" text,
"Points" real
) | SELECT AVG("Points") FROM table_11402 WHERE "Chassis" = 'lola lc88' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
4305,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
599,
7,
61,
121,
1499,
6,
96,
382,
63,
60,
7,
121,
1499,
6,
96,
22512,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22512,
7,
8512,
21680,
953,
834,
18959,
4305,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
40,
32,
521,
3,
40,
75,
4060,
31,
1,
-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.