NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What were the original air dates of the episode named 'winds of war'? | CREATE TABLE table_16460 (
"No. in season" real,
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
) | SELECT "Original air date" FROM table_16460 WHERE "Title" = 'Winds of War' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
25991,
41,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
2938,
25991,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
18455,
26,
7,
13,
1602,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
c _ peptide > 1.5 ng / ml | CREATE TABLE table_train_146 (
"id" int,
"lymphocyte_count" int,
"c_peptide_level" float,
"vitamin_d_deficiency" bool,
"diabetic" string,
"vitamin_d" int,
"NOUSE" float
) | SELECT * FROM table_train_146 WHERE c_peptide_level > 1.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
24300,
41,
96,
23,
26,
121,
16,
17,
6,
96,
120,
7656,
24339,
834,
13362,
121,
16,
17,
6,
96,
75,
834,
21826,
15,
834,
4563,
121,
3,
12660,
6,
96,
12411,
1109... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
24300,
549,
17444,
427,
3,
75,
834,
21826,
15,
834,
4563,
2490,
8613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the names of actors who have been in the musical titled The Phantom of the Opera? | CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
)
CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
) | SELECT T1.name FROM actor AS T1 JOIN musical AS T2 ON T1.musical_id = T2.musical_id WHERE T2.name = "The Phantom of the Opera" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
7556,
834,
23,
26,
381,
6,
564,
1499,
6,
4183,
834,
23,
26,
381,
6,
1848,
1499,
6,
8659,
1499,
6,
1246,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
21680,
7556,
6157,
332,
536,
3,
15355,
3162,
4183,
6157,
332,
357,
9191,
332,
5411,
22170,
138,
834,
23,
26,
3274,
332,
4416,
22170,
138,
834,
23,
26,
549,
17444,
427,
332,
4416,
4350,
3274,
96,
634... |
What is the kickoff that has a NFL.com recap, is played before week 17, and is played at arrowhead stadium? | CREATE TABLE table_name_53 (
kickoff VARCHAR,
game_site VARCHAR,
nflcom_recap VARCHAR,
week VARCHAR
) | SELECT kickoff FROM table_name_53 WHERE nflcom_recap = "recap" AND week < 17 AND game_site = "arrowhead stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
4583,
1647,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
6,
3,
29,
89,
40,
287,
834,
60,
4010,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4583,
1647,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
3,
29,
89,
40,
287,
834,
60,
4010,
3274,
96,
60,
4010,
121,
3430,
471,
3,
2,
1003,
3430,
467,
834,
3585,
3274,
96,
6770,
3313,
14939,
121,
1,
-100,
... |
Which score was associated with an attendance of 275? | CREATE TABLE table_8670 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
) | SELECT "Score" FROM table_8670 WHERE "Attendance" = '275' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3840,
2518,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3840,
2518,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
25988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, visualize a bar chart about the distribution of job_id and the average of manager_id , and group by attribute job_id, and rank by the Y-axis from low to high. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NA... | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
446,
10539,
... |
How many mileposts are there on Anne Street? | CREATE TABLE table_16168 (
"County" text,
"Location" text,
"Street Names" text,
"Milepost" text,
"Roads Intersected" text,
"Notes" text
) | SELECT COUNT("Milepost") FROM table_16168 WHERE "Street Names" = 'Anne Street' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
24274,
41,
96,
10628,
63,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
11500,
15,
15,
17,
5570,
7,
121,
1499,
6,
96,
329,
699,
5950,
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,
2847,
17161,
599,
121,
329,
699,
5950,
8512,
21680,
953,
834,
2938,
24274,
549,
17444,
427,
96,
11500,
15,
15,
17,
5570,
7,
121,
3274,
3,
31,
17608,
15,
1887,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What label is in download format in the United States? | CREATE TABLE table_name_42 (label VARCHAR, region VARCHAR, format VARCHAR) | SELECT label FROM table_name_42 WHERE region = "united states" AND format = "download" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
40,
10333,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3783,
19,
16,
946,
1910,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1719,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1910,
3274,
96,
26036,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What tour was cancelled? | CREATE TABLE table_name_14 (name VARCHAR, date VARCHAR) | SELECT name FROM table_name_14 WHERE date = "cancelled" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
4350,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1552,
47,
18454,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
833,
3274,
96,
1608,
7125,
1361,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Gross-to-date which has a Date of august 23–25? | CREATE TABLE table_name_53 (gross_to_date VARCHAR, date VARCHAR) | SELECT gross_to_date FROM table_name_53 WHERE date = "august 23–25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
3844,
7,
7,
834,
235,
834,
5522,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
17969,
18,
235,
18,
5522,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8690,
834,
235,
834,
5522,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
833,
3274,
96,
402,
17198,
1902,
104,
1828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Opponent in the final has a Score of 6 3, 3 6, 6 8? | CREATE TABLE table_50088 (
"Date" real,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Opponent in the final" FROM table_50088 WHERE "Score" = '6–3, 3–6, 6–8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2560,
4060,
41,
96,
308,
342,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
53,
121,
1499,
6,
96,
667,
102,
997... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
16,
8,
804,
121,
21680,
953,
834,
2560,
4060,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
948,
104,
6355,
220,
104,
11071,
431,
104,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all destinations and the number of flights to each destination Plot them as bar chart, and could you rank in asc by the the total number ? | CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
)
CREAT... | SELECT destination, COUNT(*) FROM flight GROUP BY destination ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
89,
40,
29,
32,
381,
599,
8525,
632,
201,
5233,
3,
4331,
4059,
357,
599,
1755,
201,
3954,
3,
4331,
4059,
357,
599,
1755,
201,
2357,
381,
599,
11071,
632,
201,
12028,
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,
3954,
6,
2847,
17161,
599,
1935,
61,
21680,
3777,
350,
4630,
6880,
272,
476,
3954,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the average b score when the gymnast is kōhei uchimura ( jpn )? | CREATE TABLE table_name_20 (b_score INTEGER, gymnast VARCHAR) | SELECT AVG(b_score) FROM table_name_20 WHERE gymnast = "kōhei uchimura ( jpn )" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
115,
834,
7,
9022,
3,
21342,
17966,
6,
23379,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1348,
3,
115,
2604,
116,
8,
23379,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
71,
17217,
599,
115,
834,
7,
9022,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
23379,
17,
3274,
96,
157,
2,
88,
23,
3,
76,
9737,
2414,
41,
3,
354,
102,
29,
3,
61,
121,
1,
-100,
-100,
-100,
-100,
-10... |
How many to par has the winning score of 69-66-68=203. | CREATE TABLE table_19630743_2 (to_par VARCHAR, winning_score VARCHAR) | SELECT to_par FROM table_19630743_2 WHERE winning_score = 69 - 66 - 68 = 203 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
1458,
4581,
519,
834,
357,
41,
235,
834,
1893,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
12,
260,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
26937,
1458,
4581,
519,
834,
357,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
3951,
3,
18,
3,
3539,
3,
18,
3,
3651,
3274,
3,
23330,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many documents are created in each day? Bin the document date by weekday and group by document type description with a stacked bar chart. | CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEG... | SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Description | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6288,
7,
41,
6288,
834,
4309,
3,
21342,
17966,
6,
16836,
834,
4309,
3,
21342,
17966,
6,
6288,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
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,
11167,
834,
308,
342,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
308,
342,
61,
21680,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
7,
6157,
332,
357,
9191,
332,
5411,
4135,
... |
Who was the week 12 nomination when the week 9 nomination walked (day 11)? | CREATE TABLE table_name_10 (
week_12 VARCHAR,
week_9 VARCHAR
) | SELECT week_12 FROM table_name_10 WHERE week_9 = "walked (day 11)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
471,
834,
2122,
584,
4280,
28027,
6,
471,
834,
1298,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
471,
586,
13588,
116,
8,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
834,
2122,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
471,
834,
1298,
3274,
96,
6412,
41,
1135,
850,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the average of salary bin hire_date by time, and show in asc by the Y-axis please. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613... |
What is the average rating for john kidd with more than 0 yards? | CREATE TABLE table_13364 (
"Player" text,
"Games" real,
"Comp" real,
"Yards" real,
"Rating" real
) | SELECT AVG("Rating") FROM table_13364 WHERE "Player" = 'john kidd' AND "Yards" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
4389,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
5890,
102,
121,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
448,
1014,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
448,
1014,
8512,
21680,
953,
834,
22974,
4389,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
27341,
4984,
26,
31,
3430,
96,
476,
986,
7,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-... |
What was Fitzroy score at their home stadium? | CREATE TABLE table_name_25 (
home_team VARCHAR
) | SELECT home_team AS score FROM table_name_25 WHERE home_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
9783,
172,
8170,
2604,
44,
70,
234,
14939,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
234,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the code name when the FSB / HT (MHz) is 100 (fsb)? | CREATE TABLE table_name_12 (
code_name VARCHAR,
fsb___ht__mhz_ VARCHAR
) | SELECT code_name FROM table_name_12 WHERE fsb___ht__mhz_ = "100 (fsb)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
1081,
834,
4350,
584,
4280,
28027,
6,
3,
89,
7,
115,
834,
834,
834,
107,
17,
834,
834,
51,
107,
172,
834,
584,
4280,
28027,
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,
1081,
834,
4350,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
89,
7,
115,
834,
834,
834,
107,
17,
834,
834,
51,
107,
172,
834,
3274,
96,
2915,
41,
89,
7,
115,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
give the drug type for drug code enal25i. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.formulary_drug_cd = "ENAL25I" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
3274,
96,
5332,
4090,
1828,
196,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give the number of patients whose ethnicity is black/african american and diagnosis long title is long term use of steroids | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND diagnoses.long_title = "Long-term (current) use of steroids" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
how many bosnian in cook islands is sri lankan | CREATE TABLE table_27115 (
"Afghan" text,
"Albanian" text,
"Arabic" text,
"Bangladeshi" text,
"Bosnian" text,
"Chinese" text,
"Colombian" text,
"Cook Islands" text
) | SELECT "Bosnian" FROM table_27115 WHERE "Cook Islands" = 'Sri Lankan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
15660,
41,
96,
188,
89,
22637,
121,
1499,
6,
96,
25691,
9,
15710,
121,
1499,
6,
96,
188,
7093,
447,
121,
1499,
6,
96,
279,
1468,
14712,
5605,
121,
1499,
6,
96,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
32,
7,
15710,
121,
21680,
953,
834,
2555,
15660,
549,
17444,
427,
96,
3881,
1825,
11654,
121,
3274,
3,
31,
134,
52,
23,
13877,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score for Tom Lehman? | CREATE TABLE table_49803 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Score" FROM table_49803 WHERE "Player" = 'tom lehman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
2079,
519,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3647,
2079,
519,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
235,
51,
90,
107,
348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
who was in the 2005 role when the original broadway cast was played by jesse l. martin? | CREATE TABLE table_28691 (
"Role" text,
"Original Broadway Cast" text,
"2005 film" text,
"2008 Final Performance Film" text,
"Hollywood Bowl Cast" text,
"2011 Off-Broadway Revival" text
) | SELECT "2005 film" FROM table_28691 WHERE "Original Broadway Cast" = 'Jesse L. Martin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3951,
536,
41,
96,
448,
32,
109,
121,
1499,
6,
96,
667,
3380,
10270,
17963,
11583,
121,
1499,
6,
96,
22594,
814,
121,
1499,
6,
96,
16128,
6514,
8233,
3417,
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,
22594,
814,
121,
21680,
953,
834,
2577,
3951,
536,
549,
17444,
427,
96,
667,
3380,
10270,
17963,
11583,
121,
3274,
3,
31,
683,
6119,
301,
5,
3394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which tournament had an opponent of petra krejsov tereza smitkov ? | CREATE TABLE table_name_59 (
tournament VARCHAR,
opponents VARCHAR
) | SELECT tournament FROM table_name_59 WHERE opponents = "petra krejsová tereza smitková" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
5892,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5892,
141,
46,
15264,
13,
158,
1313,
3,
157,
60,
354,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
16383,
3274,
96,
855,
1313,
3,
157,
60,
354,
7,
32,
208,
2975,
3,
449,
457,
9,
3,
7,
1538,
9789,
2975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the position for the player from the Alba Berlin club who is taller than 1.96 and whose ear born (Age) is july 23, 1985 (age28)? | CREATE TABLE table_name_77 (
position VARCHAR,
year_born__age_ VARCHAR,
current_club VARCHAR,
height VARCHAR
) | SELECT position FROM table_name_77 WHERE current_club = "alba berlin" AND height > 1.96 AND year_born__age_ = "july 23, 1985 (age28)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
1102,
584,
4280,
28027,
6,
215,
834,
7473,
834,
834,
545,
834,
584,
4280,
28027,
6,
750,
834,
13442,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
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,
1102,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
750,
834,
13442,
3274,
96,
138,
115,
9,
3,
27995,
121,
3430,
3902,
2490,
1300,
4314,
3430,
215,
834,
7473,
834,
834,
545,
834,
3274,
96,
2047,
120,
12992,
132... |
Give a bar chart that bins year into weekday interval, group by year and count them. | CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int... | SELECT Year, COUNT(Year) FROM exhibition GROUP BY Year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
9152,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
2929,
834,
683,
32,
77,
16,
17,
6,
7526,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2929,
6,
2847,
17161,
599,
476,
2741,
61,
21680,
4473,
350,
4630,
6880,
272,
476,
2929,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2-person dive that has 2 as the surface? | CREATE TABLE table_name_86 (surface VARCHAR) | SELECT "2" AS _person_dive FROM table_name_86 WHERE surface = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
26899,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8401,
6075,
10026,
24,
65,
204,
38,
8,
1774,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
357,
121,
6157,
3,
834,
6075,
834,
26,
757,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1774,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the home team when the round # is round 1? | CREATE TABLE table_26847237_3 (
home_team VARCHAR,
round__number VARCHAR
) | SELECT home_team FROM table_26847237_3 WHERE round__number = "Round 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4608,
5865,
4118,
834,
519,
41,
234,
834,
11650,
584,
4280,
28027,
6,
1751,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
2688,
4608,
5865,
4118,
834,
519,
549,
17444,
427,
1751,
834,
834,
5525,
1152,
3274,
96,
448,
32,
1106,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much Area km 2 have a Population of 1,215? | CREATE TABLE table_name_61 (
area_km_2 VARCHAR,
population VARCHAR
) | SELECT COUNT(area_km_2) FROM table_name_61 WHERE population = 1 OFFSET 215 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
616,
834,
5848,
834,
357,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
5690,
2280,
204,
43,
3,
9,
29659... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
498,
834,
5848,
834,
7318,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
2074,
3274,
209,
3,
15316,
20788,
204,
1808,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What district was the city with an area smaller than 12 square kilometers and a serial number of 35? | CREATE TABLE table_name_9 (
district VARCHAR,
city_area_km_2__ VARCHAR,
serial_no VARCHAR
) | SELECT district FROM table_name_9 WHERE city_area_km_2__ < 12 AND serial_no = 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
3939,
584,
4280,
28027,
6,
690,
834,
498,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
6,
10501,
834,
29,
32,
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,
3939,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
690,
834,
498,
834,
5848,
834,
357,
834,
834,
3,
2,
586,
3430,
10501,
834,
29,
32,
3274,
3097,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the admission type and name of patient with patient id 2560. | 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 demographic (... | SELECT demographic.name, demographic.admission_type FROM demographic WHERE demographic.subject_id = "2560" | [
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,
14798,
5,
4350,
6,
14798,
5,
9,
26,
5451,
834,
6137,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the most popular paper this year in CVPR ? | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE journal (
journalid int,
j... | SELECT DISTINCT cite.citedpaperid, COUNT(cite.citingpaperid) FROM cite, paper, venue WHERE paper.paperid = cite.citedpaperid AND paper.year = 2016 AND venue.venueid = paper.venueid AND venue.venuename = 'CVPR' GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citingpaperid) DESC | [
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,
1040,
41,
1040,
23,
26,
16,
17,
6,
2233,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
8464,
5,
11675,
19587,
23,
26,
6,
2847,
17161,
599,
8464,
5,
17994,
19587,
23,
26,
61,
21680,
3,
8464,
6,
1040,
6,
5669,
549,
17444,
427,
1040,
5,
19587,
23,
26,
3274,
3,
8464,
5,
11675... |
what is the place for bryce molder? | CREATE TABLE table_name_31 (
place VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_31 WHERE player = "bryce molder" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
286,
21,
6397,
63,
565,
6797,
49,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1959,
3274,
96,
115,
651,
565,
6797,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the decision with boston at home? | CREATE TABLE table_53000 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Decision" FROM table_53000 WHERE "Home" = 'boston' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
2313,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
2962,
18901,
121,
21680,
953,
834,
4867,
2313,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
115,
32,
4411,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the minimum weights for people of each sex? Show a bar chart, and display by the Sex from high to low. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Sex, MIN(Weight) FROM people GROUP BY Sex ORDER BY Sex DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
3,
17684,
599,
1326,
2632,
61,
21680,
151,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many wins did the Northwestern Wildcats? | CREATE TABLE table_1515 (
"Institution" text,
"Wins" real,
"Loss" real,
"Home Wins" real,
"Home Losses" real,
"Away Wins" real,
"Away Losses" real,
"Neutral Wins" real,
"Neutral Losses" real,
"Current Streak" text
) | SELECT MAX("Wins") FROM table_1515 WHERE "Institution" = 'Northwestern Wildcats' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
1808,
41,
96,
1570,
17448,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
32,
7,
7,
121,
490,
6,
96,
19040,
4871,
7,
121,
490,
6,
96,
19040,
3144,
2260,
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,
18455,
7,
8512,
21680,
953,
834,
1808,
1808,
549,
17444,
427,
96,
1570,
17448,
121,
3274,
3,
31,
22969,
24411,
5342,
2138,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What date was the game played at vfl park? | CREATE TABLE table_53078 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_53078 WHERE "Venue" = 'vfl park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
3940,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
26918,
3940,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
208,
89,
40,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the team's record when they faced orlando? | CREATE TABLE table_17323042_5 (
record VARCHAR,
team VARCHAR
) | SELECT record FROM table_17323042_5 WHERE team = "Orlando" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2668,
1458,
4165,
834,
755,
41,
1368,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
372,
31,
7,
1368,
116,
79,
7865,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
2517,
2668,
1458,
4165,
834,
755,
549,
17444,
427,
372,
3274,
96,
667,
7721,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the to par of United States' Cristie Kerr? | CREATE TABLE table_name_66 (
to_par VARCHAR,
country VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_66 WHERE country = "united states" AND player = "cristie kerr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12,
260,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
75,
22061,
15,
3,
2304,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What outcome occurs on a hard surface with a score of 4 6, 6 7(3)? | CREATE TABLE table_name_3 (
outcome VARCHAR,
surface VARCHAR,
score VARCHAR
) | SELECT outcome FROM table_name_3 WHERE surface = "hard" AND score = "4–6, 6–7(3)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
6138,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
6138,
6986,
30,
3,
9,
614,
1774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6138,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
2604,
3274,
96,
591,
104,
11071,
431,
104,
940,
17867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide the number of patients whose age is less than 54 and procedure icd9 code is 3142? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "54" AND procedures.icd9_code = "3142" | [
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,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who was the winning team on May 12? | CREATE TABLE table_59630 (
"Round" text,
"Date" text,
"Event" text,
"Circuit" text,
"Winning Driver" text,
"Winning Team" text
) | SELECT "Winning Team" FROM table_59630 WHERE "Date" = 'may 12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
26106,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
518,
10503,
10546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10503,
2271,
121,
21680,
953,
834,
3390,
26106,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
586,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the location and attendance total from the game on December 1? | CREATE TABLE table_27539808_5 (location_attendance VARCHAR, december VARCHAR) | SELECT location_attendance FROM table_27539808_5 WHERE december = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4867,
3916,
4018,
834,
755,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
20,
75,
18247,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2555,
4867,
3916,
4018,
834,
755,
549,
17444,
427,
20,
75,
18247,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the total number for number in series that got 3.62 viewers | CREATE TABLE table_1891 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT COUNT("No. in series") FROM table_1891 WHERE "U.S. viewers (million)" = '3.62' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4729,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4168,
5,
16,
939,
8512,
21680,
953,
834,
2606,
4729,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
61,
121,
3274,
3,
31,
23074,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Block A when Prince Devitt is Devitt (9:53)? | CREATE TABLE table_name_49 (block_a VARCHAR, prince_devitt VARCHAR) | SELECT block_a FROM table_name_49 WHERE prince_devitt = "devitt (9:53)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
10734,
834,
9,
584,
4280,
28027,
6,
22277,
834,
221,
5566,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9387,
71,
116,
9027,
24434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2463,
834,
9,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
22277,
834,
221,
5566,
17,
3274,
96,
221,
5566,
17,
14156,
10,
4867,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Agg., when Team 1 is 'Tirana'? | CREATE TABLE table_59179 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Agg." FROM table_59179 WHERE "Team 1" = 'tirana' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
26593,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
4102,
535,
21680,
953,
834,
3390,
26593,
549,
17444,
427,
96,
18699,
209,
121,
3274,
3,
31,
17,
23,
2002,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4? | CREATE TABLE table_41867 (
"Peel" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MAX("Against") FROM table_41867 WHERE "Draws" > '0' AND "Losses" < '16' AND "Wins" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2606,
3708,
41,
96,
345,
15,
15,
40,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
20749,
8512,
21680,
953,
834,
591,
2606,
3708,
549,
17444,
427,
96,
308,
10936,
7,
121,
2490,
3,
31,
632,
31,
3430,
96,
434,
13526,
7,
121,
3,
2,
3,
31,
2938,
31,
3430,
96,
18455,
7,
121,
3,... |
Who wrote the episode titled 'The Feet on the Beach'? | CREATE TABLE table_30226 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | SELECT "Written by" FROM table_30226 WHERE "Title" = 'The Feet on the Beach' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
357,
2688,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
24965,
324,
57,
121,
21680,
953,
834,
1458,
357,
2688,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
634,
8495,
17,
30,
8,
2979,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the little league team from Ohio when the little league team from Kentucky was Warren County South LL Bowling Green? | CREATE TABLE table_73014 (
"Year" real,
"Illinois" text,
"Indiana" text,
"Kentucky" text,
"Michigan" text,
"Ohio" text,
"Wisconsin" text
) | SELECT "Ohio" FROM table_73014 WHERE "Kentucky" = 'Warren County South LL Bowling Green' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1458,
2534,
41,
96,
476,
2741,
121,
490,
6,
96,
196,
195,
77,
32,
159,
121,
1499,
6,
96,
22126,
29,
9,
121,
1499,
6,
96,
439,
295,
4636,
63,
121,
1499,
6,
96,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15046,
23,
32,
121,
21680,
953,
834,
940,
1458,
2534,
549,
17444,
427,
96,
439,
295,
4636,
63,
121,
3274,
3,
31,
21032,
1536,
1334,
1013,
3,
10376,
9713,
53,
1862,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
On what date was the Record of 43 35? | CREATE TABLE table_name_25 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_25 WHERE record = "43–35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
11392,
13,
8838,
3097,
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,
833,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1368,
3274,
96,
4906,
104,
2469,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0? | CREATE TABLE table_name_28 (
other INTEGER,
us_open_cup VARCHAR,
concacaf VARCHAR
) | SELECT MAX(other) FROM table_name_28 WHERE us_open_cup > 0 AND concacaf = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
119,
3,
21342,
17966,
6,
178,
834,
8751,
834,
4658,
584,
4280,
28027,
6,
975,
658,
658,
89,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
9269,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
178,
834,
8751,
834,
4658,
2490,
3,
632,
3430,
975,
658,
658,
89,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Site has a Date of march 17, 2006 and an iowa state Winning team? | CREATE TABLE table_name_40 (site VARCHAR, date VARCHAR, winning_team VARCHAR) | SELECT site FROM table_name_40 WHERE date = "march 17, 2006" AND winning_team = "iowa state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
3585,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3238,
65,
3,
9,
7678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
353,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
833,
3274,
96,
51,
7064,
12864,
3581,
121,
3430,
3447,
834,
11650,
3274,
96,
23,
2381,
9,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the position elected in 2011 from the Country of Algeria? | CREATE TABLE table_8396 (
"Name" text,
"Country of Origin" text,
"Position" text,
"Elected" real,
"Term" real
) | SELECT "Position" FROM table_8396 WHERE "Elected" = '2011' AND "Country of Origin" = 'algeria' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4591,
4314,
41,
96,
23954,
121,
1499,
6,
96,
10628,
651,
13,
19477,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
21543,
15,
26,
121,
490,
6,
96,
11679,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
4591,
4314,
549,
17444,
427,
96,
21543,
15,
26,
121,
3274,
3,
31,
13907,
31,
3430,
96,
10628,
651,
13,
19477,
121,
3274,
3,
31,
138,
122,
4476,
31,
1,
-100,
-100,
-100... |
how many patients whose admission type is urgent and procedure icd9 code is 14? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.icd9_code = "14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What date has dallas cowboys as the opponent? | CREATE TABLE table_37462 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
) | SELECT "Date" FROM table_37462 WHERE "Opponent" = 'dallas cowboys' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
4448,
357,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
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,
308,
342,
121,
21680,
953,
834,
4118,
4448,
357,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
26,
1748,
9,
7,
9321,
7531,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had? | CREATE TABLE table_69321 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
) | SELECT COUNT("Long") FROM table_69321 WHERE "Loss" = '0' AND "Gain" < '17' AND "Avg/G" > '0' AND "Name" = 'dubose, e.' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
519,
2658,
41,
96,
23954,
121,
1499,
6,
96,
517,
9,
77,
121,
490,
6,
96,
434,
32,
7,
7,
121,
490,
6,
96,
434,
2444,
121,
490,
6,
96,
188,
208,
122,
87,
517,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
434,
2444,
8512,
21680,
953,
834,
3951,
519,
2658,
549,
17444,
427,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
517,
9,
77,
121,
3,
2,
3,
31,
2517,
31,
3430,
96,
188,
208,
... |
What is the try bonus when there are 492 points? | CREATE TABLE table_name_90 (try_bonus VARCHAR, points_against VARCHAR) | SELECT try_bonus FROM table_name_90 WHERE points_against = "492" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
8224,
834,
5407,
302,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
653,
4023,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
653,
834,
5407,
302,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
3647,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which score has an Opponent of white sox, and a Record of 2-0? | CREATE TABLE table_name_92 (
score VARCHAR,
opponent VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_92 WHERE opponent = "white sox" AND record = "2-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
2604,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2604,
65,
46,
4495,
9977,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
15264,
3274,
96,
13698,
78,
226,
121,
3430,
1368,
3274,
96,
19423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many games have a location of memorial stadium and a time of 2:27? | CREATE TABLE table_name_95 (
game VARCHAR,
location VARCHAR,
time VARCHAR
) | SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
467,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
1031,
43,
3,
9,
1128,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1128,
3274,
96,
526,
51,
11929,
14939,
121,
3430,
97,
3274,
96,
357,
10,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the alternative name/s of those satellites whose nssdc id number is 1970-054a? | CREATE TABLE table_191323_2 (
alt_name VARCHAR,
nssdc_id_no VARCHAR
) | SELECT alt_name FROM table_191323_2 WHERE nssdc_id_no = "1970-054A" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2368,
2773,
834,
357,
41,
4445,
834,
4350,
584,
4280,
28027,
6,
3,
29,
7,
7,
26,
75,
834,
23,
26,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4445,
834,
4350,
21680,
953,
834,
2294,
2368,
2773,
834,
357,
549,
17444,
427,
3,
29,
7,
7,
26,
75,
834,
23,
26,
834,
29,
32,
3274,
96,
27181,
18629,
5062,
188,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the D 47 for D 46 of r 35 | CREATE TABLE table_name_44 (d_47 VARCHAR, d_46 VARCHAR) | SELECT d_47 FROM table_name_44 WHERE d_46 = "r 35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
26,
834,
4177,
584,
4280,
28027,
6,
3,
26,
834,
4448,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
309,
10635,
21,
309,
9668,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
26,
834,
4177,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
3,
26,
834,
4448,
3274,
96,
52,
3097,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Area km 2, when Population is greater than 1,395? | CREATE TABLE table_name_21 (area_km_2 INTEGER, population INTEGER) | SELECT MIN(area_km_2) FROM table_name_21 WHERE population > 1 OFFSET 395 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
498,
834,
5848,
834,
357,
3,
21342,
17966,
6,
2074,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5690,
2280,
3547,
116,
29659,
19,
2123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
498,
834,
5848,
834,
7318,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
2074,
2490,
209,
3,
15316,
20788,
220,
3301,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those records from the products and each product's manufacturer, visualize a scatter chart about the correlation between code and revenue , and group by attribute headquarter. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
22737,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3642,
... |
How many field goals did the player who had 8 blocks have? | CREATE TABLE table_27142 (
"Player" text,
"Minutes" real,
"Field Goals" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
) | SELECT MIN("Field Goals") FROM table_27142 WHERE "Blocks" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
24978,
41,
96,
15800,
49,
121,
1499,
6,
96,
12858,
2810,
7,
121,
490,
6,
96,
3183,
8804,
17916,
7,
121,
490,
6,
96,
1649,
6115,
7,
121,
490,
6,
96,
188,
7,
7,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3183,
8804,
17916,
7,
8512,
21680,
953,
834,
2555,
24978,
549,
17444,
427,
96,
279,
4029,
7,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what rounds was the featured driver Tomonobu Fujii with a Tyre of Y? | CREATE TABLE table_name_59 (rounds VARCHAR, tyre VARCHAR, drivers VARCHAR) | SELECT rounds FROM table_name_59 WHERE tyre = "y" AND drivers = "tomonobu fujii" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
7775,
7,
584,
4280,
28027,
6,
3,
17,
63,
60,
584,
4280,
28027,
6,
3863,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
14419,
47,
8,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
14419,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
3,
17,
63,
60,
3274,
96,
63,
121,
3430,
3863,
3274,
96,
235,
2157,
32,
3007,
7683,
354,
23,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the visiting team on 12 March 2008? | CREATE TABLE table_name_77 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_77 WHERE date = "12 march 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
3466,
155,
127,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3644,
372,
30,
586,
1332,
2628,
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,
7019,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
833,
3274,
96,
2122,
10556,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most number for air date 2009/12/29 | CREATE TABLE table_24042 (
"#" real,
"Episode" text,
"Air date Canada yyyy/mm/dd" text,
"Viewers Canada" real,
"Air date Netherlands yyyy/mm/dd" text,
"Viewers Netherlands" real
) | SELECT MAX("#") FROM table_24042 WHERE "Air date Netherlands yyyy/mm/dd" = '2009/12/29' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
4165,
41,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
20162,
833,
1894,
3,
63,
63,
63,
63,
87,
635,
87,
26,
26,
121,
1499,
6,
96,
1527... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4663,
8512,
21680,
953,
834,
11944,
4165,
549,
17444,
427,
96,
20162,
833,
12023,
3,
63,
63,
63,
63,
87,
635,
87,
26,
26,
121,
3274,
3,
31,
16660,
18009,
87,
3166,
31,
1,
-100,
-100,
-100,
-10... |
What is the 2004 tournament that has a Q1 of 2011? | CREATE TABLE table_15714 (
"Tournament" text,
"1996" text,
"1997" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2009" text,
"2010" text,
"2011" text
) | SELECT "2004" FROM table_15714 WHERE "2011" = 'q1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
2534,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
4314,
121,
1499,
6,
96,
2294,
4327,
121,
1499,
6,
96,
2294,
3264,
121,
1499,
6,
96,
13527,
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,
21653,
121,
21680,
953,
834,
27452,
2534,
549,
17444,
427,
96,
13907,
121,
3274,
3,
31,
1824,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is drug type and drug route of drug name tuberculin protein? | 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 prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Tuberculin Protein" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
6,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
382,
14659,
1497,
77,
17379,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Drobo (2nd) has a Drobo 5d of 2012-11-02? | CREATE TABLE table_11042 (
"Drobo (1st)" text,
"Drobo (2nd)" text,
"Drobo S" text,
"Drobo S (2nd)" text,
"Drobo FS" text,
"Drobo Mini" text,
"Drobo 5D" text
) | SELECT "Drobo (2nd)" FROM table_11042 WHERE "Drobo 5D" = '2012-11-02' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
4165,
41,
96,
308,
23801,
4077,
7,
17,
61,
121,
1499,
6,
96,
308,
23801,
4743,
727,
61,
121,
1499,
6,
96,
308,
23801,
180,
121,
1499,
6,
96,
308,
23801,
180,
4743,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23801,
4743,
727,
61,
121,
21680,
953,
834,
19277,
4165,
549,
17444,
427,
96,
308,
23801,
305,
308,
121,
3274,
3,
31,
12172,
9169,
18,
4305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the sum of January values with a record of 27-12-3 for a game less than 42? | CREATE TABLE table_name_36 (january INTEGER, record VARCHAR, game VARCHAR) | SELECT SUM(january) FROM table_name_36 WHERE record = "27-12-3" AND game < 42 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
7066,
76,
1208,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4505,
13,
1762,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7066,
76,
1208,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1368,
3274,
96,
2555,
5947,
3486,
121,
3430,
467,
3,
2,
6426,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which regimen was in the arkansas county | CREATE TABLE table_29458735_5 (
regiment VARCHAR,
county VARCHAR
) | SELECT regiment FROM table_29458735_5 WHERE county = "Arkansas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2128,
4225,
2469,
834,
755,
41,
19299,
17,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
19299,
47,
16,
8,
3,
6604,
3247,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
19299,
17,
21680,
953,
834,
3166,
2128,
4225,
2469,
834,
755,
549,
17444,
427,
5435,
3274,
96,
188,
52,
3304,
7,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Date has Result of 86-87? | CREATE TABLE table_58702 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Date" FROM table_58702 WHERE "Result" = '86-87' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
2518,
357,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
448,
32,
9,
26,
2271,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3449,
2518,
357,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
3840,
18,
4225,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the director that had a recipient of Redbag Pictures Ltd? | CREATE TABLE table_name_54 (
director_s_ VARCHAR,
recipient VARCHAR
) | SELECT director_s_ FROM table_name_54 WHERE recipient = "redbag pictures ltd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
2090,
834,
7,
834,
584,
4280,
28027,
6,
11095,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2090,
24,
141,
3,
9,
11095,
13,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
834,
7,
834,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
11095,
3274,
96,
1271,
7893,
1933,
3,
40,
17,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the protein identity with a length of 5304bp/377aa? | CREATE TABLE table_16849531_2 (protein_identity VARCHAR, length__bp_aa_ VARCHAR) | SELECT protein_identity FROM table_16849531_2 WHERE length__bp_aa_ = "5304bp/377aa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4608,
3301,
3341,
834,
357,
41,
23083,
834,
4215,
485,
584,
4280,
28027,
6,
2475,
834,
834,
115,
102,
834,
9,
9,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3619,
834,
4215,
485,
21680,
953,
834,
2938,
4608,
3301,
3341,
834,
357,
549,
17444,
427,
2475,
834,
834,
115,
102,
834,
9,
9,
834,
3274,
96,
755,
23702,
115,
102,
14207,
4013,
9,
9,
121,
1,
-100,
-100,
-100,
-100... |
What is the record for the last 10 meetings when the overall record is *as of March 14, 2013? | CREATE TABLE table_9609 (
"Missouri vs." text,
"Overall Record" text,
"at Columbia" text,
"at Opponent's Venue" text,
"at Neutral Site" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"During Time in Big 12" text
) | SELECT "Last 10 Meetings" FROM table_9609 WHERE "Overall Record" = '*as of march 14, 2013' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
4198,
41,
96,
329,
159,
7,
32,
459,
3,
208,
7,
535,
1499,
6,
96,
23847,
1748,
11392,
121,
1499,
6,
96,
144,
8183,
121,
1499,
6,
96,
144,
4495,
9977,
31,
7,
29940,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3612,
7,
17,
335,
9198,
7,
121,
21680,
953,
834,
4314,
4198,
549,
17444,
427,
96,
23847,
1748,
11392,
121,
3274,
3,
31,
1935,
9,
7,
13,
10556,
11363,
2038,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the partner that has a winner outcome and a hard surface? | CREATE TABLE table_28948937_3 (partner VARCHAR, outcome VARCHAR, surface VARCHAR) | SELECT partner FROM table_28948937_3 WHERE outcome = "Winner" AND surface = "Hard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4240,
3914,
4118,
834,
519,
41,
12300,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
2577,
4240,
3914,
4118,
834,
519,
549,
17444,
427,
6138,
3274,
96,
18455,
687,
121,
3430,
1774,
3274,
96,
15537,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the value in 2008 when 2012 was 1R, 2010 was A, and 2005 was A? | CREATE TABLE table_name_1 (
Id VARCHAR
) | SELECT 2008 FROM table_name_1 WHERE 2012 = "1r" AND 2010 = "a" AND 2005 = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
701,
16,
2628,
116,
1673,
47,
209,
448,
6,
2735,
47,
71,
6,
11,
3105,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2628,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1673,
3274,
96,
536,
52,
121,
3430,
2735,
3274,
96,
9,
121,
3430,
3105,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most total goals for a player having 0 FA Cup goals and 41 League appearances? | CREATE TABLE table_name_98 (total_goals INTEGER, fa_cup_goals VARCHAR, league_apps VARCHAR) | SELECT MAX(total_goals) FROM table_name_98 WHERE fa_cup_goals = 0 AND league_apps = "41" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
235,
1947,
834,
839,
5405,
3,
21342,
17966,
6,
3,
89,
9,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
6,
5533,
834,
3096,
7,
584,
4280,
28027,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
235,
1947,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
3,
89,
9,
834,
4658,
834,
839,
5405,
3274,
3,
632,
3430,
5533,
834,
3096,
7,
3274,
96,
4853,
121,
1,
-100,
-100,
-1... |
Display a bar chart for what are the names and budgets of departments with budgets greater than the average?, and order total number in asc order. | CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
... | SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) ORDER BY budget | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
740,
3,
4331,
4059,
599,
1808,
201,
1487,
206,
17552,
599,
2122,
6,
7318,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
1487,
21680,
3066,
549,
17444,
427,
1487,
2490,
41,
23143,
14196,
71,
17217,
599,
11073,
2782,
61,
21680,
3066,
61,
4674,
11300,
272,
476,
1487,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the zodiac for | CREATE TABLE table_20354_7 (
zodiac_sign VARCHAR,
malayalam_name VARCHAR
) | SELECT zodiac_sign FROM table_20354_7 WHERE malayalam_name = "കന്നി" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
5062,
834,
940,
41,
26933,
9,
75,
834,
6732,
584,
4280,
28027,
6,
3,
51,
22858,
40,
265,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
26933,
9,
75,
834,
6732,
21680,
953,
834,
23330,
5062,
834,
940,
549,
17444,
427,
3,
51,
22858,
40,
265,
834,
4350,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country has a 76-71=147 score? | CREATE TABLE table_name_8 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_8 WHERE score = 76 - 71 = 147 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
17529,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
3,
9,
3,
3959,
18,
4450,
2423,
24719,
2604,
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,
684,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
2604,
3274,
3,
3959,
3,
18,
3,
4450,
3274,
3,
24719,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who won the men's ski jump when the FIS Nordic World Ski Championships was 1980? | CREATE TABLE table_8685 (
"Winner" text,
"Country" text,
"Winter Olympics" text,
"FIS Nordic World Ski Championships" text,
"Holmenkollen" text
) | SELECT "Winner" FROM table_8685 WHERE "FIS Nordic World Ski Championships" = '1980' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3840,
4433,
41,
96,
18455,
687,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
518,
3870,
17793,
121,
1499,
6,
96,
4936,
134,
24207,
1150,
7409,
7666,
7,
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,
18455,
687,
121,
21680,
953,
834,
3840,
4433,
549,
17444,
427,
96,
4936,
134,
24207,
1150,
7409,
7666,
7,
121,
3274,
3,
31,
2294,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What song was composed by V. Selvaganesh later than 2010? | CREATE TABLE table_name_58 (song VARCHAR, composer VARCHAR, year VARCHAR) | SELECT song FROM table_name_58 WHERE composer = "v. selvaganesh" AND year > 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
7,
2444,
584,
4280,
28027,
6,
13075,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2324,
47,
10431,
57,
584,
5,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2324,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
13075,
3274,
96,
208,
5,
142,
40,
900,
2565,
15,
7,
107,
121,
3430,
215,
2490,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest heat of the Lakeside race? | CREATE TABLE table_name_65 (heat INTEGER, race_title VARCHAR) | SELECT MIN(heat) FROM table_name_65 WHERE race_title = "lakeside" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
88,
144,
3,
21342,
17966,
6,
1964,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1678,
13,
8,
2154,
1583,
1964,
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,
3,
17684,
599,
88,
144,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1964,
834,
21869,
3274,
96,
16948,
1583,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
HOW MANY MODELS WERE ON THE COVER OF THE ISSUE WHERE THE CENTERFOLD WAS STEPHANIE LARIMORE? | CREATE TABLE table_20252 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | SELECT COUNT("Cover model") FROM table_20252 WHERE "Centerfold model" = 'Stephanie Larimore' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
5373,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
14218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
1890,
825,
8512,
21680,
953,
834,
19818,
5373,
549,
17444,
427,
96,
24382,
10533,
825,
121,
3274,
3,
31,
14337,
8237,
23,
15,
301,
1665,
3706,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the owner of RSS Racing that driver Ryan Sieg belongs to? | CREATE TABLE table_name_75 (owner_s_ VARCHAR, team VARCHAR, driver_s_ VARCHAR) | SELECT owner_s_ FROM table_name_75 WHERE team = "rss racing" AND driver_s_ = "ryan sieg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
13238,
834,
7,
834,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
2535,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2527,
834,
7,
834,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
372,
3274,
96,
52,
7,
7,
8191,
121,
3430,
2535,
834,
7,
834,
3274,
96,
651,
152,
3,
19247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many districts first elected someone in 1808 and had george smith as the incumbent? | CREATE TABLE table_2668374_13 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(district) FROM table_2668374_13 WHERE first_elected = "1808" AND incumbent = "George Smith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
4581,
834,
2368,
41,
26,
23,
20066,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26,
23,
20066,
61,
21680,
953,
834,
2688,
3651,
519,
4581,
834,
2368,
549,
17444,
427,
166,
834,
19971,
3274,
96,
2606,
4018,
121,
3430,
28406,
3274,
96,
31317,
3931,
121,
1,
-100,
-100,
-100,
-100,
... |
What's the rank average when the gold medals are less than 0? | CREATE TABLE table_name_41 (
rank INTEGER,
gold INTEGER
) | SELECT AVG(rank) FROM table_name_41 WHERE gold < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
11003,
3,
21342,
17966,
6,
2045,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
11003,
1348,
116,
8,
2045,
9365,
7,
33,
705,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
2045,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
there are in tobago species name helicops angulatus | CREATE TABLE table_1873 (
"Species" text,
"Common name" text,
"Trinidad" text,
"Tobago" text,
"Bocas Is." text,
"Other" text
) | SELECT "Tobago" FROM table_1873 WHERE "Species" = 'Helicops angulatus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4552,
41,
96,
7727,
725,
121,
1499,
6,
96,
10205,
106,
564,
121,
1499,
6,
96,
19310,
29,
15644,
121,
1499,
6,
96,
3696,
7893,
32,
121,
1499,
6,
96,
279,
32,
6769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
7893,
32,
121,
21680,
953,
834,
2606,
4552,
549,
17444,
427,
96,
7727,
725,
121,
3274,
3,
31,
3845,
2176,
9280,
46,
6106,
144,
302,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years? | CREATE TABLE table_name_1 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR) | SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = "83.4-84.4" AND debt_held_by_public__$billions_ < 7 OFFSET 552 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3844,
7,
7,
834,
221,
115,
17,
834,
77,
834,
3,
21342,
17966,
6,
2814,
834,
14796,
834,
969,
834,
15727,
834,
834,
3229,
115,
14916,
7,
834,
584,
4280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
3844,
7,
7,
834,
221,
115,
17,
834,
77,
834,
61,
6157,
1514,
115,
14916,
7,
834,
1106,
15,
13710,
15,
26,
834,
929,
9,
7,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
414,
834,
858,
834,
8... |
What country has a Transfer fee of —, and a Transfer window of summer, and the Status of loaned out, and a Name of gonzález? | CREATE TABLE table_name_39 (country VARCHAR, name VARCHAR, status VARCHAR, transfer_fee VARCHAR, transfer_window VARCHAR) | SELECT country FROM table_name_39 WHERE transfer_fee = "—" AND transfer_window = "summer" AND status = "loaned out" AND name = "gonzález" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
17529,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
6,
2025,
834,
5165,
2381,
584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
318,
121,
3430,
2025,
834,
5165,
2381,
3274,
96,
23541,
52,
121,
3430,
2637,
3274,
96,
40,
8086,
26,
91,
121,
3430,
564,
327... |
When was the game with richmond as Away team? | CREATE TABLE table_name_86 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_86 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
28,
2354,
6764,
38,
71,
1343,
372,
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,
833,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want the driver for ferrari who made Laps less than 26 and grids more than 9 | CREATE TABLE table_name_69 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR) | SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
13739,
52,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
14941,
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,
2535,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
8634,
2490,
668,
3430,
14941,
7,
3,
2,
2208,
3430,
6774,
127,
3274,
96,
1010,
52,
1665,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Return a histogram on what are the names and budgets of departments with budgets greater than the average?, could you rank X-axis from high to low order? | CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE dep... | SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) ORDER BY dept_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1217,
41,
4699,
3,
4331,
4059,
15757,
6,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
4220,
834,
23,
26,
3,
4331,
4059,
28007,
6,
10542,
3,
4331,
4059,
18669,
6,
215,
206,
17552,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
1487,
21680,
3066,
549,
17444,
427,
1487,
2490,
41,
23143,
14196,
71,
17217,
599,
11073,
2782,
61,
21680,
3066,
61,
4674,
11300,
272,
476,
20,
102,
17,
834,
4350,
309,
25067,
1,
-100,
-100... |
What is the 1988 value when the 1987 value was 1r? | CREATE TABLE table_name_88 (Id VARCHAR) | SELECT 1988 FROM table_name_88 WHERE 1987 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10414,
701,
116,
8,
12701,
701,
47,
209,
52,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10414,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
12701,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the time/retired with 60 laps and a grid 19? | CREATE TABLE table_name_19 (
time_retired VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT time_retired FROM table_name_19 WHERE laps = 60 AND grid = 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
14941,
7,
3274,
1640,
3430,
8634,
3274,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of birth and language of Kurt Buczek? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT demographic.dob, demographic.language FROM demographic WHERE demographic.name = "Kurt Buczek" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
6,
14798,
5,
24925,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
439,
450,
17,
15882,
776,
157,
121,
1,
-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.