NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what is average age of patients whose marital status is married and age is greater than or equal to 43? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.age >= "43" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
545,
2490,
2423,
96,
4906,
121,
1,
-100,
-100,
-100,
-1... |
Find the actors who played in the movie ' Camp X-Ray | CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE tags (
id int,
msid int,
kid int
)
CREATE TABLE keyword (
id int,
keyword text
)
CREATE... | SELECT actor.name FROM actor, cast, movie WHERE cast.aid = actor.aid AND movie.mid = cast.msid AND movie.title = 'Camp X-Ray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1545,
834,
969,
41,
3,
23,
26,
16,
17,
6,
3,
51,
7,
23,
26,
16,
17,
6,
3,
12018,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
3052,
16,
17,
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,
7556,
5,
4350,
21680,
7556,
6,
4061,
6,
1974,
549,
17444,
427,
4061,
5,
6146,
3274,
7556,
5,
6146,
3430,
1974,
5,
6983,
3274,
4061,
5,
51,
7,
23,
26,
3430,
1974,
5,
21869,
3274,
3,
31,
24626,
3,
4,
18,
25619,
... |
What's the Download information for the song from Week 44? | CREATE TABLE table_70185 (
"Week" real,
"Issue Date" text,
"Artist" text,
"Single" text,
"Download" text,
"Title" text
) | SELECT "Download" FROM table_70185 WHERE "Week" = '44' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
21594,
41,
96,
518,
10266,
121,
490,
6,
96,
196,
7,
7,
76,
15,
7678,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
53,
109,
121,
1499,
6,
96,
28380,
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,
28380,
121,
21680,
953,
834,
2518,
21594,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
3628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of first_name and manager_id , I want to rank in asc by the y-axis. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE... | SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30085,
834,
567,
17683,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,... |
How many heavy attacks did the 450 Luftflotte 2 conduct? | CREATE TABLE table_name_29 (heavy_attacks VARCHAR, luftflotte_2_sorties VARCHAR) | SELECT COUNT(heavy_attacks) FROM table_name_29 WHERE luftflotte_2_sorties = 450 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
88,
19649,
834,
27673,
7,
584,
4280,
28027,
6,
3,
20620,
89,
21538,
834,
357,
834,
9309,
725,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
88,
19649,
834,
27673,
7,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
3,
20620,
89,
21538,
834,
357,
834,
9309,
725,
3274,
3,
10593,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many wins were there when the position was 26th? | CREATE TABLE table_19837 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT COUNT("Wins") FROM table_19837 WHERE "Position" = '26th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
4118,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
8512,
21680,
953,
834,
24151,
4118,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
2688,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What stake has 16 wards/branches in Arkansas? | CREATE TABLE table_40070 (
"Stake" text,
"Organized" text,
"Wards/ Branches in Arkansas" real,
"Stake President" text,
"Occupation" text
) | SELECT "Stake" FROM table_40070 WHERE "Wards/ Branches in Arkansas" = '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5548,
2518,
41,
96,
134,
4914,
121,
1499,
6,
96,
14878,
15,
26,
121,
1499,
6,
96,
21032,
26,
7,
87,
3,
25709,
7,
16,
16622,
121,
490,
6,
96,
134,
4914,
1661,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
4914,
121,
21680,
953,
834,
5548,
2518,
549,
17444,
427,
96,
21032,
26,
7,
87,
3,
25709,
7,
16,
16622,
121,
3274,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the driver/passengar when the position was smaller than 8, the third was 1, and there was 1 win? | CREATE TABLE table_name_56 (
driver___passenger VARCHAR,
wins VARCHAR,
third VARCHAR,
position VARCHAR
) | SELECT driver___passenger FROM table_name_56 WHERE third = "1" AND position < 8 AND wins = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
2535,
834,
834,
834,
3968,
35,
1304,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
1025,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2535,
834,
834,
834,
3968,
35,
1304,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
1025,
3274,
96,
536,
121,
3430,
1102,
3,
2,
505,
3430,
9204,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)? | CREATE TABLE table_name_10 (attendance INTEGER, score VARCHAR, season VARCHAR, margin VARCHAR) | SELECT AVG(attendance) FROM table_name_10 WHERE season < 1986 AND margin = 6 AND score = "13.16 (94) – 13.10 (88)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
15116,
663,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
6346,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
774,
3,
2,
12698,
3430,
6346,
3274,
431,
3430,
2604,
3274,
96,
2368,
5,
2938,
14156,
7256,
3,
104,
8808,
1714,
41,
4060,
61,
121,
... |
How many faculty, in total, are there in the year 2002? | CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
)
CREATE TABLE discipline_enrollments (
campus number,
discipline number,
year number,
undergraduate number,
graduate number
)
CREATE TABLE enrollments (
campus number,
year number,
... | SELECT SUM(faculty) FROM faculty WHERE year = 2002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
25784,
41,
3,
23,
26,
381,
6,
4730,
1499,
6,
1128,
1499,
6,
5435,
1499,
6,
215,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7998,
834,
35,
4046,
4128,
41,
4730... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
89,
12457,
17,
63,
61,
21680,
6040,
549,
17444,
427,
215,
3274,
4407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the title of Amenemhat II? | CREATE TABLE table_45109 (
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | SELECT "Title" FROM table_45109 WHERE "Name" = 'amenemhat ii' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
17304,
41,
96,
25160,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
448,
32,
63,
138,
629,
121,
1499,
6,
96,
22674,
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,
0,
0... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
2128,
17304,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
265,
15,
9660,
547,
3,
23,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the final score on March 26? | CREATE TABLE table_11959669_7 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_11959669_7 WHERE date = "March 26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3301,
4314,
3951,
834,
940,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
2604,
30,
1332,
2208,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2596,
3301,
4314,
3951,
834,
940,
549,
17444,
427,
833,
3274,
96,
25019,
2208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A bar chart for what is the number of locations of the wrestlers, and could you order in asc by the Location? | CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
) | SELECT Location, COUNT(Location) FROM wrestler GROUP BY Location ORDER BY Location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
26033,
52,
41,
549,
6216,
1171,
834,
4309,
16,
17,
6,
5570,
1499,
6,
419,
3191,
1499,
6,
13992,
834,
14796,
1499,
6,
10450,
1499,
6,
8042,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10450,
6,
2847,
17161,
599,
434,
32,
75,
257,
61,
21680,
26033,
52,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
10450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest total medals of russia, which has more than 1 silver and more than 6 bronze medals? | CREATE TABLE table_8303 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Total") FROM table_8303 WHERE "Silver" > '1' AND "Nation" = 'russia' AND "Bronze" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4591,
4928,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
8512,
21680,
953,
834,
4591,
4928,
549,
17444,
427,
96,
134,
173,
624,
121,
2490,
3,
31,
536,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
26165,
31,
3430,
96,
22780,
29,
776,
121,
24... |
what's the points against with lost being 13 | CREATE TABLE table_19109 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points against" FROM table_19109 WHERE "Lost" = '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
17304,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
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,
22512,
7,
581,
121,
21680,
953,
834,
2294,
17304,
549,
17444,
427,
96,
434,
3481,
121,
3274,
3,
31,
2368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Seat has a Season 6 of kevin o'leary? | CREATE TABLE table_name_85 (
seat INTEGER,
season_6 VARCHAR
) | SELECT MAX(seat) FROM table_name_85 WHERE season_6 = "kevin o'leary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
3143,
3,
21342,
17966,
6,
774,
834,
948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
15915,
65,
3,
9,
7960,
431,
13,
3,
1050,
2494,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
1544,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
774,
834,
948,
3274,
96,
1050,
2494,
3,
32,
31,
109,
1208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%? | CREATE TABLE table_name_45 (
karen_handel VARCHAR,
eric_johnson VARCHAR,
undecided VARCHAR
) | SELECT karen_handel FROM table_name_45 WHERE eric_johnson = "13%" AND undecided = "22%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
3,
4031,
35,
834,
10777,
584,
4280,
28027,
6,
3,
15,
2234,
834,
27341,
739,
584,
4280,
28027,
6,
3550,
10812,
15,
26,
584,
4280,
28027,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4031,
35,
834,
10777,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3,
15,
2234,
834,
27341,
739,
3274,
96,
536,
5170,
121,
3430,
3550,
10812,
15,
26,
3274,
96,
357,
5406,
121,
1,
-100,
-100,
-100,
-100,
-... |
The New York Jets picked someone from what college? | CREATE TABLE table_name_43 (
college VARCHAR,
team VARCHAR
) | SELECT college FROM table_name_43 WHERE team = "new york jets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1900,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
368,
1060,
12434,
7,
4758,
841,
45,
125,
1900,
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,
1900,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
372,
3274,
96,
5534,
25453,
8757,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many original titles were listed as 'If the Sun Never Returns'? | CREATE TABLE table_24739 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Language(s)" text,
"Director" text,
"Result" text
) | SELECT COUNT("Original title") FROM table_24739 WHERE "Film title used in nomination" = 'If the Sun Never Returns' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
3288,
41,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
1499,
6,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
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,
667,
3380,
10270,
2233,
8512,
21680,
953,
834,
357,
4177,
3288,
549,
17444,
427,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
3274,
3,
31,
5801,
8,
3068,
8400,
9778,
7,
31,
1,
-100,
-100,
-1... |
For the location of quezon city , metro manila what is the athletic nickname? | CREATE TABLE table_22171978_1 (
athletic_nickname VARCHAR,
location VARCHAR
) | SELECT athletic_nickname FROM table_22171978_1 WHERE location = "Quezon City , Metro Manila" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2517,
2294,
3940,
834,
536,
41,
12217,
834,
11191,
4350,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
1128,
13,
238,
8892,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12217,
834,
11191,
4350,
21680,
953,
834,
2884,
2517,
2294,
3940,
834,
536,
549,
17444,
427,
1128,
3274,
96,
5991,
457,
106,
896,
3,
6,
10730,
25432,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose admission location is emergency room admit and procedure icd9 code is 9744? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.icd9_code = "9744" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the country when the city is gafsa? | CREATE TABLE table_name_1 (country VARCHAR, city VARCHAR) | SELECT country FROM table_name_1 WHERE city = "gafsa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
17529,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
684,
116,
8,
690,
19,
7922,
89,
7,
9,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
690,
3274,
96,
122,
9,
89,
7,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the IHSAA Class when the school is Seymour? | CREATE TABLE table_name_39 (
ihsaa_class VARCHAR,
school VARCHAR
) | SELECT ihsaa_class FROM table_name_39 WHERE school = "seymour" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
3,
23,
107,
7,
9,
9,
834,
4057,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
27,
4950,
5498,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
23,
107,
7,
9,
9,
834,
4057,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
496,
3274,
96,
7,
15,
63,
51,
1211,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the sum of original week for september 16, 1982 | CREATE TABLE table_name_51 (original_week INTEGER, date VARCHAR) | SELECT SUM(original_week) FROM table_name_51 WHERE date = "september 16, 1982" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
21878,
834,
8041,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
4505,
13,
926,
471,
21,
16022,
18247,
11940... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
21878,
834,
8041,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
11940,
14505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of the round of Fred Smoot, who has a pick number greater than 14? | CREATE TABLE table_8812 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT SUM("Round") FROM table_8812 WHERE "Name" = 'fred smoot' AND "Pick" > '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4060,
2122,
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,
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,
180,
6122,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4060,
2122,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
89,
1271,
3,
7,
51,
32,
32,
17,
31,
3430,
96,
345,
3142,
121,
2490,
3,
31,
2534,
31,
1,
-100... |
Which player is it that has a pick of 147? | CREATE TABLE table_name_22 (
player VARCHAR,
pick VARCHAR
) | SELECT player FROM table_name_22 WHERE pick = "147" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
1959,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
19,
34,
24,
65,
3,
9,
1432,
13,
3,
24719,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1432,
3274,
96,
24719,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the content of the Television service of Vesti? | CREATE TABLE table_name_58 (
content VARCHAR,
television_service VARCHAR
) | SELECT content FROM table_name_58 WHERE television_service = "vesti" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
738,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
738,
13,
8,
21922,
313,
13,
20970,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
738,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
4390,
834,
5114,
3274,
96,
19038,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the first and last name of all the students of age 18 who have vice president votes. | CREATE TABLE VOTING_RECORD (
VICE_President_VOTE VARCHAR
)
CREATE TABLE STUDENT (
Fname VARCHAR,
LName VARCHAR,
StuID VARCHAR,
age VARCHAR
) | SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8040,
21089,
834,
20921,
18400,
41,
584,
8906,
834,
345,
15704,
834,
8040,
3463,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5097,
10161,
6431,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
371,
4350,
6,
332,
5411,
434,
23954,
21680,
5097,
10161,
6431,
6157,
332,
536,
3,
15355,
3162,
3,
8040,
21089,
834,
20921,
18400,
6157,
332,
357,
9191,
332,
5411,
13076,
4309,
3274,
3... |
What was Obama's percentage in the county of Surry? | CREATE TABLE table_23744 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real
) | SELECT "Obama%" FROM table_23744 WHERE "County" = 'Surry' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4118,
3628,
41,
96,
10628,
63,
121,
1499,
6,
96,
667,
115,
265,
9,
1454,
121,
1499,
6,
96,
667,
115,
265,
9,
4663,
121,
490,
6,
96,
329,
75,
254,
9,
77,
1454,
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,
667,
115,
265,
9,
1454,
121,
21680,
953,
834,
357,
4118,
3628,
549,
17444,
427,
96,
10628,
63,
121,
3274,
3,
31,
134,
450,
651,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show each location and the number of cinemas there Show bar chart, sort y axis from high to low order. | CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cine... | SELECT Location, COUNT(*) FROM cinema GROUP BY Location ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2023,
41,
17544,
834,
4309,
16,
17,
6,
3417,
834,
4309,
16,
17,
6,
7678,
1499,
6,
3111,
834,
715,
7,
834,
883,
834,
1135,
16,
17,
6,
5312,
3,
12660,
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,
10450,
6,
2847,
17161,
599,
1935,
61,
21680,
10276,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose gender is m and lab test name is ferritin? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.label = "Ferritin" | [
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,... |
Where Luke Durbridge is the aggressive rider who is listed as the young rider classification? | CREATE TABLE table_29332810_14 (
young_rider_classification VARCHAR,
aggressive_rider VARCHAR
) | SELECT young_rider_classification FROM table_29332810_14 WHERE aggressive_rider = "Luke Durbridge" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4201,
2577,
1714,
834,
2534,
41,
1021,
834,
4055,
49,
834,
4057,
2420,
584,
4280,
28027,
6,
8299,
834,
4055,
49,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
1021,
834,
4055,
49,
834,
4057,
2420,
21680,
953,
834,
3166,
4201,
2577,
1714,
834,
2534,
549,
17444,
427,
8299,
834,
4055,
49,
3274,
96,
434,
1598,
15,
8633,
9818,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the rank when there is 0 gold, the total is more than 1, and silver is more than 0? | CREATE TABLE table_79455 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Rank") FROM table_79455 WHERE "Gold" = '0' AND "Total" > '1' AND "Silver" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
2128,
755,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
4440,
2128,
755,
549,
17444,
427,
96,
23576,
121,
3274,
3,
31,
632,
31,
3430,
96,
3696,
1947,
121,
2490,
3,
31,
536,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31... |
what is the display size for the calculator ti-82? | CREATE TABLE table_11703336_1 (display_size VARCHAR, calculator VARCHAR) | SELECT display_size FROM table_11703336_1 WHERE calculator = "TI-82" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2518,
4201,
3420,
834,
536,
41,
10475,
5595,
834,
7991,
584,
4280,
28027,
6,
9019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1831,
812,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1831,
834,
7991,
21680,
953,
834,
2596,
2518,
4201,
3420,
834,
536,
549,
17444,
427,
9019,
3274,
96,
5494,
18,
4613,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which bubbles has an atribute of onlostpointercapture? | CREATE TABLE table_name_87 (bubbles VARCHAR, attribute VARCHAR) | SELECT bubbles FROM table_name_87 WHERE attribute = "onlostpointercapture" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
3007,
7310,
7,
584,
4280,
28027,
6,
15816,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11144,
7,
65,
46,
3,
9,
5135,
17,
15,
13,
30,
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,
11144,
7,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
15816,
3274,
96,
106,
2298,
17,
2700,
49,
4010,
2693,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the team with a Games listing of 7? | CREATE TABLE table_13928 (
"SEASON" text,
"TEAM" text,
"LEAGUE" text,
"GAMES" text,
"GOALS" text
) | SELECT "TEAM" FROM table_13928 WHERE "GAMES" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
2577,
41,
96,
25542,
10466,
121,
1499,
6,
96,
382,
22684,
121,
1499,
6,
96,
3765,
8418,
5078,
121,
1499,
6,
96,
6302,
22759,
121,
1499,
6,
96,
5577,
20525,
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,
382,
22684,
121,
21680,
953,
834,
24090,
2577,
549,
17444,
427,
96,
6302,
22759,
121,
3274,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which team did David McLay play for? | CREATE TABLE table_2850912_3 (college_junior_club_team VARCHAR, player VARCHAR) | SELECT college_junior_club_team FROM table_2850912_3 WHERE player = "David McLay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1752,
4729,
357,
834,
519,
41,
3297,
7883,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
21680,
953,
834,
2577,
1752,
4729,
357,
834,
519,
549,
17444,
427,
1959,
3274,
96,
308,
9,
6961,
3038,
3612,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the surface for the game that had a partner of vania king? | CREATE TABLE table_name_85 (
surface VARCHAR,
partner VARCHAR
) | SELECT surface FROM table_name_85 WHERE partner = "vania king" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1774,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1774,
21,
8,
467,
24,
141,
3,
9,
2397,
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,
1774,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
2397,
3274,
96,
16658,
9,
3,
1765,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What tie happened with Southampton? | CREATE TABLE table_name_38 (tie_no VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_38 WHERE away_team = "southampton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
17,
23,
15,
834,
29,
32,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6177,
2817,
28,
28165,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6177,
834,
29,
32,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
670,
1483,
11632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the winner is Hong Kong 207/6 (47.1 overs), what is the name of the hosting nation? | CREATE TABLE table_25120 (
"Details" text,
"Host Nation(s)" text,
"Final Venue" text,
"Winner" text,
"Result" text,
"Runner-up" text
) | SELECT "Host Nation(s)" FROM table_25120 WHERE "Winner" = 'Hong Kong 207/6 (47.1 overs)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
15518,
41,
96,
2962,
5756,
7,
121,
1499,
6,
96,
566,
3481,
11046,
599,
7,
61,
121,
1499,
6,
96,
371,
10270,
29940,
121,
1499,
6,
96,
18455,
687,
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,
566,
3481,
11046,
599,
7,
61,
121,
21680,
953,
834,
1828,
15518,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
566,
2444,
7807,
3,
26426,
18656,
8457,
25059,
147,
7,
61,
31,
1,
-100,
-100,
-100,
-100,
-10... |
how many female patients are admitted under emergency room admit? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
18... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about commission_pct over the last_name by a bar chart, sort COMMISSION_PCT from low to high order. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT LAST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT | [
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,
301,
12510,
834,
567,
17683,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
174... |
What is the semifinal average where the preliminary average is 9.084 (1) ? | CREATE TABLE table_16268026_3 (semifinal_average VARCHAR, preliminary_average VARCHAR) | SELECT semifinal_average FROM table_16268026_3 WHERE preliminary_average = "9.084 (1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2688,
2079,
2688,
834,
519,
41,
7,
15,
51,
23,
12406,
834,
28951,
584,
4280,
28027,
6,
17413,
834,
28951,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
27504,
834,
28951,
21680,
953,
834,
2938,
2688,
2079,
2688,
834,
519,
549,
17444,
427,
17413,
834,
28951,
3274,
96,
8797,
4018,
591,
5637,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of black/haitian patients suffering from upper gi bleed as their primary disease? | 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 te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.diagnosis = "UPPER GI BLEED" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
5478,
3177,
21758,
121,
3430,
14798,
5,
25930,
4844... |
What shows for the location and attendance when the record is 41 36? | CREATE TABLE table_46328 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_46328 WHERE "Record" = '41–36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
28070,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
4448,
28070,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
4853,
104,
3420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Team Estudantes Paulista with a position less than 4 has what average against? | CREATE TABLE table_name_78 (against INTEGER, team VARCHAR, position VARCHAR) | SELECT AVG(against) FROM table_name_78 WHERE team = "estudantes paulista" AND position < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
9,
16720,
7,
17,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2271,
262,
8637,
8386,
1838,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
372,
3274,
96,
15,
8637,
8386,
2576,
83,
343,
9,
121,
3430,
1102,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the name of the diagnostic that patient 003-48563 first was received during the last hospital encounter? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergy... | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-48563' AND NOT patient.hospitaldischargetime IS NULL ORDER BY... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
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,
8209,
5,
25930,
4844,
159,
4350,
21680,
8209,
549,
17444,
427,
8209,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3... |
what is the turbo when the cores is standard power? | CREATE TABLE table_13846 (
"Model number" text,
"sSpec number" text,
"Cores" text,
"Frequency" text,
"Turbo" text,
"L2 cache" text,
"L3 cache" text,
"GPU model" text,
"GPU frequency" text,
"Socket" text,
"I/O bus" text,
"Release date" text,
"Part number(s)" text,
... | SELECT "Turbo" FROM table_13846 WHERE "Cores" = 'standard power' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
4448,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
254,
14846,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
382,
450,
115,
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,
382,
450,
115,
32,
121,
21680,
953,
834,
22744,
4448,
549,
17444,
427,
96,
254,
14846,
121,
3274,
3,
31,
16020,
579,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Return a bar chart on what are the number of rooms for each bed type?, list in desc by the total number. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1953,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place? | CREATE TABLE table_77318 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Place" FROM table_77318 WHERE "Score" > '67' AND "Country" = 'united states' AND "To par" = 'e' AND "Player" = 'bunky henry' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
519,
2606,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
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,
345,
11706,
121,
21680,
953,
834,
4013,
519,
2606,
549,
17444,
427,
96,
134,
9022,
121,
2490,
3,
31,
3708,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
3696,
260,
121,
3274,
... |
What are the different ship flags, and how many ships have each. Plot them as bar chart. | CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
) | SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15508,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
14862,
834,
476,
2741,
490,
6,
4501,
1499,
6,
17016,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
17016,
6,
2847,
17161,
599,
1935,
61,
21680,
15508,
350,
4630,
6880,
272,
476,
17016,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is every main presenter for the year 2011? | CREATE TABLE table_26678 (
"Region/Country" text,
"Local name" text,
"Main presenter" text,
"Network" text,
"Year premiered" real
) | SELECT "Main presenter" FROM table_26678 WHERE "Year premiered" = '2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
3940,
41,
96,
17748,
23,
106,
87,
10628,
651,
121,
1499,
6,
96,
434,
32,
1489,
564,
121,
1499,
6,
96,
21978,
29,
915,
49,
121,
1499,
6,
96,
9688,
1981,
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,
21978,
29,
915,
49,
121,
21680,
953,
834,
357,
3539,
3940,
549,
17444,
427,
96,
476,
2741,
13539,
26,
121,
3274,
3,
31,
13907,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the time when the set 1 is 21 25? | CREATE TABLE table_name_48 (
time VARCHAR,
set_1 VARCHAR
) | SELECT time FROM table_name_48 WHERE set_1 = "21–25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
97,
584,
4280,
28027,
6,
356,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,
116,
8,
356,
209,
19,
1401,
944,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
356,
834,
536,
3274,
96,
2658,
104,
1828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the most common amenity in the dorms? | CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity numbe... | SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
103,
52,
51,
834,
9,
904,
485,
41,
183,
35,
23,
26,
381,
6,
183,
35,
485,
834,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
9,
904,
485,
834,
4350,
21680,
103,
52,
51,
834,
9,
904,
485,
6157,
332,
536,
3,
15355,
3162,
65,
834,
9,
904,
485,
6157,
332,
357,
9191,
332,
5411,
9,
904,
23,
26,
3274,
332,
4416,
9,
904,
23,
26,
... |
What county is the team with the mascot of the Tigers in? | CREATE TABLE table_name_89 (county VARCHAR, mascot VARCHAR) | SELECT county FROM table_name_89 WHERE mascot = "tigers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
13362,
63,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5435,
19,
8,
372,
28,
8,
3,
2754,
4310,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
3,
2754,
4310,
3274,
96,
2880,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the name for norway nationality | CREATE TABLE table_25826954_7 (name VARCHAR, nationality VARCHAR) | SELECT name FROM table_25826954_7 WHERE nationality = "Norway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4613,
3951,
5062,
834,
940,
41,
4350,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
564,
21,
3701,
1343,
1157,
485,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
1828,
4613,
3951,
5062,
834,
940,
549,
17444,
427,
1157,
485,
3274,
96,
567,
127,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Status of primitive confuciusornithid .? | CREATE TABLE table_41408 (
"Name" text,
"Status" text,
"Authors" text,
"Location" text,
"Notes" text
) | SELECT "Status" FROM table_41408 WHERE "Notes" = 'primitive confuciusornithid .' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2534,
4018,
41,
96,
23954,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23602,
127,
7,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10358,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
121,
21680,
953,
834,
591,
2534,
4018,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
8234,
23,
3268,
3,
9707,
6809,
302,
127,
29,
155,
11740,
3,
5,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the final result for the 63.5 kg? | CREATE TABLE table_name_73 (final VARCHAR, event VARCHAR) | SELECT final FROM table_name_73 WHERE event = "63.5 kg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
12406,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
804,
741,
21,
8,
431,
9285,
9147,
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,
804,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
605,
3274,
96,
948,
9285,
9147,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What rounds does elio de angelis drive? | CREATE TABLE table_name_8 (rounds VARCHAR, driver VARCHAR) | SELECT rounds FROM table_name_8 WHERE driver = "elio de angelis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
7775,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
14419,
405,
3,
15,
40,
23,
32,
20,
11831,
159,
1262,
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,
14419,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
2535,
3274,
96,
15,
40,
23,
32,
20,
11831,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose religion is greek orthodox and admission year is before 2103? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "GREEK ORTHODOX" AND demographic.admityear < "2103" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
60,
2825,
23,
106,
3274,
96,
8727,
5080,
439,
4674,
4611,
7039,
667,
4,
121,
3430,
14798,
5,
204... |
Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022? | CREATE TABLE table_name_58 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR) | SELECT railway FROM table_name_58 WHERE location = "shildon" AND objectnumber = "1975-7022" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
12977,
1343,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
3735,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
18025,
65,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
14421,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1128,
3274,
96,
5605,
40,
2029,
121,
3430,
3735,
5525,
1152,
3274,
96,
27181,
23440,
4305,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which city has an IATA of tsa? | CREATE TABLE table_name_69 (
city VARCHAR,
iata VARCHAR
) | SELECT city FROM table_name_69 WHERE iata = "tsa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
690,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
690,
65,
46,
27,
19282,
13,
3,
17,
7,
9,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
3,
17221,
3274,
96,
17,
7,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the data on January 15-16 if the data recorded June 10-11 is June 10, 1964? | CREATE TABLE table_27451 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
) | SELECT "January 15-16" FROM table_27451 WHERE "June 10-11" = 'June 10, 1964' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2128,
536,
41,
96,
683,
444,
335,
9169,
121,
1499,
6,
96,
25019,
2307,
18,
3166,
121,
1499,
6,
96,
30404,
627,
10892,
121,
1499,
6,
96,
28635,
220,
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,
30404,
627,
10892,
121,
21680,
953,
834,
2555,
2128,
536,
549,
17444,
427,
96,
683,
444,
335,
9169,
121,
3274,
3,
31,
683,
444,
10372,
18969,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients having medicaid insurance have diagnosis icd9 code v667? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.icd9_code = "V667" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the away score with a record of 7-4, win% of 0.637, and 2010 season? | CREATE TABLE table_57567 (
"Coach" text,
"Season" text,
"Record" text,
"Home" text,
"Away" text,
"Win %" real,
"Average (Total) Home Attendance" text
) | SELECT "Away" FROM table_57567 WHERE "Record" = '7-4' AND "Win %" = '0.637' AND "Season" = '2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3072,
3708,
41,
96,
3881,
1836,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
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,
188,
1343,
121,
21680,
953,
834,
755,
3072,
3708,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
940,
4278,
31,
3430,
96,
18455,
3,
1454,
121,
3274,
3,
31,
22787,
4118,
31,
3430,
96,
134,
15,
9,
739,
121... |
NJame the total number of population for towns/villages for 217 | CREATE TABLE table_16278825_1 (population VARCHAR, towns__villages VARCHAR) | SELECT COUNT(population) FROM table_16278825_1 WHERE towns__villages = 217 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2555,
4060,
1828,
834,
536,
41,
9791,
7830,
584,
4280,
28027,
6,
11228,
834,
834,
24887,
2897,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
11522,
265,
15,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9791,
7830,
61,
21680,
953,
834,
2938,
2555,
4060,
1828,
834,
536,
549,
17444,
427,
11228,
834,
834,
24887,
2897,
3274,
204,
2517,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what division did they place 4th? | CREATE TABLE table_name_27 (
division VARCHAR,
position VARCHAR
) | SELECT division FROM table_name_27 WHERE position = "4th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
4889,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
4889,
410,
79,
286,
314,
189,
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,
4889,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1102,
3274,
96,
591,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most rr 1 pts | CREATE TABLE table_21457754_2 (
rr1_pts INTEGER
) | SELECT MAX(rr1_pts) FROM table_21457754_2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2128,
4013,
5062,
834,
357,
41,
3,
52,
52,
536,
834,
102,
17,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
3,
52,
52,
209,
3,
102,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
52,
52,
536,
834,
102,
17,
7,
61,
21680,
953,
834,
2658,
2128,
4013,
5062,
834,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest crowd population when the away team is Geelong? | CREATE TABLE table_4644 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MAX("Crowd") FROM table_4644 WHERE "Away team" = 'geelong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3628,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
4448,
3628,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
397,
15,
2961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Under what series was the 3.5 release? | CREATE TABLE table_20660 (
"Title" text,
"Series" text,
"Release" text,
"Featuring" text,
"Writer" text,
"Director" text,
"Length" text,
"Timeline" text,
"Release Date" text
) | SELECT "Series" FROM table_20660 WHERE "Release" = '3.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
27720,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
1649,
40,
14608,
121,
1499,
6,
96,
18772,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12106,
7,
121,
21680,
953,
834,
1755,
27720,
549,
17444,
427,
96,
1649,
40,
14608,
121,
3274,
3,
31,
9285,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who had the high point total against cleveland? | CREATE TABLE table_72885 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_72885 WHERE "Team" = 'Cleveland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2577,
4433,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
979,
121,
21680,
953,
834,
940,
2577,
4433,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
254,
4563,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the part number of athlon x2 4850e? | CREATE TABLE table_33927 (
"Model Number" text,
"Stepping" text,
"Frequency" text,
"L2 Cache" text,
"Multi 1" text,
"V Core" text,
"Socket" text,
"Release Date" text,
"Part Number(s)" text
) | SELECT "Part Number(s)" FROM table_33927 WHERE "Model Number" = 'athlon x2 4850e' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3288,
2555,
41,
96,
24663,
7720,
121,
1499,
6,
96,
14337,
5341,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
357,
205,
4933,
121,
1499,
6,
96,
31922... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
7720,
599,
7,
61,
121,
21680,
953,
834,
519,
3288,
2555,
549,
17444,
427,
96,
24663,
7720,
121,
3274,
3,
31,
21774,
3,
226,
357,
314,
17246,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients with bowel obstruction primary disease are aged less than 74 years? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BOWEL OBSTRUCTION" AND demographic.age < "74" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
279,
15251,
3577,
3,
10539,
13733,
6463,
9562,
121,
3430,
14798,
5,
54... |
where is Mascot of quakers? | CREATE TABLE table_64245 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text,
"Year Joined" real,
"Previous Conference" text
) | SELECT "Location" FROM table_64245 WHERE "Mascot" = 'quakers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
357,
2128,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4389,
357,
2128,
549,
17444,
427,
96,
329,
9,
7,
4310,
121,
3274,
3,
31,
4960,
11758,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the home team was Shrewsbury town, what was the score? | CREATE TABLE table_name_54 (
score VARCHAR,
home_team VARCHAR
) | SELECT score FROM table_name_54 WHERE home_team = "shrewsbury town" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
2604,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
234,
372,
47,
180,
13296,
7,
7165,
1511,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
13296,
7,
7165,
1511,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones | CREATE TABLE table_name_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR) | SELECT MIN(tropical_lows) FROM table_name_41 WHERE season = "1993–94" AND tropical_cyclones < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
20960,
138,
834,
3216,
7,
3,
21342,
17966,
6,
774,
584,
4280,
28027,
6,
10468,
834,
7132,
782,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
20960,
138,
834,
3216,
7,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
774,
3274,
96,
2294,
4271,
104,
4240,
121,
3430,
10468,
834,
7132,
782,
7,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100... |
What was the tries against when the drawn was 2? | CREATE TABLE table_17809 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Tries against" FROM table_17809 WHERE "Drawn" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
4198,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
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,
382,
2593,
581,
121,
21680,
953,
834,
27640,
4198,
549,
17444,
427,
96,
308,
10936,
29,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the M809 seris with M939 series of M931/932 | CREATE TABLE table_name_88 (
m809_series VARCHAR,
m939_series VARCHAR
) | SELECT m809_series FROM table_name_88 WHERE m939_series = "m931/932" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
3,
51,
2079,
1298,
834,
10833,
7,
584,
4280,
28027,
6,
3,
51,
1298,
3288,
834,
10833,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
51,
2079,
1298,
834,
10833,
7,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
3,
51,
1298,
3288,
834,
10833,
7,
3274,
96,
51,
4271,
12989,
4271,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the away team playing at Carlton? | CREATE TABLE table_20738 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_20738 WHERE "Home team" = 'Carlton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
3747,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
517,
7775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
26426,
3747,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
30339,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16? | CREATE TABLE table_name_5 (
second VARCHAR,
premier VARCHAR,
first VARCHAR,
season VARCHAR
) | SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = "1992-93" AND premier > 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
511,
584,
4280,
28027,
6,
2761,
584,
4280,
28027,
6,
166,
584,
4280,
28027,
6,
774,
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,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
12091,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
166,
2490,
507,
3430,
774,
3274,
96,
19479,
7412,
4271,
121,
3430,
2761,
2490,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the crowd size when Essendon was the away team? | CREATE TABLE table_name_79 (crowd VARCHAR, away_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_79 WHERE away_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
75,
3623,
26,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4374,
812,
116,
11722,
2029,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30. | CREATE TABLE pilot (
pilot_id number,
name text,
age number
)
CREATE TABLE match (
round number,
location text,
country text,
date text,
fastest_qualifying text,
winning_pilot text,
winning_aircraft text
)
CREATE TABLE airport_aircraft (
id number,
airport_id number,
... | SELECT t1.name, t1.age FROM pilot AS t1 JOIN match AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4487,
41,
4487,
834,
23,
26,
381,
6,
564,
1499,
6,
1246,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1588,
41,
1751,
381,
6,
1128,
1499,
6,
684,
1499,
6,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5411,
4350,
6,
3,
17,
5411,
545,
21680,
4487,
6157,
3,
17,
536,
3,
15355,
3162,
1588,
6157,
3,
17,
357,
9191,
3,
17,
5411,
24650,
834,
23,
26,
3274,
3,
17,
4416,
8163,
834,
24650,
549,
17444,
427,
3,
17... |
When aaron brooks (6) had the highest amount of assists what is the date? | CREATE TABLE table_17288825_6 (
date VARCHAR,
high_assists VARCHAR
) | SELECT date FROM table_17288825_6 WHERE high_assists = "Aaron Brooks (6)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
10927,
1828,
834,
948,
41,
833,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
9,
291,
106,
3,
1437... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
27156,
10927,
1828,
834,
948,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
188,
291,
106,
9083,
7,
3,
18669,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What papers did li dong publish last year ? | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpa... | SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'li dong' AND paper.year = 2015 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
6757,
2244,
41,
1040,
23,
26,
16,
17,
6,
17953,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
26,
16,
17,
6,
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,
3,
15438,
25424,
6227,
1040,
5,
19587,
23,
26,
21680,
2291,
6,
1040,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
40,
23,
278,
122,
31,
3430,
1040,
5,
1201,
3274,
1230,
3430,
11858,
5,
17415,
23,
... |
Which stadium is managed by Kari Martonen? | CREATE TABLE table_25129482_1 (stadium VARCHAR, manager VARCHAR) | SELECT stadium FROM table_25129482_1 WHERE manager = "Kari Martonen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
22174,
3707,
357,
834,
536,
41,
2427,
12925,
584,
4280,
28027,
6,
2743,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14939,
19,
3030,
57,
4556,
23,
11163,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14939,
21680,
953,
834,
1828,
22174,
3707,
357,
834,
536,
549,
17444,
427,
2743,
3274,
96,
439,
1665,
11163,
106,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest draw number when 23 points are scored? | CREATE TABLE table_63699 (
"Draw" real,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Place" real,
"Points" real
) | SELECT MAX("Draw") FROM table_63699 WHERE "Points" = '23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3420,
3264,
41,
96,
308,
10936,
121,
490,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
26749,
7314,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
308,
10936,
8512,
21680,
953,
834,
948,
3420,
3264,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
2773,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the id of students who registered course statistics in the order of registration date. | CREATE TABLE student_course_registrations (
student_id VARCHAR,
course_id VARCHAR,
registration_date VARCHAR
)
CREATE TABLE courses (
course_id VARCHAR,
course_name VARCHAR
) | SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.registration_date | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
834,
19221,
834,
5200,
1628,
41,
1236,
834,
23,
26,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28027,
6,
3816,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
8637,
295,
834,
23,
26,
21680,
2996,
6157,
332,
536,
3,
15355,
3162,
1236,
834,
19221,
834,
5200,
1628,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
549,
17444... |
how many patients had an emergency admission type and the procedure repair of fistula involving bladder and intestine done? | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.long_title = "Repair of fistula involving bladder and intestine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which win has a loss of IPL? | CREATE TABLE table_name_34 (
wins VARCHAR,
losses VARCHAR
) | SELECT wins FROM table_name_34 WHERE losses = "ipl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
9204,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1369,
65,
3,
9,
1453,
13,
27,
5329,
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,
9204,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
8467,
3274,
96,
23,
102,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the No. 8 name when Chloe was No. 9 and Abigail was No. 7? | CREATE TABLE table_name_64 (no_8 VARCHAR, no_9 VARCHAR, no_7 VARCHAR) | SELECT no_8 FROM table_name_64 WHERE no_9 = "chloe" AND no_7 = "abigail" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
29,
32,
834,
927,
584,
4280,
28027,
6,
150,
834,
1298,
584,
4280,
28027,
6,
150,
834,
940,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
150,
834,
927,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
150,
834,
1298,
3274,
96,
524,
40,
32,
15,
121,
3430,
150,
834,
940,
3274,
96,
9,
12911,
9,
173,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was segment D when segment B was jeans? | CREATE TABLE table_15187735_1 (
segment_d VARCHAR,
segment_b VARCHAR
) | SELECT segment_d FROM table_15187735_1 WHERE segment_b = "Jeans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26578,
27697,
2469,
834,
536,
41,
5508,
834,
26,
584,
4280,
28027,
6,
5508,
834,
115,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
5508,
309,
116,
5508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5508,
834,
26,
21680,
953,
834,
26578,
27697,
2469,
834,
536,
549,
17444,
427,
5508,
834,
115,
3274,
96,
7851,
3247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of patients whose admission type is elective and lab test fluid is urine. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.fluid = "Urine" | [
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 are the losses where the award is Mike Miller (Smoy)? | CREATE TABLE table_name_34 (losses VARCHAR, awards VARCHAR) | SELECT losses FROM table_name_34 WHERE awards = "mike miller (smoy)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
2298,
2260,
584,
4280,
28027,
6,
6120,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
8467,
213,
8,
2760,
19,
4794,
9429,
41,
134,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8467,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
6120,
3274,
96,
20068,
15,
3293,
49,
41,
7,
51,
32,
63,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is 1st Season, when 4 Season is '3 273 440 (17 March 2009)'? | CREATE TABLE table_60805 (
"Episode" text,
"1 season" text,
"2 season" text,
"3 season" text,
"4 season" text,
"5 season" text,
"6 season" text
) | SELECT "1 season" FROM table_60805 WHERE "4 season" = '3 273 440 (17 march 2009)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
2079,
755,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
536,
774,
121,
1499,
6,
96,
357,
774,
121,
1499,
6,
96,
519,
774,
121,
1499,
6,
96,
591,
774,
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,
536,
774,
121,
21680,
953,
834,
3328,
2079,
755,
549,
17444,
427,
96,
591,
774,
121,
3274,
3,
31,
519,
204,
4552,
3,
22335,
18360,
10556,
2464,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position does the player from tulsa play? | CREATE TABLE table_32185 (
"Player" text,
"Nationality" text,
"Position" text,
"From" text,
"School/Country" text
) | SELECT "Position" FROM table_32185 WHERE "School/Country" = 'tulsa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
21594,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
22674,
121,
1499,
6,
96,
29364,
87,
10628,
651,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
2668,
21594,
549,
17444,
427,
96,
29364,
87,
10628,
651,
121,
3274,
3,
31,
2520,
7,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the date when the attendance was n/a and the Man of the Match was unknown? | CREATE TABLE table_name_32 (date VARCHAR, attendance VARCHAR, man_of_the_match VARCHAR) | SELECT date FROM table_name_32 WHERE attendance = "n/a" AND man_of_the_match = "unknown" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
5522,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
6,
388,
834,
858,
834,
532,
834,
19515,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
11364,
3274,
96,
29,
87,
9,
121,
3430,
388,
834,
858,
834,
532,
834,
19515,
3274,
96,
202,
5661,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of all the races that occurred in the year 2017? | CREATE TABLE circuits (
circuitid number,
circuitref text,
name text,
location text,
country text,
lat number,
lng number,
alt number,
url text
)
CREATE TABLE constructorresults (
constructorresultsid number,
raceid number,
constructorid number,
points number,
st... | SELECT name FROM races WHERE year = 2017 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4558,
7,
41,
4558,
23,
26,
381,
6,
4558,
60,
89,
1499,
6,
564,
1499,
6,
1128,
1499,
6,
684,
1499,
6,
50,
17,
381,
6,
3,
40,
1725,
381,
6,
4445,
381,
6,
3,
16137,
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,
564,
21680,
10879,
549,
17444,
427,
215,
3274,
1233,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What stadium is in Seoul? | CREATE TABLE table_name_56 (
stadium VARCHAR,
city VARCHAR
) | SELECT stadium FROM table_name_56 WHERE city = "seoul" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
14939,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
14939,
19,
16,
28343,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
690,
3274,
96,
7,
15,
7115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many contestants were there on March 1, 2009 during the season premiere? | CREATE TABLE table_75309 (
"Season" text,
"Season Premiere" text,
"Season Finale" text,
"Winner" text,
"Runner-up" text,
"Number of Contestants" real,
"Winner's Country" text,
"Runner Up's Country" text
) | SELECT SUM("Number of Contestants") FROM table_75309 WHERE "Season Premiere" = 'march 1, 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
1458,
1298,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
134,
15,
9,
739,
6552,
15,
121,
1499,
6,
96,
134,
15,
9,
739,
6514,
15,
121,
1499,
6,
96,
18455,
687,
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,
180,
6122,
599,
121,
567,
5937,
49,
13,
21537,
2366,
8512,
21680,
953,
834,
3072,
1458,
1298,
549,
17444,
427,
96,
134,
15,
9,
739,
6552,
15,
121,
3274,
3,
31,
51,
7064,
1914,
2464,
31,
1,
-100,
-100,
-100,
-100,
... |
What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor? | CREATE TABLE entrepreneur (Investor VARCHAR) | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
12290,
41,
13898,
127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
4367,
13,
9970,
11,
8,
3,
9921,
381,
13,
9970,
11496,
57,
284,
12024,
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,
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,
16873,
6,
2847,
17161,
599,
1935,
61,
21680,
3,
12290,
350,
4630,
6880,
272,
476,
16873,
1,
-100,
-100,
-100,
-100,
-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.