NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Compare the prices of each manufacturer's most expensive product with a bar chart. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, MAX(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
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,
332,
4416,
23954,
6,
4800,
4,
599,
382,
5411,
345,
4920,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
... |
Which team has a Home Run of 27? | CREATE TABLE table_70073 (
"Home Run" real,
"Game" real,
"Date" text,
"Inning" text,
"Location" text,
"Opposing Pitcher" text,
"Team" text
) | SELECT "Team" FROM table_70073 WHERE "Home Run" = '27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9295,
4552,
41,
96,
19040,
7113,
121,
490,
6,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
196,
9416,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
18699,
121,
21680,
953,
834,
9295,
4552,
549,
17444,
427,
96,
19040,
7113,
121,
3274,
3,
31,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What engine had a JBW chassis in 1960? | CREATE TABLE table_14466 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Engine" FROM table_14466 WHERE "Chassis" = 'jbw' AND "Year" = '1960' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
3539,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
31477,
121,
21680,
953,
834,
20885,
3539,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
354,
115,
210,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3328,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a bar chart on what are the allergy types and how many allergies correspond to each one?, and show in descending by the total number please. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER... | SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
432,
49,
122,
63,
834,
25160,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
25160,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-1... |
In what division was there a population density in km2 of 4,491.8 in 2011? | CREATE TABLE table_26499 (
"Administrative division" text,
"Area (km\u00b2) 2011**" text,
"Population 2001 Census (Adjusted)" real,
"Population 2011 Census (Adjusted)" real,
"Population density (/km\u00b2 2011)" text
) | SELECT "Administrative division" FROM table_26499 WHERE "Population density (/km\u00b2 2011)" = '4,491.8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
3264,
41,
96,
16313,
343,
52,
1528,
4889,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
2722,
19844,
121,
1499,
6,
96,
27773,
7830,
4402,
23086,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16313,
343,
52,
1528,
4889,
121,
21680,
953,
834,
26755,
3264,
549,
17444,
427,
96,
27773,
7830,
11048,
41,
87,
5848,
2,
76,
1206,
115,
357,
2722,
61,
121,
3274,
3,
31,
8525,
3647,
16253,
31,
1,
-100,
-100,
-1... |
Which Tournament has a Score of 1 6, 0 6? | CREATE TABLE table_6973 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Tournament" FROM table_6973 WHERE "Score" = '1–6, 0–6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
4552,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
3951,
4552,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
536,
104,
11071,
3,
632,
104,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average that has 441 as wicket? | CREATE TABLE table_name_31 (average VARCHAR, s_wicket VARCHAR) | SELECT average FROM table_name_31 WHERE s_wicket = "441" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
28951,
584,
4280,
28027,
6,
3,
7,
834,
5981,
15,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
24,
65,
314,
4853,
38,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1348,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
3,
7,
834,
5981,
15,
17,
3274,
96,
3628,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the difference related to 2 losses and fewer than 10 points? | CREATE TABLE table_name_51 (points_difference VARCHAR, lost VARCHAR, points VARCHAR) | SELECT points_difference FROM table_name_51 WHERE lost = 2 AND points < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
2700,
7,
834,
26,
99,
11788,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1750... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
834,
26,
99,
11788,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1513,
3274,
204,
3430,
979,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the frequency of the dates (bin into year interval) that had the top 5 cloud cover rates? You can draw me a bar chart for this purpose, and list by the y-axis from low to high. | CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE status (
station_i... | SELECT date, COUNT(date) FROM weather ORDER BY COUNT(date) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
3,
23,
26,
3,
21342,
17966,
6,
8659,
3,
21342,
17966,
6,
456,
834,
5522,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
4350,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
23,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
6,
2847,
17161,
599,
5522,
61,
21680,
1969,
4674,
11300,
272,
476,
2847,
17161,
599,
5522,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is every team classification when points classification is Philippe Gilbert if mountains classification is Johnny Hoogerland and stage is less than 9.0? | CREATE TABLE table_25999087_2 (team_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR) | SELECT team_classification FROM table_25999087_2 WHERE points_classification = "Philippe Gilbert" AND mountains_classification = "Johnny Hoogerland" AND stage < 9.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3264,
2394,
4225,
834,
357,
41,
11650,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
8022,
834,
4057,
2420... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
372,
834,
4057,
2420,
21680,
953,
834,
1828,
3264,
2394,
4225,
834,
357,
549,
17444,
427,
979,
834,
4057,
2420,
3274,
96,
23305,
23,
6811,
24378,
121,
3430,
8022,
834,
4057,
2420,
3274,
96,
18300,
29,
63,
1546,
32,
... |
In what League is the Reed School? | CREATE TABLE table_name_87 (league VARCHAR, school VARCHAR) | SELECT league FROM table_name_87 WHERE school = "reed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
29512,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
3815,
19,
8,
20142,
1121,
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,
5533,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
496,
3274,
96,
60,
15,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which date's week was more than 4 with the venue being City Stadium and where the attendance was more than 14,297? | CREATE TABLE table_name_1 (date VARCHAR, attendance VARCHAR, week VARCHAR, venue VARCHAR) | SELECT date FROM table_name_1 WHERE week > 4 AND venue = "city stadium" AND attendance > 14 OFFSET 297 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
5522,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
471,
2490,
314,
3430,
5669,
3274,
96,
6726,
14939,
121,
3430,
11364,
2490,
968,
3,
15316,
20788,
204,
4327,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Retrieve the close dates of all the policies associated with the customer whose name contains 'Diana', bin the close dates into the day of week interval and count them for a bar chart. | CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_name VARCHAR(40)
)
CREATE TABLE Claims (
Claim_ID INTEGER,
FNOL_ID INTEGER,
Effective_Date DATE
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_name VARCHAR(40)
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_I... | SELECT Date_Closed, COUNT(Date_Closed) FROM Customers AS t1 JOIN Customers_Policies AS t2 ON t1.Customer_ID = t2.Customer_ID WHERE t1.Customer_name LIKE "%Diana%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
7327,
834,
4309,
3,
21342,
17966,
6,
7327,
834,
4350,
584,
4280,
28027,
599,
2445,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4779,
8345,
41,
7781,
603,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
254,
10227,
26,
6,
2847,
17161,
599,
308,
342,
834,
254,
10227,
26,
61,
21680,
16423,
6157,
3,
17,
536,
3,
15355,
3162,
16423,
834,
8931,
447,
725,
6157,
3,
17,
357,
9191,
3,
17,
5411,
30067,
49,
834,
... |
Who were the opponents on grass when playing with Mark Woodforde, and the outcome of winner, and a year greater than 1996? | CREATE TABLE table_name_61 (
opponents VARCHAR,
year VARCHAR,
outcome VARCHAR,
surface VARCHAR,
partner VARCHAR
) | SELECT opponents FROM table_name_61 WHERE surface = "grass" AND partner = "mark woodforde" AND outcome = "winner" AND year > 1996 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
16383,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16383,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
1774,
3274,
96,
16446,
121,
3430,
2397,
3274,
96,
3920,
1679,
2590,
15,
121,
3430,
6138,
3274,
96,
3757,
687,
121,
3430,
215,
2490,
6911,
1,
-100,
-100,
-100,
... |
Which Visitor is listed as having a Date of December 17? | CREATE TABLE table_69994 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Visitor" FROM table_69994 WHERE "Date" = 'december 17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3264,
591,
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,
553,
159,
155,
127,
121,
21680,
953,
834,
3951,
3264,
591,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
1003,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smoke point with a total fat of 100g, and monounsaturated fat of 46g? | CREATE TABLE table_name_97 (smoke_point VARCHAR, total_fat VARCHAR, monounsaturated_fat VARCHAR) | SELECT smoke_point FROM table_name_97 WHERE total_fat = "100g" AND monounsaturated_fat = "46g" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
7,
51,
1825,
15,
834,
2700,
584,
4280,
28027,
6,
792,
834,
6589,
584,
4280,
28027,
6,
7414,
202,
7,
6010,
920,
834,
6589,
584,
4280,
28027,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7269,
834,
2700,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
792,
834,
6589,
3274,
96,
2915,
122,
121,
3430,
7414,
202,
7,
6010,
920,
834,
6589,
3274,
96,
4448,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average February that has 18-26-10 as the record, with a game less than 54? | CREATE TABLE table_50809 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT AVG("February") FROM table_50809 WHERE "Record" = '18-26-10' AND "Game" < '54' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
2079,
1298,
41,
96,
23055,
121,
490,
6,
96,
31122,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
31122,
8512,
21680,
953,
834,
1752,
2079,
1298,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2606,
18,
2688,
4536,
31,
3430,
96,
23055,
121,
3,
2,
3,
31,
5062,
31,
1,
-100,
-100,
-100,
... |
Who was the Constructor at the Argentine Grand Prix? | CREATE TABLE table_53247 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Constructor" FROM table_53247 WHERE "Race" = 'argentine grand prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
357,
4177,
41,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
518,
10503,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4302,
7593,
127,
121,
21680,
953,
834,
4867,
357,
4177,
549,
17444,
427,
96,
448,
3302,
121,
3274,
3,
31,
9917,
630,
1907,
3407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What season has a league 3rd liga, and away of 1-0? | CREATE TABLE table_name_89 (
season VARCHAR,
league VARCHAR,
away VARCHAR
) | SELECT season FROM table_name_89 WHERE league = "3rd liga" AND away = "1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
774,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
550,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
774,
65,
3,
9,
5533,
220,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
5533,
3274,
96,
519,
52,
26,
3,
17140,
121,
3430,
550,
3274,
96,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What rank has a status of proposed, with 80 floors for Celestia Spaces 4? | CREATE TABLE table_64654 (
"Rank" real,
"Name" text,
"Status" text,
"City" text,
"Floors" real
) | SELECT AVG("Rank") FROM table_64654 WHERE "Status" = 'proposed' AND "Floors" = '80' AND "Name" = 'celestia spaces 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
4122,
591,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
11251,
127,
7,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
4389,
4122,
591,
549,
17444,
427,
96,
134,
17,
144,
302,
121,
3274,
3,
31,
1409,
12151,
31,
3430,
96,
11251,
127,
7,
121,
3274,
3,
31,
2079,
31,
3430,
96,
23954,
... |
Name the time with track number less than 4 for you're my everything | CREATE TABLE table_name_58 (time VARCHAR, track_number VARCHAR, song_title VARCHAR) | SELECT time FROM table_name_58 WHERE track_number < 4 AND song_title = "you're my everything" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
715,
584,
4280,
28027,
6,
1463,
834,
5525,
1152,
584,
4280,
28027,
6,
2324,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
97,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1463,
834,
5525,
1152,
3,
2,
314,
3430,
2324,
834,
21869,
3274,
96,
4188,
31,
60,
82,
762,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long? | CREATE TABLE table_name_89 (avg VARCHAR, long VARCHAR, yards VARCHAR, player VARCHAR) | SELECT COUNT(avg) FROM table_name_89 WHERE yards > 20 AND player = "darrius heyward-bey" AND long < 80 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
9,
208,
122,
584,
4280,
28027,
6,
307,
584,
4280,
28027,
6,
6460,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
9,
208,
122,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
6460,
2490,
460,
3430,
1959,
3274,
96,
3439,
18956,
3,
13133,
2239,
18,
346,
63,
121,
3430,
307,
3,
2,
2775,
1,
-100,
-100,
-10... |
how many overall goals were scored at moses mabhida stadium? | CREATE TABLE table_27708484_3 (
overall_goals_scored INTEGER,
stadium VARCHAR
) | SELECT MAX(overall_goals_scored) FROM table_27708484_3 WHERE stadium = "Moses Mabhida stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2518,
4608,
4608,
834,
519,
41,
1879,
834,
839,
5405,
834,
3523,
1271,
3,
21342,
17966,
6,
14939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
1879... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1890,
1748,
834,
839,
5405,
834,
3523,
1271,
61,
21680,
953,
834,
2555,
2518,
4608,
4608,
834,
519,
549,
17444,
427,
14939,
3274,
96,
329,
32,
2260,
1534,
115,
11740,
9,
14939,
121,
1,
-100,
-100,
-100... |
How many people attended the game on June 18? | CREATE TABLE table_15287 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT COUNT("Attendance") FROM table_15287 WHERE "Date" = 'june 18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
4225,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
26320,
4225,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
6959,
15,
507,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Sum of ERP W, when Call Sign is K216GA? | CREATE TABLE table_name_49 (erp_w INTEGER, call_sign VARCHAR) | SELECT SUM(erp_w) FROM table_name_49 WHERE call_sign = "k216ga" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
49,
102,
834,
210,
3,
21342,
17966,
6,
580,
834,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12198,
13,
22568,
549,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
49,
102,
834,
210,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
580,
834,
6732,
3274,
96,
157,
27184,
122,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the largest issue date for an album that reached position of 3? | CREATE TABLE table_61071 (
"Issue Date" real,
"Album Title" text,
"Artist" text,
"Sales" real,
"Highest Position" real
) | SELECT MAX("Issue Date") FROM table_61071 WHERE "Highest Position" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
4450,
41,
96,
196,
7,
7,
76,
15,
7678,
121,
490,
6,
96,
25691,
440,
11029,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
4529,
121,
490,
6,
96,
21417,
222,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
196,
7,
7,
76,
15,
7678,
8512,
21680,
953,
834,
27097,
4450,
549,
17444,
427,
96,
21417,
222,
14258,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the amount of winnings (in $) in the year with 2 wins? | CREATE TABLE table_1909647_2 (winnings VARCHAR, wins VARCHAR) | SELECT winnings FROM table_1909647_2 WHERE wins = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
4314,
4177,
834,
357,
41,
8163,
7,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
866,
13,
3447,
7,
41,
77,
1514,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
7,
21680,
953,
834,
11776,
4314,
4177,
834,
357,
549,
17444,
427,
9204,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average duration in milliseconds of tracks that belong to Latin or Pop genre? | CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR) | SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Latin" OR T1.Name = "Pop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11466,
15339,
41,
13714,
60,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
18464,
4386,
41,
13714,
60,
196,
26,
584,
4280,
28027,
6,
5570,
584,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
329,
1092,
23,
12091,
7,
61,
21680,
3,
18464,
4386,
6157,
332,
536,
3,
15355,
3162,
11466,
15339,
6157,
332,
357,
9191,
332,
5411,
13714,
60,
196,
26,
3274,
332,
4416,
13714,
60,
196,
26,
549,
17444,... |
What is the lowest episode number where john bird was the 4th performer? | CREATE TABLE table_name_48 (
episode INTEGER,
performer_4 VARCHAR
) | SELECT MIN(episode) FROM table_name_48 WHERE performer_4 = "john bird" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5640,
3,
21342,
17966,
6,
1912,
49,
834,
591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
5640,
381,
213,
3,
27341,
5963,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
15,
102,
159,
32,
221,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1912,
49,
834,
591,
3274,
96,
27341,
5963,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the most laps for corvette racing in 2004 | CREATE TABLE table_68663 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
) | SELECT MAX("Laps") FROM table_68663 WHERE "Team" = 'corvette racing' AND "Year" = '2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3539,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
3881,
18,
20982,
52,
7,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
3651,
3539,
519,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
5715,
19828,
8191,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
21653,
31,
1,
-100,
-100,
-100,
... |
What is the percentage of the popular vote when there were 90 seats available? | CREATE TABLE table_31610 (
"Year of election" real,
"Candidates elected" real,
"# of seats available" real,
"# of votes" text,
"% of popular vote" text
) | SELECT "% of popular vote" FROM table_31610 WHERE "# of seats available" = '90' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25946,
1714,
41,
96,
476,
2741,
13,
4356,
121,
490,
6,
96,
14050,
12416,
6203,
8160,
121,
490,
6,
96,
4663,
13,
6116,
347,
121,
490,
6,
96,
4663,
13,
11839,
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,
1454,
13,
1012,
2902,
121,
21680,
953,
834,
25946,
1714,
549,
17444,
427,
96,
4663,
13,
6116,
347,
121,
3274,
3,
31,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165? | CREATE TABLE table_63985 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | SELECT MIN("Points") FROM table_63985 WHERE "Time/Retired" = '+30.7 secs' AND "Laps" < '165' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3916,
755,
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3891,
3916,
755,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
1220,
519,
22426,
4220,
7,
31,
3430,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
... |
When the champion was Gay Brewer Category:Articles with hCards what was the total score? | CREATE TABLE table_name_90 (
total_score VARCHAR,
champion VARCHAR
) | SELECT total_score FROM table_name_90 WHERE champion = "gay brewer category:articles with hcards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
792,
834,
7,
9022,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
6336,
47,
20338,
3004,
3321,
17459,
10,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
834,
7,
9022,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
6336,
3274,
96,
122,
9,
63,
3,
1999,
3321,
3295,
10,
8372,
7,
28,
3,
107,
6043,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the order number for songs by the original artist Luis Fonsi? | CREATE TABLE table_455 (
"Episode" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Order #" FROM table_455 WHERE "Original artist" = 'Luis Fonsi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
755,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7395,
588,
1713,
121,
21680,
953,
834,
2128,
755,
549,
17444,
427,
96,
667,
3380,
10270,
2377,
121,
3274,
3,
31,
434,
76,
159,
377,
106,
7,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Home team score has an Away team of carlton? | CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_72 WHERE away_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1210,
372,
2604,
65,
46,
71,
1343,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
patient 012-63427 has received any procedure? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
... | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-63427')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
What is the maximum pick when WR was the position and Michigan the college, and the overall greater than 255? | CREATE TABLE table_47802 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Pick") FROM table_47802 WHERE "Position" = 'wr' AND "College" = 'michigan' AND "Overall" > '255' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
2079,
357,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
3142,
8512,
21680,
953,
834,
4177,
2079,
357,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
210,
52,
31,
3430,
96,
9939,
7883,
121,
3274,
3,
31,
51,
362,
12588,
31,
3430,
96,
... |
Name the high points for w 90–77 (ot) | CREATE TABLE table_27712180_7 (high_points VARCHAR, score VARCHAR) | SELECT high_points FROM table_27712180_7 WHERE score = "W 90–77 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4450,
2658,
2079,
834,
940,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
306,
979,
21,
3,
210,
277... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
2700,
7,
21680,
953,
834,
2555,
4450,
2658,
2079,
834,
940,
549,
17444,
427,
2604,
3274,
96,
518,
2777,
104,
4013,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
At what venue did the team from Collingwood score 7.14 (56) - 4.5 (29)? | CREATE TABLE table_name_51 (venue VARCHAR, opponent VARCHAR, score VARCHAR) | SELECT venue FROM table_name_51 WHERE opponent = "collingwood" AND score = "7.14 (56) - 4.5 (29)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
15098,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
5669,
410,
8,
372,
45,
9919,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
15264,
3274,
96,
3297,
697,
2037,
121,
3430,
2604,
3274,
96,
25059,
591,
9209,
10938,
3,
18,
3,
12451,
4743,
11728,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the zip codes that have an average mean humidity below 70 and had at least 100 trips come through there? | CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id number,
bike_id number,
subscription_type text,
zip_code number
)
CREATE TABLE station (
id number,
... | SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING COUNT(*) >= 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
3,
23,
26,
381,
6,
8659,
381,
6,
456,
834,
5522,
1499,
6,
456,
834,
6682,
834,
4350,
1499,
6,
456,
834,
6682,
834,
23,
26,
381,
6,
414,
834,
5522,
1499,
6,
414,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10658,
834,
4978,
21680,
1969,
350,
4630,
6880,
272,
476,
10658,
834,
4978,
454,
6968,
2365,
71,
17217,
599,
526,
152,
834,
4884,
23,
26,
485,
61,
3,
2,
2861,
3,
21342,
5249,
14196,
3,
23143,
14196,
10658,
834,
4978... |
what is the posisiotn where the start is 3? | CREATE TABLE table_1708014_2 (position VARCHAR, starts VARCHAR) | SELECT position FROM table_1708014_2 WHERE starts = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
2079,
2534,
834,
357,
41,
4718,
584,
4280,
28027,
6,
3511,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3,
19882,
7,
23,
32,
17,
29,
213,
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,
1102,
21680,
953,
834,
536,
2518,
2079,
2534,
834,
357,
549,
17444,
427,
3511,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the NBA draft result of the player from Washington, DC? | CREATE TABLE table_name_97 (nba_draft VARCHAR, hometown VARCHAR) | SELECT nba_draft FROM table_name_97 WHERE hometown = "washington, dc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
29,
115,
9,
834,
26,
10913,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14512,
6488,
741,
13,
8,
1959,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
29,
115,
9,
834,
26,
10913,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
22295,
3274,
96,
14710,
6029,
6,
3,
26,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total number of To Par, when Money ( $ ) is less than 387, and when Player is 'Al Brosch'? | CREATE TABLE table_name_33 (
to_par VARCHAR,
money___$__ VARCHAR,
player VARCHAR
) | SELECT COUNT(to_par) FROM table_name_33 WHERE money___$__ < 387 AND player = "al brosch" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
12,
834,
1893,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
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,
2847,
17161,
599,
235,
834,
1893,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
3,
2,
220,
4225,
3430,
1959,
3274,
96,
138,
9161,
860,
121,
1,
-100,
-100,
-100,
-100,
-... |
Which season had 34 losses? | CREATE TABLE table_name_35 (
season VARCHAR,
losses VARCHAR
) | SELECT season FROM table_name_35 WHERE losses = "34" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
774,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
141,
6154,
8467,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
8467,
3274,
96,
3710,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the pick with Dean Sears and round larger than 6? | CREATE TABLE table_49447 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"School/Club Team" text
) | SELECT MIN("Pick") FROM table_49447 WHERE "Round" > '6' AND "Player" = 'dean sears' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
591,
4177,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
29364,
87,
254,
11158,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
345,
3142,
8512,
21680,
953,
834,
3647,
591,
4177,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
948,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
221,
152,
142,
291,
7,
31,
1,
-100,
... |
What is every 5-year peak when Emanuel Lasker, 2847 is the 10-year peak? | CREATE TABLE table_21323 (
"Rank" real,
"1-year peak" text,
"5-year peak" text,
"10-year peak" text,
"15-year peak" text,
"20-year peak" text
) | SELECT "5-year peak" FROM table_21323 WHERE "10-year peak" = 'Emanuel Lasker, 2847' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
2773,
41,
96,
22557,
121,
490,
6,
96,
536,
18,
1201,
6734,
121,
1499,
6,
96,
755,
18,
1201,
6734,
121,
1499,
6,
96,
1714,
18,
1201,
6734,
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,
1... | [
3,
23143,
14196,
96,
755,
18,
1201,
6734,
121,
21680,
953,
834,
357,
2368,
2773,
549,
17444,
427,
96,
1714,
18,
1201,
6734,
121,
3274,
3,
31,
427,
348,
76,
15,
40,
7263,
2304,
6,
2059,
4177,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Return a bar chart on how many movie reviews does each director get?, display the total number in ascending order. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2090,
6,
2847,
17161,
599,
1935,
61,
21680,
10743,
6157,
332,
536,
3,
15355,
3162,
21662,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880,
272,
476,
332,
5411,
25982,
4674,
11300,... |
What is the report for round 3? | CREATE TABLE table_1137696_3 (
report VARCHAR,
round VARCHAR
) | SELECT report FROM table_1137696_3 WHERE round = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
3959,
4314,
834,
519,
41,
934,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
934,
21,
1751,
220,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
20522,
3959,
4314,
834,
519,
549,
17444,
427,
1751,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What country is player ed sneed, who has a to par of +3, from? | CREATE TABLE table_77458 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_77458 WHERE "To par" = '+3' AND "Player" = 'ed sneed' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
2128,
927,
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,
10628,
651,
121,
21680,
953,
834,
4013,
2128,
927,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
1220,
519,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
15,
26,
3,
7,
29,
6958,
31,
1,
-100,
-100,
-100,
-... |
did jason leffler race for braun racing or michael waltrip racing ? | CREATE TABLE table_203_131 (
id number,
"pos." number,
"car #" number,
"driver" text,
"make" text,
"team" text
) | SELECT "team" FROM table_203_131 WHERE "team" IN ('braun racing', 'michael waltrip racing') AND "driver" = 'jason leffler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
22048,
41,
3,
23,
26,
381,
6,
96,
2748,
535,
381,
6,
96,
1720,
1713,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
19509,
121,
1499,
6,
96,
11650,
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,
11650,
121,
21680,
953,
834,
23330,
834,
22048,
549,
17444,
427,
96,
11650,
121,
3388,
41,
31,
1939,
202,
8191,
31,
6,
3,
31,
51,
362,
9,
15,
40,
3,
5380,
14192,
8191,
31,
61,
3430,
96,
13739,
52,
121,
3274,... |
What is the rank of the player with less than 34 points? | CREATE TABLE table_41872 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
) | SELECT SUM("Rank") FROM table_41872 WHERE "Points" < '34' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
4225,
357,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
22557,
8512,
21680,
953,
834,
4853,
4225,
357,
549,
17444,
427,
96,
22512,
7,
121,
3,
2,
3,
31,
3710,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which was the first episode to drop the average below 0.60 ? | CREATE TABLE table_204_958 (
id number,
"episode" number,
"original broadcast date" text,
"average" number,
"rank" number,
"remarks" text
) | SELECT MIN("episode") FROM table_204_958 WHERE "average" < 0.6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3301,
927,
41,
3,
23,
26,
381,
6,
96,
15,
102,
159,
32,
221,
121,
381,
6,
96,
21878,
6878,
833,
121,
1499,
6,
96,
28951,
121,
381,
6,
96,
6254,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
15,
102,
159,
32,
221,
8512,
21680,
953,
834,
26363,
834,
3301,
927,
549,
17444,
427,
96,
28951,
121,
3,
2,
3,
22787,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the country for gerrard | CREATE TABLE table_2680 (
"N" real,
"P" text,
"Name" text,
"EU" text,
"Country" text,
"Age" real,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text,
"Source" text
) | SELECT "Country" FROM table_2680 WHERE "Name" = 'Gerrard' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2079,
41,
96,
567,
121,
490,
6,
96,
345,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
12062,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
2688,
2079,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
517,
49,
52,
986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
tell the competitions where the mean is 1 | CREATE TABLE table_1354805_6 (average VARCHAR, number_of_dances VARCHAR) | SELECT average FROM table_1354805_6 WHERE number_of_dances = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2469,
3707,
3076,
834,
948,
41,
28951,
584,
4280,
28027,
6,
381,
834,
858,
834,
26,
663,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
817,
8,
2259,
7,
213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1348,
21680,
953,
834,
536,
2469,
3707,
3076,
834,
948,
549,
17444,
427,
381,
834,
858,
834,
26,
663,
7,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Royal House for the state of Song? | CREATE TABLE table_46863 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | SELECT "Royal house" FROM table_46863 WHERE "State" = 'song' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3651,
3891,
41,
96,
134,
4748,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
448,
32,
63,
138,
629,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
63,
138,
629,
121,
21680,
953,
834,
591,
3651,
3891,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
7,
2444,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What language is telemarket for you? | CREATE TABLE table_name_3 (
language VARCHAR,
television_service VARCHAR
) | SELECT language FROM table_name_3 WHERE television_service = "telemarket for you" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
1612,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1612,
19,
3,
1931,
8809,
21,
25,
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,
1612,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
4390,
834,
5114,
3274,
96,
1931,
8809,
21,
25,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Interpreter value for an Unami Delaware value of pal naxk? | CREATE TABLE table_52525 (
"Munsee Delaware" text,
"Unami Delaware" text,
"De Laet (1633)" text,
"Campanius (ca. 1645)" text,
"Interpreter (1684?)" text,
"Thomas (1698)" text
) | SELECT "Interpreter (1684?)" FROM table_52525 WHERE "Unami Delaware" = 'palé·naxk' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
1828,
41,
96,
329,
202,
2338,
19722,
121,
1499,
6,
96,
5110,
3690,
19722,
121,
1499,
6,
96,
2962,
325,
15,
17,
19198,
4201,
61,
121,
1499,
6,
96,
24626,
9,
229... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2026,
449,
19198,
4608,
14396,
121,
21680,
953,
834,
755,
1828,
1828,
549,
17444,
427,
96,
5110,
3690,
19722,
121,
3274,
3,
31,
6459,
154,
2,
29,
9,
226,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Set 3 with a Set 2 with 15 6? | CREATE TABLE table_name_58 (
set_3 VARCHAR,
set_2 VARCHAR
) | SELECT set_3 FROM table_name_58 WHERE set_2 = "15–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
356,
834,
519,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2821,
220,
28,
3,
9,
2821,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
356,
834,
519,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
356,
834,
357,
3274,
96,
1808,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the security forces with civilians of 67 | CREATE TABLE table_name_15 (
security_forces VARCHAR,
civilians VARCHAR
) | SELECT security_forces FROM table_name_15 WHERE civilians = "67" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
1034,
834,
10880,
7,
584,
4280,
28027,
6,
14705,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1034,
3859,
28,
14705,
7,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1034,
834,
10880,
7,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
14705,
7,
3274,
96,
3708,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find all reviews by Patrick with a rating above 4 | CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE tip (
tip_id int,
business_id va... | SELECT review.text FROM review, user WHERE review.rating > 4 AND user.name = 'Patrick' AND user.user_id = review.user_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
41,
3,
76,
23,
26,
16,
17,
6,
1139,
834,
23,
26,
3,
4331,
4059,
6,
564,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
691,
77,
41,
3,
10812,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1132,
5,
6327,
21680,
1132,
6,
1139,
549,
17444,
427,
1132,
5,
52,
1014,
2490,
314,
3430,
1139,
5,
4350,
3274,
3,
31,
20742,
2406,
31,
3430,
1139,
5,
10041,
834,
23,
26,
3274,
1132,
5,
10041,
834,
23,
26,
1,
-10... |
what's the premiere with hk viewers of 2.09 million | CREATE TABLE table_11174272_1 (
premiere VARCHAR,
hk_viewers VARCHAR
) | SELECT premiere FROM table_11174272_1 WHERE hk_viewers = "2.09 million" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
4581,
2555,
357,
834,
536,
41,
13539,
584,
4280,
28027,
6,
3,
107,
157,
834,
4576,
277,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
13539,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13539,
21680,
953,
834,
15866,
4581,
2555,
357,
834,
536,
549,
17444,
427,
3,
107,
157,
834,
4576,
277,
3274,
96,
4416,
4198,
770,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country has a compulsory deduction of 29.3%? | CREATE TABLE table_26872 (
"Rank" real,
"Country" text,
"Disposable USD 2011" real,
"Disposable USD growth" real,
"Compulsory deduction" text,
"Gross USD 2011" real
) | SELECT "Country" FROM table_26872 WHERE "Compulsory deduction" = '29.3%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4225,
357,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
23664,
32,
7,
179,
9513,
2722,
121,
490,
6,
96,
23664,
32,
7,
179,
9513,
1170,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
2688,
4225,
357,
549,
17444,
427,
96,
5890,
4801,
7,
127,
63,
20061,
121,
3274,
3,
31,
3166,
5,
5170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Juli's winning margin on Aug 24, 1986? | CREATE TABLE table_name_10 (
margin_of_victory VARCHAR,
date VARCHAR
) | SELECT margin_of_victory FROM table_name_10 WHERE date = "aug 24, 1986" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
9983,
31,
7,
3447,
6346,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
833,
3274,
96,
402,
122,
14320,
12698,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name of the highest rated wine? | 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 name FROM wine ORDER BY score 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,
564,
21680,
2013,
4674,
11300,
272,
476,
2604,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who did not have any job in the past, visualize a scatter chart about the correlation between salary and department_id . | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT SALARY, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4090,
24721,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613,
834,
10193,
10972... |
How many villages had 21.7% of slovenes in 1991? | CREATE TABLE table_10797463_1 (
village__german_ VARCHAR,
percent_of_slovenes_1991 VARCHAR
) | SELECT COUNT(village__german_) FROM table_10797463_1 WHERE percent_of_slovenes_1991 = "21.7%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4440,
4581,
3891,
834,
536,
41,
3309,
834,
834,
1304,
348,
834,
584,
4280,
28027,
6,
1093,
834,
858,
834,
7,
5850,
35,
15,
7,
834,
2294,
4729,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
208,
17614,
834,
834,
1304,
348,
834,
61,
21680,
953,
834,
1714,
4440,
4581,
3891,
834,
536,
549,
17444,
427,
1093,
834,
858,
834,
7,
5850,
35,
15,
7,
834,
2294,
4729,
3274,
96,
2658,
5,
6170,
12... |
Which Round has a Player of anthony christnovich? | CREATE TABLE table_name_72 (
round VARCHAR,
player VARCHAR
) | SELECT round FROM table_name_72 WHERE player = "anthony christnovich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
1751,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
65,
3,
9,
12387,
13,
46,
189,
106,
63,
3,
15294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1959,
3274,
96,
152,
189,
106,
63,
3,
15294,
5326,
362,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total for the player whose finish was t66? | CREATE TABLE table_name_70 (
total VARCHAR,
finish VARCHAR
) | SELECT total FROM table_name_70 WHERE finish = "t66" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
792,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
21,
8,
1959,
3,
2544,
1992,
47,
3,
17,
3539,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
792,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1992,
3274,
96,
17,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the drug type of LR? | 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 prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "LR" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
12564,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the rank of the player from Ukraine with react less than 0.26? | CREATE TABLE table_name_29 (rank VARCHAR, nationality VARCHAR, react VARCHAR) | SELECT COUNT(rank) FROM table_name_29 WHERE nationality = "ukraine" AND react < 0.26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
6254,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
8922,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
1959,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1157,
485,
3274,
96,
1598,
6559,
15,
121,
3430,
8922,
3,
2,
4097,
2688,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the total number of scientists. | CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE assignedto (
scientist number,
project text
)
CREATE TABLE scientists (
ssn number,
name text
) | SELECT COUNT(*) FROM scientists | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
1081,
1499,
6,
564,
1499,
6,
716,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7604,
235,
41,
17901,
381,
6,
516,
1499,
3,
61,
3,
32102,
32103,
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,
1935,
61,
21680,
7004,
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,
-... |
Which airport is associated with Macau? | CREATE TABLE table_name_71 (
airport VARCHAR,
city VARCHAR
) | SELECT airport FROM table_name_71 WHERE city = "macau" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
3761,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3761,
19,
1968,
28,
2143,
402,
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,
3761,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
690,
3274,
96,
11101,
402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the episode # for production code 227 | CREATE TABLE table_10269427_3 (episode__number VARCHAR, production_code VARCHAR) | SELECT episode__number FROM table_10269427_3 WHERE production_code = 227 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2688,
4240,
2555,
834,
519,
41,
15,
102,
159,
32,
221,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5640,
834,
834,
5525,
1152,
21680,
953,
834,
1714,
2688,
4240,
2555,
834,
519,
549,
17444,
427,
999,
834,
4978,
3274,
204,
2555,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many weeks in the top 10 was spent by a song performed by Peter Kay? | CREATE TABLE table_30000 (
"Entry Date [A ]" text,
"Single" text,
"Artist" text,
"Peak" real,
"Peak Reached [A ]" text,
"Weeks in top 10" real
) | SELECT MAX("Weeks in top 10") FROM table_30000 WHERE "Artist" = 'Peter Kay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
2313,
41,
96,
16924,
651,
7678,
784,
188,
3,
908,
121,
1499,
6,
96,
134,
53,
109,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
345,
15,
1639,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
1326,
16789,
16,
420,
335,
8512,
21680,
953,
834,
1458,
2313,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
345,
15,
449,
14168,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the Played that has the Club of club? | CREATE TABLE table_name_15 (played VARCHAR) | SELECT played FROM table_name_15 WHERE "club" = "club" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
4895,
15,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
2911,
15,
26,
24,
65,
8,
1949,
13,
1886,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1944,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
96,
13442,
121,
3274,
96,
13442,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How tall is the Anqing Bridge which opened prior to 2011? | CREATE TABLE table_name_8 (
height_of_bridge_structure VARCHAR,
opened VARCHAR,
name VARCHAR
) | SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
3902,
834,
858,
834,
9818,
834,
16180,
584,
4280,
28027,
6,
2946,
584,
4280,
28027,
6,
564,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3902,
834,
858,
834,
9818,
834,
16180,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
2946,
3,
2,
2722,
3430,
564,
3274,
96,
152,
1824,
53,
4716,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the total number of position for don clegg | CREATE TABLE table_19730892_1 (position VARCHAR, name VARCHAR) | SELECT COUNT(position) FROM table_19730892_1 WHERE name = "Don Clegg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
1458,
3914,
357,
834,
536,
41,
4718,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
1102,
21,
278,
3,
2482,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
27181,
1458,
3914,
357,
834,
536,
549,
17444,
427,
564,
3274,
96,
13843,
205,
109,
4102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade. | CREATE TABLE list (
grade VARCHAR,
classroom VARCHAR
) | SELECT grade, COUNT(DISTINCT classroom), COUNT(*) FROM list GROUP BY grade | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
570,
41,
2769,
584,
4280,
28027,
6,
4858,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
284,
2769,
6,
934,
8,
2769,
6,
8,
381,
13,
4858,
7,
16,
84,
34,
19,
4436,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2769,
6,
2847,
17161,
599,
15438,
25424,
6227,
4858,
201,
2847,
17161,
599,
1935,
61,
21680,
570,
350,
4630,
6880,
272,
476,
2769,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who did not have any job in the past, give me the comparison about the average of department_id over the hire_date bin hire_date by time, and could you display in asc by the y axis? | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID... | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(DEPARTMENT_ID) | [
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,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
430... |
Give the number of patients whose primary disease is cerebral aneurysm/sda and were admitted before the year 2200. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CEREBRAL ANEURYSM/SDA" AND demographic.admityear < "2200" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
4770,
4386,
279,
21415,
3,
5033,
26296,
476,
4212,
87,
134,
4296,
121,... |
What is the last game of the season that has the record 0-1-0? | CREATE TABLE table_50113 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT MIN("Game") FROM table_50113 WHERE "Record" = '0-1-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
20522,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23055,
8512,
21680,
953,
834,
1752,
20522,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
9498,
18930,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What rank does the person participating in American Civil war and indian wars? | CREATE TABLE table_name_65 (rank VARCHAR, active_service VARCHAR) | SELECT rank FROM table_name_65 WHERE active_service = "american civil war and indian wars" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
6254,
584,
4280,
28027,
6,
1676,
834,
5114,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
11003,
405,
8,
568,
7448,
16,
797,
7707,
615,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1676,
834,
5114,
3274,
96,
23064,
29,
3095,
615,
11,
16,
8603,
615,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Venue of the WCQ5 Competition? | CREATE TABLE table_name_49 (
venue VARCHAR,
competition VARCHAR
) | SELECT venue FROM table_name_49 WHERE competition = "wcq5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
5669,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
29940,
13,
8,
3,
10038,
2247,
755,
15571,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
2259,
3274,
96,
210,
75,
1824,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the date for acts of 6 bands and year larger than 1981 for monsters of rock | CREATE TABLE table_31595 (
"Year" real,
"Date" text,
"Event" text,
"Days" text,
"Stages" text,
"Acts" text
) | SELECT "Date" FROM table_31595 WHERE "Acts" = '6 bands' AND "Year" > '1981' AND "Event" = 'monsters of rock' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
1808,
3301,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
16803,
7,
121,
1499,
6,
96,
134,
6505,
7,
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,
308,
342,
121,
21680,
953,
834,
519,
1808,
3301,
549,
17444,
427,
96,
23312,
7,
121,
3274,
3,
31,
948,
9760,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4959,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
... |
What is the lowest Against, when Opposing Team is Queensland? | CREATE TABLE table_50310 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT MIN("Against") FROM table_50310 WHERE "Opposing Team" = 'queensland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
19947,
41,
96,
667,
102,
2748,
53,
2271,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20749,
8512,
21680,
953,
834,
1752,
19947,
549,
17444,
427,
96,
667,
102,
2748,
53,
2271,
121,
3274,
3,
31,
835,
35,
7,
40,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many titles have the name "quick callanetics"? | CREATE TABLE table_11222744_3 (catalog_number VARCHAR, title VARCHAR) | SELECT COUNT(catalog_number) FROM table_11222744_3 WHERE title = "Quick Callanetics" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2884,
2555,
3628,
834,
519,
41,
2138,
9,
2152,
834,
5525,
1152,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
8342,
43,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2138,
9,
2152,
834,
5525,
1152,
61,
21680,
953,
834,
2596,
2884,
2555,
3628,
834,
519,
549,
17444,
427,
2233,
3274,
96,
5991,
3142,
2571,
152,
7578,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Return a histogram on how many entrepreneurs correspond to each investor?, sort by the X in ascending. | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
) | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY Investor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
14230,
490,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
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,
16873,
6,
2847,
17161,
599,
1935,
61,
21680,
3,
12290,
350,
4630,
6880,
272,
476,
16873,
4674,
11300,
272,
476,
16873,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Tournament, when 1996 is '1R', and when 1990 is 'SF'? | CREATE TABLE table_44547 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text
) | SELECT "Tournament" FROM table_44547 WHERE "1996" = '1r' AND "1990" = 'sf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
4177,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
2394,
121,
1499,
6,
96,
2294,
4729,
121,
1499,
6,
96,
19479,
357,
121,
1499,
6,
96,
2294,
4271,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
591,
2128,
4177,
549,
17444,
427,
96,
2294,
4314,
121,
3274,
3,
31,
536,
52,
31,
3430,
96,
2294,
2394,
121,
3274,
3,
31,
7,
89,
31,
1,
-100,
-100,
-100,
-100,
-100... |
Name the number of names for exeter chiefs | CREATE TABLE table_25609 (
"Season" text,
"Name" text,
"Teams" real,
"Relegated to League" text,
"Promoted to League" text,
"Promoted from League" text,
"Relegated from League" text
) | SELECT COUNT("Name") FROM table_25609 WHERE "Promoted from League" = 'Exeter Chiefs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
4198,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
18699,
7,
121,
490,
6,
96,
1649,
8791,
26,
12,
3815,
121,
1499,
6,
96,
3174,
8888,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23954,
8512,
21680,
953,
834,
19337,
4198,
549,
17444,
427,
96,
3174,
8888,
15,
26,
45,
3815,
121,
3274,
3,
31,
5420,
15,
449,
5116,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of 2011 populations having a 2002 population of 29449? | CREATE TABLE table_2562572_2 (population__2011_ VARCHAR, population__2002_ VARCHAR) | SELECT COUNT(population__2011_) FROM table_2562572_2 WHERE population__2002_ = 29449 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
357,
41,
9791,
7830,
834,
834,
13907,
834,
584,
4280,
28027,
6,
2074,
834,
834,
24898,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9791,
7830,
834,
834,
13907,
834,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
357,
549,
17444,
427,
2074,
834,
834,
24898,
834,
3274,
204,
4240,
3647,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is admission type of subject id 2110? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "2110" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
2658,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many peaks where for the chinese episode named | CREATE TABLE table_31275 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
) | SELECT COUNT("Peak") FROM table_31275 WHERE "Chinese title" = '萬凰之王' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
25988,
41,
96,
22557,
121,
490,
6,
96,
26749,
2233,
121,
1499,
6,
96,
3541,
4477,
15,
2233,
121,
1499,
6,
96,
188,
624,
545,
121,
490,
6,
96,
345,
15,
1639,
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,
121,
345,
15,
1639,
8512,
21680,
953,
834,
3341,
25988,
549,
17444,
427,
96,
3541,
4477,
15,
2233,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the title in Canada? | CREATE TABLE table_29487895_2 (
title_in_country VARCHAR,
country___region VARCHAR
) | SELECT title_in_country FROM table_29487895_2 WHERE country___region = "Canada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3707,
3940,
3301,
834,
357,
41,
2233,
834,
77,
834,
17529,
584,
4280,
28027,
6,
684,
834,
834,
834,
18145,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
834,
77,
834,
17529,
21680,
953,
834,
3166,
3707,
3940,
3301,
834,
357,
549,
17444,
427,
684,
834,
834,
834,
18145,
3274,
96,
28811,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is minimum age of patients whose gender is f and age is greater than or equal to 89? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.age >= "89" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
545,
2490,
2423,
96,
3914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the diagnoses title of subject id 76446. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "76446" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18730,
7,
5,
7,
14184,
834,
21869,
21680,
18730,
7,
549,
17444,
427,
18730,
7,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3959,
591,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the college for david carter | CREATE TABLE table_28760 (
"Round" real,
"Overall pick" real,
"NFL team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_28760 WHERE "Player" = 'David Carter' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
28212,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
1432,
121,
490,
6,
96,
12619,
434,
372,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9939,
7883,
121,
21680,
953,
834,
2577,
28212,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
308,
9,
6961,
17080,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the place that was founded in 1920 | CREATE TABLE table_262560_1 (
institution VARCHAR,
founded VARCHAR
) | SELECT institution FROM table_262560_1 WHERE founded = 1920 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1828,
3328,
834,
536,
41,
6568,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
286,
24,
47,
5710,
16,
13978,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6568,
21680,
953,
834,
2688,
1828,
3328,
834,
536,
549,
17444,
427,
5710,
3274,
13978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest number pick from san diego chargers? | CREATE TABLE table_name_3 (pick INTEGER, team VARCHAR) | SELECT MIN(pick) FROM table_name_3 WHERE team = "san diego chargers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
17967,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
1432,
45,
3,
7,
152,
67,
839,
17020,
7,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17967,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
372,
3274,
96,
7,
152,
67,
839,
17020,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest Attendance when Middlesbrough played at Venue A? | CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, venue VARCHAR) | SELECT MIN(attendance) FROM table_name_34 WHERE opponent = "middlesbrough" AND venue = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
15116,
663,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
22497,
663,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
15264,
3274,
96,
6983,
26,
965,
115,
13245,
121,
3430,
5669,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average number of points for a song ranked 2nd with a draw greater than 3? | CREATE TABLE table_name_35 (
points INTEGER,
rank VARCHAR,
draw VARCHAR
) | SELECT AVG(points) FROM table_name_35 WHERE rank = "2nd" AND draw > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
979,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
3314,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
979,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
11003,
3274,
96,
357,
727,
121,
3430,
3314,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.