NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
A bar chart for what are the number of the category of music festivals with result 'Awarded'?, and I want to order by the X-axis from high to low. | CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE volume (
Volume_ID int,
Volume_Issue text,
Issue_Date text,
Weeks_on_Top real,
Song text,
Artist_ID int
)
CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
) | SELECT Category, COUNT(Category) FROM music_festival WHERE Result = "Awarded" GROUP BY Category ORDER BY Category DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
9152,
834,
4309,
16,
17,
6,
9152,
1499,
6,
7526,
16,
17,
6,
29952,
834,
382,
155,
109,
1499,
6,
29952,
834,
1649,
40,
14608,
834,
5522,
1499,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
17459,
6,
2847,
17161,
599,
18610,
6066,
651,
61,
21680,
723,
834,
89,
24742,
549,
17444,
427,
3,
20119,
3274,
96,
188,
28288,
121,
350,
4630,
6880,
272,
476,
17459,
4674,
11300,
272,
476,
17459,
309,
25067,
1,
-100,
... |
What was the nickname Established in 2002? | CREATE TABLE table_16432543_3 (nickname VARCHAR, established VARCHAR) | SELECT nickname FROM table_16432543_3 WHERE established = 2002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4906,
1828,
4906,
834,
519,
41,
11191,
4350,
584,
4280,
28027,
6,
2127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
24649,
25275,
16,
4407,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24649,
21680,
953,
834,
2938,
4906,
1828,
4906,
834,
519,
549,
17444,
427,
2127,
3274,
4407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many classes exist for each school? | CREATE TABLE enroll (
class_code text,
stu_num number,
enroll_grade text
)
CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE professor (
emp_num number,
dept_code text,
prof_office text,
prof_extension text,
prof_high_degree text
)
CREATE TABLE employee (
emp_num number,
emp_lname text,
emp_fname text,
emp_initial text,
emp_jobcode text,
emp_hiredate time,
emp_dob time
)
CREATE TABLE class (
class_code text,
crs_code text,
class_section text,
class_time text,
class_room text,
prof_num number
)
CREATE TABLE course (
crs_code text,
dept_code text,
crs_description text,
crs_credit number
)
CREATE TABLE student (
stu_num number,
stu_lname text,
stu_fname text,
stu_init text,
stu_dob time,
stu_hrs number,
stu_class text,
stu_gpa number,
stu_transfer number,
dept_code text,
stu_phone text,
prof_num number
) | SELECT COUNT(*), T3.school_code FROM class AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17990,
41,
853,
834,
4978,
1499,
6,
21341,
834,
5525,
381,
6,
17990,
834,
6801,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4978,
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,
1935,
201,
332,
5787,
6646,
834,
4978,
21680,
853,
6157,
332,
536,
3,
15355,
3162,
503,
6157,
332,
357,
9191,
332,
5411,
75,
52,
7,
834,
4978,
3274,
332,
4416,
75,
52,
7,
834,
4978,
3,
15355,
316... |
In what place(s) did the player(s) with a total less than 282 finish? | CREATE TABLE table_name_33 (finish VARCHAR, total INTEGER) | SELECT finish FROM table_name_33 WHERE total < 282 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
25535,
584,
4280,
28027,
6,
792,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
286,
599,
7,
61,
410,
8,
1959,
599,
7,
61,
28,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1992,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
792,
3,
2,
2059,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the name for regions and the number of storms for each region, and I want to rank by the y axis in desc please. | CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
) | SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4161,
834,
18145,
41,
6163,
834,
23,
26,
16,
17,
6,
16133,
834,
4309,
16,
17,
6,
7720,
834,
6726,
834,
9,
27488,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6163,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1719,
6157,
332,
536,
3,
15355,
3162,
4161,
834,
18145,
6157,
332,
357,
9191,
332,
5411,
17748,
23,
106,
834,
23,
26,
3274,
332,
4416,
17748,
23,
106,
834,
23,
... |
What value in 2013 corresponds to Grand Slam Tournaments in 2012? | CREATE TABLE table_name_38 (
Id VARCHAR
) | SELECT 2013 FROM table_name_38 WHERE 2012 = "grand slam tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
701,
16,
2038,
10423,
7,
12,
2698,
29291,
20502,
7,
16,
1673,
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,
2038,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
1673,
3274,
96,
15448,
3,
7,
40,
265,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
were there more names ranked 11th or 6th ? | CREATE TABLE table_204_741 (
id number,
"rank" number,
"name" text,
"nationality" text,
"1,62" text,
"1,67" text,
"1,72" text,
"1,75" text,
"notes" text
) | SELECT "rank" FROM table_204_741 WHERE "rank" IN (11, 6) GROUP BY "rank" ORDER BY COUNT("name") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4581,
536,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
4347,
4056,
121,
1499,
6,
96,
4347,
3708,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6254,
121,
21680,
953,
834,
26363,
834,
4581,
536,
549,
17444,
427,
96,
6254,
121,
3388,
41,
2596,
6,
3,
10938,
350,
4630,
6880,
272,
476,
96,
6254,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
121,
4350,
8512,... |
what is the pole position for france? | CREATE TABLE table_31299 (
"Round" real,
"Country" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Rider" text,
"Winning Team" text,
"Report" text
) | SELECT "Pole Position" FROM table_31299 WHERE "Country" = 'France' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2122,
3264,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
14258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8931,
15,
14258,
121,
21680,
953,
834,
519,
2122,
3264,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
371,
5219,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Years for Jazz Club at Oregon State? | CREATE TABLE table_name_46 (years_for_jazz VARCHAR, school_club_team VARCHAR) | SELECT years_for_jazz FROM table_name_46 WHERE school_club_team = "oregon state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
1201,
7,
834,
1161,
834,
1191,
5271,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
1161,
834,
1191,
5271,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
127,
15,
5307,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the starting year of the oldest technicians? | CREATE TABLE technician (
Starting_Year VARCHAR,
Age VARCHAR
) | SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17730,
41,
14362,
834,
476,
2741,
584,
4280,
28027,
6,
7526,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1684,
215,
13,
8,
10043,
11225,
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,
14362,
834,
476,
2741,
21680,
17730,
4674,
11300,
272,
476,
7526,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the Runner(s)-up on the Date 4 Oct 2009? | CREATE TABLE table_53826 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Runner(s)-up" FROM table_53826 WHERE "Date" = '4 oct 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3747,
2688,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
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,
23572,
599,
7,
61,
18,
413,
121,
21680,
953,
834,
755,
3747,
2688,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
591,
3,
32,
75,
17,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
who co-wrote Season 2, Episode 3? | CREATE TABLE table_17901155_3 (
written_by VARCHAR,
no_in_season VARCHAR
) | SELECT written_by FROM table_17901155_3 WHERE no_in_season = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
4542,
20896,
834,
519,
41,
1545,
834,
969,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
576,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
26593,
4542,
20896,
834,
519,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the country of the play based in Athens at the Attis Theatre company? | CREATE TABLE table_name_33 (country VARCHAR, base VARCHAR, company VARCHAR) | SELECT country FROM table_name_33 WHERE base = "athens" AND company = "attis theatre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
17529,
584,
4280,
28027,
6,
1247,
584,
4280,
28027,
6,
349,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
684,
13,
8,
577,
3,
390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1247,
3274,
96,
9,
189,
35,
7,
121,
3430,
349,
3274,
96,
15817,
7,
8516,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country is t3 finisher billy mayfair from? | CREATE TABLE table_62669 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
) | SELECT "Country" FROM table_62669 WHERE "Place" = 't3' AND "Player" = 'billy mayfair' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2688,
3951,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
948,
2688,
3951,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
519,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
3727,
120,
164,
14881,
31,
1,
-100,
-100,
-100,
-100,
... |
which results were listed the most under the playoffs column ? | CREATE TABLE table_203_521 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
) | SELECT "playoffs" FROM table_203_521 GROUP BY "playoffs" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
2658,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
26,
23,
6610,
121,
381,
6,
96,
29512,
121,
1499,
6,
96,
60,
122,
4885,
774,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4895,
1647,
7,
121,
21680,
953,
834,
23330,
834,
755,
2658,
350,
4630,
6880,
272,
476,
96,
4895,
1647,
7,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100... |
What is Score, when Player is 'Deane Beman'? | CREATE TABLE table_43882 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_43882 WHERE "Player" = 'deane beman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4060,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4906,
4060,
357,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
221,
152,
15,
36,
348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
A bar chart shows the distribution of meter_500 and ID , list by the X-axis in descending. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
) | SELECT meter_500, ID FROM swimmer ORDER BY meter_500 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
2560,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2560,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
a current diagnosis of acute severe, or unstable asthmatic condition ( e.g., severe chronic obstructive pulmonary disease ( copd ) | CREATE TABLE table_train_121 (
"id" int,
"depression" bool,
"suicidality" bool,
"neurodegenerative_disease" bool,
"unstable_asthmatic_condition" bool,
"vitamin_k_deficiency" bool,
"renal_disease" bool,
"cerebrovascular_disease" bool,
"hepatic_disease" bool,
"liver_disease" bool,
"cardiac_disease" bool,
"acute_severe" bool,
"chronic_obstructive_pulmonary_disease_copd" bool,
"alcohol_abuse" bool,
"parkinson_disease" bool,
"drug_abuse" bool,
"lewy_body_dementia" bool,
"coagulopathy" bool,
"NOUSE" float
) | SELECT * FROM table_train_121 WHERE acute_severe = 1 OR (unstable_asthmatic_condition = 1 OR chronic_obstructive_pulmonary_disease_copd = 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
22011,
41,
96,
23,
26,
121,
16,
17,
6,
96,
221,
8243,
121,
3,
12840,
40,
6,
96,
7,
76,
1294,
26,
10355,
121,
3,
12840,
40,
6,
96,
8992,
9488,
15,
25181,
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,
1429,
21680,
953,
834,
9719,
834,
22011,
549,
17444,
427,
12498,
834,
7,
3258,
15,
3274,
209,
4674,
41,
202,
7,
3869,
834,
9,
7,
189,
4992,
834,
17558,
3274,
209,
4674,
6658,
834,
32,
115,
7593,
757,
834,
26836,
8... |
In 1912 when the U.S used sapphire, what was the Hindu birthstone? | CREATE TABLE table_62331 (
"Month" text,
"15th- 20th century" text,
"U.S. (1912)" text,
"U.S. (2013)" text,
"Britain (2013)" text,
"Hindu" text
) | SELECT "Hindu" FROM table_62331 WHERE "U.S. (1912)" = 'sapphire' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
519,
3341,
41,
96,
9168,
189,
121,
1499,
6,
96,
1808,
189,
18,
460,
189,
2646,
121,
1499,
6,
96,
1265,
5,
134,
5,
2863,
2122,
61,
121,
1499,
6,
96,
1265,
5,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
566,
13580,
121,
21680,
953,
834,
4056,
519,
3341,
549,
17444,
427,
96,
1265,
5,
134,
5,
2863,
2122,
61,
121,
3274,
3,
31,
7,
3096,
9288,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which MLB division has a win record of 76? | CREATE TABLE table_52508 (
"MLB season" text,
"Team season" text,
"League" text,
"Division" text,
"Finish" text,
"Wins" text,
"Losses" text,
"Win %" text
) | SELECT "Division" FROM table_52508 WHERE "Wins" = '76' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
4018,
41,
96,
6858,
279,
774,
121,
1499,
6,
96,
18699,
774,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
371,
77,
1273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
6610,
121,
21680,
953,
834,
755,
1828,
4018,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
3959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the total capacity of dorms for each gender with a pie chart. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
) | SELECT gender, SUM(student_capacity) FROM Dorm GROUP BY gender | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7285,
6,
180,
6122,
599,
8637,
295,
834,
4010,
9,
6726,
61,
21680,
6200,
51,
350,
4630,
6880,
272,
476,
7285,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the partial thromboplastin time for factor x deficiency as seen in amyloid purpura | CREATE TABLE table_1099080_1 (
partial_thromboplastin_time VARCHAR,
condition VARCHAR
) | SELECT partial_thromboplastin_time FROM table_1099080_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17304,
2394,
2079,
834,
536,
41,
11807,
834,
8514,
6310,
23918,
77,
834,
715,
584,
4280,
28027,
6,
1706,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11807,
834,
8514,
6310,
23918,
77,
834,
715,
21680,
953,
834,
17304,
2394,
2079,
834,
536,
549,
17444,
427,
1706,
3274,
96,
371,
9,
5317,
3,
4,
20,
4638,
23,
4392,
38,
894,
16,
183,
63,
20253,
3990,
3791,
9,
121,
... |
On which circuit was the lites 1 race one winning team #66 Gunnar Racing? | CREATE TABLE table_26638600_3 (circuit VARCHAR, lites_1_race_one_winning_team VARCHAR) | SELECT circuit FROM table_26638600_3 WHERE lites_1_race_one_winning_team = "#66 Gunnar Racing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
3747,
6007,
834,
519,
41,
15357,
21560,
584,
4280,
28027,
6,
3,
6311,
7,
834,
536,
834,
12614,
834,
782,
834,
8163,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4558,
21680,
953,
834,
357,
3539,
3747,
6007,
834,
519,
549,
17444,
427,
3,
6311,
7,
834,
536,
834,
12614,
834,
782,
834,
8163,
834,
11650,
3274,
96,
4663,
3539,
9982,
29,
291,
16046,
121,
1,
-100,
-100,
-100,
-100,... |
lau nim yat and giovane alves de silva where both transferred to which team ? | CREATE TABLE table_204_968 (
id number,
"squad #" number,
"position" text,
"player" text,
"transferred to" text,
"fee" text,
"date" text
) | SELECT "transferred to" FROM table_204_968 WHERE "player" = 'lau nim yat' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4314,
927,
41,
3,
23,
26,
381,
6,
96,
7,
4960,
26,
1713,
121,
381,
6,
96,
4718,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
7031,
1010,
1271,
12,
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,
7031,
1010,
1271,
12,
121,
21680,
953,
834,
26363,
834,
4314,
927,
549,
17444,
427,
96,
20846,
121,
3274,
3,
31,
40,
402,
3,
29,
603,
3,
63,
144,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average Played when the against is 51, and the drawn is more than 1? | CREATE TABLE table_name_9 (played INTEGER, against VARCHAR, drawn VARCHAR) | SELECT AVG(played) FROM table_name_9 WHERE against = 51 AND drawn > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
4895,
15,
26,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
2911,
15,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
581,
3274,
11696,
3430,
6796,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
WHAT IS THE BIRTH DATE WITH A DEATH OF OCTOBER 1389? | CREATE TABLE table_name_2 (
birth VARCHAR,
death VARCHAR
) | SELECT birth FROM table_name_2 WHERE death = "october 1389" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
3879,
584,
4280,
28027,
6,
1687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
272,
5705,
4611,
309,
6048,
11951,
71,
3396,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3879,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1687,
3274,
96,
32,
75,
235,
1152,
1179,
3914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of byes when the wins were 9? | CREATE TABLE table_name_59 (
byes VARCHAR,
wins VARCHAR
) | SELECT COUNT(byes) FROM table_name_59 WHERE wins = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
57,
15,
7,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
57,
15,
7,
116,
8,
9204,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
969,
15,
7,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
9204,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many teams from the Atlantic 10 conference made it to the Elite Eight? | CREATE TABLE table_name_47 (
elite_eight VARCHAR,
conference VARCHAR
) | SELECT elite_eight FROM table_name_47 WHERE conference = "atlantic 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
12496,
834,
15,
2632,
584,
4280,
28027,
6,
2542,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2323,
45,
8,
9640,
335,
2542,
263,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12496,
834,
15,
2632,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
2542,
3274,
96,
31767,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Year(s) of Manufacture has a Quantity larger than 60, and a Number(s) of 7001 7165? | CREATE TABLE table_name_49 (
year_s__of_manufacture VARCHAR,
quantity VARCHAR,
number_s_ VARCHAR
) | SELECT year_s__of_manufacture FROM table_name_49 WHERE quantity > 60 AND number_s_ = "7001–7165" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
215,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
584,
4280,
28027,
6,
8708,
584,
4280,
28027,
6,
381,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
215,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
8708,
2490,
1640,
3430,
381,
834,
7,
834,
3274,
96,
9295,
536,
104,
4450,
4122,
121,
1,
-100,
-100,
-100,
-1... |
What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first? | CREATE TABLE table_name_91 (sixth VARCHAR, fourth VARCHAR, first VARCHAR) | SELECT sixth FROM table_name_91 WHERE fourth = "western australia" AND first = "tasmania" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
7,
2407,
189,
584,
4280,
28027,
6,
4509,
584,
4280,
28027,
6,
166,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
2681,
13305,
383,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13305,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
4509,
3274,
96,
24411,
23407,
121,
3430,
166,
3274,
96,
17,
9,
7,
22463,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the position in the season when the average start is 9.2? | CREATE TABLE table_1637041_6 (
position VARCHAR,
avg_start VARCHAR
) | SELECT position FROM table_1637041_6 WHERE avg_start = "9.2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
22520,
4853,
834,
948,
41,
1102,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
10208,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1102,
16,
8,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
2938,
22520,
4853,
834,
948,
549,
17444,
427,
3,
9,
208,
122,
834,
10208,
3274,
96,
8797,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Hamilton Academical is the Opponent, what is the total Attendance? | CREATE TABLE table_name_26 (attendance VARCHAR, opponent VARCHAR) | SELECT COUNT(attendance) FROM table_name_26 WHERE opponent = "hamilton academical" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
15116,
663,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
13450,
16682,
138,
19,
8,
4495,
9977,
6,
125,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
15264,
3274,
96,
1483,
23,
7377,
2705,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest percent of yes Alberta, which had less than 60.2 vote no, has? | CREATE TABLE table_name_29 (
percent_yes INTEGER,
jurisdiction VARCHAR,
percent_no VARCHAR
) | SELECT MAX(percent_yes) FROM table_name_29 WHERE jurisdiction = "alberta" AND percent_no < 60.2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
1093,
834,
10070,
3,
21342,
17966,
6,
10185,
584,
4280,
28027,
6,
1093,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
883,
3728,
834,
10070,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
10185,
3274,
96,
138,
7041,
9,
121,
3430,
1093,
834,
29,
32,
3,
2,
431,
18189,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which club was originally named hapoel katamon jerusalem f.c.? | CREATE TABLE table_26218124_1 (original_club VARCHAR, name VARCHAR) | SELECT original_club FROM table_26218124_1 WHERE name = "Hapoel Katamon Jerusalem F.C." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
357,
2606,
22504,
834,
536,
41,
21878,
834,
13442,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1886,
47,
5330,
2650,
3,
9516,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
13442,
21680,
953,
834,
2688,
357,
2606,
22504,
834,
536,
549,
17444,
427,
564,
3274,
96,
566,
9521,
15,
40,
7482,
9,
2157,
14807,
377,
5,
254,
535,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who performed with Tina Parekh? | CREATE TABLE table_18278508_2 (
main_contestant VARCHAR,
co_contestant__yaar_vs_pyaar_ VARCHAR
) | SELECT main_contestant FROM table_18278508_2 WHERE co_contestant__yaar_vs_pyaar_ = "Tina Parekh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2555,
4433,
4018,
834,
357,
41,
711,
834,
1018,
4377,
288,
584,
4280,
28027,
6,
576,
834,
1018,
4377,
288,
834,
834,
63,
9,
291,
834,
208,
7,
834,
102,
63,
9,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
711,
834,
1018,
4377,
288,
21680,
953,
834,
2606,
2555,
4433,
4018,
834,
357,
549,
17444,
427,
576,
834,
1018,
4377,
288,
834,
834,
63,
9,
291,
834,
208,
7,
834,
102,
63,
9,
291,
834,
3274,
96,
382,
77,
9,
2180,... |
what is diagnoses long title and procedure long title of subject id 32418? | 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
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE 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
) | SELECT diagnoses.long_title, procedures.long_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "32418" | [
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,
18730,
7,
5,
2961,
834,
21869,
6,
4293,
5,
2961,
834,
21869,
21680,
18730,
7,
3388,
18206,
3,
15355,
3162,
4293,
9191,
18730,
7,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
1... |
What was the distance of the race on saturday, august 23? | CREATE TABLE table_name_59 (
distance VARCHAR,
date VARCHAR
) | SELECT distance FROM table_name_59 WHERE date = "saturday, august 23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
2357,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2357,
13,
8,
1964,
30,
3,
7,
6010,
1135,
6,
14663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2357,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
833,
3274,
96,
7,
6010,
1135,
6,
14663,
1902,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the modern English phonology used in the example weg > 'way'; regn > 'rain'? | CREATE TABLE table_30353 (
"Late Old English (Anglian)" text,
"Early Middle English" text,
"Late Middle English" text,
"Early Modern English" text,
"Modern English" text,
"Example" text
) | SELECT "Modern English" FROM table_30353 WHERE "Example" = 'weg > "way"; regn > "rain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23335,
4867,
41,
96,
434,
342,
3525,
1566,
41,
8365,
9928,
61,
121,
1499,
6,
96,
427,
291,
120,
4551,
1566,
121,
1499,
6,
96,
434,
342,
4551,
1566,
121,
1499,
6,
96,
427,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15594,
49,
29,
1566,
121,
21680,
953,
834,
23335,
4867,
549,
17444,
427,
96,
5420,
9,
9208,
121,
3274,
3,
31,
4189,
2490,
96,
1343,
121,
117,
5925,
29,
2490,
96,
6559,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What player's original team are the Buffalo Bills? | CREATE TABLE table_name_31 (
player VARCHAR,
original_nfl_team VARCHAR
) | SELECT player FROM table_name_31 WHERE original_nfl_team = "buffalo bills" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
1959,
584,
4280,
28027,
6,
926,
834,
29,
89,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
31,
7,
926,
372,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
926,
834,
29,
89,
40,
834,
11650,
3274,
96,
115,
2999,
138,
32,
7200,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the implied probability of 8 = 23 + 0 ? | CREATE TABLE table_200_41 (
id number,
"number" text,
"encoding" text,
"implied probability" number
) | SELECT "implied probability" FROM table_200_41 WHERE "number" = '8 = 23 + 0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
834,
4853,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
1499,
6,
96,
35,
9886,
121,
1499,
6,
96,
10296,
5973,
15834,
121,
381,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
10296,
5973,
15834,
121,
21680,
953,
834,
3632,
834,
4853,
549,
17444,
427,
96,
5525,
1152,
121,
3274,
3,
31,
927,
3274,
1902,
1768,
3,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is every origin for the destination of Manchester? | CREATE TABLE table_4272 (
"Route Number" real,
"Origin" text,
"Intermediate stops" text,
"Destination" text,
"Provider" text
) | SELECT "Origin" FROM table_4272 WHERE "Destination" = 'Manchester' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
5865,
41,
96,
448,
670,
15,
7720,
121,
490,
6,
96,
667,
3380,
77,
121,
1499,
6,
96,
17555,
5700,
342,
10796,
121,
1499,
6,
96,
308,
222,
77,
257,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
77,
121,
21680,
953,
834,
4165,
5865,
549,
17444,
427,
96,
308,
222,
77,
257,
121,
3274,
3,
31,
7296,
13263,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is every value for rushing yards per game if sacks if 25? | CREATE TABLE table_27487336_1 (rushing_yards_per_game VARCHAR, sacks VARCHAR) | SELECT rushing_yards_per_game FROM table_27487336_1 WHERE sacks = "25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3707,
4552,
3420,
834,
536,
41,
15842,
834,
6636,
7,
834,
883,
834,
7261,
584,
4280,
28027,
6,
3,
15525,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
15842,
834,
6636,
7,
834,
883,
834,
7261,
21680,
953,
834,
2555,
3707,
4552,
3420,
834,
536,
549,
17444,
427,
3,
15525,
7,
3274,
96,
1828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many lanes does Australia have with a reaction smaller than 0.138? | CREATE TABLE table_name_55 (
lane VARCHAR,
nationality VARCHAR,
reaction VARCHAR
) | SELECT COUNT(lane) FROM table_name_55 WHERE nationality = "australia" AND reaction < 0.138 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
3,
8102,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
6363,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
50,
1496,
405,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8102,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1157,
485,
3274,
96,
2064,
8792,
23,
9,
121,
3430,
6363,
3,
2,
4097,
22744,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who are all the opponents of Slovakia? | CREATE TABLE table_16741821_9 (opponents VARCHAR, against VARCHAR) | SELECT opponents FROM table_16741821_9 WHERE against = "Slovakia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4581,
2606,
2658,
834,
1298,
41,
32,
102,
9977,
7,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
66,
8,
16383,
13,
30629,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16383,
21680,
953,
834,
2938,
4581,
2606,
2658,
834,
1298,
549,
17444,
427,
581,
3274,
96,
134,
5850,
11259,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Score has a Date of 13 april 1997? | CREATE TABLE table_37556 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Score" FROM table_37556 WHERE "Date" = '13 april 1997' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22954,
4834,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
22954,
4834,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2368,
3,
9,
2246,
40,
6622,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the grid of Jenson Button? | CREATE TABLE table_name_79 (grid VARCHAR, driver VARCHAR) | SELECT grid FROM table_name_79 WHERE driver = "jenson button" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
3496,
26,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
8634,
13,
9101,
739,
272,
12499,
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,
8634,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
2535,
3274,
96,
354,
35,
739,
2218,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the opponent for week 12 | CREATE TABLE table_26604 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
) | SELECT "Opponent" FROM table_26604 WHERE "Week" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3328,
591,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
371,
10270,
1776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
2688,
3328,
591,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the instruments are used in the song 'Le Pop'? | CREATE TABLE tracklists (
albumid number,
position number,
songid number
)
CREATE TABLE vocals (
songid number,
bandmate number,
type 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 songs (
songid number,
title text
)
CREATE TABLE band (
id number,
firstname text,
lastname text
)
CREATE TABLE performance (
songid number,
bandmate number,
stageposition text
) | SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
3350,
7,
41,
2306,
23,
26,
381,
6,
1102,
381,
6,
2324,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6721,
7,
41,
2324,
23,
26,
381,
6,
1928,
505... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6157,
332,
536,
3,
15355,
3162,
3605,
6157,
332,
357,
9191,
332,
5411,
7,
2444,
23,
26,
3274,
332,
4416,
7,
2444,
23,
26,
549,
17444,
427,
2233,
3274,
96,
2796,
5777,
121,
1,
-100,
-100,
-100,
-... |
How many hectars of land is in Kaxholmen? | CREATE TABLE table_16796625_1 (
land_area__hectares_ VARCHAR,
urban_area__locality_ VARCHAR
) | SELECT land_area__hectares_ FROM table_16796625_1 WHERE urban_area__locality_ = "Kaxholmen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4440,
3539,
1828,
834,
536,
41,
1322,
834,
498,
834,
834,
17256,
7,
834,
584,
4280,
28027,
6,
4150,
834,
498,
834,
834,
16882,
485,
834,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1322,
834,
498,
834,
834,
17256,
7,
834,
21680,
953,
834,
2938,
4440,
3539,
1828,
834,
536,
549,
17444,
427,
4150,
834,
498,
834,
834,
16882,
485,
834,
3274,
96,
439,
9,
226,
2831,
904,
121,
1,
-100,
-100,
-100,
-... |
Which Rank points has a Score points of olympic silver medalist? | CREATE TABLE table_name_42 (rank_points VARCHAR, score_points VARCHAR) | SELECT rank_points FROM table_name_42 WHERE score_points = "olympic silver medalist" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
6254,
834,
2700,
7,
584,
4280,
28027,
6,
2604,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
22557,
979,
65,
3,
9,
17763,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
834,
2700,
7,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
2604,
834,
2700,
7,
3274,
96,
32,
120,
51,
6174,
4294,
9365,
343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many female Professors do we have? | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE participates_in (
stuid number,
actid number
)
CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
)
CREATE TABLE activity (
actid number,
activity_name text
) | SELECT COUNT(*) FROM faculty WHERE sex = 'F' AND rank = "Professor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
6040,
549,
17444,
427,
3,
7,
994,
3274,
3,
31,
371,
31,
3430,
11003,
3274,
96,
23057,
24901,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the publication year ranking l.a. is 1st? | CREATE TABLE table_19948664_2 (year_of_publication VARCHAR, ranking_la__2_ VARCHAR) | SELECT year_of_publication FROM table_19948664_2 WHERE ranking_la__2_ = "1st" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4240,
3840,
4389,
834,
357,
41,
1201,
834,
858,
834,
15727,
257,
584,
4280,
28027,
6,
11592,
834,
521,
834,
834,
357,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
858,
834,
15727,
257,
21680,
953,
834,
2294,
4240,
3840,
4389,
834,
357,
549,
17444,
427,
11592,
834,
521,
834,
834,
357,
834,
3274,
96,
536,
7,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the high assists when the score was w 107–95 (ot)? | CREATE TABLE table_27715173_6 (high_assists VARCHAR, score VARCHAR) | SELECT high_assists FROM table_27715173_6 WHERE score = "W 107–95 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4013,
26578,
4552,
834,
948,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
13041,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
357,
4013,
26578,
4552,
834,
948,
549,
17444,
427,
2604,
3274,
96,
518,
3,
18057,
104,
3301,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many of the patients had a lab test for bands? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE 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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "Bands" | [
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 Depart de la main gauche of the do Mode? | CREATE TABLE table_76894 (
"Mode" text,
"D\u00e9part de la main gauche" text,
"Accord du 1st string" text,
"2nd string" text,
"3rd string" text
) | SELECT "D\u00e9part de la main gauche" FROM table_76894 WHERE "Mode" = 'do' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
3914,
591,
41,
96,
15594,
15,
121,
1499,
6,
96,
308,
2,
76,
1206,
15,
1298,
2274,
20,
50,
711,
16283,
121,
1499,
6,
96,
26599,
146,
209,
7,
17,
6108,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
2,
76,
1206,
15,
1298,
2274,
20,
50,
711,
16283,
121,
21680,
953,
834,
3959,
3914,
591,
549,
17444,
427,
96,
15594,
15,
121,
3274,
3,
31,
26,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients aged below 74 years had the procedure short title form cutan ileoureterost? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE 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 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "74" AND procedures.short_title = "Form cutan ileoureterost" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who was the opponent with the 20-12 record? | CREATE TABLE table_name_45 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_45 WHERE record = "20-12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
28,
8,
460,
5947,
1368,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1368,
3274,
96,
1755,
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 is the average round for draft pick #49 from Notre Dame? | CREATE TABLE table_39715 (
"Round" real,
"Pick #" text,
"Player" text,
"Position" text,
"College" text,
"Tenure w/ Steelers" text
) | SELECT AVG("Round") FROM table_39715 WHERE "College" = 'notre dame' AND "Pick #" = '49' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4327,
1808,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
519,
4327,
1808,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
2264,
60,
10157,
15,
31,
3430,
96,
345,
3142,
1713,
121,
3274,
3,
31,
3647,
31,
1,
-... |
How many years have an Opponent in the final of welby van horn? | CREATE TABLE table_name_74 (year INTEGER, opponent_in_the_final VARCHAR) | SELECT SUM(year) FROM table_name_74 WHERE opponent_in_the_final = "welby van horn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
1201,
3,
21342,
17966,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
43,
46,
4495,
9977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
9803,
969,
4049,
3,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date was the Competition of europe/africa zone, group i, round robin, with a result of loss, in Antalya, and a Score of 1–2? | CREATE TABLE table_name_19 (date VARCHAR, score VARCHAR, location VARCHAR, competition VARCHAR, result VARCHAR) | SELECT date FROM table_name_19 WHERE competition = "europe/africa zone, group i, round robin" AND result = "loss" AND location = "antalya" AND score = "1–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
2259,
3274,
96,
28188,
87,
9,
89,
2234,
9,
2901,
6,
563,
3,
23,
6,
1751,
3,
5840,
77,
121,
3430,
741,
3274,
96,
2298,
7,
121,
3430,
1128,
3274,
96,
288,
... |
In how many networks the local name of the franchise was 'in sickness and in health'? | CREATE TABLE table_12438767_1 (
network VARCHAR,
local_name VARCHAR
) | SELECT COUNT(network) FROM table_12438767_1 WHERE local_name = "In Sickness and in Health" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4906,
4225,
3708,
834,
536,
41,
1229,
584,
4280,
28027,
6,
415,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
149,
186,
5275,
8,
415,
564,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1582,
1981,
61,
21680,
953,
834,
2122,
4906,
4225,
3708,
834,
536,
549,
17444,
427,
415,
834,
4350,
3274,
96,
1570,
180,
3142,
655,
11,
16,
1685,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the airport name at the top of the list ? | CREATE TABLE table_204_139 (
id number,
"community" text,
"airport name" text,
"type" text,
"coordinates" text
) | SELECT "airport name" FROM table_204_139 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
24090,
41,
3,
23,
26,
381,
6,
96,
18782,
485,
121,
1499,
6,
96,
2256,
1493,
564,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
509,
21122,
7,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2256,
1493,
564,
121,
21680,
953,
834,
26363,
834,
24090,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006? | CREATE TABLE table_name_81 (joint_music_award VARCHAR, year VARCHAR, rthk VARCHAR) | SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
1927,
77,
17,
834,
22170,
834,
9,
2239,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3,
52,
189,
157,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4494,
834,
22170,
834,
9,
2239,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
215,
3,
2,
3581,
3430,
3,
52,
189,
157,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Written by has a Code of 1.2 1.3? | CREATE TABLE table_name_57 (written_by VARCHAR, code VARCHAR) | SELECT written_by FROM table_name_57 WHERE code = "1.2 1.3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
14973,
834,
969,
584,
4280,
28027,
6,
1081,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
22812,
57,
65,
3,
9,
3636,
13,
3,
10917,
3,
1360... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1545,
834,
969,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1081,
3274,
96,
10917,
3,
13606,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the total number of immigrants from africa ? | CREATE TABLE table_203_117 (
id number,
"region/country" text,
"1882-\n1918" number,
"1919-\n1948" number,
"1948-\n1951" number,
"1952-\n1960" number,
"1961-\n1971" number,
"1972-\n1979" number,
"1980-\n1989" number,
"1990-\n2001" number,
"2002-\n2010" number,
"2011-\n2013" number,
"total" number
) | SELECT "region/country" FROM table_203_117 WHERE "region/country" = 'africa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
20275,
41,
3,
23,
26,
381,
6,
96,
18145,
87,
17529,
121,
1499,
6,
96,
25794,
7412,
2,
29,
2294,
2606,
121,
381,
6,
96,
2294,
2294,
18,
2,
29,
2294,
3707,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18145,
87,
17529,
121,
21680,
953,
834,
23330,
834,
20275,
549,
17444,
427,
96,
18145,
87,
17529,
121,
3274,
3,
31,
9,
89,
2234,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average pick for Florida State? | CREATE TABLE table_name_70 (
pick INTEGER,
school_club_team VARCHAR
) | SELECT AVG(pick) FROM table_name_70 WHERE school_club_team = "florida state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
1432,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1432,
21,
2599,
1015,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
17967,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
89,
322,
23,
26,
9,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How much Overall has a Name of bob anderson? | CREATE TABLE table_76609 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT COUNT("Overall") FROM table_76609 WHERE "Name" = 'bob anderson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3539,
4198,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
940,
3539,
4198,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17396,
11,
13515,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the total attendance at anaheim stadium after 1983 when the result is 14-28? | CREATE TABLE table_name_67 (attendance VARCHAR, result VARCHAR, year VARCHAR, venue VARCHAR) | SELECT COUNT(attendance) FROM table_name_67 WHERE year > 1983 AND venue = "anaheim stadium" AND result = "14-28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
15116,
663,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
215,
2490,
15041,
3430,
5669,
3274,
96,
152,
9,
3254,
14939,
121,
3430,
741,
3274,
96,
2534,
18,
2577,
121,
1,
-100,
-100,
-100,
-... |
What are the names of projects that have not been assigned? | CREATE TABLE assignedto (
scientist number,
project text
)
CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE scientists (
ssn number,
name text
) | SELECT name FROM projects WHERE NOT code IN (SELECT project FROM assignedto) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7604,
235,
41,
17901,
381,
6,
516,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
1081,
1499,
6,
564,
1499,
6,
716,
381,
3,
61,
3,
32102,
32103,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
1195,
549,
17444,
427,
4486,
1081,
3388,
41,
23143,
14196,
516,
21680,
7604,
235,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who was hired before 2002-06-21, show me about the change of salary over hire_date in a line chart, and could you rank by the X-axis from low to high? | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE 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)
) | SELECT HIRE_DATE, SALARY FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
454,
14132,
834,
308,
6048,
1,
-100,
-100,
... |
How many lanes have a Nationality of united states, and a Name of aaron peirsol? | CREATE TABLE table_name_28 (
lane VARCHAR,
nationality VARCHAR,
name VARCHAR
) | SELECT COUNT(lane) FROM table_name_28 WHERE nationality = "united states" AND name = "aaron peirsol" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
3,
8102,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
50,
1496,
43,
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,
8102,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1157,
485,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
564,
3274,
96,
9,
291,
106,
158,
23,
52,
4099,
121,
1,
-100,
-100,
-100,
-100,
-1... |
Which show aired on 19 april? | CREATE TABLE table_name_81 (show VARCHAR, date VARCHAR) | SELECT show FROM table_name_81 WHERE date = "19 april" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
10049,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
504,
3,
2378,
26,
30,
957,
3,
9,
2246,
40,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
504,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
833,
3274,
96,
2294,
3,
9,
2246,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the game on june 29? | CREATE TABLE table_name_75 (game INTEGER, date VARCHAR) | SELECT SUM(game) FROM table_name_75 WHERE date = "june 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
7261,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
467,
30,
3,
6959,
15,
2838,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
833,
3274,
96,
6959,
15,
2838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the opponent with 16 points? | CREATE TABLE table_name_5 (
opponent VARCHAR,
opponents VARCHAR
) | SELECT opponent FROM table_name_5 WHERE opponents = 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
15264,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
15264,
28,
898,
979,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
16383,
3274,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the names of the airports which are not in the country 'Iceland'? | CREATE TABLE airport (name VARCHAR, country VARCHAR) | SELECT name FROM airport WHERE country <> 'Iceland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
4350,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3056,
13,
8,
3761,
7,
84,
33,
59,
16,
8,
684,
3,
31,
196,
7125,
232,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
3761,
549,
17444,
427,
684,
3,
2,
3155,
3,
31,
196,
7125,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many weeks featured duffy as the original artist? | CREATE TABLE table_21501564_1 (
theme VARCHAR,
original_artist VARCHAR
) | SELECT COUNT(theme) FROM table_21501564_1 WHERE original_artist = "Duffy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
12278,
1808,
4389,
834,
536,
41,
3800,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1274,
4510,
146,
20334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
532,
526,
61,
21680,
953,
834,
357,
12278,
1808,
4389,
834,
536,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
12998,
20334,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Series are on september 15, 2007? | CREATE TABLE table_34351 (
"Date" text,
"Site" text,
"Sport" text,
"Winning team" text,
"Series" text
) | SELECT "Series" FROM table_34351 WHERE "Date" = 'september 15, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
2469,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
518,
10503,
372,
121,
1499,
6,
96,
12106,
7,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
12106,
7,
121,
21680,
953,
834,
3710,
2469,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
10725,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Count the number of captains that have each rank by a bar chart. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
12202,
834,
4309,
16,
17,
6,
5570,
1499,
6,
15508,
834,
4309,
16,
17,
6,
1246,
1499,
6,
4501,
1499,
6,
3,
22557,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
22557,
6,
2847,
17161,
599,
1935,
61,
21680,
14268,
350,
4630,
6880,
272,
476,
3,
22557,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Record when Evangelista Cyborg was the opponent? | CREATE TABLE table_47133 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_47133 WHERE "Opponent" = 'evangelista cyborg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
22974,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
448,
32,
1106,
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,
1649,
7621,
121,
21680,
953,
834,
4177,
22974,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
22611,
2427,
3,
75,
63,
23685,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where is Interlake located? | CREATE TABLE table_18976 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text
) | SELECT "Location" FROM table_18976 WHERE "Institution" = 'Interlake' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25312,
3959,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
8532,
4046,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
25312,
3959,
549,
17444,
427,
96,
1570,
17448,
121,
3274,
3,
31,
17555,
16948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When did Peter Butler leave his team? | CREATE TABLE table_name_12 (date_outgoing VARCHAR, outgoing_manager VARCHAR) | SELECT date_outgoing FROM table_name_12 WHERE outgoing_manager = "peter butler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
5522,
834,
670,
9545,
584,
4280,
28027,
6,
91,
9545,
834,
24185,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
2737,
21742,
1175,
112,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
670,
9545,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
91,
9545,
834,
24185,
3274,
96,
4995,
49,
68,
1171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission type is elective and lab test name is epithelial cells? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.label = "Epithelial Cells" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the wicket ranking for the match that had a fielding team of Sri Lanka? | CREATE TABLE table_name_73 (
wicket VARCHAR,
fielding_team VARCHAR
) | SELECT wicket FROM table_name_73 WHERE fielding_team = "sri lanka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
29719,
584,
4280,
28027,
6,
1057,
53,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
29719,
11592,
21,
8,
1588,
24,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
29719,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1057,
53,
834,
11650,
3274,
96,
7,
52,
23,
3,
1618,
1258,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many students play each sport Show bar chart, and sort bar in ascending order. | CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnScholarship VARCHAR(1)
)
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 Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
) | SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName ORDER BY SportName | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5716,
29381,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
3349,
23954,
584,
4280,
28027,
599,
2668,
201,
10768,
7,
12988,
518,
10266,
3,
21342,
17966,
6,
5880,
15800,
15,
26,
3,
21342,
1796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3349,
23954,
6,
2847,
17161,
599,
1935,
61,
21680,
5716,
29381,
350,
4630,
6880,
272,
476,
3349,
23954,
4674,
11300,
272,
476,
3349,
23954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the description of the color used by least products? | CREATE TABLE ref_colors (
color_description VARCHAR,
color_code VARCHAR
)
CREATE TABLE products (
color_code VARCHAR
) | SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
9910,
7,
41,
945,
834,
221,
11830,
584,
4280,
28027,
6,
945,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
945,
834,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17,
4416,
9910,
834,
221,
11830,
21680,
494,
6157,
3,
17,
536,
3,
15355,
3162,
6273,
834,
9910,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
9910,
834,
4978,
3274,
3,
17,
4416,
9910,
834,
4978,
350,
4630,
6880,
27... |
Which nationality has a Ship of minteh? | CREATE TABLE table_name_62 (
nationality VARCHAR,
ship VARCHAR
) | SELECT nationality FROM table_name_62 WHERE ship = "minteh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
1157,
485,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1157,
485,
65,
3,
9,
15508,
13,
3,
8215,
107,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
4383,
3274,
96,
8215,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which UK Base has an airborne unit of Pathfinders? | CREATE TABLE table_55333 (
"Serial" real,
"Airborne Unit" text,
"Troop carrier Group" text,
"# of C-47s" real,
"UK Base" text,
"Drop Zone" text,
"Drop Zone Time" real
) | SELECT "UK Base" FROM table_55333 WHERE "Airborne Unit" = 'pathfinders' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
23360,
41,
96,
134,
15,
12042,
121,
490,
6,
96,
20162,
12940,
5579,
121,
1499,
6,
96,
382,
52,
6631,
9568,
1531,
121,
1499,
6,
96,
4663,
13,
205,
18,
4177,
7,
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,
15787,
8430,
121,
21680,
953,
834,
3769,
23360,
549,
17444,
427,
96,
20162,
12940,
5579,
121,
3274,
3,
31,
8292,
19417,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the Comp on 2007-08-06? | CREATE TABLE table_15230 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Comp" text,
"Attendance" text
) | SELECT "Comp" FROM table_15230 WHERE "Date" = '2007-08-06' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
13427,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
5890,
102,
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,
5890,
102,
121,
21680,
953,
834,
1808,
13427,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
20615,
18,
4018,
18,
5176,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)? | CREATE TABLE table_name_3 (floors VARCHAR, rank VARCHAR, height VARCHAR, _m__ft_ VARCHAR) | SELECT COUNT(floors) FROM table_name_3 WHERE height * _m__ft_ = "300 / 985" AND rank < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
20924,
7,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
6,
3,
834,
51,
834,
834,
89,
17,
834,
584,
4280,
28027,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
20924,
7,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
3902,
1429,
3,
834,
51,
834,
834,
89,
17,
834,
3274,
96,
5426,
3,
87,
3,
3916,
17395,
3430,
11003,
3,
2,
220,
1,
-100,
-100,
-100... |
Tell me the championship for runner-up outcome of 2010 | CREATE TABLE table_31919 (
"Outcome" text,
"Year" real,
"Championship" text,
"Opponent in the final" text,
"Score (l) = score in legs, (s) = score in sets." text
) | SELECT "Championship" FROM table_31919 WHERE "Outcome" = 'runner-up' AND "Year" = '2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2294,
2294,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
667,
102,
9977,
16,
8,
804,
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,
254,
1483,
12364,
2009,
121,
21680,
953,
834,
519,
2294,
2294,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
10806,
18,
413,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
14926,
31,
1,
-100,
-100,
-100,
... |
What is the smallest bush# with 66.0% bush and less than 65 others#? | CREATE TABLE table_68134 (
"County" text,
"Kerry%" text,
"Kerry#" real,
"Bush%" text,
"Bush#" real,
"Others%" text,
"Others#" real
) | SELECT MIN("Bush#") FROM table_68134 WHERE "Bush%" = '66.0%' AND "Others#" < '65' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
23747,
41,
96,
10628,
63,
121,
1499,
6,
96,
439,
49,
651,
1454,
121,
1499,
6,
96,
439,
49,
651,
4663,
121,
490,
6,
96,
279,
8489,
1454,
121,
1499,
6,
96,
279,
848... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
8489,
4663,
8512,
21680,
953,
834,
3651,
23747,
549,
17444,
427,
96,
279,
8489,
1454,
121,
3274,
3,
31,
3539,
5,
6932,
31,
3430,
96,
667,
189,
277,
4663,
121,
3,
2,
3,
31,
4122,
31,
1,
... |
When 19/05/2002 is the date of withdrawn what is the name? | CREATE TABLE table_21795986_1 (
name VARCHAR,
withdrawn VARCHAR
) | SELECT name FROM table_21795986_1 WHERE withdrawn = "19/05/2002" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4440,
3390,
3840,
834,
536,
41,
564,
584,
4280,
28027,
6,
3,
28032,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
957,
31911,
24898,
19,
8,
833,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
2658,
4440,
3390,
3840,
834,
536,
549,
17444,
427,
3,
28032,
3274,
96,
2294,
31911,
24898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the latest week with a result of l 14-3? | CREATE TABLE table_5717 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT MAX("Week") FROM table_5717 WHERE "Result" = 'l 14-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
2517,
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,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3436,
2517,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
968,
3486,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which tournament had a playoff with a margin of victory? | CREATE TABLE table_11974 (
"Date" text,
"Tournament" text,
"Winning Score" text,
"Margin of Victory" text,
"Runner-up" text
) | SELECT "Tournament" FROM table_11974 WHERE "Margin of Victory" = 'playoff' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
4581,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
17763,
121,
1499,
6,
96,
7286,
122,
77,
13,
8884,
63,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
19993,
4581,
549,
17444,
427,
96,
7286,
122,
77,
13,
8884,
63,
121,
3274,
3,
31,
4895,
1647,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0? | CREATE TABLE table_name_60 (
total VARCHAR,
silver VARCHAR,
gold VARCHAR,
rank VARCHAR
) | SELECT COUNT(total) FROM table_name_60 WHERE gold = 1 AND rank = "12" AND silver > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
2045,
3274,
209,
3430,
11003,
3274,
96,
2122,
121,
3430,
4294,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give the different hometowns of gymnasts that have a total point score of above 57.5. | CREATE TABLE gymnast (
gymnast_id number,
floor_exercise_points number,
pommel_horse_points number,
rings_points number,
vault_points number,
parallel_bars_points number,
horizontal_bar_points number,
total_points number
)
CREATE TABLE people (
people_id number,
name text,
age number,
height number,
hometown text
) | SELECT DISTINCT T2.hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.gymnast_id = T2.people_id WHERE T1.total_points > 57.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23379,
17,
41,
23379,
17,
834,
23,
26,
381,
6,
1501,
834,
6667,
21645,
15,
834,
2700,
7,
381,
6,
26234,
40,
834,
107,
127,
7,
15,
834,
2700,
7,
381,
6,
10631,
834,
2700,
7,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
4416,
5515,
3540,
21680,
23379,
17,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
122,
63,
51,
29,
9,
7,
17,
834,
23,
26,
3274,
332,
4416,
16588,
834,
23,
26,
... |
Who was the successor for the new seat? | CREATE TABLE table_2147588_3 (successor VARCHAR, vacator VARCHAR) | SELECT successor FROM table_2147588_3 WHERE vacator = "New seat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
3072,
4060,
834,
519,
41,
7,
17431,
24901,
584,
4280,
28027,
6,
3,
8938,
1016,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
22261,
21,
8,
126,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22261,
21680,
953,
834,
27357,
3072,
4060,
834,
519,
549,
17444,
427,
3,
8938,
1016,
3274,
96,
6861,
3143,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all storms with at least 1 death, compare the number of deaths by name, and I want to order by the names from high to low. | CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
) | SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
6163,
834,
23,
26,
16,
17,
6,
6163,
834,
4978,
1499,
6,
6163,
834,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4161,
834,
18145,
41,
6163,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
7720,
834,
2962,
9,
189,
7,
21680,
5536,
549,
17444,
427,
7720,
834,
2962,
9,
189,
7,
2490,
2423,
209,
4674,
11300,
272,
476,
5570,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is age and icu stay id of subject id 2560? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.age, prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "2560" | [
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,
545,
6,
7744,
7,
5,
23,
1071,
21545,
834,
23,
26,
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,
17444,
427,
... |
What was the release date for Production Number 8181? | CREATE TABLE table_name_14 (release_date VARCHAR, production_num VARCHAR) | SELECT release_date FROM table_name_14 WHERE production_num = "8181" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
999,
834,
5525,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1576,
833,
21,
11114,
7720,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
999,
834,
5525,
3274,
96,
4959,
4959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.