NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What class has nsr250 as the machine, with points greater than 97? | CREATE TABLE table_name_45 (
class VARCHAR,
machine VARCHAR,
points VARCHAR
) | SELECT class FROM table_name_45 WHERE machine = "nsr250" AND points > 97 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
853,
584,
4280,
28027,
6,
1437,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
853,
65,
3,
29,
7,
52,
11434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1437,
3274,
96,
29,
7,
52,
11434,
121,
3430,
979,
2490,
3,
4327,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the average attendance when marathon was the away team? | CREATE TABLE table_name_6 (attendance INTEGER, away VARCHAR) | SELECT AVG(attendance) FROM table_name_6 WHERE away = "marathon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
15116,
663,
3,
21342,
17966,
6,
550,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
11364,
116,
17625,
47,
8,
550,
372,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
550,
3274,
96,
1635,
24718,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Plot calendar date by how many calendar date as a line chart, list x-axis in descending order please. | CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Ref_Calendar (
Calendar_Date DATETIME,
Day_Number INTEGER
)
CREATE TABLE Ref_Locations (
Location_Code CHAR(15),
Location_Name VARCHAR(255),
Location_Description VARCHAR(255)
)
CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE Employees (
Employee_ID INTEGER,
Role_Code CHAR(15),
Employee_Name VARCHAR(255),
Gender_MFU CHAR(1),
Date_of_Birth DATETIME,
Other_Details VARCHAR(255)
) | SELECT Calendar_Date, COUNT(Calendar_Date) FROM Ref_Calendar ORDER BY Calendar_Date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
834,
434,
32,
75,
1628,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
10450,
834,
22737,
3,
28027,
599,
1808,
201,
7678,
834,
77,
834,
434,
32,
75,
257,
834,
22674,
309,
6048,
382... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18783,
834,
308,
342,
6,
2847,
17161,
599,
14318,
35,
3439,
834,
308,
342,
61,
21680,
419,
89,
834,
14318,
35,
3439,
4674,
11300,
272,
476,
18783,
834,
308,
342,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the name of customers who have both saving and checking account types. | CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABLE loan (
loan_id text,
loan_type text,
cust_id text,
branch_id text,
amount number
) | SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2137,
41,
6421,
834,
23,
26,
381,
6,
3,
115,
4350,
1499,
6,
150,
834,
858,
834,
25697,
277,
381,
6,
690,
1499,
6,
538,
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,
123,
7,
17,
834,
4350,
21680,
884,
549,
17444,
427,
3,
6004,
834,
6137,
3274,
3,
31,
18265,
31,
3,
21342,
5249,
14196,
3,
23143,
14196,
123,
7,
17,
834,
4350,
21680,
884,
549,
17444,
427,
3,
6004,
834,
6137,
3274,... |
What is the class of the a1 bm type? | CREATE TABLE table_64259 (
"Class" text,
"Railway number(s)" text,
"Quantity" text,
"Year(s) of manufacture" text,
"Type" text
) | SELECT "Class" FROM table_64259 WHERE "Type" = 'a1 bm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
357,
3390,
41,
96,
21486,
121,
1499,
6,
96,
448,
9,
173,
1343,
381,
599,
7,
61,
121,
1499,
6,
96,
5991,
288,
485,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
13,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
121,
21680,
953,
834,
4389,
357,
3390,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
9,
536,
3,
115,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Neon has a Argon of 189.6? | CREATE TABLE table_59217 (
"Physical property" text,
"Helium" text,
"Neon" text,
"Argon" text,
"Krypton" text,
"Xenon" text
) | SELECT "Neon" FROM table_59217 WHERE "Argon" = '−189.6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
357,
2517,
41,
96,
16977,
7,
1950,
785,
121,
1499,
6,
96,
3845,
40,
2552,
121,
1499,
6,
96,
567,
15,
106,
121,
1499,
6,
96,
16627,
106,
121,
1499,
6,
96,
439,
651... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
15,
106,
121,
21680,
953,
834,
3390,
357,
2517,
549,
17444,
427,
96,
16627,
106,
121,
3274,
3,
31,
2,
25312,
5,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what year has the highest marcel granollers champions? | CREATE TABLE table_4628 (
"Location" text,
"Year" real,
"Champion" text,
"Runner-up" text,
"Score" text
) | SELECT MAX("Year") FROM table_4628 WHERE "Champion" = 'marcel granollers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
2577,
41,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
9022,
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,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4448,
2577,
549,
17444,
427,
96,
254,
1483,
12364,
121,
3274,
3,
31,
1635,
7125,
3,
7662,
32,
195,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which player is from Australia? | CREATE TABLE table_78738 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Player" FROM table_78738 WHERE "Country" = 'australia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
940,
3747,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3940,
940,
3747,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
2064,
8792,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the winner in the 2008 season? | CREATE TABLE table_name_53 (
winner VARCHAR,
season VARCHAR
) | SELECT winner FROM table_name_53 WHERE season = 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
4668,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4668,
16,
8,
2628,
774,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
774,
3274,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total mumber of skip (club) entries when the pf is 40? | CREATE TABLE table_29546218_3 (skip__club_ VARCHAR, pf VARCHAR) | SELECT COUNT(skip__club_) FROM table_29546218_3 WHERE pf = 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
5062,
4056,
2606,
834,
519,
41,
4009,
102,
834,
834,
13442,
834,
584,
4280,
28027,
6,
3,
102,
89,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4009,
102,
834,
834,
13442,
834,
61,
21680,
953,
834,
3166,
5062,
4056,
2606,
834,
519,
549,
17444,
427,
3,
102,
89,
3274,
1283,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is L2 Cache, when Model Number is Pentium II 350? | CREATE TABLE table_name_54 (l2_cache VARCHAR, model_number VARCHAR) | SELECT l2_cache FROM table_name_54 WHERE model_number = "pentium ii 350" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
40,
357,
834,
75,
4933,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
301,
357,
205,
4933,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
40,
357,
834,
75,
4933,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
825,
834,
5525,
1152,
3274,
96,
102,
295,
2552,
3,
23,
23,
10239,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Team 2 has a Captain 1 of final? | CREATE TABLE table_name_87 (
team_2 VARCHAR,
captain_1 VARCHAR
) | SELECT team_2 FROM table_name_87 WHERE captain_1 = "final" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
372,
834,
357,
584,
4280,
28027,
6,
14268,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2271,
204,
65,
3,
9,
12202,
209,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
357,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
14268,
834,
536,
3274,
96,
12406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the total number of grid for 30 | CREATE TABLE table_17271495_1 (
grid VARCHAR,
points VARCHAR
) | SELECT COUNT(grid) FROM table_17271495_1 WHERE points = "30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2555,
2534,
3301,
834,
536,
41,
8634,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
8634,
21,
604,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3496,
26,
61,
21680,
953,
834,
2517,
2555,
2534,
3301,
834,
536,
549,
17444,
427,
979,
3274,
96,
1458,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the location of the National event with Kevin Martin winning? | CREATE TABLE table_name_49 (
location VARCHAR,
winning_skip VARCHAR,
event VARCHAR
) | SELECT location FROM table_name_49 WHERE winning_skip = "kevin martin" AND event = "the national" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1128,
584,
4280,
28027,
6,
3447,
834,
4009,
102,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1128,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
3447,
834,
4009,
102,
3274,
96,
1050,
2494,
3157,
17,
77,
121,
3430,
605,
3274,
96,
532,
1157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the number of trains | CREATE TABLE train (
Id VARCHAR
) | SELECT COUNT(*) FROM train | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
381,
13,
14053,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2412,
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,
-... |
What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals? | CREATE TABLE table_name_67 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) | SELECT SUM(rank) FROM table_name_67 WHERE gold > 2 AND total < 31 AND silver < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
6254,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2045,
2490,
204,
3430,
792,
3,
2,
2664,
3430,
4294,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the championship game for the Southwest conference? | CREATE TABLE table_name_63 (championship_game VARCHAR, conference VARCHAR) | SELECT championship_game FROM table_name_63 WHERE conference = "southwest" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
17788,
12364,
2009,
834,
7261,
584,
4280,
28027,
6,
2542,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
10183,
467,
21,
8,
21423,
2542... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10183,
834,
7261,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2542,
3274,
96,
7,
670,
107,
12425,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the score for a report of AFC on April 4, 2008? | CREATE TABLE table_name_18 (score VARCHAR, report VARCHAR, date VARCHAR) | SELECT score FROM table_name_18 WHERE report = "afc" AND date = "april 4, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
7,
9022,
584,
4280,
28027,
6,
934,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
3,
9,
934,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
934,
3274,
96,
9,
89,
75,
121,
3430,
833,
3274,
96,
9,
2246,
40,
6464,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List all the activities we have. | CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
)
CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE participates_in (
stuid number,
actid number
) | SELECT activity_name FROM activity | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6040,
41,
7076,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
11003,
1499,
6,
3,
7,
994,
1499,
6,
951,
381,
6,
562,
1499,
6,
740,
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,
1756,
834,
4350,
21680,
1756,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many points did she have with team bultaco, ranked 6th? | CREATE TABLE table_name_40 (
points INTEGER,
team VARCHAR,
rank VARCHAR
) | SELECT SUM(points) FROM table_name_40 WHERE team = "bultaco" AND rank = "6th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
979,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
410,
255,
43,
28,
372,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
372,
3274,
96,
6724,
17,
9,
509,
121,
3430,
11003,
3274,
96,
948,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth? | CREATE TABLE table_name_45 (height__m_ INTEGER, peak VARCHAR, class VARCHAR, prom__m_ VARCHAR) | SELECT AVG(height__m_) FROM table_name_45 WHERE class = "hewitt" AND prom__m_ < 86 AND peak = "gragareth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
88,
2632,
834,
834,
51,
834,
3,
21342,
17966,
6,
6734,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
15207,
834,
834,
51,
834,
584,
4280,
28027,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
88,
2632,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
853,
3274,
96,
88,
7820,
17,
121,
3430,
15207,
834,
834,
51,
834,
3,
2,
3,
3840,
3430,
6734,
3274,
96,
3484,
14... |
how many passengers were handled in an airport in spain ? | CREATE TABLE table_203_340 (
id number,
"rank" number,
"airport" text,
"passengers handled" number,
"% change 2011 / 12" number
) | SELECT SUM("passengers handled") FROM table_203_340 WHERE "airport" = 'spain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
21129,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
2256,
1493,
121,
1499,
6,
96,
3968,
4606,
277,
10298,
121,
381,
6,
96,
1454,
483,
2722,
3,
87,
586,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
3968,
4606,
277,
10298,
8512,
21680,
953,
834,
23330,
834,
21129,
549,
17444,
427,
96,
2256,
1493,
121,
3274,
3,
31,
14147,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the the incumbent with opponent being anthony weiner (d) unopposed | CREATE TABLE table_13833770_3 (incumbent VARCHAR, opponent VARCHAR) | SELECT incumbent FROM table_13833770_3 WHERE opponent = "Anthony Weiner (D) unopposed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
4201,
26920,
834,
519,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
8,
28406,
28,
15264,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28406,
21680,
953,
834,
22744,
4201,
26920,
834,
519,
549,
17444,
427,
15264,
3274,
96,
188,
29,
189,
106,
63,
9819,
49,
41,
308,
61,
73,
28236,
3843,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average capacity for rooms in each building? Draw a bar chart, and display bars in asc order. | CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
) | SELECT building, AVG(capacity) FROM classroom GROUP BY building ORDER BY building | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
2233,
3,
4331,
4059,
599,
1752,
201,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
11893,
206,
17552,
599,
4482,
632,
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,
740,
6,
71,
17217,
599,
4010,
9,
6726,
61,
21680,
4858,
350,
4630,
6880,
272,
476,
740,
4674,
11300,
272,
476,
740,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose days of hospital stay is greater than 1 and diagnoses icd9 code is 99859? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "1" AND diagnoses.icd9_code = "99859" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What date was the ship 'Wyandotte' launched? | CREATE TABLE table_69334 (
"Ship" text,
"Builder" text,
"Namesake" text,
"Renamed" text,
"Laid down" text,
"Launched" text,
"Commissioned or completed(*)" text
) | SELECT "Launched" FROM table_69334 WHERE "Ship" = 'wyandotte' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
519,
3710,
41,
96,
134,
10462,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
23954,
7,
9,
1050,
121,
1499,
6,
96,
1649,
4350,
26,
121,
1499,
6,
96,
434,
6146,
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,
96,
3612,
202,
4513,
121,
21680,
953,
834,
3951,
519,
3710,
549,
17444,
427,
96,
134,
10462,
121,
3274,
3,
31,
210,
63,
232,
14708,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
A scatter, shows the correlation between the maximum price and the score of wines for each year. | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
) | SELECT MAX(Price), MAX(Score) FROM wine GROUP BY MAX(Price) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
9426,
651,
3,
3463,
4,
382,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5570,
3,
3463,
4,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
345,
4920,
201,
4800,
4,
599,
134,
9022,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
4800,
4,
599,
345,
4920,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the name , and group by attribute name by a bar chart, and I want to list by the bar from low to high. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
4416,
2... |
What's the latest year the miss internet www pageant had a result of second runner-up? | CREATE TABLE table_name_80 (year INTEGER, pageant VARCHAR, result VARCHAR) | SELECT MAX(year) FROM table_name_80 WHERE pageant = "miss internet www" AND result = "second runner-up" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1201,
3,
21342,
17966,
6,
543,
288,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1251,
215,
8,
3041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
543,
288,
3274,
96,
11502,
1396,
2442,
121,
3430,
741,
3274,
96,
12091,
3,
10806,
18,
413,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the ids of the movies that are not reviewed by Brittany Harris. | CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE reviewer (
rid number,
name text
) | SELECT mid FROM rating EXCEPT SELECT T1.mid FROM rating AS T1 JOIN reviewer AS T2 ON T1.rid = T2.rid WHERE T2.name = "Brittany Harris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
2076,
381,
6,
2233,
1499,
6,
215,
381,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5773,
41,
5413,
381,
6,
2076,
381,
6,
4811,
381,
6,
5773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2076,
21680,
5773,
262,
4,
30416,
3,
23143,
14196,
332,
5411,
6983,
21680,
5773,
6157,
332,
536,
3,
15355,
3162,
1132,
49,
6157,
332,
357,
9191,
332,
5411,
4055,
3274,
332,
4416,
4055,
549,
17444,
427,
332,
4416,
4350... |
What is the Draw that has Points larger than 44 and a Place larger than 1? | CREATE TABLE table_name_92 (draw INTEGER, points VARCHAR, place VARCHAR) | SELECT AVG(draw) FROM table_name_92 WHERE points > 44 AND place > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
19489,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
19183,
24,
65,
4564,
7,
2186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
19489,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
979,
2490,
8537,
3430,
286,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What country won in 1977? | CREATE TABLE table_name_46 (
country VARCHAR,
year_s__won VARCHAR
) | SELECT country FROM table_name_46 WHERE year_s__won = "1977" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
684,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
751,
16,
16433,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which player 's average is higher than ira gooch 's ? | CREATE TABLE table_203_8 (
id number,
"player" text,
"rec." number,
"yards" number,
"avg." number,
"td's" number,
"long" number
) | SELECT "player" FROM table_203_8 WHERE "avg." > (SELECT "avg." FROM table_203_8 WHERE "player" = 'ira gooch') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
927,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
60,
75,
535,
381,
6,
96,
6636,
7,
121,
381,
6,
96,
9,
208,
122,
535,
381,
6,
96,
17,
26,
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,
96,
20846,
121,
21680,
953,
834,
23330,
834,
927,
549,
17444,
427,
96,
9,
208,
122,
535,
2490,
41,
23143,
14196,
96,
9,
208,
122,
535,
21680,
953,
834,
23330,
834,
927,
549,
17444,
427,
96,
20846,
121,
3274,
3,
31... |
On May 8 what series is it? | CREATE TABLE table_name_41 (
series VARCHAR,
date VARCHAR
) | SELECT series FROM table_name_41 WHERE date = "may 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
939,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
932,
505,
125,
939,
19,
34,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
833,
3274,
96,
13726,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart, count and group by nationality from the journalist table, list X in descending order please. | CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
) | SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality ORDER BY Nationality DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
9994,
834,
4309,
16,
17,
6,
5570,
1499,
6,
868,
485,
1499,
6,
7526,
1499,
6,
13825,
834,
9238,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1506,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
2847,
17161,
599,
24732,
485,
61,
21680,
9994,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
868,
485,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest draw represented? | CREATE TABLE table_19523708_1 (draw INTEGER) | SELECT MAX(draw) FROM table_19523708_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
357,
4118,
4018,
834,
536,
41,
19489,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
3314,
7283,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
19489,
61,
21680,
953,
834,
22464,
357,
4118,
4018,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score in the tournament in which Michael Stich took third place? | CREATE TABLE table_name_32 (score VARCHAR, third_place VARCHAR) | SELECT score FROM table_name_32 WHERE third_place = "michael stich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
7,
9022,
584,
4280,
28027,
6,
1025,
834,
4687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
16,
8,
5892,
16,
84,
2457,
472,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1025,
834,
4687,
3274,
96,
51,
362,
9,
15,
40,
3,
7,
17,
362,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In which season was the Away record 2-2 and At Home record 1-0? | CREATE TABLE table_name_33 (
season VARCHAR,
away VARCHAR,
home VARCHAR
) | SELECT season FROM table_name_33 WHERE away = "2-2" AND home = "1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
774,
584,
4280,
28027,
6,
550,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
774,
47,
8,
71,
1343,
1368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
550,
3274,
96,
22451,
121,
3430,
234,
3274,
96,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which To par has a Player of johanna head? | CREATE TABLE table_name_87 (
to_par VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_87 WHERE player = "johanna head" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
304,
260,
65,
3,
9,
12387,
13,
3,
1927,
107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1959,
3274,
96,
1927,
107,
10878,
819,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Return a bar chart showing how many shops in each location, I want to display X from high to low order. | CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applications text,
Software_Platform text
)
CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Date text,
Open_Year int
)
CREATE TABLE stock (
Shop_ID int,
Device_ID int,
Quantity int
) | SELECT Location, COUNT(Location) FROM shop GROUP BY Location ORDER BY Location DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1407,
41,
15511,
834,
4309,
16,
17,
6,
15511,
1499,
6,
1184,
6711,
1499,
6,
14815,
834,
5000,
1938,
1499,
6,
15148,
1499,
6,
4300,
834,
10146,
2032,
1499,
3,
61,
3,
32102,
32103,
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,
10450,
6,
2847,
17161,
599,
434,
32,
75,
257,
61,
21680,
1814,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
10450,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the margin of victory when the winning score was −9 (72-68-64-67=271)? | CREATE TABLE table_name_84 (margin_of_victory VARCHAR, winning_score VARCHAR) | SELECT margin_of_victory FROM table_name_84 WHERE winning_score = −9(72 - 68 - 64 - 67 = 271) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
1635,
122,
77,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
2,
1298,
599,
5865,
3,
18,
3,
3651,
3,
18,
6687,
3,
18,
3,
3708,
3274,
2307,
6982,
1,
-100,
-100,... |
What is the number of cores associated with model name e2xxx? | CREATE TABLE table_26574 (
"Processor" text,
"Brand name" text,
"Model (list)" text,
"Cores" real,
"L2 Cache" text,
"Socket" text,
"TDP" text
) | SELECT "Cores" FROM table_26574 WHERE "Model (list)" = 'E2xxx' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3436,
591,
41,
96,
3174,
75,
24901,
121,
1499,
6,
96,
18304,
727,
564,
121,
1499,
6,
96,
24663,
41,
3350,
61,
121,
1499,
6,
96,
254,
14846,
121,
490,
6,
96,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
14846,
121,
21680,
953,
834,
2688,
3436,
591,
549,
17444,
427,
96,
24663,
41,
3350,
61,
121,
3274,
3,
31,
427,
357,
226,
19230,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which party has a voting total greater than 4,478? | CREATE TABLE table_62851 (
"Year" text,
"Subject" text,
"Party" text,
"Votes" real,
"Opponent" text
) | SELECT "Party" FROM table_62851 WHERE "Votes" > '4,478' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
4433,
536,
41,
96,
476,
2741,
121,
1499,
6,
96,
25252,
11827,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
553,
32,
1422,
121,
490,
6,
96,
667,
102,
9977,
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,
13725,
63,
121,
21680,
953,
834,
4056,
4433,
536,
549,
17444,
427,
96,
553,
32,
1422,
121,
2490,
3,
31,
8525,
591,
3940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many times did the Bruins play Tennessee? | CREATE TABLE table_23785 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Bruins points" real,
"Opponents" real,
"Record" text
) | SELECT COUNT("Result") FROM table_23785 WHERE "Opponent" = 'Tennessee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4118,
4433,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
279,
23162,
979,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20119,
8512,
21680,
953,
834,
357,
4118,
4433,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
382,
35,
655,
15,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
At census ranking 1,184 of 5,008, what was the minimum population? | CREATE TABLE table_1596 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) | SELECT MIN("Population") FROM table_1596 WHERE "Census Ranking" = '1,184 of 5,008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4314,
41,
96,
667,
89,
22816,
5570,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
188,
864,
2280,
204,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
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,
3,
17684,
599,
121,
27773,
7830,
8512,
21680,
953,
834,
1808,
4314,
549,
17444,
427,
96,
254,
35,
7,
302,
29153,
121,
3274,
3,
31,
4347,
25987,
13,
7836,
1206,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was McCain's percentage when Obama had 64.39% of the vote? | CREATE TABLE table_23846 (
"Parish" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real
) | SELECT "McCain%" FROM table_23846 WHERE "Obama%" = '64.39%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3747,
4448,
41,
96,
13212,
1273,
121,
1499,
6,
96,
667,
115,
265,
9,
1454,
121,
1499,
6,
96,
667,
115,
265,
9,
4663,
121,
490,
6,
96,
329,
75,
254,
9,
77,
1454,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
75,
254,
9,
77,
1454,
121,
21680,
953,
834,
357,
3747,
4448,
549,
17444,
427,
96,
667,
115,
265,
9,
1454,
121,
3274,
3,
31,
948,
21841,
7561,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Years in Orlando has a School/Club Team of kentucky? | CREATE TABLE table_name_96 (years_in_orlando VARCHAR, school_club_team VARCHAR) | SELECT years_in_orlando FROM table_name_96 WHERE school_club_team = "kentucky" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1201,
7,
834,
77,
834,
32,
7721,
32,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13825,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
77,
834,
32,
7721,
32,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
2217,
17,
4636,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How much has dave stockton earned? | CREATE TABLE table_name_41 (
earnings__ INTEGER,
player VARCHAR
) | SELECT MAX(earnings__) AS $__ FROM table_name_41 WHERE player = "dave stockton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
8783,
834,
834,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
65,
836,
162,
1519,
17,
106,
4964,
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,
4800,
4,
599,
2741,
29,
53,
7,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1959,
3274,
96,
26,
9,
162,
1519,
17,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the total number of horses on farms in ascending order. | CREATE TABLE city (
city_id number,
official_name text,
status text,
area_km_2 number,
population number,
census_ranking text
)
CREATE TABLE competition_record (
competition_id number,
farm_id number,
rank number
)
CREATE TABLE farm_competition (
competition_id number,
year number,
theme text,
host_city_id number,
hosts text
)
CREATE TABLE farm (
farm_id number,
year number,
total_horses number,
working_horses number,
total_cattle number,
oxen number,
bulls number,
cows number,
pigs number,
sheep_and_goats number
) | SELECT total_horses FROM farm ORDER BY total_horses | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,
834,
23,
26,
381,
6,
2314,
834,
4350,
1499,
6,
2637,
1499,
6,
616,
834,
5848,
834,
357,
381,
6,
2074,
381,
6,
23087,
834,
6254,
53,
1499,
3,
61,
3,
32102,
32103,
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,
792,
834,
107,
127,
2260,
21680,
3797,
4674,
11300,
272,
476,
792,
834,
107,
127,
2260,
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 TOTAL WITH WARD LARGER THAN 60? | CREATE TABLE table_name_96 (total INTEGER, ward INTEGER) | SELECT MIN(total) FROM table_name_96 WHERE ward > 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
235,
1947,
3,
21342,
17966,
6,
3,
2239,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3001,
16359,
11951,
549,
10327,
3,
22492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
3,
2239,
2490,
1640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score on may 21? | CREATE TABLE table_8003 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "Score" FROM table_8003 WHERE "Date" = 'may 21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6192,
519,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
6192,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
1401,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the country with less than 9.033 for swimsuit, 8.611 for interview and preliminary is less than 8.87? | CREATE TABLE table_name_50 (
country VARCHAR,
preliminary VARCHAR,
swimsuit VARCHAR,
interview VARCHAR
) | SELECT country FROM table_name_50 WHERE swimsuit < 9.033 AND interview = 8.611 AND preliminary < 8.87 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
684,
584,
4280,
28027,
6,
17413,
584,
4280,
28027,
6,
9728,
7628,
584,
4280,
28027,
6,
2772,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
9728,
7628,
3,
2,
5835,
4928,
519,
3430,
2772,
3274,
4848,
4241,
536,
3430,
17413,
3,
2,
4848,
4225,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many writers are listed for the episode with a production code of 5008? | CREATE TABLE table_17482534_1 (written_by VARCHAR, production_code VARCHAR) | SELECT COUNT(written_by) FROM table_17482534_1 WHERE production_code = "5008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3707,
1828,
3710,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5943,
33,
2616,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14973,
834,
969,
61,
21680,
953,
834,
2517,
3707,
1828,
3710,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
2560,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the UNGEGN, when the Value is 10 000? | CREATE TABLE table_70098 (
"Value" text,
"Khmer" real,
"Word Form" text,
"UNGEGN" text,
"ALA-LC" text,
"Notes" text
) | SELECT "UNGEGN" FROM table_70098 WHERE "Value" = '10 000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9295,
3916,
41,
96,
18392,
76,
15,
121,
1499,
6,
96,
439,
107,
935,
121,
490,
6,
96,
518,
127,
26,
3025,
121,
1499,
6,
96,
25158,
8579,
567,
121,
1499,
6,
96,
23634,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25158,
8579,
567,
121,
21680,
953,
834,
9295,
3916,
549,
17444,
427,
96,
18392,
76,
15,
121,
3274,
3,
31,
1714,
6078,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For each manufacturer, what are the names and prices of their most expensive product?, and order y axis in descending order. | 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 T1.Name, MAX(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY MAX(T1.Price) DESC | [
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,
5411,
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,
... |
Who won for Forsythe Racing when Bobby Rahal had pole position? | CREATE TABLE table_4526 (
"Name" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
) | SELECT "Name" FROM table_4526 WHERE "Winning team" = 'forsythe racing' AND "Pole Position" = 'bobby rahal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
2688,
41,
96,
23954,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4377,
325,
102,
121,
1499,
6,
96,
518,
10503,
2535,
121,
1499,
6,
96,
518,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
2128,
2688,
549,
17444,
427,
96,
518,
10503,
372,
121,
3274,
3,
31,
1161,
7,
63,
532,
8191,
31,
3430,
96,
8931,
15,
14258,
121,
3274,
3,
31,
17396,
969,
3,
52,
9,
3828,
31,
1,
... |
what was the score on 6 june 2010? | CREATE TABLE table_name_82 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_82 WHERE date = "6 june 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
47,
8,
2604,
30,
431,
3,
6959,
15,
2735,
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,
2604,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
833,
3274,
96,
948,
3,
6959,
15,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where is the transmitter located for the station voice of vietnam | CREATE TABLE table_64208 (
"Frequency" text,
"Station" text,
"Operator" text,
"Country of origin" text,
"Transmitter location" text,
"Format" text
) | SELECT "Transmitter location" FROM table_64208 WHERE "Station" = 'voice of vietnam' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
23946,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
134,
6821,
121,
1499,
6,
96,
667,
883,
1016,
121,
1499,
6,
96,
10628,
651,
13,
5233,
121,
1499,
6,
96,
18474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18474,
1538,
449,
1128,
121,
21680,
953,
834,
4389,
23946,
549,
17444,
427,
96,
134,
6821,
121,
3274,
3,
31,
23235,
13,
2240,
17,
13363,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What type ride is Wild Asia that opened in 2000? | CREATE TABLE table_79900 (
"Ride name" text,
"Type" text,
"Opened in" real,
"Themed land" text,
"Manufacturer" text
) | SELECT "Type" FROM table_79900 WHERE "Themed land" = 'wild asia' AND "Opened in" = '2000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
7015,
41,
96,
448,
1599,
564,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
22696,
15,
26,
16,
121,
490,
6,
96,
634,
2726,
1322,
121,
1499,
6,
96,
7296,
76,
8717,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25160,
121,
21680,
953,
834,
4440,
7015,
549,
17444,
427,
96,
634,
2726,
1322,
121,
3274,
3,
31,
23282,
3,
15974,
31,
3430,
96,
22696,
15,
26,
16,
121,
3274,
3,
31,
13527,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the fewest points opponents have scored when the Cowboys score 36? | CREATE TABLE table_25309 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Cowboys points" real,
"Opponents" real,
"Record" text
) | SELECT MIN("Opponents") FROM table_25309 WHERE "Cowboys points" = '36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
1458,
1298,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
254,
2381,
7531,
7,
979,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
667,
102,
9977,
7,
8512,
21680,
953,
834,
1828,
1458,
1298,
549,
17444,
427,
96,
254,
2381,
7531,
7,
979,
121,
3274,
3,
31,
3420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the position of Jon Perlman? | CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_94 WHERE player = "jon perlman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1102,
13,
8178,
1915,
40,
348,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1959,
3274,
96,
15429,
399,
40,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want the player for NHL team for mighty ducks of anaheim | CREATE TABLE table_4419 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Player" FROM table_4419 WHERE "NHL team" = 'mighty ducks of anaheim' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
2294,
41,
96,
345,
3142,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3628,
2294,
549,
17444,
427,
96,
15743,
434,
372,
121,
3274,
3,
31,
21553,
14938,
7,
13,
46,
9,
3254,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who won the III Coppa Acerbo title? | CREATE TABLE table_67325 (
"Year" text,
"Driver/s" text,
"Class" text,
"Vehicle" text,
"Race title" text
) | SELECT "Driver/s" FROM table_67325 WHERE "Race title" = 'iii coppa acerbo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
519,
1828,
41,
96,
476,
2741,
121,
1499,
6,
96,
20982,
52,
87,
7,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
553,
15,
107,
23,
2482,
121,
1499,
6,
96,
448,
3302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
87,
7,
121,
21680,
953,
834,
3708,
519,
1828,
549,
17444,
427,
96,
448,
3302,
2233,
121,
3274,
3,
31,
23,
23,
23,
7326,
102,
9,
3,
9,
2110,
115,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the club team for overall of 188 for canada | CREATE TABLE table_name_72 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR) | SELECT club_team FROM table_name_72 WHERE nationality = "canada" AND overall = 188 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
13442,
834,
11650,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1886,
372,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1886,
834,
11650,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1157,
485,
3274,
96,
658,
18089,
121,
3430,
1879,
3274,
3,
25794,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who won when robert kudelski finished with under 13 weeks? | CREATE TABLE table_51773 (
"Season" text,
"# of Stars" real,
"# of Weeks" real,
"Season Premiere Date" text,
"Season Finale Date" text,
"Winner" text,
"Runner-up" text,
"Third place" text
) | SELECT "Winner" FROM table_51773 WHERE "# of Weeks" < '13' AND "Third place" = 'robert kudelski' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2517,
4552,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
4663,
13,
2042,
7,
121,
490,
6,
96,
4663,
13,
6551,
7,
121,
490,
6,
96,
134,
15,
9,
739,
6552,
15,
7678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
687,
121,
21680,
953,
834,
755,
2517,
4552,
549,
17444,
427,
96,
4663,
13,
6551,
7,
121,
3,
2,
3,
31,
2368,
31,
3430,
96,
382,
9288,
26,
286,
121,
3274,
3,
31,
5840,
49,
17,
3,
157,
27052,
4009,
31,... |
What is the score of the tournament on November 5, 2007 with a carpet surface? | CREATE TABLE table_name_90 (score VARCHAR, surface VARCHAR, date VARCHAR) | SELECT score FROM table_name_90 WHERE surface = "carpet" AND date = "november 5, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
7,
9022,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
5892,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1774,
3274,
96,
1720,
4995,
121,
3430,
833,
3274,
96,
5326,
18247,
7836,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the location of 11 April 2013 and Mexico Home team? | CREATE TABLE table_name_8 (
location VARCHAR,
home_team VARCHAR,
date VARCHAR
) | SELECT location FROM table_name_8 WHERE home_team = "mexico" AND date = "11 april 2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
1128,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
850,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
234,
834,
11650,
3274,
96,
51,
994,
5807,
121,
3430,
833,
3274,
96,
2596,
3,
9,
2246,
40,
2038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which rank took place prior to 2000 when the bike was bsl? | CREATE TABLE table_10907 (
"Year" real,
"Class" text,
"Bike" text,
"Rank" text,
"Points" real
) | SELECT "Rank" FROM table_10907 WHERE "Year" < '2000' AND "Bike" = 'bsl' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17304,
4560,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
17304,
4560,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
13527,
31,
3430,
96,
279,
5208,
121,
3274,
3,
31,
115,
7,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What city of license has A as a class, and cbec-fm as the identifier? | CREATE TABLE table_name_86 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR) | SELECT city_of_license FROM table_name_86 WHERE class = "a" AND identifier = "cbec-fm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
6726,
834,
858,
834,
28062,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
3,
8826,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
834,
858,
834,
28062,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
853,
3274,
96,
9,
121,
3430,
3,
8826,
52,
3274,
96,
75,
346,
75,
18,
89,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of representatives with more than 10000 votes in election? | CREATE TABLE representative (Name VARCHAR, Representative_ID VARCHAR); CREATE TABLE election (Representative_ID VARCHAR) | SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE Votes > 10000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6978,
41,
23954,
584,
4280,
28027,
6,
13517,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
1649,
12640,
1528,
834,
4309,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
332,
4416,
23954,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
6978,
6157,
332,
357,
9191,
332,
5411,
1649,
12640,
1528,
834,
4309,
3274,
332,
4416,
1649,
12640,
1528,
834,
4309,
549,
17444,
427,
3152,
1422,
2490,
335,
... |
What is the average position of Eesti P levkivi J hvi when they had less than 13 points and worse than a -12 goal differential? | CREATE TABLE table_71683 (
"Year" text,
"League" text,
"Position" real,
"Goals +/-" real,
"Points" real
) | SELECT AVG("Position") FROM table_71683 WHERE "Points" < '13' AND "Goals +/-" > '-12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
3651,
519,
41,
96,
476,
2741,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
6221,
5405,
1768,
87,
18,
121,
490,
6,
96,
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,
71,
17217,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
4450,
3651,
519,
549,
17444,
427,
96,
22512,
7,
121,
3,
2,
3,
31,
2368,
31,
3430,
96,
6221,
5405,
1768,
87,
18,
121,
2490,
3,
31,
5947,
31,
1,
-100... |
WHAT IS THE ABBR WITH VOTES OF 11.2% IN 2011? | CREATE TABLE table_name_70 (abbr VARCHAR, votes__2011_ VARCHAR) | SELECT abbr FROM table_name_70 WHERE votes__2011_ = "11.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
12982,
52,
584,
4280,
28027,
6,
11839,
834,
834,
13907,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3,
5359,
6934,
11951,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12982,
52,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
11839,
834,
834,
13907,
834,
3274,
96,
10032,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Games↑ is the lowest one that has a Position of wlb? | CREATE TABLE table_name_88 (games INTEGER, position VARCHAR) | SELECT MIN(games) AS ↑ FROM table_name_88 WHERE position = "wlb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
7261,
7,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5880,
2,
19,
8,
7402,
80,
24,
65,
3,
9,
14258,
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,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7261,
7,
61,
6157,
3,
2,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1102,
3274,
96,
210,
40,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what game did Miami play Charlotte? | CREATE TABLE table_21504 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT MAX("Game") FROM table_21504 WHERE "Team" = 'Charlotte' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
12278,
591,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
23055,
8512,
21680,
953,
834,
357,
12278,
591,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
18947,
21538,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the reported age when the reported birth date is 22 december 1878? | CREATE TABLE table_name_62 (
reported_age VARCHAR,
reported_birth_date VARCHAR
) | SELECT reported_age FROM table_name_62 WHERE reported_birth_date = "22 december 1878" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
2196,
834,
545,
584,
4280,
28027,
6,
2196,
834,
20663,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2196,
1246,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2196,
834,
545,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
2196,
834,
20663,
834,
5522,
3274,
96,
2884,
20,
75,
18247,
507,
3940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which CFL team got pick 34? | CREATE TABLE table_30108930_6 (cfl_team VARCHAR, pick__number VARCHAR) | SELECT cfl_team FROM table_30108930_6 WHERE pick__number = 34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
1714,
3914,
1458,
834,
948,
41,
75,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
75,
89,
40,
834,
11650,
21680,
953,
834,
1458,
1714,
3914,
1458,
834,
948,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
6154,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of first_name and employee_id in a bar chart, and order FIRST_NAME in descending order. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) | SELECT FIRST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME DESC | [
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,
30085,
834,
567,
17683,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
... |
Who did the Blue Jays play against on April 24? | CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_44 WHERE date = "april 24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
32,
102,
9977,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
8,
2419,
9373,
7,
577,
581,
30,
1186,
997,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
997,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who narrated when the vessel operator is de beers? | CREATE TABLE table_28364 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Vessel Type" text,
"Vessel Operator" text,
"Narrated by" text,
"Original air date" real
) | SELECT "Narrated by" FROM table_28364 WHERE "Vessel Operator" = 'De Beers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3420,
591,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
553,
19132,
6632,
121,
1499,
6,
96,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
291,
4094,
57,
121,
21680,
953,
834,
2577,
3420,
591,
549,
17444,
427,
96,
553,
19132,
25667,
121,
3274,
3,
31,
2962,
18073,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the number of dorms for each gender in a bar chart, and list from high to low by the total number. | CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
) | SELECT gender, COUNT(*) FROM Dorm GROUP BY gender ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6200,
51,
834,
9,
904,
485,
41,
183,
35,
23,
26,
3,
21342,
17966,
6,
183,
35,
485,
834,
4350,
584,
4280,
28027,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7285,
6,
2847,
17161,
599,
1935,
61,
21680,
6200,
51,
350,
4630,
6880,
272,
476,
7285,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What event did tim Hague have a record of 3-0? | CREATE TABLE table_name_54 (event VARCHAR, record VARCHAR) | SELECT event FROM table_name_54 WHERE record = "3-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
15,
2169,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
605,
410,
3,
2998,
1626,
5398,
43,
3,
9,
1368,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1368,
3274,
96,
22773,
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 was the nationality for the player with 33 goals? | CREATE TABLE table_name_65 (
nationality VARCHAR,
goals VARCHAR
) | SELECT nationality FROM table_name_65 WHERE goals = 33 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1157,
485,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1157,
485,
21,
8,
1959,
28,
5400,
1766,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1766,
3274,
5400,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the season with podiums more than 2.0? | CREATE TABLE table_25740774_1 (season INTEGER, podiums INTEGER) | SELECT MAX(season) FROM table_25740774_1 WHERE podiums > 2.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4581,
4560,
4581,
834,
536,
41,
9476,
3,
21342,
17966,
6,
22828,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
774,
28,
22828,
7,
72,
145,
6864,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
9476,
61,
21680,
953,
834,
1828,
4581,
4560,
4581,
834,
536,
549,
17444,
427,
22828,
7,
2490,
6864,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the position in 1959-1960 for the club that had 14 seasons at this level? | CREATE TABLE table_61486 (
"Clubs" text,
"Seasons at this level" text,
"Settlements" text,
"Season joined league" text,
"Position in 1959\u20131960" text
) | SELECT "Position in 1959\u20131960" FROM table_61486 WHERE "Seasons at this level" = '14 seasons' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2534,
3840,
41,
96,
254,
11158,
7,
121,
1499,
6,
96,
134,
15,
9,
6577,
44,
48,
593,
121,
1499,
6,
96,
17175,
17,
3335,
7,
121,
1499,
6,
96,
134,
15,
9,
739,
3311... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
16,
22471,
2,
76,
11138,
2294,
3328,
121,
21680,
953,
834,
948,
2534,
3840,
549,
17444,
427,
96,
134,
15,
9,
6577,
44,
48,
593,
121,
3274,
3,
31,
2534,
9385,
31,
1,
-100,
-100,
-100,
-100,
... |
What was the score on 10 November 2006? | CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_79 WHERE date = "10 november 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
30,
335,
1671,
3581,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
833,
3274,
96,
1714,
3,
5326,
18247,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department. | CREATE TABLE instructor (name VARCHAR, salary INTEGER, dept_name VARCHAR) | SELECT name FROM instructor WHERE salary > (SELECT MAX(salary) FROM instructor WHERE dept_name = 'Biology') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10617,
41,
4350,
584,
4280,
28027,
6,
9090,
3,
21342,
17966,
6,
20,
102,
17,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
3056,
13,
66,
18166,
3,
2544,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
10617,
549,
17444,
427,
9090,
2490,
41,
23143,
14196,
4800,
4,
599,
7,
138,
1208,
61,
21680,
10617,
549,
17444,
427,
20,
102,
17,
834,
4350,
3274,
3,
31,
279,
23,
1863,
31,
61,
1,
-100,
-100,
-100,
-10... |
What was the latest game that Sacramento played? | CREATE TABLE table_name_26 (game INTEGER, team VARCHAR) | SELECT MAX(game) FROM table_name_26 WHERE team = "sacramento" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
7261,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1251,
467,
24,
22178,
1944,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
372,
3274,
96,
7,
9,
2935,
297,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What game did the Bruins have 56 points? | CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR) | SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3959,
6348,
4560,
834,
536,
41,
7261,
3,
21342,
17966,
6,
3,
115,
23162,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
410,
8,
272,
231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7261,
61,
21680,
953,
834,
1755,
3959,
6348,
4560,
834,
536,
549,
17444,
427,
3,
115,
23162,
834,
2700,
7,
3274,
11526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the customer id with most number of cards, and how many does he have? | CREATE TABLE customers (
customer_id number,
customer_first_name text,
customer_last_name text,
customer_address text,
customer_phone text,
customer_email text,
other_customer_details text
)
CREATE TABLE financial_transactions (
transaction_id number,
previous_transaction_id number,
account_id number,
card_id number,
transaction_type text,
transaction_date time,
transaction_amount number,
transaction_comment text,
other_transaction_details text
)
CREATE TABLE accounts (
account_id number,
customer_id number,
account_name text,
other_account_details text
)
CREATE TABLE customers_cards (
card_id number,
customer_id number,
card_type_code text,
card_number text,
date_valid_from time,
date_valid_to time,
other_card_details text
) | SELECT customer_id, COUNT(*) FROM customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
381,
6,
884,
834,
14672,
834,
4350,
1499,
6,
884,
834,
5064,
834,
4350,
1499,
6,
884,
834,
9,
26,
12039,
1499,
6,
884,
834,
6399,
1499,
6,
884,
834,
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,
884,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
722,
834,
6043,
7,
350,
4630,
6880,
272,
476,
884,
834,
23,
26,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-10... |
Where is the home venue of Bengaluru FC? | CREATE TABLE table_name_95 (home_venue VARCHAR, team VARCHAR) | SELECT home_venue FROM table_name_95 WHERE team = "bengaluru fc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
5515,
834,
15098,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
234,
5669,
13,
20008,
450,
76,
7914,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
15098,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
372,
3274,
96,
115,
35,
6191,
450,
76,
3,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Country has a Player of arjun atwal? | CREATE TABLE table_7874 (
"Rank" text,
"Player" text,
"Lifespan" text,
"Country" text,
"Wins" real,
"Winning span" text
) | SELECT "Country" FROM table_7874 WHERE "Player" = 'arjun atwal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4581,
41,
96,
22557,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
16427,
7,
2837,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
518... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3940,
4581,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
291,
6959,
44,
5380,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose primary disease is coronary artery disease\coronary artery bypass graft; myomectomy/sda and lab test fluid is joint fluid? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" AND lab.fluid = "Joint Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What's the 2nd leg result in the round where Panionios is team #2? | CREATE TABLE table_22824 (
"Team #1" text,
"Agg. score" text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "2nd leg" FROM table_22824 WHERE "Team #2" = 'Panionios' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
2266,
41,
96,
18699,
7172,
121,
1499,
6,
96,
188,
4102,
5,
2604,
121,
1499,
6,
96,
18699,
15493,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
357,
727,
4553,
121,
21680,
953,
834,
357,
2577,
2266,
549,
17444,
427,
96,
18699,
15493,
121,
3274,
3,
31,
345,
2738,
106,
23,
32,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What episode number is the first episode of season 11 in Melrose Place? | CREATE TABLE table_10344 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production code" text
) | SELECT MIN("No. in series") FROM table_10344 WHERE "No. in season" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17864,
3628,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
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,
3,
17684,
599,
121,
4168,
5,
16,
939,
8512,
21680,
953,
834,
17864,
3628,
549,
17444,
427,
96,
4168,
5,
16,
774,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the names of all person sorted in the descending order using age. | CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
) | SELECT name FROM person ORDER BY age DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
41,
564,
1499,
6,
1246,
381,
6,
690,
1499,
6,
7285,
1499,
6,
613,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
15504,
41,
564,
1499,
6,
1565,
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,
568,
4674,
11300,
272,
476,
1246,
309,
25067,
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,
-1... |
What is the german total population after 1910 with an other total of 143 and 32 hungarians? | CREATE TABLE table_name_59 (
german VARCHAR,
hungarian VARCHAR,
year VARCHAR,
other VARCHAR
) | SELECT german FROM table_name_59 WHERE year > 1910 AND other = "143" AND hungarian = "32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
13692,
584,
4280,
28027,
6,
3,
6668,
6855,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
119,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
13692,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
215,
2490,
26923,
3430,
119,
3274,
96,
25133,
121,
3430,
3,
6668,
6855,
3274,
96,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What score has detroit as the home, and December 9 as the date? | CREATE TABLE table_name_78 (
score VARCHAR,
home VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_78 WHERE home = "detroit" AND date = "december 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
2604,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
65,
3,
26,
15252,
155,
38,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
234,
3274,
96,
26,
15252,
155,
121,
3430,
833,
3274,
96,
221,
75,
18247,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which School Colors were Founded of 1969, with an Institution of barton community college? | CREATE TABLE table_name_48 (school_colors VARCHAR, founded VARCHAR, institution VARCHAR) | SELECT school_colors FROM table_name_48 WHERE founded = 1969 AND institution = "barton community college" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
6646,
834,
9910,
7,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1121,
6088,
7,
130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
496,
834,
9910,
7,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
5710,
3274,
17185,
3430,
6568,
3274,
96,
1047,
17,
106,
573,
1900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the team from goreville vienna school? | CREATE TABLE table_name_80 (
team_name VARCHAR,
schools VARCHAR
) | SELECT team_name FROM table_name_80 WHERE schools = "goreville vienna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
372,
834,
4350,
584,
4280,
28027,
6,
2061,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
372,
45,
281,
60,
1420,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
4350,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
2061,
3274,
96,
839,
60,
1420,
2240,
29,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35? | CREATE TABLE table_name_83 (title VARCHAR, directed_by VARCHAR, season__number VARCHAR, series__number VARCHAR) | SELECT title FROM table_name_83 WHERE season__number > 10 AND series__number > 35 AND directed_by = "erik wiese and eddie trigueros" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
21869,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
6,
774,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
939,
834,
834,
5525,
1152,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
774,
834,
834,
5525,
1152,
2490,
335,
3430,
939,
834,
834,
5525,
1152,
2490,
3097,
3430,
6640,
834,
969,
3274,
96,
15,
9629,
587,
7,
15,
11,
3,
15,
26,
2498... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.