NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
A stacked bar graph shows the total number of captains categorize by ranks of different classes, could you list in ascending by the x-axis? | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | SELECT Class, COUNT(Class) FROM captain GROUP BY Rank, Class ORDER BY Class | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
12202,
834,
4309,
16,
17,
6,
5570,
1499,
6,
15508,
834,
4309,
16,
17,
6,
1246,
1499,
6,
4501,
1499,
6,
3,
22557,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
22557,
6,
4501,
4674,
11300,
272,
476,
4501,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the relationship between People_ID and Clean_Jerk ? | CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
) | SELECT People_ID, Clean_Jerk FROM body_builder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
643,
834,
16422,
49,
41,
8501,
834,
24752,
49,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
180,
29,
14547,
490,
6,
7433,
834,
683,
49,
157,
490,
6,
9273,
490,
3,
61,
3,
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,
2449,
834,
4309,
6,
7433,
834,
683,
49,
157,
21680,
643,
834,
16422,
49,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the party a for sriperumbudur | CREATE TABLE table_22754310_1 (
party VARCHAR,
constituency VARCHAR
) | SELECT party AS a FROM table_22754310_1 WHERE constituency = "Sriperumbudur" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3072,
4906,
1714,
834,
536,
41,
1088,
584,
4280,
28027,
6,
6439,
4392,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1088,
3,
9,
21,
3,
7,
5082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1088,
6157,
3,
9,
21680,
953,
834,
2884,
3072,
4906,
1714,
834,
536,
549,
17444,
427,
6439,
4392,
3274,
96,
134,
5082,
49,
440,
11073,
450,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the tournament when 2007 is WTA Premier 5 tournaments? | CREATE TABLE table_65401 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "Tournament" FROM table_65401 WHERE "2007" = 'wta premier 5 tournaments' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
20016,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
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,
382,
1211,
20205,
17,
121,
21680,
953,
834,
4122,
20016,
549,
17444,
427,
96,
20615,
121,
3274,
3,
31,
210,
17,
9,
2761,
305,
5892,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the results when the incumbent was ernest istook? | CREATE TABLE table_1341423_36 (results VARCHAR, incumbent VARCHAR) | SELECT results FROM table_1341423_36 WHERE incumbent = "Ernest Istook" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2534,
2773,
834,
3420,
41,
60,
7,
83,
17,
7,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
772,
116,
8,
28406,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
772,
21680,
953,
834,
23747,
2534,
2773,
834,
3420,
549,
17444,
427,
28406,
3274,
96,
10575,
29,
222,
27,
7,
235,
1825,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What team was the away team when the home team was Hereford United? | CREATE TABLE table_48961 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Away team" FROM table_48961 WHERE "Home team" = 'hereford united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
4314,
536,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
3707,
4314,
536,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
88,
60,
2590,
18279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
find the number of players whose points are lower than 30 in each position. | CREATE TABLE club_rank (
rank number,
club_id number,
gold number,
silver number,
bronze number,
total number
)
CREATE TABLE club (
club_id number,
name text,
region text,
start_year text
)
CREATE TABLE competition_result (
competition_id number,
club_id_1 number,
c... | SELECT COUNT(*), position FROM player WHERE points < 30 GROUP BY position | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
834,
6254,
41,
11003,
381,
6,
1886,
834,
23,
26,
381,
6,
2045,
381,
6,
4294,
381,
6,
13467,
381,
6,
792,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
1102,
21680,
1959,
549,
17444,
427,
979,
3,
2,
604,
350,
4630,
6880,
272,
476,
1102,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy? | CREATE TABLE table_name_96 (year VARCHAR, opponent_in_the_final VARCHAR, score VARCHAR) | SELECT year FROM table_name_96 WHERE opponent_in_the_final = "brenda schultz-mccarthy" AND score = "6–7(5), 2–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1201,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
1999,
727,
9,
3,
14800,
17,
172,
18,
51,
75,
1720,
189,
63,
121,
3430,
2604,
3274,
96,
948,
104,
940,
15757,
... |
Who is the driver of the car that started in grid 14? | CREATE TABLE table_name_18 (rider VARCHAR, grid VARCHAR) | SELECT rider FROM table_name_18 WHERE grid = "14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
4055,
49,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2535,
13,
8,
443,
24,
708,
16,
8634,
968,
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,
2564,
52,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
8634,
3274,
96,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of date for w 107–97 (ot) | CREATE TABLE table_23274514_7 (date VARCHAR, score VARCHAR) | SELECT COUNT(date) FROM table_23274514_7 WHERE score = "W 107–97 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2555,
2128,
2534,
834,
940,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
833,
21,
3,
210,
3,
18057,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
2773,
2555,
2128,
2534,
834,
940,
549,
17444,
427,
2604,
3274,
96,
518,
3,
18057,
104,
4327,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the asian american population 2010 for kansas city-overland park-kansas city, mo-ks csa | CREATE TABLE table_18963843_1 (asian_american_population__2010_ INTEGER, combined_statistical_area VARCHAR) | SELECT MAX(asian_american_population__2010_) FROM table_18963843_1 WHERE combined_statistical_area = "Kansas City-Overland Park-Kansas City, MO-KS CSA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4314,
3747,
4906,
834,
536,
41,
9,
10488,
834,
23064,
29,
834,
9791,
7830,
834,
834,
14926,
834,
3,
21342,
17966,
6,
3334,
834,
8547,
3040,
138,
834,
498,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
9,
10488,
834,
23064,
29,
834,
9791,
7830,
834,
834,
14926,
834,
61,
21680,
953,
834,
2606,
4314,
3747,
4906,
834,
536,
549,
17444,
427,
3334,
834,
8547,
3040,
138,
834,
498,
3274,
96,
439,
3247,
9,
... |
What is the episode number for series 17? | CREATE TABLE table_73189 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
) | SELECT "Episode #" FROM table_73189 WHERE "Series #" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
25312,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
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,
427,
102,
159,
32,
221,
1713,
121,
21680,
953,
834,
4552,
25312,
549,
17444,
427,
96,
12106,
7,
1713,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show how many rank from each rank, show X-axis in ascending order. | CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER... | SELECT Rank, COUNT(Rank) FROM Faculty GROUP BY Rank ORDER BY Rank | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15077,
6203,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
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,
3,
22557,
6,
2847,
17161,
599,
22557,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
3,
22557,
4674,
11300,
272,
476,
3,
22557,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What year was the Competition of World Junior Championships with a 20th (qf) position? | CREATE TABLE table_name_18 (
year INTEGER,
competition VARCHAR,
position VARCHAR
) | SELECT AVG(year) FROM table_name_18 WHERE competition = "world junior championships" AND position = "20th (qf)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
215,
3,
21342,
17966,
6,
2259,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
8,
15571,
13,
1150,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
2259,
3274,
96,
7276,
9212,
10183,
7,
121,
3430,
1102,
3274,
96,
1755,
189,
41,
1824,
89,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart about the distribution of meter_600 and meter_100 , and I want to sort by the Y-axis from high to low. | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Coun... | SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_100 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
3,
4401,
834,
6007,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2915,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most overall rank for czech republic | CREATE TABLE table_2701625_1 (overall_rank INTEGER, country VARCHAR) | SELECT MAX(overall_rank) FROM table_2701625_1 WHERE country = "Czech Republic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
2938,
1828,
834,
536,
41,
1890,
1748,
834,
6254,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
1879,
11003,
21,
3,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1890,
1748,
834,
6254,
61,
21680,
953,
834,
17485,
2938,
1828,
834,
536,
549,
17444,
427,
684,
3274,
96,
254,
776,
524,
5750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Display a bar chart for how many counties correspond to each police force?, show by the names in desc. | CREATE TABLE county_public_safety (
County_ID int,
Name text,
Population int,
Police_officers int,
Residents_per_officer int,
Case_burden int,
Crime_rate real,
Police_force text,
Location text
)
CREATE TABLE city (
City_ID int,
County_ID int,
Name text,
White real,
... | SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force ORDER BY Police_force DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
834,
15727,
834,
15233,
17,
63,
41,
1334,
834,
4309,
16,
17,
6,
5570,
1499,
6,
29659,
16,
17,
6,
5076,
834,
19632,
52,
7,
16,
17,
6,
24998,
834,
883,
834,
19632,
52,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5076,
834,
10880,
6,
2847,
17161,
599,
1935,
61,
21680,
5435,
834,
15727,
834,
15233,
17,
63,
350,
4630,
6880,
272,
476,
5076,
834,
10880,
4674,
11300,
272,
476,
5076,
834,
10880,
309,
25067,
1,
-100,
-100,
-100,
-100... |
Tell me the name with points of 151.66 | CREATE TABLE table_55728 (
"Rank" real,
"Name" text,
"Nation" text,
"SP+FS" real,
"Points" real,
"Places" real
) | SELECT "Name" FROM table_55728 WHERE "Points" = '151.66' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3436,
2577,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
4274,
1220,
7674,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
345,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
755,
3436,
2577,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
26578,
5,
3539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which team started 2010? | CREATE TABLE table_17289224_1 (
team_name VARCHAR,
season VARCHAR
) | SELECT team_name FROM table_17289224_1 WHERE season = "2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
3914,
24622,
834,
536,
41,
372,
834,
4350,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
708,
2735,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
4350,
21680,
953,
834,
27156,
3914,
24622,
834,
536,
549,
17444,
427,
774,
3274,
96,
14926,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What percentage of people polled aligned with the Liberal party according to the August 2008 poll that reported 36% aligning with New Democratic party? | CREATE TABLE table_name_23 (liberal VARCHAR, new_democratic VARCHAR, dates VARCHAR) | SELECT liberal FROM table_name_23 WHERE new_democratic = "36%" AND dates = "august 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
10661,
138,
584,
4280,
28027,
6,
126,
834,
23319,
447,
584,
4280,
28027,
6,
5128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
13,
151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10215,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
126,
834,
23319,
447,
3274,
96,
519,
6370,
121,
3430,
5128,
3274,
96,
402,
17198,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHich Province of Silla has a Modern equivalent of south jeolla, and a Administrative district of seungju? | CREATE TABLE table_name_33 (province_of_silla VARCHAR, modern_equivalent VARCHAR, administrative_district VARCHAR) | SELECT province_of_silla FROM table_name_33 WHERE modern_equivalent = "south jeolla" AND administrative_district = "seungju" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
1409,
2494,
565,
834,
858,
834,
7,
1092,
9,
584,
4280,
28027,
6,
941,
834,
15,
1169,
15592,
584,
4280,
28027,
6,
6601,
834,
26,
23,
20066,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7985,
834,
858,
834,
7,
1092,
9,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
941,
834,
15,
1169,
15592,
3274,
96,
7,
670,
107,
528,
32,
195,
9,
121,
3430,
6601,
834,
26,
23,
20066,
3274,
96,
7,
15,
425,
... |
What is the latest year that 6th, Heartland is regular season? | CREATE TABLE table_17665 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT MAX("Year") FROM table_17665 WHERE "Regular Season" = '6th, Heartland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26782,
4122,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
23,
6610,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
1499,
6,
96,
15800,
1647,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
26782,
4122,
549,
17444,
427,
96,
17748,
4885,
7960,
121,
3274,
3,
31,
948,
189,
6,
6219,
40,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many days were the station of Soyuz 35 in flight down were in orbit? | CREATE TABLE table_245800_2 (
duration__days_ VARCHAR,
flight_down VARCHAR
) | SELECT duration__days_ FROM table_245800_2 WHERE flight_down = "Soyuz 35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
6192,
834,
357,
41,
8659,
834,
834,
1135,
7,
834,
584,
4280,
28027,
6,
3777,
834,
3035,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
477,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8659,
834,
834,
1135,
7,
834,
21680,
953,
834,
357,
2128,
6192,
834,
357,
549,
17444,
427,
3777,
834,
3035,
3274,
96,
5231,
63,
76,
172,
3097,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What Lomavren word has the same meaning as the Hindi word do? | CREATE TABLE table_name_97 (lomavren VARCHAR, hindi VARCHAR) | SELECT lomavren FROM table_name_97 WHERE hindi = "do" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
40,
32,
51,
9,
10859,
29,
584,
4280,
28027,
6,
3,
107,
8482,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1815,
51,
9,
10859,
29,
1448,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6899,
51,
9,
10859,
29,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
3,
107,
8482,
3274,
96,
26,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the most poinst in game 72? | CREATE TABLE table_17288825_9 (high_points VARCHAR, game VARCHAR) | SELECT high_points FROM table_17288825_9 WHERE game = 72 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
10927,
1828,
834,
1298,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
167,
1977,
77,
7,
17,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
27156,
10927,
1828,
834,
1298,
549,
17444,
427,
467,
3274,
9455,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the average age for each dorm and what are the names of each dorm?, rank by the bars in asc. | CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCH... | SELECT dorm_name, AVG(T1.Age) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name ORDER BY dorm_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6200,
51,
834,
9,
904,
485,
41,
183,
35,
23,
26,
3,
21342,
17966,
6,
183,
35,
485,
834,
4350,
584,
4280,
28027,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
103,
52,
51,
834,
4350,
6,
71,
17217,
599,
382,
5411,
188,
397,
61,
21680,
6341,
6157,
332,
536,
3,
15355,
3162,
3306,
7,
834,
77,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
7,
17,
76... |
Who were the champions in years where michigan technological university was in third place? | CREATE TABLE table_2331549_1 (champion VARCHAR, third_place VARCHAR) | SELECT champion FROM table_2331549_1 WHERE third_place = "Michigan Technological University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
1808,
3647,
834,
536,
41,
17788,
12364,
584,
4280,
28027,
6,
1025,
834,
4687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
6336,
7,
16,
203,
213,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6336,
21680,
953,
834,
20879,
1808,
3647,
834,
536,
549,
17444,
427,
1025,
834,
4687,
3274,
96,
329,
362,
12588,
25789,
6207,
636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of gold medals when the team got 2 bronze and more than 5 silver medals? | CREATE TABLE table_name_93 (gold VARCHAR, bronze VARCHAR, silver VARCHAR) | SELECT COUNT(gold) FROM table_name_93 WHERE bronze = 2 AND silver > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
14910,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
2045,
9365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14910,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
13467,
3274,
204,
3430,
4294,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which position at UCLA has a lower than 92 pick number? | CREATE TABLE table_name_27 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR) | SELECT position FROM table_name_27 WHERE pick < 92 AND school_club_team = "ucla" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
4718,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1102,
44,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1432,
3,
2,
3,
4508,
3430,
496,
834,
13442,
834,
11650,
3274,
96,
76,
4651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which institution is private/catholic? | CREATE TABLE table_name_55 (institution VARCHAR, affiliation VARCHAR) | SELECT institution FROM table_name_55 WHERE affiliation = "private/catholic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
77,
17448,
584,
4280,
28027,
6,
24405,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6568,
19,
1045,
87,
2138,
26641,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6568,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
24405,
3274,
96,
26881,
87,
2138,
26641,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which opponent completed a challenge competition with a result of 8-2 w? | CREATE TABLE table_name_73 (opponent VARCHAR, competition VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_73 WHERE competition = "challenge" AND result = "8-2 w" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
32,
102,
9977,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
2012,
3,
9,
1921,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
2259,
3274,
96,
12654,
40,
35,
397,
121,
3430,
741,
3274,
96,
927,
4949,
3,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the scores for chris ramsey and carol vorderman | CREATE TABLE table_25922 (
"Episode" text,
"First broadcast" text,
"Seans team" text,
"Jons team" text,
"Scores" text
) | SELECT "Scores" FROM table_25922 WHERE "Seans team" = 'Chris Ramsey and Carol Vorderman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4508,
357,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
6878,
121,
1499,
6,
96,
134,
15,
3247,
372,
121,
1499,
6,
96,
683,
106,
7,
372,
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,
7,
121,
21680,
953,
834,
1828,
4508,
357,
549,
17444,
427,
96,
134,
15,
3247,
372,
121,
3274,
3,
31,
3541,
52,
159,
31730,
11,
12526,
1526,
588,
348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What stadium held the game that had a score of 6 3? | CREATE TABLE table_67748 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Stadium" text
) | SELECT "Stadium" FROM table_67748 WHERE "Score" = '6–3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
940,
3707,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
9,
12925,
121,
21680,
953,
834,
3708,
940,
3707,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
948,
104,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is language of subject id 8323? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT demographic.language FROM demographic WHERE demographic.subject_id = "8323" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
24925,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4591,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many goals were scored on the goalkeeper with fewer than 37 matches and an average of 1.5? | CREATE TABLE table_name_24 (goals VARCHAR, matches VARCHAR, average VARCHAR) | SELECT goals FROM table_name_24 WHERE matches < 37 AND average = 1.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
839,
5405,
584,
4280,
28027,
6,
6407,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
130,
5799,
30,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1766,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
6407,
3,
2,
6862,
3430,
1348,
3274,
8613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Brazil scorers have a Result of w, and a Competition of world cup qualifying, and a Date of february 28, 1954? | CREATE TABLE table_name_5 (brazil_scorers VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR) | SELECT brazil_scorers FROM table_name_5 WHERE result = "w" AND competition = "world cup qualifying" AND date = "february 28, 1954" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
1939,
702,
40,
834,
7,
5715,
277,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
2259,
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,
3858,
702,
40,
834,
7,
5715,
277,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
741,
3274,
96,
210,
121,
3430,
2259,
3274,
96,
7276,
4119,
18002,
121,
3430,
833,
3274,
96,
89,
15,
9052,
1208,
13719,
24970,
121,
... |
What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder? | CREATE TABLE table_60967 (
"Title" text,
"Developer" text,
"Category" text,
"Release date" text,
"Version" text
) | SELECT "Release date" FROM table_60967 WHERE "Category" = 'utilities' AND "Developer" = 'microsoft' AND "Title" = 'chord finder' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4314,
940,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
2962,
162,
8745,
49,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
1649,
40,
14608,
833,
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,
1649,
40,
14608,
833,
121,
21680,
953,
834,
3328,
4314,
940,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
13780,
2197,
31,
3430,
96,
2962,
162,
8745,
49,
121,
3274,
3,
31,
30574,
31,
3430,
96,
382,... |
Provide the frequency of the last names of employees earning more than the employee with id 163 using a bar chart, show bar in desc order. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,... | SELECT LAST_NAME, COUNT(LAST_NAME) FROM employees WHERE SALARY > (SELECT SALARY FROM employees WHERE EMPLOYEE_ID = 163) GROUP BY LAST_NAME ORDER BY LAST_NAME DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
12510,
834,
567,
17683,
6,
2847,
17161,
599,
434,
12510,
834,
567,
17683,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
2490,
41,
23143,
14196,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
262,
5244,
5017,... |
What is the Livery when the Number is 31468? | CREATE TABLE table_name_57 (
livery VARCHAR,
number VARCHAR
) | SELECT livery FROM table_name_57 WHERE number = 31468 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
619,
651,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3306,
651,
116,
8,
7720,
19,
220,
2534,
3651,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
619,
651,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
381,
3274,
220,
2534,
3651,
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 Place, when the Player is Chris Dimarco? | CREATE TABLE table_41296 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_41296 WHERE "Player" = 'chris dimarco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
4314,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
591,
2122,
4314,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
524,
52,
159,
1227,
1635,
509,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the air date of the episod that had 456.58 thousand viewers? | CREATE TABLE table_23114705_7 (original_air_date VARCHAR, nz_viewers__thousand_ VARCHAR) | SELECT original_air_date FROM table_23114705_7 WHERE nz_viewers__thousand_ = "456.58" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2596,
4177,
3076,
834,
940,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
3,
29,
172,
834,
4576,
277,
834,
834,
189,
1162,
232,
834,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2773,
2596,
4177,
3076,
834,
940,
549,
17444,
427,
3,
29,
172,
834,
4576,
277,
834,
834,
189,
1162,
232,
834,
3274,
96,
2128,
17255,
927,
121,
1,
-100,
-100,
-100,
-100,
... |
Loss of gonzález (0–3) had what attendance? | CREATE TABLE table_name_32 (attendance VARCHAR, loss VARCHAR) | SELECT attendance FROM table_name_32 WHERE loss = "gonzález (0–3)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
15116,
663,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3144,
7,
13,
3,
5307,
172,
2975,
40,
457,
17482,
104,
5268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1453,
3274,
96,
5307,
172,
2975,
40,
457,
17482,
104,
5268,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the score when the date is february 3? | CREATE TABLE table_8872 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Score" FROM table_8872 WHERE "Date" = 'february 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4060,
5865,
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,
87,
188,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4060,
5865,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
89,
15,
9052,
1208,
220,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Location, when the Score is 35-31? | CREATE TABLE table_71547 (
"Date" text,
"Winner" text,
"Score" text,
"Location" text,
"Series" text
) | SELECT "Location" FROM table_71547 WHERE "Score" = '35-31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1808,
4177,
41,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
12106,
7,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
940,
1808,
4177,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
2469,
18,
3341,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score in the game in which Michael Beasley (26) did the high points? | CREATE TABLE table_27756314_11 (
score VARCHAR,
high_points VARCHAR
) | SELECT score FROM table_27756314_11 WHERE high_points = "Michael Beasley (26)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3072,
3891,
2534,
834,
2596,
41,
2604,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
16,
8,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
2555,
3072,
3891,
2534,
834,
2596,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
329,
362,
9,
15,
40,
493,
9,
8887,
4743,
10938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Nationality has the Player of Marcus Walker? | CREATE TABLE table_38360 (
"Season" text,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text
) | SELECT "Nationality" FROM table_38360 WHERE "Player" = 'marcus walker' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
19208,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
18699,
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,
0... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
3747,
19208,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
1635,
1071,
7,
3,
24063,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the package/option for the calcio content? | CREATE TABLE table_name_53 (package_option VARCHAR, content VARCHAR) | SELECT package_option FROM table_name_53 WHERE content = "calcio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
5745,
545,
834,
11803,
584,
4280,
28027,
6,
738,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2642,
87,
11803,
21,
8,
3,
10379,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2642,
834,
11803,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
738,
3274,
96,
10379,
23,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When 80 is the tries for what is the try bonus? | CREATE TABLE table_17941032_1 (try_bonus VARCHAR, tries_for VARCHAR) | SELECT try_bonus FROM table_17941032_1 WHERE tries_for = "80" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
24175,
2668,
834,
536,
41,
8224,
834,
5407,
302,
584,
4280,
28027,
6,
3,
9000,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
2775,
19,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
653,
834,
5407,
302,
21680,
953,
834,
26593,
24175,
2668,
834,
536,
549,
17444,
427,
3,
9000,
834,
1161,
3274,
96,
2079,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total weight of players who play the G position for the Los Angeles D-Fenders? | CREATE TABLE table_name_80 (
weight VARCHAR,
pos VARCHAR,
team VARCHAR
) | SELECT COUNT(weight) FROM table_name_80 WHERE pos = "g" AND team = "los angeles d-fenders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1293,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
1293,
13,
1508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9378,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3,
2748,
3274,
96,
122,
121,
3430,
372,
3274,
96,
2298,
11831,
15,
7,
3,
26,
18,
24015,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the driver/passenger for 30 | CREATE TABLE table_21412 (
"Position" real,
"Driver / Passenger" text,
"Equipment" text,
"Bike No" real,
"Points" real
) | SELECT COUNT("Driver / Passenger") FROM table_21412 WHERE "Position" = '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
2122,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
20982,
52,
3,
87,
3424,
35,
1304,
121,
1499,
6,
96,
427,
23067,
297,
121,
1499,
6,
96,
279,
5208,
465,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20982,
52,
3,
87,
3424,
35,
1304,
8512,
21680,
953,
834,
27357,
2122,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the number of platforms for each location? Show the proportion with a pie chart. | CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
... | SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
15059,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2900,
1499,
6,
1387,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
834,
6682,
41,
15059,
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,
10450,
6,
180,
6122,
599,
567,
5937,
49,
834,
858,
834,
10146,
2032,
7,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
10450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the earliest year for a car with 3 points and Cooper t20 chassis? | CREATE TABLE table_name_36 (
year INTEGER,
points VARCHAR,
chassis VARCHAR
) | SELECT MIN(year) FROM table_name_36 WHERE points = 3 AND chassis = "cooper t20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
215,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
16454,
215,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
979,
3274,
220,
3430,
22836,
3274,
96,
25911,
49,
3,
17,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the least amount of extra points made in by a player? | CREATE TABLE table_14342210_6 (
extra_points INTEGER
) | SELECT MIN(extra_points) FROM table_14342210_6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
15239,
834,
948,
41,
996,
834,
2700,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
866,
13,
996,
979,
263,
16,
57,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
25666,
834,
2700,
7,
61,
21680,
953,
834,
25133,
4165,
15239,
834,
948,
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 result against Clemson? | CREATE TABLE table_7232 (
"Date" text,
"Opponent" text,
"Location" text,
"Result" text,
"Attendance" real
) | SELECT "Result" FROM table_7232 WHERE "Opponent" = 'clemson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
2668,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
5865,
2668,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
2482,
51,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who was the last deputy judge with finland nationality ? | CREATE TABLE table_204_301 (
id number,
"nationality" text,
"name" text,
"term as a deputy judge" text,
"reason for termination" text
) | SELECT "name" FROM table_204_301 WHERE "nationality" = 'finland' ORDER BY "term as a deputy judge" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
25626,
41,
3,
23,
26,
381,
6,
96,
16557,
485,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
1987,
38,
3,
9,
21108,
5191,
121,
1499,
6,
96,
864,
739,
21,
18739,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
121,
21680,
953,
834,
26363,
834,
25626,
549,
17444,
427,
96,
16557,
485,
121,
3274,
3,
31,
89,
25948,
31,
4674,
11300,
272,
476,
96,
1987,
38,
3,
9,
21108,
5191,
121,
309,
25067,
8729,
12604,
209,
1,
-1... |
Name the competition for september 10, 2008 | CREATE TABLE table_name_21 (
competition VARCHAR,
date VARCHAR
) | SELECT competition FROM table_name_21 WHERE date = "september 10, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
2259,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2259,
21,
16022,
18247,
10372,
2628,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2259,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
10372,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the aggregate in the match with a team 1 of Dinamo Minsk? | CREATE TABLE table_name_27 (agg VARCHAR, team_1 VARCHAR) | SELECT agg FROM table_name_27 WHERE team_1 = "dinamo minsk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
9,
4102,
584,
4280,
28027,
6,
372,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
12955,
16,
8,
1588,
28,
3,
9,
372,
209,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9,
4102,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
372,
834,
536,
3274,
96,
2644,
265,
32,
3519,
7,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the championship with reign of 8 | CREATE TABLE table_name_36 (championship VARCHAR, reign VARCHAR) | SELECT championship FROM table_name_36 WHERE reign = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
17788,
12364,
2009,
584,
4280,
28027,
6,
17367,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
10183,
28,
17367,
13,
505,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10183,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
17367,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was supporting in round 1 where the gt winning car was dodge viper? | CREATE TABLE table_28490105_1 (
supporting VARCHAR,
gt_winning_car VARCHAR,
rnd VARCHAR
) | SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = "Dodge Viper" AND rnd = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
2394,
12869,
834,
536,
41,
3956,
584,
4280,
28027,
6,
3,
122,
17,
834,
8163,
834,
1720,
584,
4280,
28027,
6,
3,
52,
727,
584,
4280,
28027,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3956,
21680,
953,
834,
357,
4608,
2394,
12869,
834,
536,
549,
17444,
427,
3,
122,
17,
834,
8163,
834,
1720,
3274,
96,
4135,
26,
397,
1813,
883,
121,
3430,
3,
52,
727,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the incumbent in the Washington 1 district? | CREATE TABLE table_1805191_48 (
incumbent VARCHAR,
district VARCHAR
) | SELECT incumbent FROM table_1805191_48 WHERE district = "Washington 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
5553,
4729,
834,
3707,
41,
28406,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
28406,
16,
8,
2386,
209,
3939,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
28406,
21680,
953,
834,
20829,
5553,
4729,
834,
3707,
549,
17444,
427,
3939,
3274,
96,
518,
3198,
6029,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which film was released in 1983? | CREATE TABLE table_name_30 (film VARCHAR, year VARCHAR) | SELECT film FROM table_name_30 WHERE year = 1983 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
9988,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
814,
47,
1883,
16,
15041,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
814,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
215,
3274,
15041,
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... |
which area is the least dense ? | CREATE TABLE table_203_222 (
id number,
"category" text,
"#" number,
"name" text,
"hanzi" text,
"hanyu pinyin" text,
"population (2010 census)" number,
"area (km2)" number,
"density (/km2)" number
) | SELECT "name" FROM table_203_222 ORDER BY "density (/km2)" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
26144,
41,
3,
23,
26,
381,
6,
96,
8367,
839,
651,
121,
1499,
6,
96,
4663,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
2618,
702,
121,
1499,
6,
96,
2618,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
26144,
4674,
11300,
272,
476,
96,
537,
7,
485,
41,
87,
5848,
7318,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the NBA draft result of the player from the College of Kansas? | CREATE TABLE table_name_48 (nba_draft VARCHAR, college VARCHAR) | SELECT nba_draft FROM table_name_48 WHERE college = "kansas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
29,
115,
9,
834,
26,
10913,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14512,
6488,
741,
13,
8,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
115,
9,
834,
26,
10913,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1900,
3274,
96,
3304,
7,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Nationality has a Position of left wing? | CREATE TABLE table_name_99 (nationality VARCHAR, position VARCHAR) | SELECT nationality FROM table_name_99 WHERE position = "left wing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
16557,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
868,
485,
65,
3,
9,
14258,
13,
646,
3,
3108,
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,
1157,
485,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1102,
3274,
96,
17068,
3,
3108,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the nationality of Martin Lewis? | CREATE TABLE table_31712 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_31712 WHERE "Player" = 'martin lewis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2517,
2122,
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,
16,
7030,
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,
519,
2517,
2122,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
1635,
17,
77,
90,
210,
159,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the least amount of races for 2 poles | CREATE TABLE table_16908657_1 (
races INTEGER,
poles VARCHAR
) | SELECT MIN(races) FROM table_16908657_1 WHERE poles = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2394,
3840,
3436,
834,
536,
41,
10879,
3,
21342,
17966,
6,
11148,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
866,
13,
10879,
21,
204,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
12614,
7,
61,
21680,
953,
834,
2938,
2394,
3840,
3436,
834,
536,
549,
17444,
427,
11148,
7,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the first diagnosed diagnosis of patient 028-23341 during their first hospital visit? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE i... | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-23341' AND NOT patient.hospitaldischargetime IS NULL ORDER BY... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8209,
5,
25930,
4844,
159,
4350,
21680,
8209,
549,
17444,
427,
8209,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3... |
what are the total points agains the score of 63? | CREATE TABLE table_12807904_5 (points_against VARCHAR, points VARCHAR) | SELECT points_against FROM table_12807904_5 WHERE points = "63" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2079,
4440,
6348,
834,
755,
41,
2700,
7,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
33,
8,
792,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
2122,
2079,
4440,
6348,
834,
755,
549,
17444,
427,
979,
3274,
96,
3891,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How much does each charge type costs? List both charge type and amount. | CREATE TABLE Charges (charge_type VARCHAR, charge_amount VARCHAR) | SELECT charge_type, charge_amount FROM Charges | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15907,
7,
41,
7993,
834,
6137,
584,
4280,
28027,
6,
1567,
834,
9,
11231,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
405,
284,
1567,
686,
1358,
58,
6792,
321,
1567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1567,
834,
6137,
6,
1567,
834,
9,
11231,
21680,
15907,
7,
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,
... |
count the number of patients whose admission year is less than 2112 and procedure long title is suture of laceration of bladder? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2112" AND procedures.long_title = "Suture of laceration of bladder" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which format is in St. George with a frequency of 0 107.3 fm? | CREATE TABLE table_5783 (
"Call sign" text,
"Frequency" text,
"City of License" text,
"Owner" text,
"Format" text
) | SELECT "Format" FROM table_5783 WHERE "City of License" = 'st. george' AND "Frequency" = '0 107.3 fm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
4591,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
485,
13,
16452,
121,
1499,
6,
96,
667,
210,
687,
121,
1499,
6,
96,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3809,
3357,
121,
21680,
953,
834,
3436,
4591,
549,
17444,
427,
96,
254,
485,
13,
16452,
121,
3274,
3,
31,
7,
17,
5,
873,
1677,
15,
31,
3430,
96,
371,
60,
835,
11298,
121,
3274,
3,
31,
632,
335,
27914,
3,
8... |
What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville? | CREATE TABLE table_47889 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
) | SELECT AVG("Population") FROM table_47889 WHERE "Area km 2" < '26.69' AND "Official Name" = 'rogersville' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3940,
3914,
41,
96,
667,
89,
22816,
5570,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
188,
864,
2280,
204,
121,
490,
6,
96,
27773,
7830,
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,
71,
17217,
599,
121,
27773,
7830,
8512,
21680,
953,
834,
591,
3940,
3914,
549,
17444,
427,
96,
188,
864,
2280,
204,
121,
3,
2,
3,
31,
2688,
5,
3951,
31,
3430,
96,
667,
89,
22816,
5570,
121,
3274,
3,
31,
3822,
27... |
Who directed the episode that originally aired on February 25, 2001? | CREATE TABLE table_57003 (
"Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
) | SELECT "Directed by" FROM table_57003 WHERE "Original airdate" = 'february 25, 2001' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
4928,
41,
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,
96,
24965,
324,
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,
23620,
15,
26,
57,
121,
21680,
953,
834,
28363,
4928,
549,
17444,
427,
96,
667,
3380,
10270,
799,
5522,
121,
3274,
3,
31,
89,
15,
9052,
1208,
14105,
4402,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different episode numbers are there for the episodes directed by Sheri Elwood? | CREATE TABLE table_27155243_3 (total__number VARCHAR, directed_by VARCHAR) | SELECT COUNT(total__number) FROM table_27155243_3 WHERE directed_by = "Sheri Elwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
20896,
27730,
834,
519,
41,
235,
1947,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
1947,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2555,
20896,
27730,
834,
519,
549,
17444,
427,
6640,
834,
969,
3274,
96,
134,
760,
23,
1289,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what year was the total finals at 10? | CREATE TABLE table_14286908_1 (
year_of_last_win VARCHAR,
total_finals VARCHAR
) | SELECT year_of_last_win FROM table_14286908_1 WHERE total_finals = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2577,
3951,
4018,
834,
536,
41,
215,
834,
858,
834,
5064,
834,
3757,
584,
4280,
28027,
6,
792,
834,
12406,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
858,
834,
5064,
834,
3757,
21680,
953,
834,
2534,
2577,
3951,
4018,
834,
536,
549,
17444,
427,
792,
834,
12406,
7,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the cost of a diagnosis for an acute respiratory failure - due to increased co2 production? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'acute respiratory failure - due to increased co2 production') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
25930,
4844,
159,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
25930,
4844,
159,
23,
... |
What is the score of player jay haas? | CREATE TABLE table_name_48 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_48 WHERE player = "jay haas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
1959,
2662,
63,
4244,
9,
7,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1959,
3274,
96,
1191,
63,
4244,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the developers for Portal? | CREATE TABLE table_name_68 (
developer_s_ VARCHAR,
game VARCHAR
) | SELECT developer_s_ FROM table_name_68 WHERE game = "portal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
7523,
834,
7,
834,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
5564,
21,
16290,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7523,
834,
7,
834,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
467,
3274,
96,
1493,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients aged below 81 years had the diagnosis icd9 code 28522? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "81" AND diagnoses.icd9_code = "28522" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What player has over 1 first apperance and over 32 first team goals? | CREATE TABLE table_56928 (
"Player" text,
"Position" text,
"First-Team Debut" text,
"First-Team Appearances" real,
"First-Team Goals" real,
"Current Club" text
) | SELECT "Player" FROM table_56928 WHERE "First-Team Appearances" > '1' AND "First-Team Goals" = '32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3951,
2577,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
25171,
18,
18699,
374,
2780,
121,
1499,
6,
96,
25171,
18,
18699,
2276,
2741,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
755,
3951,
2577,
549,
17444,
427,
96,
25171,
18,
18699,
2276,
2741,
663,
7,
121,
2490,
3,
31,
536,
31,
3430,
96,
25171,
18,
18699,
17916,
7,
121,
3274,
3,
31,
2668,
31,
1,
-1... |
specify the number of unmarried patients who had lab test for clinical chemistry | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab."CATEGORY" = "Chemistry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the birthplace and date of pick 4? | CREATE TABLE table_name_47 (
birthplace VARCHAR,
_date VARCHAR,
pick VARCHAR
) | SELECT birthplace, _date FROM table_name_47 WHERE pick = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
3879,
4687,
584,
4280,
28027,
6,
3,
834,
5522,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3879,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3879,
4687,
6,
3,
834,
5522,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1432,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT IS THE WORST SCORE WHEN THE BEST SCORE WAS 8.8 AND AVERAGE WAS LARGER THAN 6.2? | CREATE TABLE table_name_72 (
worst_score VARCHAR,
best_score VARCHAR,
average VARCHAR
) | SELECT COUNT(worst_score) FROM table_name_72 WHERE best_score = 8.8 AND average > 6.2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
6025,
834,
7,
9022,
584,
4280,
28027,
6,
200,
834,
7,
9022,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
210,
127,
7,
17,
834,
7,
9022,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
200,
834,
7,
9022,
3274,
4848,
927,
3430,
1348,
2490,
3,
23913,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many drivers did not participate in the races held in 2009? | CREATE TABLE races (
driverId VARCHAR,
raceId VARCHAR,
YEAR VARCHAR
)
CREATE TABLE results (
driverId VARCHAR,
raceId VARCHAR,
YEAR VARCHAR
) | SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10879,
41,
2535,
196,
26,
584,
4280,
28027,
6,
1964,
196,
26,
584,
4280,
28027,
6,
30431,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
772,
41,
2535,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
2535,
196,
26,
61,
21680,
772,
549,
17444,
427,
4486,
1964,
196,
26,
3388,
41,
23143,
14196,
1964,
196,
26,
21680,
10879,
549,
17444,
427,
30431,
3,
2,
3155,
2464,
61,
1,
-100,
... |
What is the lowest Year, when Notes is 'Spanish adaptation of 'Hope There's Someone.''? | CREATE TABLE table_46951 (
"Year" real,
"Song" text,
"Album appearance" text,
"Album artist" text,
"Notes" text
) | SELECT MIN("Year") FROM table_46951 WHERE "Notes" = 'spanish adaptation of "hope there''s someone.' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3301,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
134,
2444,
121,
1499,
6,
96,
25691,
440,
3179,
121,
1499,
6,
96,
25691,
440,
2377,
121,
1499,
6,
96,
10358,
15,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4448,
3301,
536,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
7,
2837,
1273,
14340,
13,
96,
10776,
15,
132,
31,
31,
7,
841,
5,
31,
1,
-100,
-100,
-... |
Name the College which has a Round smaller than 3, and a Pick # larger than 4, and a Position of wide receiver? | CREATE TABLE table_name_59 (college VARCHAR, position VARCHAR, round VARCHAR, pick__number VARCHAR) | SELECT college FROM table_name_59 WHERE round < 3 AND pick__number > 4 AND position = "wide receiver" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
3297,
7883,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
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,
1900,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1751,
3,
2,
220,
3430,
1432,
834,
834,
5525,
1152,
2490,
314,
3430,
1102,
3274,
96,
6728,
11487,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number for the pick of the player Wayne Fowler and a round after 7? | CREATE TABLE table_name_91 (
pick VARCHAR,
player VARCHAR,
round VARCHAR
) | SELECT COUNT(pick) FROM table_name_91 WHERE player = "wayne fowler" AND round > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
1432,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
21,
8,
1432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17967,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
1959,
3274,
96,
1343,
29,
15,
5575,
210,
1171,
121,
3430,
1751,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show different carriers of phones together with the number of phones with each carrier. | CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stoc... | SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
41,
5570,
1499,
6,
8924,
834,
4309,
16,
17,
6,
19159,
834,
77,
834,
517,
16,
17,
6,
1184,
6711,
1499,
6,
5312,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1184,
6711,
6,
2847,
17161,
599,
1935,
61,
21680,
951,
350,
4630,
6880,
272,
476,
1184,
6711,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What venue features fitzroy as the away side? | CREATE TABLE table_33225 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_33225 WHERE "Away team" = 'fitzroy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
20489,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
4201,
20489,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
89,
5615,
8170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many places have an area of 409.41 (km2)? | CREATE TABLE table_261222_1 (population__2010_ VARCHAR, area__km_2__ VARCHAR) | SELECT COUNT(population__2010_) FROM table_261222_1 WHERE area__km_2__ = "409.41" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2122,
2884,
834,
536,
41,
9791,
7830,
834,
834,
14926,
834,
584,
4280,
28027,
6,
616,
834,
834,
5848,
834,
357,
834,
834,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9791,
7830,
834,
834,
14926,
834,
61,
21680,
953,
834,
2688,
2122,
2884,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
834,
357,
834,
834,
3274,
96,
591,
12900,
4853,
121,
1,
-100,
-100,
-100,
-1... |
Date of april 9 had what score? | CREATE TABLE table_36525 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Score" FROM table_36525 WHERE "Date" = 'april 9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10402,
1828,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
10402,
1828,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Tie no when the away team was Burnley? | CREATE TABLE table_42786 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Tie no" FROM table_42786 WHERE "Away team" = 'burnley' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2555,
3840,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23,
15,
150,
121,
21680,
953,
834,
591,
2555,
3840,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
7223,
1306,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many sacks have 72 as the solo and a TTkl less than 112? | CREATE TABLE table_name_69 (
sacks VARCHAR,
solo VARCHAR,
ttkl VARCHAR
) | SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
3,
15525,
7,
584,
4280,
28027,
6,
6729,
584,
4280,
28027,
6,
3,
17,
17,
157,
40,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15525,
7,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
6729,
3274,
9455,
3430,
3,
17,
17,
157,
40,
3,
2,
850,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the last time a venue was held in turin, italy? | CREATE TABLE table_name_75 (
year INTEGER,
venue VARCHAR
) | SELECT MAX(year) FROM table_name_75 WHERE venue = "turin, italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
215,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
336,
97,
3,
9,
5669,
47,
1213,
16,
3,
4317,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
5669,
3274,
96,
4317,
29,
6,
34,
9,
120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average rating of songs produced by female artists? | CREATE TABLE song (rating INTEGER, artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, gender VARCHAR) | SELECT AVG(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2324,
41,
52,
1014,
3,
21342,
17966,
6,
2377,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
1408,
343,
834,
4350,
584,
4280,
28027,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
382,
4416,
52,
1014,
61,
21680,
2377,
6157,
332,
536,
3,
15355,
3162,
2324,
6157,
332,
357,
9191,
332,
5411,
1408,
343,
834,
4350,
3274,
332,
4416,
1408,
343,
834,
4350,
549,
17444,
427,
332,
5411,
1... |
When was the start of the construction of the unit that's been in commercial operation since 04.03.1987? | CREATE TABLE table_17903 (
"Unit" text,
"Type" text,
"Net power" text,
"Total power" text,
"Construction start" text,
"Construction finish" text,
"Commercial operation" text,
"Shut down" text
) | SELECT "Construction start" FROM table_17903 WHERE "Commercial operation" = '04.03.1987' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
4928,
41,
96,
5110,
155,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
9688,
579,
121,
1499,
6,
96,
3696,
1947,
579,
121,
1499,
6,
96,
4302,
7,
26853,
456,
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,
4302,
7,
26853,
456,
121,
21680,
953,
834,
26593,
4928,
549,
17444,
427,
96,
10205,
49,
4703,
2986,
121,
3274,
3,
31,
14161,
13267,
2294,
4225,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)? | CREATE TABLE table_name_89 (
operator VARCHAR,
project_name VARCHAR,
peak VARCHAR,
year_startup VARCHAR
) | SELECT operator FROM table_name_89 WHERE peak = "90" AND year_startup = "2010" AND project_name = "aosp expansion 1 (jackpine ph 1a)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
7221,
584,
4280,
28027,
6,
516,
834,
4350,
584,
4280,
28027,
6,
6734,
584,
4280,
28027,
6,
215,
834,
10208,
413,
584,
4280,
28027,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7221,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
6734,
3274,
96,
2394,
121,
3430,
215,
834,
10208,
413,
3274,
96,
14926,
121,
3430,
516,
834,
4350,
3274,
96,
9,
32,
7,
102,
5919,
209,
41,
9325,
3180,
15,
3... |
Calculate the maximum age of patients with overdose primary disease who had an emergency hospital admission. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "OVERDOSE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
23288,
308,
22177,
121,
1,... |
Name the segment d for bowling balls | CREATE TABLE table_19885 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment D" FROM table_19885 WHERE "Segment A" = 'Bowling Balls' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
4433,
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,
309,
121,
21680,
953,
834,
24151,
4433,
549,
17444,
427,
96,
134,
15,
122,
297,
71,
121,
3274,
3,
31,
279,
2381,
697,
4155,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the average points after 1992? | CREATE TABLE table_name_54 (
points INTEGER,
year INTEGER
) | SELECT AVG(points) FROM table_name_54 WHERE year > 1992 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
979,
3,
21342,
17966,
6,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1348,
979,
227,
9047,
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,
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,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
215,
2490,
9047,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.