NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Name the total number of founded for yankton | CREATE TABLE table_2076557_2 (founded VARCHAR, location_s_ VARCHAR) | SELECT COUNT(founded) FROM table_2076557_2 WHERE location_s_ = "Yankton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
4122,
3436,
834,
357,
41,
23329,
584,
4280,
28027,
6,
1128,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
5710,
21,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
23329,
61,
21680,
953,
834,
26426,
4122,
3436,
834,
357,
549,
17444,
427,
1128,
834,
7,
834,
3274,
96,
476,
5979,
17,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the hometown of the player who plays pr? | CREATE TABLE table_34141 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" text,
"Class" text,
"Hometown" text,
"Games\u2191" real
) | SELECT "Hometown" FROM table_34141 WHERE "Position" = 'pr' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
26059,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
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,
19040,
3540,
121,
21680,
953,
834,
3710,
26059,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
102,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number born in a none EU state (1000) from Denmark with a total population (1000) less than 5,534? | CREATE TABLE table_name_20 (born_in_a_non_eu_state__1000_ INTEGER, country VARCHAR, total_population__1000_ VARCHAR) | SELECT MAX(born_in_a_non_eu_state__1000_) FROM table_name_20 WHERE country = "denmark" AND total_population__1000_ < 5 OFFSET 534 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
7473,
834,
77,
834,
9,
834,
29,
106,
834,
15,
76,
834,
5540,
834,
834,
16824,
834,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
792,
834,
9791,
7830... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7473,
834,
77,
834,
9,
834,
29,
106,
834,
15,
76,
834,
5540,
834,
834,
16824,
834,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
684,
3274,
96,
537,
3920,
121,
3430,
792,
834,
9791,
7830,
... |
What was the Venue on June 8, 2005? | CREATE TABLE table_name_9 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_9 WHERE date = "june 8, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
29940,
30,
1515,
9478,
3105,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
833,
3274,
96,
6959,
15,
9478,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who has a rank below 125 and time of 00: 56.30? | CREATE TABLE table_name_32 (
name VARCHAR,
rank VARCHAR,
time VARCHAR
) | SELECT name FROM table_name_32 WHERE rank < 125 AND time = "00: 56.30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
564,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
3,
9,
11003,
666,
3,
10124,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
11003,
3,
2,
3,
10124,
3430,
97,
3274,
96,
1206,
10,
11526,
5,
1458,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest elevation of a place where the lowest point is the Allaine River, National border? | CREATE TABLE table_name_93 (
highest_elevation VARCHAR,
lowest_point VARCHAR
) | SELECT highest_elevation FROM table_name_93 WHERE lowest_point = "allaine river, national border" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
2030,
834,
15,
10912,
257,
584,
4280,
28027,
6,
7402,
834,
2700,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
16417,
13,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2030,
834,
15,
10912,
257,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
7402,
834,
2700,
3274,
96,
1748,
7043,
4033,
6,
1157,
4947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose days of hospital stay is greater than 15 and admission year is less than 2162? | 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 demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "15" AND demographic.admityear < "2162" | [
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,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
1808,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,
96,
2658,
4056,... |
Show all calendar dates and bin by weekday in a bar chart. | CREATE TABLE Ref_Calendar (
Calendar_Date DATETIME,
Day_Number INTEGER
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
... | SELECT Calendar_Date, COUNT(Calendar_Date) FROM Ref_Calendar | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
14318,
35,
3439,
41,
18783,
834,
308,
342,
309,
6048,
382,
15382,
6,
1430,
834,
567,
5937,
49,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18783,
834,
308,
342,
6,
2847,
17161,
599,
14318,
35,
3439,
834,
308,
342,
61,
21680,
419,
89,
834,
14318,
35,
3439,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many departments for each building? Draw a bar chart, and rank in asc by the how many building. | CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TAB... | SELECT building, COUNT(building) FROM department GROUP BY building ORDER BY COUNT(building) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4858,
41,
740,
3,
4331,
4059,
599,
1808,
201,
562,
834,
5525,
1152,
3,
4331,
4059,
24358,
6,
2614,
206,
17552,
599,
8525,
632,
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,
740,
6,
2847,
17161,
599,
10905,
61,
21680,
3066,
350,
4630,
6880,
272,
476,
740,
4674,
11300,
272,
476,
2847,
17161,
599,
10905,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What studio did Paul Greengrass direct in 2007? | CREATE TABLE table_64248 (
"Year" real,
"Title" text,
"Director" text,
"Studio(s)" text,
"Notes" text
) | SELECT "Studio(s)" FROM table_64248 WHERE "Year" = '2007' AND "Director" = 'paul greengrass' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
357,
3707,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
13076,
26,
23,
32,
599,
7,
61,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13076,
26,
23,
32,
599,
7,
61,
121,
21680,
953,
834,
4389,
357,
3707,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
20615,
31,
3430,
96,
23620,
127,
121,
3274,
3,
31,
102,
9,
83,
1442,
16446,
31,
1,
-1... |
Name the writers for 46 in series | CREATE TABLE table_28959 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT "Writer(s)" FROM table_28959 WHERE "No. in series" = '46' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
3390,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
49,
599,
7,
61,
121,
21680,
953,
834,
357,
3914,
3390,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
4448,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the earliest game played at the TD Waterhouse Centre? | CREATE TABLE table_49044 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT MIN("Game") FROM table_49044 WHERE "Location" = 'td waterhouse centre' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2394,
3628,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23055,
8512,
21680,
953,
834,
591,
2394,
3628,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
17,
26,
387,
1840,
2050,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the most used instrument? | CREATE TABLE performance (
songid number,
bandmate number,
stageposition text
)
CREATE TABLE albums (
aid number,
title text,
year number,
label text,
type text
)
CREATE TABLE instruments (
songid number,
bandmateid number,
instrument text
)
CREATE TABLE tracklists (
a... | SELECT instrument FROM instruments GROUP BY instrument ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
821,
41,
2324,
23,
26,
381,
6,
1928,
5058,
381,
6,
1726,
4718,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14234,
41,
3052,
381,
6,
2233,
1499,
6,
215,
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,
5009,
21680,
7778,
350,
4630,
6880,
272,
476,
5009,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show the name of each party and the corresponding number of delegates from that party in a bar chart, order by the bars from high to low. | CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
... | SELECT T2.Party, AVG(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY T2.Party DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
1334,
834,
196,
26,
16,
17,
6,
1334,
834,
4350,
1499,
6,
29659,
490,
6,
22296,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
19488,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
13725,
63,
6,
71,
17217,
599,
5911,
17161,
599,
1935,
61,
61,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
3274,
332,
4416,
13725,
63,
834,
4309,
350,
463... |
What was the kickoff time on monday, may 13? | CREATE TABLE table_20782 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) | SELECT "Kickoff" FROM table_20782 WHERE "Date" = 'Monday, May 13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
4613,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
439,
3142,
1647,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
371,
10270,
2604,
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,
439,
3142,
1647,
121,
21680,
953,
834,
26426,
4613,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9168,
1135,
6,
932,
1179,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What episode number is the first episode of season 11 in Melrose Place? | CREATE TABLE table_name_60 (no_in_series INTEGER, no_in_season VARCHAR) | SELECT MIN(no_in_series) FROM table_name_60 WHERE no_in_season = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
29,
32,
834,
77,
834,
10833,
7,
3,
21342,
17966,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5640,
381,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen? | CREATE TABLE table_name_40 (year INTEGER, director VARCHAR, english_title VARCHAR) | SELECT SUM(year) FROM table_name_40 WHERE director = "erik clausen" AND english_title = "the dark side of the moon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1201,
3,
21342,
17966,
6,
2090,
584,
4280,
28027,
6,
22269,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8121,
2929,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2090,
3274,
96,
15,
9629,
14442,
29,
121,
3430,
22269,
834,
21869,
3274,
96,
532,
2164,
596,
13,
8,
8114,
121,
1,
-100,
-100,
-100,
-100,
... |
What is the most popular full name of the actors? | CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR) | SELECT first_name, last_name FROM actor GROUP BY first_name, last_name ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
336,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
1012,
423,
564,
13,
8,
10485,
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,
166,
834,
4350,
6,
336,
834,
4350,
21680,
7556,
350,
4630,
6880,
272,
476,
166,
834,
4350,
6,
336,
834,
4350,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-10... |
Return the apartment number with the largest number of bedrooms. | CREATE TABLE apartment_facilities (
apt_id number,
facility_code text
)
CREATE TABLE view_unit_status (
apt_id number,
apt_booking_id number,
status_date time,
available_yn others
)
CREATE TABLE apartments (
apt_id number,
building_id number,
apt_type_code text,
apt_number text... | SELECT apt_number FROM apartments ORDER BY bedroom_count DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4579,
834,
89,
9,
13067,
3010,
41,
3,
6789,
834,
23,
26,
381,
6,
3064,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
903,
834,
15129,
834,
8547,
302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6789,
834,
5525,
1152,
21680,
10424,
4674,
11300,
272,
476,
2923,
834,
13362,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Area (km ) is the lowest one that has a Population of 17,089? | CREATE TABLE table_62221 (
"Name" text,
"Area (km\u00b2)" real,
"Pop." real,
"Pop/Area (1/km\u00b2)" real,
"No P." real,
"No C./No T." text,
"Subregion" text
) | SELECT MIN("Area (km\u00b2)") FROM table_62221 WHERE "Pop." = '17,089' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
357,
2658,
41,
96,
23954,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
490,
6,
96,
27773,
535,
490,
6,
96,
27773,
87,
188,
864,
4077,
87,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
8512,
21680,
953,
834,
4056,
357,
2658,
549,
17444,
427,
96,
27773,
535,
3274,
3,
31,
2517,
6,
632,
3914,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many patients had the drug fluoxetine hcl? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Fluoxetine HCl" | [
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,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the highest amount of yards when the average is 9.5? | CREATE TABLE table_name_12 (
yards INTEGER,
average VARCHAR
) | SELECT MAX(yards) FROM table_name_12 WHERE average = 9.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
6460,
3,
21342,
17966,
6,
1348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
866,
13,
6460,
116,
8,
1348,
19,
3,
22321,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6636,
7,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1348,
3274,
3,
22321,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the airport with IATA of dmk | CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_74 WHERE iata = "dmk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
2256,
1493,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3761,
28,
27,
19282,
13,
3,
26,
51,
157,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3761,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
3,
17221,
3274,
96,
26,
51,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For which group was Kim nominated in 2010 for Best International Actress? | CREATE TABLE table_6030 (
"Year" real,
"Group" text,
"Award" text,
"Film/Series" text,
"Result" text
) | SELECT "Group" FROM table_6030 WHERE "Year" = '2010' AND "Award" = 'best international actress' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
1458,
41,
96,
476,
2741,
121,
490,
6,
96,
27247,
121,
1499,
6,
96,
188,
2239,
121,
1499,
6,
96,
371,
173,
51,
87,
12106,
7,
121,
1499,
6,
96,
20119,
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,
27247,
121,
21680,
953,
834,
3328,
1458,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
14926,
31,
3430,
96,
188,
2239,
121,
3274,
3,
31,
9606,
1038,
15676,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients were diagnosed with acute diastolic heart failure and their drug route is tp? | 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 INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Ac diastolic hrt failure" AND prescriptions.route = "TP" | [
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,
3... |
What number of white russian patients had a lab test named monocytes? | 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 lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND lab.label = "Monocytes" | [
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,
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 score of the Devil Rays on April 24? | CREATE TABLE table_66887 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
) | SELECT "Score" FROM table_66887 WHERE "Opponent" = 'devil rays' AND "Date" = 'april 24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4060,
940,
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,
13368,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3539,
4060,
940,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
221,
6372,
3,
2866,
7,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
997,
31,
1,
-100,
-100... |
how many patients whose discharge location is home health care and days of hospital stay is greater than 15? | 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 WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.days_stay > "15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
6299,
4369,
3,
6021,
4090,
4611,
3,
22443,
121,
3430,
14798,
... |
howe many positions did wallace, mike mike wallace play for | CREATE TABLE table_20898602_1 (position VARCHAR, player VARCHAR) | SELECT COUNT(position) FROM table_20898602_1 WHERE player = "Wallace, Mike Mike Wallace" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3914,
3840,
4305,
834,
536,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
15,
186,
4655,
410,
1481,
3302,
6,
3,
20068,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
1755,
3914,
3840,
4305,
834,
536,
549,
17444,
427,
1959,
3274,
96,
518,
138,
11706,
6,
4794,
4794,
25568,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What were the placements of the team in regular season when they reached quarterfinals in the U.S. Open Cup but did not qualify for the Concaf Champions Cup? | CREATE TABLE table_72827 (
"Season" real,
"MLS Reg. Season" text,
"MLS Cup Playoffs" text,
"U.S. Open Cup" text,
"CONCACAF Champions Cup / Champions League" text
) | SELECT "MLS Reg. Season" FROM table_72827 WHERE "U.S. Open Cup" = 'Quarterfinals' AND "CONCACAF Champions Cup / Champions League" = 'Did not qualify' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2577,
2555,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
17976,
7777,
5,
7960,
121,
1499,
6,
96,
17976,
3802,
2911,
1647,
7,
121,
1499,
6,
96,
1265,
5,
134,
5,
2384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17976,
7777,
5,
7960,
121,
21680,
953,
834,
940,
2577,
2555,
549,
17444,
427,
96,
1265,
5,
134,
5,
2384,
3802,
121,
3274,
3,
31,
5991,
1408,
49,
12406,
7,
31,
3430,
96,
17752,
254,
22029,
371,
15132,
3802,
3,
... |
What player attended Graceland College? | CREATE TABLE table_name_94 (
player VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_94 WHERE college = "graceland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1959,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
5526,
12254,
40,
232,
1888,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1900,
3274,
96,
3484,
7125,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is 3rd Place, when Runner-Up is 'Simon Ehne', and when Prize is $100,000? | CREATE TABLE table_name_70 (
runner_up VARCHAR,
prize VARCHAR
) | SELECT 3 AS rd_place FROM table_name_70 WHERE runner_up = "simon ehne" AND prize = "$100,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
6441,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
220,
52,
26,
3399,
6,
116,
3,
23572,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
220,
6157,
3,
52,
26,
834,
4687,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
28348,
29,
3,
15,
12836,
121,
3430,
6441,
3274,
96,
3229,
2915,
6,
2313,
121,
1,
-100,
-100,
-100,
... |
What Week 5 has a Week 1 of mysti sherwood? | CREATE TABLE table_name_10 (week_5 VARCHAR, week_1 VARCHAR) | SELECT week_5 FROM table_name_10 WHERE week_1 = "mysti sherwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
8041,
834,
755,
584,
4280,
28027,
6,
471,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6551,
305,
65,
3,
9,
6551,
209,
13,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
834,
755,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
471,
834,
536,
3274,
96,
2258,
2248,
255,
52,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Score has a Place of t6, and a Country of paraguay? | CREATE TABLE table_name_20 (
score VARCHAR,
place VARCHAR,
country VARCHAR
) | SELECT score FROM table_name_20 WHERE place = "t6" AND country = "paraguay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
2604,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
3399,
13,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
286,
3274,
96,
17,
948,
121,
3430,
684,
3274,
96,
6583,
1744,
9,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the Last Performance when the status is current cast, and a Name of noah parets? | CREATE TABLE table_67713 (
"Status" text,
"Name" text,
"First Performance" text,
"Last Performance" text,
"Style" text
) | SELECT "Last Performance" FROM table_67713 WHERE "Status" = 'current cast' AND "Name" = 'noah parets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4450,
519,
41,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
25171,
8233,
121,
1499,
6,
96,
3612,
7,
17,
8233,
121,
1499,
6,
96,
30719,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3612,
7,
17,
8233,
121,
21680,
953,
834,
3708,
4450,
519,
549,
17444,
427,
96,
134,
17,
144,
302,
121,
3274,
3,
31,
14907,
4061,
31,
3430,
96,
23954,
121,
3274,
3,
31,
29,
32,
9,
107,
5448,
17,
7,
31,
1,
... |
who won more awards ? walt disney or james dean ? | CREATE TABLE table_203_17 (
id number,
"name" text,
"date of death" text,
"ceremony" text,
"year" text,
"academy award" text,
"film" text,
"winner" text
) | SELECT "name" FROM table_203_17 WHERE "name" IN ('walt disney', 'james dean') AND "winner" = 'won' GROUP BY "name" ORDER BY COUNT("academy award") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2517,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
5522,
13,
1687,
121,
1499,
6,
96,
2110,
15,
21208,
121,
1499,
6,
96,
1201,
121,
1499,
6,
96,
9,
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,
4350,
121,
21680,
953,
834,
23330,
834,
2517,
549,
17444,
427,
96,
4350,
121,
3388,
41,
31,
5380,
17,
1028,
3186,
31,
6,
3,
31,
1191,
2687,
20,
152,
31,
61,
3430,
96,
3757,
687,
121,
3274,
3,
31,
210,
106,
... |
Name the first aired with money requested more than 85,000 | CREATE TABLE table_name_86 (
first_aired VARCHAR,
money_requested__£_ INTEGER
) | SELECT first_aired FROM table_name_86 WHERE money_requested__£_ > 85 OFFSET 000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
166,
834,
2378,
26,
584,
4280,
28027,
6,
540,
834,
60,
835,
6265,
834,
834,
19853,
834,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
2378,
26,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
540,
834,
60,
835,
6265,
834,
834,
19853,
834,
2490,
11989,
3,
15316,
20788,
6078,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times is young rider more than 0, country is france and points less than 1? | CREATE TABLE table_65197 (
"Rank" text,
"Country" text,
"Jerseys" real,
"Giro wins" real,
"Points" real,
"Young rider" real,
"Most recent cyclist" text,
"Most recent date" text,
"Different holders" real
) | SELECT COUNT("Jerseys") FROM table_65197 WHERE "Young rider" > '0' AND "Country" = 'france' AND "Points" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
27181,
41,
96,
22557,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
683,
277,
15,
63,
7,
121,
490,
6,
96,
30428,
9204,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
683,
277,
15,
63,
7,
8512,
21680,
953,
834,
4122,
27181,
549,
17444,
427,
96,
3774,
1725,
2564,
52,
121,
2490,
3,
31,
632,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
89,
5219,
31,
3430,
9... |
when did patient 002-58943 come for the last time to the hospital? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TA... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '002-58943' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
357,
4525,
3914,
4906,
31,
4674,
11300,
272,
476,
1868,
5,
31386,
20466,
17,
715,
309,
25067,
8729,
12604,
... |
What team(s) did they play on april 23? | CREATE TABLE table_1624 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_1624 WHERE "Date" = 'April 23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2266,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
2938,
2266,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
23323,
1902,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which opponent has a 26-12 record? | CREATE TABLE table_name_44 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_44 WHERE record = "26-12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
65,
3,
9,
2208,
5947,
1368,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1368,
3274,
96,
2688,
5947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the lane with a time of 1:00.66? | CREATE TABLE table_name_93 (
lane INTEGER,
time VARCHAR
) | SELECT AVG(lane) FROM table_name_93 WHERE time = "1:00.66" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
3,
8102,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
8102,
28,
3,
9,
97,
13,
3,
24294,
5,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8102,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
97,
3274,
96,
24294,
5,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many black/cape verdean ethnic background patients have diagnoses icd9 code 1536? | 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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND diagnoses.icd9_code = "1536" | [
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,
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 was the profession of the celebrity who was featured on season 15 and finished 7th place? | CREATE TABLE table_24775967_1 (
notability_profession VARCHAR,
season VARCHAR,
finish VARCHAR
) | SELECT notability_profession FROM table_24775967_1 WHERE season = 15 AND finish = "7th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4013,
3390,
3708,
834,
536,
41,
59,
2020,
834,
1409,
17585,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
59,
2020,
834,
1409,
17585,
21680,
953,
834,
2266,
4013,
3390,
3708,
834,
536,
549,
17444,
427,
774,
3274,
627,
3430,
1992,
3274,
96,
940,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is subject name and age of subject id 81254? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT demographic.name, demographic.age FROM demographic WHERE demographic.subject_id = "81254" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
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,
14798,
5,
4350,
6,
14798,
5,
545,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4959,
1828,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Plot mean age by grouped by sex as a bar graph, order by the the average of age in descending. | CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number 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 Has_amenity (
dormid... | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY AVG(Age) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3306,
7,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
103,
52,
6983,
3,
21342,
17966,
6,
562,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
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,
679,
226,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
71,
17217,
599,
188,
397,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the finish place with a qual of 123.660? | CREATE TABLE table_name_26 (
finish VARCHAR,
qual VARCHAR
) | SELECT finish FROM table_name_26 WHERE qual = "123.660" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
1992,
584,
4280,
28027,
6,
3,
11433,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1992,
286,
28,
3,
9,
3,
11433,
13,
3,
14574,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1992,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
3,
11433,
3274,
96,
14574,
5,
27720,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What percentage did Republish Christopher Reed receive when the lead margin was smaller than 16? | CREATE TABLE table_name_25 (republican VARCHAR, lead_margin INTEGER) | SELECT republican AS :_christopher_reed FROM table_name_25 WHERE lead_margin < 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
60,
15727,
152,
584,
4280,
28027,
6,
991,
834,
1635,
122,
77,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
410,
419,
29337,
14702,
2014... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20237,
152,
6157,
3,
10,
834,
15294,
10775,
49,
834,
60,
15,
26,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
991,
834,
1635,
122,
77,
3,
2,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the venue where the result was 12th? | CREATE TABLE table_name_73 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_73 WHERE result = "12th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
15098,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
213,
8,
741,
47,
586,
189,
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,
5669,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
741,
3274,
96,
2122,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, a scatter chart shows the correlation between code and price , and group by attribute founder. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Code, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
22737,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3,
19145... |
What is the height of the person whose position is Libero? | CREATE TABLE table_64517 (
"Shirt No" real,
"Nationality" text,
"Player" text,
"Birth Date" text,
"Height" real,
"Position" text
) | SELECT MAX("Height") FROM table_64517 WHERE "Position" = 'libero' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2128,
2517,
41,
96,
16671,
465,
121,
490,
6,
96,
24732,
485,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
279,
23,
52,
189,
7678,
121,
1499,
6,
96,
3845,
2632,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
2632,
8512,
21680,
953,
834,
948,
2128,
2517,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
10661,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the director for the episode in season #50? | CREATE TABLE table_20858 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT "Directed by" FROM table_20858 WHERE "Series #" = '50' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
3449,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23620,
15,
26,
57,
121,
21680,
953,
834,
23946,
3449,
549,
17444,
427,
96,
12106,
7,
1713,
121,
3274,
3,
31,
1752,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the language of the film originally titled רגעים? | CREATE TABLE table_name_39 (language VARCHAR, original_name VARCHAR) | SELECT language FROM table_name_39 WHERE original_name = "רגעים" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
24925,
584,
4280,
28027,
6,
926,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1612,
13,
8,
814,
5330,
3,
10920,
3,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1612,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
926,
834,
4350,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the time/retired for mika h kkinen | CREATE TABLE table_56317 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_56317 WHERE "Driver" = 'mika häkkinen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
519,
2517,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
4834,
519,
2517,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
20068,
9,
3,
10926,
157,
2917,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which opponent had a round of SF? | CREATE TABLE table_name_45 (
opponent VARCHAR,
round VARCHAR
) | SELECT opponent FROM table_name_45 WHERE round = "sf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
15264,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
141,
3,
9,
1751,
13,
3,
7016,
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,
15264,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1751,
3274,
96,
7,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
miracle man and kanjyuro matsuyama both won the title in which japanese city ? | CREATE TABLE table_204_854 (
id number,
"#" number,
"wrestlers" text,
"reign" number,
"date" text,
"days\nheld" number,
"location" text,
"notes" text
) | SELECT "location" FROM table_204_854 WHERE "wrestlers" = 'miracle man' INTERSECT SELECT "location" FROM table_204_854 WHERE "wrestlers" = 'kanjyuro matsuyama' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4433,
591,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
210,
6216,
1171,
7,
121,
1499,
6,
96,
60,
3191,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
1135... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14836,
121,
21680,
953,
834,
26363,
834,
4433,
591,
549,
17444,
427,
96,
210,
6216,
1171,
7,
121,
3274,
3,
31,
5884,
9,
2482,
388,
31,
3,
21342,
5249,
14196,
3,
23143,
14196,
96,
14836,
121,
21680,
953,
834,
2... |
At the match which took place in arden street oval, how much did the away team score? | CREATE TABLE table_name_79 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team AS score FROM table_name_79 WHERE venue = "arden street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
8,
1588,
84,
808,
286,
16,
3,
986,
35,
2815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
5669,
3274,
96,
986,
35,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give the number of patients having lab test named phenytoin. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "Phenytoin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
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,
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,... |
Name the southern lakota for h ha na | CREATE TABLE table_72619 (
"English gloss" text,
"Santee-Sisseton" text,
"Yankton-Yanktonai" text,
"Northern Lakota" text,
"Southern Lakota" text
) | SELECT "Southern Lakota" FROM table_72619 WHERE "Yankton-Yanktonai" = 'híŋhaŋna' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2688,
2294,
41,
96,
26749,
20666,
121,
1499,
6,
96,
134,
1841,
15,
18,
134,
3818,
17,
106,
121,
1499,
6,
96,
476,
5979,
17,
106,
18,
476,
5979,
17,
106,
9,
23,
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,
22081,
49,
29,
325,
15414,
9,
121,
21680,
953,
834,
940,
2688,
2294,
549,
17444,
427,
96,
476,
5979,
17,
106,
18,
476,
5979,
17,
106,
9,
23,
121,
3274,
3,
31,
107,
2,
1024,
2,
29,
9,
31,
1,
-100,
-100,
-... |
What is the Call sign for the ERP W 19? | CREATE TABLE table_name_75 (
call_sign VARCHAR,
erp_w VARCHAR
) | SELECT call_sign FROM table_name_75 WHERE erp_w = 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
580,
834,
6732,
584,
4280,
28027,
6,
3,
49,
102,
834,
210,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2571,
1320,
21,
8,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
580,
834,
6732,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
3,
49,
102,
834,
210,
3274,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 19 is the stage who is the points classification? | CREATE TABLE table_18733814_2 (
points_classification VARCHAR,
stage VARCHAR
) | SELECT points_classification FROM table_18733814_2 WHERE stage = 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4552,
3747,
2534,
834,
357,
41,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
957,
19,
8,
1726,
113,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
834,
4057,
2420,
21680,
953,
834,
2606,
4552,
3747,
2534,
834,
357,
549,
17444,
427,
1726,
3274,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which year saw the most ships produced ? | CREATE TABLE table_204_33 (
id number,
"number" number,
"name" text,
"year built" number,
"boat builder" text,
"current status" text
) | SELECT "year built" FROM table_204_33 GROUP BY "year built" ORDER BY COUNT("name") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4201,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
1201,
1192,
121,
381,
6,
96,
14131,
918,
49,
121,
1499,
6,
96,
14907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
1192,
121,
21680,
953,
834,
26363,
834,
4201,
350,
4630,
6880,
272,
476,
96,
1201,
1192,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
121,
4350,
8512,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100... |
What is the attendance of the game that had a date listed as Bye? | CREATE TABLE table_48793 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_48793 WHERE "Date" = 'bye' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
4440,
519,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
3707,
4440,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
969,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the main legion base for the Romans when the notes were 'primigenia goddess of fate. xx in batavi revolt'? | CREATE TABLE table_26709 (
"Legion no and title" text,
"Main legion base" text,
"Emblem" text,
"Date founded/ founder" text,
"Date disband" text,
"Castra legionaria (legion bases) * = main base. Start date 31 BC if unspecified" text,
"Notes" text
) | SELECT "Main legion base" FROM table_26709 WHERE "Notes" = 'Primigenia goddess of Fate. XX in Batavi revolt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
4198,
41,
96,
434,
11097,
106,
150,
11,
2233,
121,
1499,
6,
96,
21978,
29,
12409,
106,
1247,
121,
1499,
6,
96,
17467,
109,
51,
121,
1499,
6,
96,
308,
342,
5710... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21978,
29,
12409,
106,
1247,
121,
21680,
953,
834,
357,
3708,
4198,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
7855,
10673,
18242,
30443,
13,
11762,
15,
5,
3,
4,
4,
16,
8897,
2960,
28495,
31,
1,
-1... |
Which award show had the category of best supporting actress? | CREATE TABLE table_55135 (
"Year" real,
"Award" text,
"Category" text,
"Nominated work" text,
"Result" text
) | SELECT "Award" FROM table_55135 WHERE "Category" = 'best supporting actress' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
536,
2469,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
1109,
920,
161,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
2239,
121,
21680,
953,
834,
3769,
536,
2469,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
9606,
3956,
15676,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people directed episode 2? | CREATE TABLE table_31183 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Featured character(s)" text,
"U.S. viewers (millions)" text,
"Original air date" text
) | SELECT COUNT("Directed by") FROM table_31183 WHERE "No." = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
24361,
41,
96,
4168,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
16772,
26,
1848,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23620,
15,
26,
57,
8512,
21680,
953,
834,
3341,
24361,
549,
17444,
427,
96,
4168,
535,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which player has 18-50 .360 field goals? | CREATE TABLE table_22875514_3 (
player VARCHAR,
field_goals VARCHAR
) | SELECT player FROM table_22875514_3 WHERE field_goals = "18-50 .360" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4225,
3769,
2534,
834,
519,
41,
1959,
584,
4280,
28027,
6,
1057,
834,
839,
5405,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
65,
507,
19431,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
2884,
4225,
3769,
2534,
834,
519,
549,
17444,
427,
1057,
834,
839,
5405,
3274,
96,
2606,
19431,
3,
5,
19208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the fewest wickets when player's career spanned 1946-1960 and maidens were more than 419? | CREATE TABLE table_name_84 (
wickets INTEGER,
career VARCHAR,
maidens VARCHAR
) | SELECT MIN(wickets) FROM table_name_84 WHERE career = "1946-1960" AND maidens > 419 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
29719,
7,
3,
21342,
17966,
6,
1415,
584,
4280,
28027,
6,
187,
537,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
360,
222,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
5981,
15,
17,
7,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1415,
3274,
96,
2294,
4448,
4481,
3328,
121,
3430,
187,
537,
7,
2490,
314,
2294,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Out of total number of patients admitted before the year 2150, how many of them had hemodialysis? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2150" AND procedures.long_title = "Hemodialysis" | [
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,... |
What is the name of the player with more than 0 assists, a position of forward, 19 goals, and more than 84 apps? | CREATE TABLE table_14196 (
"Name" text,
"Position" text,
"Apps" real,
"Goals" real,
"Assists" real
) | SELECT "Name" FROM table_14196 WHERE "Assists" > '0' AND "Position" = 'forward' AND "Apps" > '84' AND "Goals" = '19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
26937,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9648,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
6,
96,
188,
7,
7,
343,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
2534,
26937,
549,
17444,
427,
96,
188,
7,
7,
343,
7,
121,
2490,
3,
31,
632,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
26338,
31,
3430,
96,
9648,
7,
121,
2490,
3,
31,
... |
How many parks are there in the state of NY? | CREATE TABLE park (
state VARCHAR
) | SELECT COUNT(*) FROM park WHERE state = 'NY' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2447,
41,
538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9307,
33,
132,
16,
8,
538,
13,
5825,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2447,
549,
17444,
427,
538,
3274,
3,
31,
12056,
31,
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 rating of the restaurant Subway? | CREATE TABLE restaurant_type (
restypeid number,
restypename text,
restypedescription text
)
CREATE TABLE visits_restaurant (
stuid number,
resid number,
time time,
spent number
)
CREATE TABLE type_of_restaurant (
resid number,
restypeid number
)
CREATE TABLE student (
stuid n... | SELECT rating FROM restaurant WHERE resname = "Subway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2062,
834,
6137,
41,
3,
60,
7,
6137,
23,
26,
381,
6,
3,
60,
7,
6137,
4350,
1499,
6,
880,
63,
3138,
15,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5773,
21680,
2062,
549,
17444,
427,
3,
60,
7,
4350,
3274,
96,
25252,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the developer of XCom: Enemy Unknown? | CREATE TABLE table_66448 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT "Developer(s)" FROM table_66448 WHERE "Game" = 'xcom: enemy unknown' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
591,
3707,
41,
96,
476,
2741,
121,
490,
6,
96,
23055,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
10146,
2032,
599,
7,
61,
121,
1499,
6,
96,
2962,
162,
8745,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2962,
162,
8745,
49,
599,
7,
61,
121,
21680,
953,
834,
3539,
591,
3707,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
226,
287,
10,
10101,
7752,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Label has a Format of cd, a Country of Japan and a Catalog of vjcp-68403? | CREATE TABLE table_9407 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Label" FROM table_9407 WHERE "Format" = 'cd' AND "Country" = 'japan' AND "Catalog" = 'vjcp-68403' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4240,
4560,
41,
96,
10628,
651,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
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,
434,
10333,
121,
21680,
953,
834,
4240,
4560,
549,
17444,
427,
96,
3809,
3357,
121,
3274,
3,
31,
75,
26,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
1191,
2837,
31,
3430,
96,
18610,
9,
2152,
121,
3274,
3,
31... |
What away team has a Tie no of 5? | CREATE TABLE table_46989 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Away team" FROM table_46989 WHERE "Tie no" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3951,
3914,
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,
591,
3951,
3914,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score for the 2014 FIFA World Cup Qualification (UEFA)? | CREATE TABLE table_41390 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_41390 WHERE "Competition" = '2014 fifa world cup qualification (uefa)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2368,
2394,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
591,
2368,
2394,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
10218,
361,
89,
9,
296,
4119,
15513,
41,
76,
15,
89,
9,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is segment C in s07e05 | CREATE TABLE table_19902 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment C" FROM table_19902 WHERE "Netflix" = 'S07E05' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19479,
4305,
41,
96,
12106,
7,
10395,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
9688,
89,
17591,
121,
1499,
6,
96,
134,
15,
122,
297,
71,
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,
15,
122,
297,
205,
121,
21680,
953,
834,
19479,
4305,
549,
17444,
427,
96,
9688,
89,
17591,
121,
3274,
3,
31,
134,
4560,
427,
3076,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who wins with a score 7–6(4), 6–4 | CREATE TABLE table_name_1 (winner VARCHAR, score VARCHAR) | SELECT winner FROM table_name_1 WHERE score = "7–6(4), 6–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3757,
687,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
9204,
28,
3,
9,
2604,
489,
104,
948,
10820,
6,
431,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
2604,
3274,
96,
940,
104,
948,
10820,
6,
431,
104,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
A bar chart for what are the number of the enrollment dates of all the tests that have result 'Pass'? | CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Student_Course_Enrolment (
registration_... | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4375,
41,
1236,
834,
23,
26,
3,
21342,
17966,
6,
833,
834,
858,
834,
5200,
257,
309,
6048,
382,
15382,
6,
833,
834,
858,
834,
521,
4377,
834,
2152,
106,
309,
6048,
382,
15382,
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,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
35,
3491,
297,
6,
2847,
17161,
599,
5522,
834,
858,
834,
35,
3491,
297,
61,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
382,
222,
7,
834,
... |
Give me the comparison about the sum of meter_100 over the Nationality , and group by attribute Nationality, rank names in descending order. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
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... | SELECT Nationality, SUM(meter_100) FROM swimmer GROUP BY Nationality ORDER BY Nationality DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
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,
868,
485,
6,
180,
6122,
599,
4401,
834,
2915,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
868,
485,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What state was the Jun 2014 less than 73 and the Jul 2013 larger than 13, and the population 2006 bigger than 11,125,000 and that joined in 1995? | CREATE TABLE table_7620 (
"State" text,
"Joined" text,
"Population 2006" real,
"Jul 2013" real,
"Jun 2014" real
) | SELECT "State" FROM table_7620 WHERE "Jun 2014" < '73' AND "Jul 2013" > '13' AND "Population 2006" > '11,125,000' AND "Joined" = '1995' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
1755,
41,
96,
134,
4748,
121,
1499,
6,
96,
683,
32,
630,
26,
121,
1499,
6,
96,
27773,
7830,
3581,
121,
490,
6,
96,
683,
83,
2038,
121,
490,
6,
96,
683,
202,
1412,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4748,
121,
21680,
953,
834,
3959,
1755,
549,
17444,
427,
96,
683,
202,
1412,
121,
3,
2,
3,
31,
4552,
31,
3430,
96,
683,
83,
2038,
121,
2490,
3,
31,
2368,
31,
3430,
96,
27773,
7830,
3581,
121,
2490,
3,
... |
Who is the leading scorer of the game on 20 November 2007? | CREATE TABLE table_52481 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Leading scorer" FROM table_52481 WHERE "Date" = '20 november 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2266,
4959,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2796,
9,
26,
53,
2604,
52,
121,
21680,
953,
834,
755,
2266,
4959,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
1755,
3,
5326,
18247,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score of the tournament with a carpet surface and tim henman as the partnering? | CREATE TABLE table_name_88 (
score VARCHAR,
surface VARCHAR,
partnering VARCHAR
) | SELECT score FROM table_name_88 WHERE surface = "carpet" AND partnering = "tim henman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2604,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
3,
26361,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
5892,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1774,
3274,
96,
1720,
4995,
121,
3430,
3,
26361,
3274,
96,
2998,
3,
3225,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was sebastian kawa's average speed with Diana 2? | CREATE TABLE table_45511 (
"Position" real,
"Pilot" text,
"Glider" text,
"Speed" text,
"Distance" text
) | SELECT "Speed" FROM table_45511 WHERE "Glider" = 'diana 2' AND "Pilot" = 'sebastian kawa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
755,
2596,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
345,
23,
3171,
121,
1499,
6,
96,
517,
8130,
49,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
308,
23,
8389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28328,
121,
21680,
953,
834,
2128,
755,
2596,
549,
17444,
427,
96,
517,
8130,
49,
121,
3274,
3,
31,
8603,
9,
204,
31,
3430,
96,
345,
23,
3171,
121,
3274,
3,
31,
7,
15,
4883,
12572,
3,
157,
7396,
31,
1,
-10... |
How many episodes had 11.47 million viewers? | CREATE TABLE table_24689168_5 (episode VARCHAR, viewers__millions_ VARCHAR) | SELECT COUNT(episode) FROM table_24689168_5 WHERE viewers__millions_ = "11.47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3651,
4729,
3651,
834,
755,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15,
102,
159,
32,
221,
61,
21680,
953,
834,
2266,
3651,
4729,
3651,
834,
755,
549,
17444,
427,
13569,
834,
834,
17030,
7,
834,
3274,
96,
10032,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many tries against were there when there was 961 points against? | CREATE TABLE table_name_29 (tries_against VARCHAR, points_against VARCHAR) | SELECT tries_against FROM table_name_29 WHERE points_against = "961" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
9000,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
834,
9,
16720,
7,
17,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
4314,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the human development index for the year 2000 where the ingei code is 10? | CREATE TABLE table_19591 (
"INEGI code" real,
"Municipality" text,
"Municipal Seat" text,
"Area (km 2 )" text,
"Population (2005)" real,
"Population density (/km 2 )" text,
"Human Development Index (2000)" text
) | SELECT "Human Development Index (2000)" FROM table_19591 WHERE "INEGI code" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
4729,
41,
96,
9730,
7214,
1081,
121,
490,
6,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
329,
202,
1294,
6459,
15915,
121,
1499,
6,
96,
188,
864,
41,
5848,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13284,
348,
2958,
11507,
3,
31804,
121,
21680,
953,
834,
22464,
4729,
549,
17444,
427,
96,
9730,
7214,
1081,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which series has 4 f/laps? | CREATE TABLE table_name_58 (
series VARCHAR,
f_laps VARCHAR
) | SELECT series FROM table_name_58 WHERE f_laps = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
939,
584,
4280,
28027,
6,
3,
89,
834,
8478,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
939,
65,
314,
3,
89,
87,
8478,
7,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
3,
89,
834,
8478,
7,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the dosage of Vancomycin HCl. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Vancomycin HCl" | [
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,
7744,
7,
5,
26,
13534,
834,
12051,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
553,
152,
509,
25757,
3,
8095,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which County has an IHSAA Class of aaaa, and a Mascot of cardinals? | CREATE TABLE table_name_70 (
county VARCHAR,
ihsaa_class VARCHAR,
mascot VARCHAR
) | SELECT county FROM table_name_70 WHERE ihsaa_class = "aaaa" AND mascot = "cardinals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
5435,
584,
4280,
28027,
6,
3,
23,
107,
7,
9,
9,
834,
4057,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5435,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3,
23,
107,
7,
9,
9,
834,
4057,
3274,
96,
9,
9,
9,
9,
121,
3430,
3,
2754,
4310,
3274,
96,
6043,
10270,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the branding for cbxp-fm? | CREATE TABLE table_66085 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) | SELECT "Branding" FROM table_66085 WHERE "Call sign" = 'cbxp-fm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
4433,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
667,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18304,
727,
53,
121,
21680,
953,
834,
27720,
4433,
549,
17444,
427,
96,
254,
1748,
1320,
121,
3274,
3,
31,
75,
115,
226,
102,
18,
89,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the number of Apps for Internazionale Club of Brazil? | CREATE TABLE table_6028 (
"National team" text,
"Club" text,
"Season" text,
"Apps" real,
"Goals" real
) | SELECT COUNT("Apps") FROM table_6028 WHERE "National team" = 'brazil' AND "Club" = 'internazionale' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
2577,
41,
96,
24732,
372,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
9648,
7,
121,
490,
6,
96,
6221,
5405,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
9648,
7,
8512,
21680,
953,
834,
3328,
2577,
549,
17444,
427,
96,
24732,
372,
121,
3274,
3,
31,
1939,
702,
40,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
3870,
29,
9,
172,
6318,
15,
31,
1,... |
Who won mens singles the year sveinn logi sölvason tryggvi nilsen won mens doubles and elsa nielsen won womens singles | CREATE TABLE table_14903999_1 (mens_singles VARCHAR, mens_doubles VARCHAR, womens_singles VARCHAR) | SELECT mens_singles FROM table_14903999_1 WHERE mens_doubles = "Sveinn Logi Sölvason Tryggvi Nilsen" AND womens_singles = "Elsa Nielsen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
4928,
19446,
834,
536,
41,
904,
7,
834,
7,
53,
965,
584,
4280,
28027,
6,
1076,
7,
834,
25761,
7,
584,
4280,
28027,
6,
887,
7,
834,
7,
53,
965,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1076,
7,
834,
7,
53,
965,
21680,
953,
834,
24816,
4928,
19446,
834,
536,
549,
17444,
427,
1076,
7,
834,
25761,
7,
3274,
96,
134,
162,
77,
29,
7736,
23,
180,
7898,
900,
739,
5263,
4102,
2099,
445,
1558,
35,
121,
... |
Name the first elected for new york 1 | CREATE TABLE table_18195 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("First elected") FROM table_18195 WHERE "District" = 'New York 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
22464,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
2847,
17161,
599,
121,
25171,
8160,
8512,
21680,
953,
834,
2606,
22464,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
6861,
1060,
209,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, and I want to display in descending by the X. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE... | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
2168... |
What are the languages that are used most often in songs? | CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE artist (
artist_na... | SELECT languages FROM song GROUP BY languages ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2324,
41,
2324,
834,
4350,
1499,
6,
2377,
834,
4350,
1499,
6,
684,
1499,
6,
3,
89,
834,
23,
26,
381,
6,
5349,
834,
159,
1499,
6,
5773,
381,
6,
8024,
1499,
6,
1883,
342,
97,
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,
8024,
21680,
2324,
350,
4630,
6880,
272,
476,
8024,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the longitude named zipaltonal fluctus in 1997 with a diameter smaller than 490? | CREATE TABLE table_name_41 (longitude VARCHAR, name VARCHAR, year_named VARCHAR, diameter__km_ VARCHAR) | SELECT longitude FROM table_name_41 WHERE year_named = 1997 AND diameter__km_ < 490 AND name = "zipaltonal fluctus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
2961,
20341,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
215,
834,
4350,
26,
584,
4280,
28027,
6,
9260,
834,
834,
5848,
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,
307,
20341,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
215,
834,
4350,
26,
3274,
6622,
3430,
9260,
834,
834,
5848,
834,
3,
2,
314,
2394,
3430,
564,
3274,
96,
13453,
2920,
9533,
23460,
7,
121,
1,
-100,
-100,
... |
Name the team for season 2010 | CREATE TABLE table_24466191_1 (team VARCHAR, season VARCHAR) | SELECT team FROM table_24466191_1 WHERE season = 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4448,
4241,
4729,
834,
536,
41,
11650,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
21,
774,
2735,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2266,
4448,
4241,
4729,
834,
536,
549,
17444,
427,
774,
3274,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What conference has mayville state as the school? | CREATE TABLE table_name_71 (conference VARCHAR, school VARCHAR) | SELECT conference FROM table_name_71 WHERE school = "mayville state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
28496,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2542,
65,
164,
1420,
538,
38,
8,
496,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2542,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
496,
3274,
96,
13726,
1420,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who directed the episode that had 0.54 million U.S. viewers? | CREATE TABLE table_3672 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Story by" text,
"Teleplay by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Directed by" FROM table_3672 WHERE "U.S. viewers (millions)" = '0.54' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
5865,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
134,
10972,
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,
3420,
5865,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
12100,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.