NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many different production codes are there for the episode with 4.69 million US viewers? | CREATE TABLE table_28688 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
) | SELECT COUNT("Production code") FROM table_28688 WHERE "U.S. viewers (millions)" = '4.69' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3840,
4060,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3174,
8291,
1081,
8512,
21680,
953,
834,
357,
3840,
4060,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
7984,
3951,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What nationality is the la salle team? | CREATE TABLE table_58473 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_58473 WHERE "School/Club Team" = 'la salle' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
4177,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24732,
485,
121,
21680,
953,
834,
3449,
4177,
519,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
521,
4762,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the latest logon date of the students whose family name is 'Jaskolski' or 'Langosh', and count them by a bar chart | CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test... | SELECT date_of_latest_logon, COUNT(date_of_latest_logon) FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
23,
26,
3,
21342,
17966,
6,
1426,
834,
23,
26,
3,
21342,
17966,
6,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
521,
4377,
834,
2152,
106,
6,
2847,
17161,
599,
5522,
834,
858,
834,
521,
4377,
834,
2152,
106,
61,
21680,
4375,
549,
17444,
427,
384,
834,
4350,
3274,
96,
683,
9,
7,
11292,
4009,
121,
4674,
38... |
Name the FCC info for call sign of k208eq | CREATE TABLE table_31709 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" text,
"Class" text,
"FCC info" text
) | SELECT "FCC info" FROM table_31709 WHERE "Call sign" = 'k208eq' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2517,
4198,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
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,
1... | [
3,
23143,
14196,
96,
371,
2823,
2845,
121,
21680,
953,
834,
519,
2517,
4198,
549,
17444,
427,
96,
254,
1748,
1320,
121,
3274,
3,
31,
157,
23946,
15,
1824,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
current untreated major depression defined by geriatric depression scale > 20 . | CREATE TABLE table_train_89 (
"id" int,
"chronically_uncontrolled_hypertension" bool,
"uncontrolled_diabetes" bool,
"hemoglobin_a1c_hba1c" float,
"body_weight" float,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"geriatric_depression_scale_gds" int,
"major_depression" bool,... | SELECT * FROM table_train_89 WHERE major_depression = 1 OR geriatric_depression_scale_gds > 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
3914,
41,
96,
23,
26,
121,
16,
17,
6,
96,
10363,
29,
6402,
834,
202,
20388,
834,
13397,
49,
13177,
121,
3,
12840,
40,
6,
96,
202,
20388,
834,
26,
23,
9,
346,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
3914,
549,
17444,
427,
779,
834,
221,
8243,
3274,
209,
4674,
3,
122,
4476,
3929,
834,
221,
8243,
834,
6649,
834,
122,
26,
7,
2490,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the highest Profits (billion $) which has a Company of walmart? | CREATE TABLE table_name_14 (
profits__billion_ INTEGER,
company VARCHAR
) | SELECT MAX(profits__billion_) AS $_ FROM table_name_14 WHERE company = "walmart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
9613,
834,
834,
115,
14916,
834,
3,
21342,
17966,
6,
349,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2030,
14717,
7,
41,
115,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6046,
7,
834,
834,
115,
14916,
834,
61,
6157,
1514,
834,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
349,
3274,
96,
5380,
1635,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Region has a Date of early september 1999? | CREATE TABLE table_name_15 (region VARCHAR, date VARCHAR) | SELECT region FROM table_name_15 WHERE date = "early september 1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
18145,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6163,
65,
3,
9,
7678,
13,
778,
16022,
18247,
5247,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1719,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
833,
3274,
96,
2741,
120,
16022,
18247,
5247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the first leg of the semi-final? | CREATE TABLE table_name_78 (first_leg VARCHAR, round VARCHAR) | SELECT first_leg FROM table_name_78 WHERE round = "semi-final" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
14672,
834,
5772,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
166,
4553,
13,
8,
4772,
18,
12406,
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,
166,
834,
5772,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1751,
3274,
96,
7,
15,
51,
23,
18,
12406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How much Total has a Rank smaller than 10, and a Silver larger than 3, and a Gold larger than 3? | CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, rank VARCHAR, silver VARCHAR) | SELECT SUM(total) FROM table_name_87 WHERE rank < 10 AND silver > 3 AND gold > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
235,
1947,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
11003,
3,
2,
335,
3430,
4294,
2490,
220,
3430,
2045,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many names does nature reserve 54 have? | CREATE TABLE table_26013618_1 (name_of_the_nature_reserve VARCHAR, nsg_nr VARCHAR) | SELECT COUNT(name_of_the_nature_reserve) FROM table_26013618_1 WHERE nsg_nr = 54 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
23459,
2606,
834,
536,
41,
4350,
834,
858,
834,
532,
834,
27440,
834,
60,
3473,
15,
584,
4280,
28027,
6,
3,
29,
7,
122,
834,
29,
52,
584,
4280,
28027,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4350,
834,
858,
834,
532,
834,
27440,
834,
60,
3473,
15,
61,
21680,
953,
834,
18365,
23459,
2606,
834,
536,
549,
17444,
427,
3,
29,
7,
122,
834,
29,
52,
3274,
10630,
1,
-100,
-100,
-100,
-100,
-1... |
When was Color of green first issued? | CREATE TABLE table_39610 (
"Value" text,
"Color" text,
"Obverse" text,
"Reverse" text,
"First issued" real
) | SELECT MIN("First issued") FROM table_39610 WHERE "Color" = 'green' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
27097,
41,
96,
18392,
76,
15,
121,
1499,
6,
96,
3881,
322,
121,
1499,
6,
96,
667,
115,
7583,
121,
1499,
6,
96,
1649,
7583,
121,
1499,
6,
96,
25171,
4683,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
121,
25171,
4683,
8512,
21680,
953,
834,
3288,
27097,
549,
17444,
427,
96,
3881,
322,
121,
3274,
3,
31,
9423,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score when they had 62 points? | CREATE TABLE table_26082 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Score" FROM table_26082 WHERE "Points" = '62' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
4613,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
18365,
4613,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
4056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the names of cities in ascending alphabetical order? | CREATE TABLE city (Name VARCHAR) | SELECT Name FROM city ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
23954,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3056,
13,
3119,
16,
25200,
53,
20688,
1950,
455,
58,
1,
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,
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... | [
3,
23143,
14196,
5570,
21680,
690,
4674,
11300,
272,
476,
5570,
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,
-... |
What were the goals in the game with the 26-28 final score? | CREATE TABLE table_53304 (
"Date" text,
"Competition" text,
"Venue" text,
"Result" text,
"Score" text,
"Goals" text
) | SELECT "Goals" FROM table_53304 WHERE "Score" = '26-28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
23702,
41,
96,
308,
342,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6221,
5405,
121,
21680,
953,
834,
4867,
23702,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
2688,
18,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was japan's score? | CREATE TABLE table_name_51 (score VARCHAR, country VARCHAR) | SELECT score FROM table_name_51 WHERE country = "japan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
7,
9022,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
2662,
2837,
31,
7,
2604,
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,
2604,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
684,
3274,
96,
1191,
2837,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the incoming manager for the 12th position in the table | CREATE TABLE table_29128 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Incoming manager" FROM table_29128 WHERE "Position in table" = '12th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4729,
2577,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
10622,
2743,
121,
21680,
953,
834,
357,
4729,
2577,
549,
17444,
427,
96,
345,
32,
7,
4749,
16,
953,
121,
3274,
3,
31,
2122,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many oil and gas industries made the top 10 in ranking of revenue list ? | CREATE TABLE table_203_83 (
id number,
"ranking" number,
"company" text,
"industry" text,
"revenue (usd billions)" text,
"fy" text,
"capitalization (usd billions)" text,
"employees" number,
"listing" text,
"headquarters" text,
"ceo" text
) | SELECT COUNT("company") FROM table_203_83 WHERE "industry" = 'oil and gas' AND "ranking" <= 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4591,
41,
3,
23,
26,
381,
6,
96,
6254,
53,
121,
381,
6,
96,
29179,
121,
1499,
6,
96,
13580,
7,
8224,
121,
1499,
6,
96,
60,
15098,
41,
302,
26,
2108,
7,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
29179,
8512,
21680,
953,
834,
23330,
834,
4591,
549,
17444,
427,
96,
13580,
7,
8224,
121,
3274,
3,
31,
32,
173,
11,
1807,
31,
3430,
96,
6254,
53,
121,
3,
2,
2423,
335,
1,
-100,
-100,
-100,
... |
Which station was opened in 2013, with no park & ride lot? | CREATE TABLE table_name_99 (station_name VARCHAR, opening_year VARCHAR, park_and_ride_lot VARCHAR) | SELECT station_name FROM table_name_99 WHERE opening_year = "2013" AND park_and_ride_lot = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
6682,
834,
4350,
584,
4280,
28027,
6,
2101,
834,
1201,
584,
4280,
28027,
6,
2447,
834,
232,
834,
4055,
15,
834,
3171,
584,
4280,
28027,
61,
3,
32102,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2478,
834,
4350,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
2101,
834,
1201,
3274,
96,
11138,
121,
3430,
2447,
834,
232,
834,
4055,
15,
834,
3171,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is To Par, when Score is 70, and when Player is "Craig Stadler"? | CREATE TABLE table_name_98 (to_par VARCHAR, score VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_98 WHERE score = 70 AND player = "craig stadler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
235,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
304,
2180,
6,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2604,
3274,
2861,
3430,
1959,
3274,
96,
2935,
23,
122,
3342,
12807,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result of week 11? | CREATE TABLE table_name_76 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_76 WHERE week = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
471,
850,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
471,
3274,
850,
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,
... |
Who conducted the poll with sample size of 2000 that shows 18% undecided? | CREATE TABLE table_20683381_2 (conductor VARCHAR, undecided VARCHAR, sample_size VARCHAR) | SELECT conductor FROM table_20683381_2 WHERE undecided = "18%" AND sample_size = 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3651,
4201,
4959,
834,
357,
41,
1018,
7472,
127,
584,
4280,
28027,
6,
3550,
10812,
15,
26,
584,
4280,
28027,
6,
3106,
834,
7991,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3498,
127,
21680,
953,
834,
1755,
3651,
4201,
4959,
834,
357,
549,
17444,
427,
3550,
10812,
15,
26,
3274,
96,
536,
5953,
121,
3430,
3106,
834,
7991,
3274,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the last year that Andre Agassi was the final opponent? | CREATE TABLE table_25410 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT MAX("Year") FROM table_25410 WHERE "Opponent in the final" = 'Andre Agassi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
24175,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
1828,
24175,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
7175,
60,
4821,
6500,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Date of 24 september 2002 is what group position? | CREATE TABLE table_70798 (
"Date" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real,
"Group position" text
) | SELECT "Group position" FROM table_70798 WHERE "Date" = '24 september 2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
940,
3916,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
20119,
377,
2,
76,
11138,
188,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27247,
1102,
121,
21680,
953,
834,
2518,
940,
3916,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2266,
16022,
18247,
4407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Stadium held on november 29? | CREATE TABLE table_name_41 (
stadium VARCHAR,
date VARCHAR
) | SELECT stadium FROM table_name_41 WHERE date = "november 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
14939,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12750,
1213,
30,
3,
5326,
18247,
2838,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
2838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the average of price , and group by attribute name, and rank by the X from high to low. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
541... |
What surface was the tournament played on against Steven Diez? | CREATE TABLE table_12107 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Surface" FROM table_12107 WHERE "Opponent in the final" = 'steven diez' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
18057,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
16,
8,
804,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
2122,
18057,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
849,
1926,
67,
172,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the lifespans of representatives in descending order of vote percent? | CREATE TABLE election (
election_id number,
representative_id number,
date text,
votes number,
vote_percent number,
seats number,
place number
)
CREATE TABLE representative (
representative_id number,
name text,
state text,
party text,
lifespan text
) | SELECT T2.lifespan FROM election AS T1 JOIN representative AS T2 ON T1.representative_id = T2.representative_id ORDER BY vote_percent DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
4356,
834,
23,
26,
381,
6,
6978,
834,
23,
26,
381,
6,
833,
1499,
6,
11839,
381,
6,
2902,
834,
883,
3728,
381,
6,
6116,
381,
6,
286,
381,
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,
332,
4416,
4597,
7,
2837,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
6978,
6157,
332,
357,
9191,
332,
5411,
60,
12640,
1528,
834,
23,
26,
3274,
332,
4416,
60,
12640,
1528,
834,
23,
26,
4674,
11300,
272,
476,
2902,... |
What team has 102 Points against? | CREATE TABLE table_name_61 (team VARCHAR, points_against VARCHAR) | SELECT team FROM table_name_61 WHERE points_against = "102" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
11650,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
65,
3,
14388,
4564,
7,
581,
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,
372,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
14388,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the high points for pepsi center 18,611 | CREATE TABLE table_21607 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_21607 WHERE "Location Attendance" = 'Pepsi Center 18,611' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
4560,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
979,
121,
21680,
953,
834,
27184,
4560,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
345,
15,
102,
7,
23,
1166,
14985,
4241,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the low goal for kenny miller with an average smaller than 0.261? | CREATE TABLE table_name_24 (
goals INTEGER,
name VARCHAR,
average VARCHAR
) | SELECT MIN(goals) FROM table_name_24 WHERE name = "kenny miller" AND average < 0.261 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1766,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
731,
1288,
21,
3,
9376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
564,
3274,
96,
9376,
63,
3293,
49,
121,
3430,
1348,
3,
2,
3,
18189,
4241,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the type for the Panionios moving to? | CREATE TABLE table_name_91 (
type VARCHAR,
moving_to VARCHAR
) | SELECT type FROM table_name_91 WHERE moving_to = "panionios" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
686,
584,
4280,
28027,
6,
1735,
834,
235,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
686,
21,
8,
4266,
23,
106,
23,
32,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
1735,
834,
235,
3274,
96,
2837,
23,
106,
23,
32,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What Goals has a Team of zamora, and Average larger than 0.89? | CREATE TABLE table_name_92 (
goals INTEGER,
team VARCHAR,
average VARCHAR
) | SELECT AVG(goals) FROM table_name_92 WHERE team = "zamora" AND average > 0.89 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
1766,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
17916,
7,
65,
3,
9,
2271,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
372,
3274,
96,
19271,
127,
9,
121,
3430,
1348,
2490,
4097,
3914,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the opponent Poland and the match type EC -qualifier? | CREATE TABLE table_name_12 (
date VARCHAR,
opponenent VARCHAR,
match_type VARCHAR
) | SELECT date FROM table_name_12 WHERE opponenent = "poland" AND match_type = "ec -qualifier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
833,
584,
4280,
28027,
6,
3,
28236,
29,
35,
295,
584,
4280,
28027,
6,
1588,
834,
6137,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
28236,
29,
35,
295,
3274,
96,
3233,
232,
121,
3430,
1588,
834,
6137,
3274,
96,
15,
75,
3,
18,
11433,
7903,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average Pick with a Position of pg, and a Round less than 1? | CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR) | SELECT AVG(pick) FROM table_name_14 WHERE position = "pg" AND round < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
17967,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
8356,
28,
3,
9,
1425... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
17967,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1102,
3274,
96,
102,
122,
121,
3430,
1751,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest Pick number that had a road number that was less than 6, featured Bob Dailey as a player, and which had a Reg GP bigger than 257? | CREATE TABLE table_name_43 (
pick__number INTEGER,
reg_gp VARCHAR,
rd__number VARCHAR,
player VARCHAR
) | SELECT MAX(pick__number) FROM table_name_43 WHERE rd__number < 6 AND player = "bob dailey" AND reg_gp > 257 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
5925,
834,
122,
102,
584,
4280,
28027,
6,
3,
52,
26,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
3,
52,
26,
834,
834,
5525,
1152,
3,
2,
431,
3430,
1959,
3274,
96,
17396,
836,
23,
1306,
121,
3430,
5925,
834,
122,
... |
Who was number 12's mother? | CREATE TABLE table_name_90 (mother VARCHAR, number VARCHAR) | SELECT mother FROM table_name_90 WHERE number = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
21226,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
381,
586,
31,
7,
2039,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2039,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
381,
3274,
586,
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,... |
List all headquarters and the number of companies in each headquarter, and order the total number in desc order. | CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_Name text,
Vice_Manager_Name text,
Representative_Name text
)
CREATE TABLE company (
Company_ID int,
Rank i... | SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
834,
29179,
41,
5939,
834,
4309,
16,
17,
6,
1958,
834,
4309,
16,
17,
6,
3,
22557,
834,
858,
834,
532,
834,
476,
2741,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
31282,
6,
2847,
17161,
599,
1935,
61,
21680,
349,
350,
4630,
6880,
272,
476,
31282,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the recording date when the title is screech owl blues? | CREATE TABLE table_name_79 (
recording_date VARCHAR,
title VARCHAR
) | SELECT recording_date FROM table_name_79 WHERE title = "screech owl blues" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
5592,
834,
5522,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
5592,
833,
116,
8,
2233,
19,
14667,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5592,
834,
5522,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
2233,
3274,
96,
7,
5045,
10217,
3,
2381,
40,
1692,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Writer with an Actual Title that is mork & mindy? | CREATE TABLE table_name_8 (writer VARCHAR, actual_title VARCHAR) | SELECT writer FROM table_name_8 WHERE actual_title = "mork & mindy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
12756,
584,
4280,
28027,
6,
1805,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8733,
52,
28,
46,
24193,
11029,
24,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4346,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
1805,
834,
21869,
3274,
96,
2528,
157,
3,
184,
809,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many positions did the car with a final time of +10.8098 finish in? | CREATE TABLE table_17244483_1 (fin_pos VARCHAR, time_retired VARCHAR) | SELECT COUNT(fin_pos) FROM table_17244483_1 WHERE time_retired = "+10.8098" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2266,
3628,
4591,
834,
536,
41,
89,
77,
834,
2748,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4655,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
89,
77,
834,
2748,
61,
21680,
953,
834,
2517,
2266,
3628,
4591,
834,
536,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
10415,
2079,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of buildings sorted in descending order of building height? | CREATE TABLE companies (
id number,
name text,
headquarters text,
industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value_billion text
)
CREATE TABLE buildings (
id number,
name text,
city text,
height number,
stories number,
... | SELECT name FROM buildings ORDER BY height DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
688,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
13767,
1499,
6,
681,
1499,
6,
1085,
834,
115,
14916,
381,
6,
9613,
834,
115,
14916,
381,
6,
4089,
834,
115,
14916,
381,
6,
512,
834,
120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3950,
4674,
11300,
272,
476,
3902,
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,
-... |
Tell me the distribution of the number of trains at each arrival time with a bar chart, could you display in descending by the x axis? | CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE railway_manage (
Railway_ID int,
Manager_ID int,
From_Year text
)
CREATE TABLE manager (
Manager_ID int,
Name text,
Country te... | SELECT Arrival, COUNT(Arrival) FROM train GROUP BY Arrival ORDER BY Arrival DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14421,
41,
18025,
834,
4309,
16,
17,
6,
18025,
1499,
6,
16799,
1499,
6,
14862,
1499,
6,
10707,
7,
1499,
6,
10450,
1499,
6,
3,
17057,
567,
5937,
49,
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,
20559,
138,
6,
2847,
17161,
599,
188,
52,
25295,
61,
21680,
2412,
350,
4630,
6880,
272,
476,
20559,
138,
4674,
11300,
272,
476,
20559,
138,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of episode number 12 of the season? | CREATE TABLE table_30023 (
"Series #" real,
"Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Title" FROM table_30023 WHERE "Episode #" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
2773,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
427,
102,
159,
32,
221,
1713,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
5426,
2773,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
1713,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what week was the attendance 25,000? | CREATE TABLE table_name_92 (week VARCHAR, attendance VARCHAR) | SELECT week FROM table_name_92 WHERE attendance = "25,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
8041,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
471,
47,
8,
11364,
3,
24338,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
11364,
3274,
96,
24338,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who was hired before 2002-06-21, visualize a line chart about the change of salary over hire_date , display HIRE_DATE from high to low order. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT HIRE_DATE, SALARY FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
454,
14132,
834,
308,
6048,
309,
25067,
1,
... |
For the names and the players of clubs, count the names by names in a bar chart, and order in ascending by the x-axis. | CREATE TABLE competition (
Competition_ID int,
Year real,
Competition_type text,
Country text
)
CREATE TABLE competition_result (
Competition_ID int,
Club_ID_1 int,
Club_ID_2 int,
Score text
)
CREATE TABLE club (
Club_ID int,
name text,
Region text,
Start_year text
)
C... | SELECT T1.name, COUNT(T1.name) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID GROUP BY T1.name ORDER BY T1.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
41,
15571,
834,
4309,
16,
17,
6,
2929,
490,
6,
15571,
834,
6137,
1499,
6,
6993,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7,
83,
17,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
2847,
17161,
599,
382,
5411,
4350,
61,
21680,
1886,
6157,
332,
536,
3,
15355,
3162,
1959,
6157,
332,
357,
9191,
332,
5411,
254,
11158,
834,
4309,
3274,
332,
4416,
254,
11158,
834,
4309,
350,
4630,
... |
What are all the typhus number when smallpox is 4 | CREATE TABLE table_1007688_1 (
typhus VARCHAR,
smallpox VARCHAR
) | SELECT typhus FROM table_1007688_1 WHERE smallpox = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
3959,
4060,
834,
536,
41,
3,
12575,
11823,
584,
4280,
28027,
6,
422,
102,
32,
226,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
8,
3,
12575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
12575,
11823,
21680,
953,
834,
2915,
3959,
4060,
834,
536,
549,
17444,
427,
422,
102,
32,
226,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which bowl game has a season greater than 2008, with new orleans, Louisiana as the location? | CREATE TABLE table_name_47 (
bowl_game VARCHAR,
season VARCHAR,
location VARCHAR
) | SELECT bowl_game FROM table_name_47 WHERE season > 2008 AND location = "new orleans, louisiana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
3047,
834,
7261,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3047,
467,
65,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3047,
834,
7261,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
774,
2490,
2628,
3430,
1128,
3274,
96,
5534,
42,
109,
3247,
6,
16585,
159,
13662,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many losingteams were for the cup finaldate 20 August 1989? | CREATE TABLE table_12028543_3 (losingteam VARCHAR, cup_finaldate VARCHAR) | SELECT COUNT(losingteam) FROM table_12028543_3 WHERE cup_finaldate = "20 August 1989" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
2577,
5062,
519,
834,
519,
41,
2298,
53,
11650,
584,
4280,
28027,
6,
4119,
834,
12406,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5489,
11650,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
53,
11650,
61,
21680,
953,
834,
15518,
2577,
5062,
519,
834,
519,
549,
17444,
427,
4119,
834,
12406,
5522,
3274,
96,
1755,
1660,
9975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total number of years that Scuderia Guastalla was an entrant? | CREATE TABLE table_name_24 (year VARCHAR, entrant VARCHAR) | SELECT COUNT(year) FROM table_name_24 WHERE entrant = "scuderia guastalla" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1201,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
203,
24,
180,
1071,
26,
4476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
3,
295,
3569,
3274,
96,
7,
1071,
26,
4476,
3,
1744,
9,
9176,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What player costs 210k to transfer? | CREATE TABLE table_69349 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
) | SELECT "Name" FROM table_69349 WHERE "Transfer fee" = '£210k' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
519,
3647,
41,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
329,
32,
3745,
45,
121,
1499,
6,
96,
18474,
1010,
2034,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3951,
519,
3647,
549,
17444,
427,
96,
18474,
1010,
2572,
121,
3274,
3,
31,
19853,
15239,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the status of the series that was run by tv channel Mediacorp tv12 Suria? | CREATE TABLE table_27469019_2 (status VARCHAR, television_channel VARCHAR) | SELECT status FROM table_27469019_2 WHERE television_channel = "MediaCorp TV12 Suria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4448,
2394,
2294,
834,
357,
41,
8547,
302,
584,
4280,
28027,
6,
4390,
834,
19778,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2637,
13,
8,
939,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
2555,
4448,
2394,
2294,
834,
357,
549,
17444,
427,
4390,
834,
19778,
3274,
96,
24607,
13026,
102,
1424,
2122,
3705,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which team finished first , romania or belarus ? | CREATE TABLE table_204_466 (
id number,
"rank" number,
"bib" number,
"country" text,
"time" text,
"penalties (p+s)" text,
"deficit" text
) | SELECT "country" FROM table_204_466 WHERE "country" IN ('romania', 'belarus') ORDER BY "rank" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
3539,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
22456,
121,
381,
6,
96,
17529,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
3208,
138,
3010,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17529,
121,
21680,
953,
834,
26363,
834,
591,
3539,
549,
17444,
427,
96,
17529,
121,
3388,
41,
31,
3522,
11219,
31,
6,
3,
31,
2370,
9,
4502,
31,
61,
4674,
11300,
272,
476,
96,
6254,
121,
8729,
12604,
209,
1,
... |
Name the segment b for 167 | CREATE TABLE table_19887 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment B" FROM table_19887 WHERE "Episode" = '167' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
4225,
41,
96,
12106,
7,
10395,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
134,
15,
122,
297,
71,
121,
1499,
6,
96,
134,
15,
122,
297,
272,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
122,
297,
272,
121,
21680,
953,
834,
24151,
4225,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
27650,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the average rating star for each movie that are not reviewed by Brittany Harris. | CREATE TABLE Rating (
mID VARCHAR,
stars INTEGER
)
CREATE TABLE Reviewer (
rID VARCHAR,
name VARCHAR
) | SELECT mID, AVG(stars) FROM Rating WHERE NOT mID IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris") GROUP BY mID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
51,
4309,
584,
4280,
28027,
6,
4811,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
584,
4280,
28027,
6,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
51,
4309,
6,
71,
17217,
599,
3624,
7,
61,
21680,
21662,
549,
17444,
427,
4486,
3,
51,
4309,
3388,
41,
23143,
14196,
332,
5411,
51,
4309,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
4543,
49,
6157,
332,
357,
9... |
what is the title of the episode with production code '2arg09'? | CREATE TABLE table_27332038_1 (
title VARCHAR,
production_code VARCHAR
) | SELECT title FROM table_27332038_1 WHERE production_code = "2ARG09" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4201,
1755,
3747,
834,
536,
41,
2233,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2233,
13,
8,
5640,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2555,
4201,
1755,
3747,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
357,
4280,
517,
4198,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What vfl club(s) for players ranked sergeant, 8th brigade australian field artillery at time of death? | CREATE TABLE table_1475 (
"Player" text,
"VFL Games" real,
"VFL Club(s)" text,
"Rank held at time of death" text,
"Date of death" text,
"Location" text
) | SELECT "VFL Club(s)" FROM table_1475 WHERE "Rank held at time of death" = 'Sergeant, 8th Brigade Australian Field Artillery' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3072,
41,
96,
15800,
49,
121,
1499,
6,
96,
553,
10765,
5880,
121,
490,
6,
96,
553,
10765,
1949,
599,
7,
61,
121,
1499,
6,
96,
22557,
1213,
44,
97,
13,
1687,
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,
553,
10765,
1949,
599,
7,
61,
121,
21680,
953,
834,
2534,
3072,
549,
17444,
427,
96,
22557,
1213,
44,
97,
13,
1687,
121,
3274,
3,
31,
134,
49,
397,
288,
6,
505,
189,
30154,
3746,
7257,
1261,
7613,
63,
31,
1,... |
What is the series number that had 5.31 million viewers? | CREATE TABLE table_25548213_1 (series__number INTEGER, us_viewers__million_ VARCHAR) | SELECT MAX(series__number) FROM table_25548213_1 WHERE us_viewers__million_ = "5.31" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
5062,
4613,
2368,
834,
536,
41,
10833,
7,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10833,
7,
834,
834,
5525,
1152,
61,
21680,
953,
834,
1828,
5062,
4613,
2368,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
26627,
536,
121,
1,
-100,
-100,
-100,
-100,
... |
The candidates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% is for what incumbent? | CREATE TABLE table_2668336_17 (
incumbent VARCHAR,
candidates VARCHAR
) | SELECT incumbent FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
3420,
834,
2517,
41,
28406,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
4341,
5417,
14639,
41,
3913,
61,
7123,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
28406,
21680,
953,
834,
2688,
3651,
519,
3420,
834,
2517,
549,
17444,
427,
4341,
3274,
96,
18947,
965,
14639,
41,
3913,
61,
7123,
5,
4704,
549,
5,
6193,
41,
371,
61,
6154,
5,
7561,
121,
1,
-100,
-100,
-100,
-100,
... |
How many people attended the game with home team Witton Albion? | CREATE TABLE table_name_74 (attendance VARCHAR, home_team VARCHAR) | SELECT attendance FROM table_name_74 WHERE home_team = "witton albion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
15116,
663,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
8,
467,
28,
234,
372,
22632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7820,
17,
106,
7046,
23,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which American has British of ɛm? | CREATE TABLE table_name_62 (american VARCHAR, british VARCHAR) | SELECT american FROM table_name_62 WHERE british = "ɛm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
23064,
29,
584,
4280,
28027,
6,
3,
2160,
17,
1273,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
797,
65,
2390,
13,
3,
2,
51,
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,
10211,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
3,
2160,
17,
1273,
3274,
96,
2,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of f/laps in the 5th position? | CREATE TABLE table_13966 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | SELECT MIN("F/Laps") FROM table_13966 WHERE "Position" = '5th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
3539,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
371,
87,
3612,
102,
7,
8512,
21680,
953,
834,
24090,
3539,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
755,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the visitors when the Atlanta Falcons were the home team? | CREATE TABLE table_name_42 (designated_visitors VARCHAR, designated_home VARCHAR) | SELECT designated_visitors FROM table_name_42 WHERE designated_home = "atlanta falcons" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
9124,
920,
834,
3466,
23,
5535,
584,
4280,
28027,
6,
9943,
834,
5515,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
2692,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9943,
834,
3466,
23,
5535,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
9943,
834,
5515,
3274,
96,
144,
6761,
9,
12553,
8056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many courses are in the Psychology department for each year? Return a line chart, I want to rank X in descending order. | CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
... | SELECT year, COUNT(year) FROM course AS T1 JOIN section AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' GROUP BY year ORDER BY year DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
11749,
41,
4699,
3,
4331,
4059,
15757,
6,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
4220,
834,
23,
26,
3,
4331,
4059,
28007,
6,
10542,
3,
4331,
4059,
18669,
6,
215,
206,
17552,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
215,
6,
2847,
17161,
599,
1201,
61,
21680,
503,
6157,
332,
536,
3,
15355,
3162,
1375,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
549,
17444,
427,
332,
5411,
26,
6707,
... |
Which home team had the score 1-3? | CREATE TABLE table_37860 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" text,
"Report" text
) | SELECT "Home team" FROM table_37860 WHERE "Score" = '1-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3940,
3328,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
553,
35,
76,
15,
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,
19040,
372,
121,
21680,
953,
834,
519,
3940,
3328,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
16737,
31,
1,
-100,
-100,
-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, find founder and the average of revenue , and group by attribute founder, and visualize them by a bar chart, I want to list X in descending order please. | 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 Founder, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC | [
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,
3,
19145,
6,
71,
17217,
599,
1649,
15098,
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,
272,
476,
3,
... |
What are all company names that have a corresponding movie directed in the year 1999? | CREATE TABLE movie (
movie_id number,
title text,
year number,
director text,
budget_million number,
gross_worldwide number
)
CREATE TABLE book_club (
book_club_id number,
year number,
author_or_editor text,
book_title text,
publisher text,
category text,
result text... | SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
1974,
834,
23,
26,
381,
6,
2233,
1499,
6,
215,
381,
6,
2090,
1499,
6,
1487,
834,
17030,
381,
6,
8690,
834,
7276,
6728,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29179,
834,
4350,
21680,
1974,
6157,
332,
536,
3,
15355,
3162,
1543,
834,
29179,
6157,
332,
357,
9191,
332,
5411,
7168,
23,
15,
834,
23,
26,
3274,
332,
4416,
7168,
23,
15,
834,
23,
26,
549,
17444,
427,
... |
Name the laps of october 26 | CREATE TABLE table_2694 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT "Laps" FROM table_2694 WHERE "Date" = 'October 26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4240,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3612,
102,
7,
121,
21680,
953,
834,
2688,
4240,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
28680,
2208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the largest city where the province is eastern cape? | CREATE TABLE table_17416221_1 (largest_city VARCHAR, province VARCHAR) | SELECT largest_city FROM table_17416221_1 WHERE province = "Eastern Cape" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
2938,
357,
2658,
834,
536,
41,
15599,
7,
17,
834,
6726,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2015,
690,
213,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2015,
834,
6726,
21680,
953,
834,
27693,
2938,
357,
2658,
834,
536,
549,
17444,
427,
7985,
3274,
96,
427,
9,
13072,
9702,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What grid has 2 laps? | CREATE TABLE table_name_93 (grid VARCHAR, laps VARCHAR) | SELECT grid FROM table_name_93 WHERE laps = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
3496,
26,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
8634,
65,
204,
14941,
7,
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,
8634,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
14941,
7,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the largest Area (km²) for Deed number of 21352022 with a Population of more than 184? | CREATE TABLE table_name_29 (area__km²_ INTEGER, deed_number VARCHAR, population VARCHAR) | SELECT MAX(area__km²_) FROM table_name_29 WHERE deed_number = "21352022" AND population > 184 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
498,
834,
834,
5848,
357,
834,
3,
21342,
17966,
6,
20,
15,
26,
834,
5525,
1152,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
498,
834,
834,
5848,
357,
834,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
20,
15,
26,
834,
5525,
1152,
3274,
96,
2658,
2469,
1755,
2884,
121,
3430,
2074,
2490,
3,
25987,
1,
-100,
-100,
-1... |
How many total losses have teams that played more than 30 games? | CREATE TABLE table_name_34 (lost VARCHAR, played INTEGER) | SELECT COUNT(lost) FROM table_name_34 WHERE played > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
2298,
17,
584,
4280,
28027,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
8467,
43,
2323,
24,
1944,
72,
145,
604,
1031,
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,
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,
2298,
17,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1944,
2490,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
name the date where score time is w 74-63 | CREATE TABLE table_17186229_4 (
date VARCHAR,
score_time VARCHAR
) | SELECT date FROM table_17186229_4 WHERE score_time = "W 74-63" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2606,
4056,
3166,
834,
591,
41,
833,
584,
4280,
28027,
6,
2604,
834,
715,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
564,
8,
833,
213,
2604,
97,
19,
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,
833,
21680,
953,
834,
2517,
2606,
4056,
3166,
834,
591,
549,
17444,
427,
2604,
834,
715,
3274,
96,
518,
3,
4581,
18,
3891,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many votes did McCain get in the county where Obama got 50.7% of the votes? | CREATE TABLE table_20350118_1 (mccain_number INTEGER, obama_percentage VARCHAR) | SELECT MAX(mccain_number) FROM table_20350118_1 WHERE obama_percentage = "50.7%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
16975,
20056,
834,
536,
41,
51,
12464,
77,
834,
5525,
1152,
3,
21342,
17966,
6,
3,
32,
115,
265,
9,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
51,
12464,
77,
834,
5525,
1152,
61,
21680,
953,
834,
1755,
16975,
20056,
834,
536,
549,
17444,
427,
3,
32,
115,
265,
9,
834,
883,
3728,
545,
3274,
96,
1752,
5,
6170,
121,
1,
-100,
-100,
-100,
-100,
... |
What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421? | CREATE TABLE table_name_36 (
matches INTEGER,
bonus_pts VARCHAR,
total_points VARCHAR
) | SELECT MIN(matches) FROM table_name_36 WHERE bonus_pts = 19 AND total_points > 421 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
6407,
3,
21342,
17966,
6,
4023,
834,
102,
17,
7,
584,
4280,
28027,
6,
792,
834,
2700,
7,
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,
3,
17684,
599,
19515,
15,
7,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
4023,
834,
102,
17,
7,
3274,
957,
3430,
792,
834,
2700,
7,
2490,
314,
2658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
WHAT IS THE POSITION FOR BRAZIL, WITH 27 GOALS, AND FOR NECA? | CREATE TABLE table_49014 (
"Name" text,
"Nationality" text,
"Position" text,
"S\u00e3o Paulo career" text,
"Appearances" real,
"Goals" real
) | SELECT "Position" FROM table_49014 WHERE "Nationality" = 'brazil' AND "Goals" = '27' AND "Name" = 'neca' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2394,
2534,
41,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
134,
2,
76,
1206,
15,
519,
32,
1838,
32,
1415,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
591,
2394,
2534,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
1939,
702,
40,
31,
3430,
96,
6221,
5405,
121,
3274,
3,
31,
2555,
31,
3430,
96,
23954,
121,
3274,
3,... |
Name the youth classification for michael barry | CREATE TABLE table_26425 (
"Stage (Winner)" text,
"General classification" text,
"Sprint Classification" text,
"Mountains Classification" text,
"Youth Classification" text,
"Aggressive Rider" text,
"Team Classification" text
) | SELECT "Youth Classification" FROM table_26425 WHERE "Aggressive Rider" = 'Michael Barry' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
1828,
41,
96,
134,
6505,
41,
18455,
687,
61,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
134,
7260,
4501,
2420,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
4501... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3774,
189,
4501,
2420,
121,
21680,
953,
834,
26755,
1828,
549,
17444,
427,
96,
188,
122,
10292,
757,
25218,
121,
3274,
3,
31,
329,
362,
9,
15,
40,
18931,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each bed type, find the average room price Show bar chart, rank bar in desc order. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY bedType DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
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,
1953,
25160,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
1953,
25160,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the venue for Round f? | CREATE TABLE table_54371 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
) | SELECT "Venue" FROM table_54371 WHERE "Round" = 'f' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
4118,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
5062,
4118,
536,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What to par is located in the united states and has a player by the name of hal sutton? | CREATE TABLE table_50632 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "To par" FROM table_50632 WHERE "Country" = 'united states' AND "Player" = 'hal sutton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3891,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
1752,
3891,
357,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
3828,
3,
7,
12499,
31,
1,
-100,
-100,
-100... |
What is the lowest 2nd (m) when the points were larger than 251.6? | CREATE TABLE table_36688 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall FHT points" text,
"Overall WC points (Rank)" text
) | SELECT MIN("2nd (m)") FROM table_36688 WHERE "Points" > '251.6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3539,
4060,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
536,
7,
17,
41,
51,
61,
121,
490,
6,
96,
357,
727,
41,
51,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
357,
727,
41,
51,
61,
8512,
21680,
953,
834,
519,
3539,
4060,
549,
17444,
427,
96,
22512,
7,
121,
2490,
3,
31,
1828,
15062,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have? | CREATE TABLE table_name_78 (
points INTEGER,
bronze VARCHAR,
small_silver VARCHAR,
club VARCHAR
) | SELECT AVG(points) FROM table_name_78 WHERE small_silver > 9 AND club = "aik" AND bronze > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
979,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
422,
834,
7,
173,
624,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
422,
834,
7,
173,
624,
2490,
668,
3430,
1886,
3274,
96,
9,
23,
157,
121,
3430,
13467,
2490,
505,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Show me a bar chart comparing the total number of captains of different classes, display total number from low to high order. | CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
) | SELECT Class, COUNT(Class) FROM captain GROUP BY Class ORDER BY COUNT(Class) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15508,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
14862,
834,
476,
2741,
490,
6,
4501,
1499,
6,
17016,
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,
4501,
6,
2847,
17161,
599,
21486,
61,
21680,
14268,
350,
4630,
6880,
272,
476,
4501,
4674,
11300,
272,
476,
2847,
17161,
599,
21486,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Record, when Event is 'Independent Event', and when Method is 'Submission (Peruvian Necktie)'? | CREATE TABLE table_name_2 (
record VARCHAR,
event VARCHAR,
method VARCHAR
) | SELECT record FROM table_name_2 WHERE event = "independent event" AND method = "submission (peruvian necktie)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
1368,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11392,
6,
116,
8042,
19,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
605,
3274,
96,
77,
17631,
605,
121,
3430,
1573,
3274,
96,
7304,
5451,
41,
883,
76,
5907,
29,
5378,
17,
23,
15,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
For those records from the products and each product's manufacturer, show me about the distribution of founder and the amount of founder , and group by attribute founder in a bar chart, and sort by the X from high to low. | 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 Founder, COUNT(Founder) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder 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,
3,
19145,
6,
2847,
17161,
599,
19145,
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,
272,
476,
3,
19145,... |
What is the 3rd for the 2nd Tui Dhuli? | CREATE TABLE table_76519 (
"Verb" text,
"2 (VF)" text,
"2 (F)" text,
"3 (F)" text,
"2/3 (P)" text
) | SELECT "3 (F)" FROM table_76519 WHERE "2 (VF)" = 'tui dhuli' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
755,
2294,
41,
96,
5000,
115,
121,
1499,
6,
96,
357,
41,
22502,
61,
121,
1499,
6,
96,
357,
41,
371,
61,
121,
1499,
6,
96,
519,
41,
371,
61,
121,
1499,
6,
96,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
519,
41,
371,
61,
121,
21680,
953,
834,
3959,
755,
2294,
549,
17444,
427,
96,
357,
41,
22502,
61,
121,
3274,
3,
31,
17,
76,
23,
3,
26,
107,
83,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the density of ? | CREATE TABLE table_43599 (
"Name" text,
"Hanzi" text,
"Hanyu Pinyin" text,
"Population (2004 est.)" text,
"Area (km\u00b2)" text,
"Density (/km\u00b2)" text
) | SELECT "Density (/km\u00b2)" FROM table_43599 WHERE "Hanzi" = '昌黎县' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2469,
3264,
41,
96,
23954,
121,
1499,
6,
96,
566,
4557,
23,
121,
1499,
6,
96,
566,
6820,
76,
8050,
63,
77,
121,
1499,
6,
96,
27773,
7830,
41,
21653,
259,
5,
61,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
35,
7,
485,
41,
87,
5848,
2,
76,
1206,
115,
7318,
121,
21680,
953,
834,
591,
2469,
3264,
549,
17444,
427,
96,
566,
4557,
23,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What driver went 59 laps on grid 11? | CREATE TABLE table_name_57 (
driver VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT driver FROM table_name_57 WHERE laps = 59 AND grid = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2535,
877,
3,
3390,
14941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
14941,
7,
3274,
3,
3390,
3430,
8634,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When the To par is E, what is the Score? | CREATE TABLE table_68298 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_68298 WHERE "To par" = 'e' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
357,
3916,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3651,
357,
3916,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What day was United States the opposing team? | CREATE TABLE table_60151 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text,
"Report" text
) | SELECT "Date" FROM table_60151 WHERE "Opposing Team" = 'united states' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
26578,
41,
96,
667,
102,
2748,
53,
2271,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3328,
26578,
549,
17444,
427,
96,
667,
102,
2748,
53,
2271,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result for the fil Paljas? | CREATE TABLE table_name_1 (
result VARCHAR,
film_title VARCHAR
) | SELECT result FROM table_name_1 WHERE film_title = "paljas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
741,
584,
4280,
28027,
6,
814,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21,
8,
5375,
4826,
1191,
7,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
814,
834,
21869,
3274,
96,
6459,
1191,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
To which party does Riley Joseph Wilson belong? | CREATE TABLE table_1342370_17 (
party VARCHAR,
incumbent VARCHAR
) | SELECT party FROM table_1342370_17 WHERE incumbent = "Riley Joseph Wilson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
2518,
834,
2517,
41,
1088,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
304,
84,
1088,
405,
26766,
6187,
9439,
13000,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
23747,
2773,
2518,
834,
2517,
549,
17444,
427,
28406,
3274,
96,
448,
23,
1306,
6187,
9439,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart for how many authors submit to the workshop, sort Author in descending order please. | CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
) | SELECT Author, COUNT(Author) FROM submission GROUP BY Author ORDER BY Author DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8121,
41,
29779,
834,
4309,
16,
17,
6,
17763,
7,
490,
6,
10236,
1499,
6,
1888,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
20592,
663,
41,
29779,
834,
4309,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10236,
6,
2847,
17161,
599,
23602,
127,
61,
21680,
8121,
350,
4630,
6880,
272,
476,
10236,
4674,
11300,
272,
476,
10236,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When playing on grass who was the opponents in a year greater than 1993, and playing with Jonas Bj rkman? | CREATE TABLE table_41617 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Opponents" FROM table_41617 WHERE "Surface" = 'grass' AND "Year" > '1993' AND "Partner" = 'jonas björkman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2938,
2517,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
7,
121,
21680,
953,
834,
591,
2938,
2517,
549,
17444,
427,
96,
134,
450,
4861,
121,
3274,
3,
31,
16446,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4271,
31,
3430,
96,
13725,
687,
121,
3... |
Name the title of jean-pierre jeunet | CREATE TABLE table_name_17 (english_title VARCHAR, director VARCHAR) | SELECT english_title FROM table_name_17 WHERE director = "jean-pierre jeunet" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
4606,
40,
1273,
834,
21869,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2233,
13,
3,
26459,
18,
8343,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22269,
834,
21869,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
2090,
3274,
96,
26459,
18,
8343,
60,
10523,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many wins for the team with points less than 6 and a 350cc class? | CREATE TABLE table_name_35 (wins VARCHAR, points VARCHAR, class VARCHAR) | SELECT wins FROM table_name_35 WHERE points < 6 AND class = "350cc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
3757,
7,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9204,
21,
8,
372,
28,
979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9204,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
979,
3,
2,
431,
3430,
853,
3274,
96,
16975,
75,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the rounds for stanley brm | CREATE TABLE table_name_82 (
rounds VARCHAR,
entrant VARCHAR
) | SELECT rounds FROM table_name_82 WHERE entrant = "stanley brm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
14419,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
14419,
21,
3,
5627,
1306,
6397,
51,
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,
14419,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
3,
295,
3569,
3274,
96,
5627,
1306,
6397,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the game site for the matchup against the Frankfurt Galaxy? | CREATE TABLE table_24852001_2 (game_site VARCHAR, opponent VARCHAR) | SELECT game_site FROM table_24852001_2 WHERE opponent = "Frankfurt Galaxy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4433,
23658,
834,
357,
41,
7261,
834,
3585,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
467,
353,
21,
8,
1588,
413,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
3585,
21680,
953,
834,
2266,
4433,
23658,
834,
357,
549,
17444,
427,
15264,
3274,
96,
371,
6254,
9827,
17,
8455,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many goals against have 64 for games, a loss less than 12, with points greater than 107? | CREATE TABLE table_name_37 (goals_against INTEGER, points VARCHAR, games VARCHAR, lost VARCHAR) | SELECT SUM(goals_against) FROM table_name_37 WHERE games = 64 AND lost < 12 AND points > 107 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
839,
5405,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1031,
3274,
6687,
3430,
1513,
3,
2,
586,
3430,
979,
2490,
3,
18057,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats? | CREATE TABLE table_46023 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT MIN("Pick #") FROM table_46023 WHERE "Position" = 'rec' AND "CFL Team" = 'hamilton tiger-cats' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
2773,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
25991,
2773,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
60,
75,
31,
3430,
96,
254,
10765,
2271,
121,
3274,
3,
31,
1483,
23,
7377,
3,
17,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.