NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many patients are of white-russian ethnicity and treated with drug epoetin alfa? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND prescriptions.drug = "Epoetin Alfa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
How many weeks on top was OMC? | CREATE TABLE table_8141 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" text,
"Song" text,
"Artist" text
) | SELECT "Weeks on Top" FROM table_8141 WHERE "Artist" = 'omc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4959,
4853,
41,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
1499,
6,
96,
196,
7,
7,
76,
15,
7678,
599,
7,
61,
121,
1499,
6,
96,
1326,
16789,
30,
2224,
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,
1326,
16789,
30,
2224,
121,
21680,
953,
834,
4959,
4853,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
32,
51,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the pair of male and female names in all weddings after year 2014 | CREATE TABLE church (
church_id number,
name text,
organized_by text,
open_date number,
continuation_of text
)
CREATE TABLE people (
people_id number,
name text,
country text,
is_male text,
age number
)
CREATE TABLE wedding (
church_id number,
male_id number,
female... | SELECT T2.name, T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2078,
41,
2078,
834,
23,
26,
381,
6,
564,
1499,
6,
4997,
834,
969,
1499,
6,
539,
834,
5522,
381,
6,
25192,
834,
858,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
1709... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
4350,
6,
332,
5787,
4350,
21680,
1683,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
13513,
834,
23,
26,
3274,
332,
4416,
16588,
834,
23,
26,
3,
15355,
3162,
151,
6157,
332,
519,
... |
Who are the writers for the episode number in series 129? | CREATE TABLE table_21312959_1 (written_by VARCHAR, no_in_series VARCHAR) | SELECT written_by FROM table_21312959_1 WHERE no_in_series = 129 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
22174,
3390,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
357,
2368,
22174,
3390,
834,
536,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
3,
22174,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of email and commission_pct , and sort in ascending by the EMAIL. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
... | SELECT EMAIL, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
20211,
3502,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,... |
What is the average of number_of_platforms for each location? Show the comparison with a bar chart, and sort Y-axis in ascending order please. | CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
... | SELECT Location, AVG(Number_of_Platforms) FROM station GROUP BY Location ORDER BY AVG(Number_of_Platforms) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
15059,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2900,
1499,
6,
1387,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
834,
6682,
41,
15059,
834,
4309,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10450,
6,
71,
17217,
599,
567,
5937,
49,
834,
858,
834,
10146,
2032,
7,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
71,
17217,
599,
567,
5937,
49,
834,
858,
834,
10146,
2032,
7,
61,
1... |
With a score of 70, this player's name is listed as what? | CREATE TABLE table_name_27 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_27 WHERE score = 70 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
20846,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
2604,
13,
2861,
6,
48,
1959,
31,
7,
564,
19,
2616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
2604,
3274,
2861,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the position for chivu | CREATE TABLE table (position VARCHAR, player VARCHAR, Chivu VARCHAR) | SELECT position FROM table WHERE player = Chivu | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
2695,
208,
76,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1102,
21,
3,
1436,
208,
76,
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,
1102,
21680,
953,
549,
17444,
427,
1959,
3274,
2695,
208,
76,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the number of patients whose days of hospital stay is greater than 2 and lab test fluid is joint fluid? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "2" AND lab.fluid = "Joint Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What model type has 97100 model designation? | CREATE TABLE table_20866024_2 (model_type VARCHAR, model_designation VARCHAR) | SELECT model_type FROM table_20866024_2 WHERE model_designation = "97100" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
27720,
2266,
834,
357,
41,
21770,
834,
6137,
584,
4280,
28027,
6,
825,
834,
9124,
257,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
825,
686,
65,
3,
4327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
825,
834,
6137,
21680,
953,
834,
23946,
27720,
2266,
834,
357,
549,
17444,
427,
825,
834,
9124,
257,
3274,
96,
4327,
2915,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
On which date did Michael Signer earn 4%? | CREATE TABLE table_63159 (
"Source" text,
"Date" text,
"Jody Wagner" text,
"Pat Edmonson" text,
"Michael Signer" text,
"Rich Savage" text,
"Jon Bowerbank" text,
"Undecided" text
) | SELECT "Date" FROM table_63159 WHERE "Michael Signer" = '4%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
27904,
41,
96,
23799,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
683,
9666,
22338,
121,
1499,
6,
96,
345,
144,
4857,
2157,
739,
121,
1499,
6,
96,
329,
362,
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,
3891,
27904,
549,
17444,
427,
96,
329,
362,
9,
15,
40,
6365,
49,
121,
3274,
3,
31,
5988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What party was the winner when A. Krishnaswamy was the runner-up? | CREATE TABLE table_2702 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
) | SELECT "Party" FROM table_2702 WHERE "Runner-up a" = 'A. Krishnaswamy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
357,
41,
96,
4302,
2248,
17,
76,
4392,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
7286,
122,
77,
121,
490,
6,
96,
23572,
18,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
17485,
357,
549,
17444,
427,
96,
23572,
18,
413,
3,
9,
121,
3274,
3,
31,
188,
5,
25983,
7,
210,
9,
2258,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Give me a scatter chart to show the star rating of the movie and reviewer id, group the title. | CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) | SELECT rID, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
3,
51,
4309,
16,
17,
6,
4811,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
52,
4309,
6,
4811,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880,
272,
476,
2233,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
what's the song title with artbeingt being pat boone | CREATE TABLE table_13805432_2 (
song_title VARCHAR,
artist VARCHAR
) | SELECT song_title FROM table_13805432_2 WHERE artist = "Pat Boone" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
2079,
5062,
2668,
834,
357,
41,
2324,
834,
21869,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
2324,
2233,
28,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2324,
834,
21869,
21680,
953,
834,
2368,
2079,
5062,
2668,
834,
357,
549,
17444,
427,
2377,
3274,
96,
345,
144,
1491,
782,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When did the episode 'Hell bent for leather' originally air? | CREATE TABLE table_659 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
) | SELECT "Original air date" FROM table_659 WHERE "Title" = 'Hell Bent for Leather' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3390,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
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,
948,
3390,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
3845,
195,
2798,
17,
21,
15987,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the game site with result of l 7-38 | CREATE TABLE table_name_36 (
game_site VARCHAR,
result VARCHAR
) | SELECT game_site FROM table_name_36 WHERE result = "l 7-38" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
467,
834,
3585,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
467,
353,
28,
741,
13,
3,
40,
489,
18,
374... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
3585,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
741,
3274,
96,
40,
489,
18,
3747,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times was the finish t32? | CREATE TABLE table_name_92 (
total VARCHAR,
finish VARCHAR
) | SELECT COUNT(total) FROM table_name_92 WHERE finish = "t32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
792,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
8,
1992,
3,
17,
2668,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1992,
3274,
96,
17,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the number in season for the episode written by Chris Mitchell and Erik Wiese? | CREATE TABLE table_24474 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT "No. in season" FROM table_24474 WHERE "Written by" = 'Chris Mitchell and Erik Wiese' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3628,
4581,
41,
96,
4168,
5,
16,
939,
121,
1499,
6,
96,
4168,
5,
16,
774,
121,
1499,
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,
4168,
5,
16,
774,
121,
21680,
953,
834,
357,
3628,
4581,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
3541,
52,
159,
17949,
11,
21173,
2739,
7,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the party for the representative who was first elected before 2002 and the results were re-elected? | CREATE TABLE table_61823 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
) | SELECT "Party" FROM table_61823 WHERE "Results" = 're-elected' AND "First elected" < '2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2606,
2773,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
948,
2606,
2773,
549,
17444,
427,
96,
20119,
7,
121,
3274,
3,
31,
60,
18,
19971,
31,
3430,
96,
25171,
8160,
121,
3,
2,
3,
31,
24898,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the speed of the higher harmonics that have an NOAA of 37? | CREATE TABLE table_name_95 (
speed VARCHAR,
noaa VARCHAR
) | SELECT speed FROM table_name_95 WHERE noaa = "37" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
1634,
584,
4280,
28027,
6,
150,
9,
9,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1634,
13,
8,
1146,
29610,
7,
24,
43,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1634,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
150,
9,
9,
3274,
96,
4118,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name all the players for fullback | CREATE TABLE table_14342210_2 (player VARCHAR, position VARCHAR) | SELECT player FROM table_14342210_2 WHERE position = "Fullback" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
15239,
834,
357,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
66,
8,
1508,
21,
423,
1549,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
25133,
4165,
15239,
834,
357,
549,
17444,
427,
1102,
3274,
96,
371,
83,
40,
1549,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the player that plays position f from Fort Wayne Pistons? | CREATE TABLE table_56328 (
"Round" text,
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text,
"College" text
) | SELECT "Player" FROM table_56328 WHERE "Team" = 'fort wayne pistons' AND "Position" = 'f' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
28070,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
345,
3142,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4834,
28070,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
1161,
17,
194,
29,
15,
28688,
7,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
89,
31,
1,
-100,
-100,
-100,
-... |
How many wins did Ayr United have? | CREATE TABLE table_name_79 (
wins VARCHAR,
club VARCHAR
) | SELECT wins FROM table_name_79 WHERE club = "ayr united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
9204,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9204,
410,
71,
63,
52,
907,
43,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9204,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1886,
3274,
96,
9,
63,
52,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If there is a VCRT of 7.62mm (0.3in) fn mag 60-20 machine gun, what is the VCTP of that? | CREATE TABLE table_name_86 (vctp VARCHAR, vcrt VARCHAR) | SELECT vctp FROM table_name_86 WHERE vcrt = "7.62mm (0.3in) fn mag 60-20 machine gun" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
208,
75,
17,
102,
584,
4280,
28027,
6,
3,
208,
75,
52,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
132,
19,
3,
9,
3,
7431,
5934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
208,
75,
17,
102,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3,
208,
75,
52,
17,
3274,
96,
940,
5,
4056,
635,
41,
19997,
77,
61,
3,
89,
29,
6396,
1640,
7988,
1437,
4740,
121,
1,
-100,
-100,
-100,
-1... |
What is John Curtice's position? | CREATE TABLE table_name_35 (
position VARCHAR,
player VARCHAR
) | SELECT position FROM table_name_35 WHERE player = "john curtice" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1079,
4116,
1225,
15,
31,
7,
1102,
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,
1102,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1959,
3274,
96,
27341,
5495,
1225,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of top 10 finishes | CREATE TABLE table_1875157_1 (top_10 INTEGER) | SELECT MIN(top_10) FROM table_1875157_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3072,
27452,
834,
536,
41,
2916,
834,
1714,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
420,
335,
13084,
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,
3,
17684,
599,
2916,
834,
16968,
21680,
953,
834,
2606,
3072,
27452,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the college/junior team of player tyler myers, who has a pick less than 44? | CREATE TABLE table_name_35 (college_junior_team VARCHAR, pick VARCHAR, player VARCHAR) | SELECT college_junior_team FROM table_name_35 WHERE pick < 44 AND player = "tyler myers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
3297,
7883,
834,
6959,
23,
127,
834,
11650,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
11650,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1432,
3,
2,
8537,
3430,
1959,
3274,
96,
17,
63,
1171,
82,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was the building with a top 3 rank and a height of 274 (84) ft (m) completed? | CREATE TABLE table_name_81 (
year_completed INTEGER,
rank VARCHAR,
height_ft__m_ VARCHAR
) | SELECT MAX(year_completed) FROM table_name_81 WHERE rank < 3 AND height_ft__m_ = "274 (84)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
215,
834,
25288,
26,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
3902,
834,
89,
17,
834,
834,
51,
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,
4800,
4,
599,
1201,
834,
25288,
26,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
11003,
3,
2,
220,
3430,
3902,
834,
89,
17,
834,
834,
51,
834,
3274,
96,
2555,
591,
13642,
7256,
121,
1,
-100,
-100,
-100,
... |
what are the top five prescribed drugs for patients aged 60 or above? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
... | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
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,
3,
17,
5411,
26,
13534,
4350,
21680,
41,
23143,
14196,
7757,
5,
26,
13534,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
... |
Wickets of chris gayle caught kapali happened on what date? | CREATE TABLE table_name_16 (date VARCHAR, wickets VARCHAR) | SELECT date FROM table_name_16 WHERE wickets = "chris gayle caught kapali" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
5522,
584,
4280,
28027,
6,
29719,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
18602,
15,
17,
7,
13,
3,
524,
52,
159,
16998,
109,
4682,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
29719,
7,
3274,
96,
524,
52,
159,
16998,
109,
4682,
3,
18852,
4288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What rank number had a season premiere on December 24, 2011? | CREATE TABLE table_25403 (
"Season" real,
"Episodes" real,
"Timeslot (ET)" text,
"Season Premiere" text,
"Season Finale" text,
"TV Season" text,
"Rank" text,
"Viewers (in millions)" text
) | SELECT "Rank" FROM table_25403 WHERE "Season Premiere" = 'December 24, 2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2445,
519,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
427,
102,
159,
32,
1395,
121,
490,
6,
96,
13368,
7,
3171,
41,
7969,
61,
121,
1499,
6,
96,
134,
15,
9,
739,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
121,
21680,
953,
834,
1828,
2445,
519,
549,
17444,
427,
96,
134,
15,
9,
739,
6552,
15,
121,
3274,
3,
31,
29835,
14320,
2722,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a pie to show the total number from different location code. | CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Employees (
Employee_ID INTEGER,
... | SELECT Location_Code, COUNT(*) FROM Document_Locations GROUP BY Location_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
834,
235,
834,
346,
834,
2962,
6626,
10093,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
2973,
26853,
834,
23602,
127,
3375,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10450,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
11167,
834,
434,
32,
75,
1628,
350,
4630,
6880,
272,
476,
10450,
834,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many vuts made for a player with 2 wins and under 7 top 5s? | CREATE TABLE table_name_96 (
cuts_made INTEGER,
wins VARCHAR,
top_5 VARCHAR
) | SELECT AVG(cuts_made) FROM table_name_96 WHERE wins = 2 AND top_5 < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
8620,
834,
4725,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
9204,
3274,
204,
3430,
420,
834,
755,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What home team played at Lake Oval? | CREATE TABLE table_name_1 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_1 WHERE venue = "lake oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
234,
372,
1944,
44,
2154,
411,
2165,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
5669,
3274,
96,
16948,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission year is less than 2103? | 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 WHERE demographic.admityear < "2103" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
20466,
17,
1201,
3,
2,
96,
357,
17864,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the maximum torque at rpm for the engine coded BJB/BKC/BXE/BLS? | CREATE TABLE table_name_7 (
max_torque_at_rpm VARCHAR,
engine_code_s_ VARCHAR
) | SELECT max_torque_at_rpm FROM table_name_7 WHERE engine_code_s_ = "bjb/bkc/bxe/bls" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
9858,
834,
17,
127,
835,
834,
144,
834,
52,
2028,
584,
4280,
28027,
6,
1948,
834,
4978,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9858,
834,
17,
127,
835,
834,
144,
834,
52,
2028,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1948,
834,
4978,
834,
7,
834,
3274,
96,
115,
354,
115,
87,
115,
157,
75,
87,
115,
226,
15,
87,
115,
40,
7,
12... |
What is the average laps for a grid larger than 2, for a ferrari that got in an accident? | CREATE TABLE table_54446 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Laps") FROM table_54446 WHERE "Grid" > '2' AND "Time/Retired" = 'accident' AND "Constructor" = 'ferrari' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3628,
4448,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
755,
3628,
4448,
549,
17444,
427,
96,
13313,
26,
121,
2490,
3,
31,
357,
31,
3430,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
6004,
4215,
31,
3430,
... |
Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939 | CREATE TABLE table_name_73 (name VARCHAR, laid_down VARCHAR, commissioned VARCHAR) | SELECT name FROM table_name_73 WHERE laid_down = "22 september 1939" AND commissioned = "30 august 1941" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
4350,
584,
4280,
28027,
6,
7245,
834,
3035,
584,
4280,
28027,
6,
3,
17183,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
564,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
7245,
834,
3035,
3274,
96,
2884,
16022,
18247,
957,
3288,
121,
3430,
3,
17183,
3274,
96,
1458,
14663,
24822,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the earliest year for ordinary people to appear in the notes? | CREATE TABLE table_name_83 (year INTEGER, notes VARCHAR) | SELECT MIN(year) FROM table_name_83 WHERE notes = "ordinary people" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
1201,
3,
21342,
17966,
6,
3358,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
21,
9495,
151,
12,
2385,
16,
8,
3358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
3358,
3274,
96,
29819,
151,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the name of the institution the author 'Katsuhiro Ueno' belongs to? | CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authors (
authid number,
lname text,
fname text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE inst (
instid number,
name text,
country text
) | SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Katsuhiro" AND t1.lname = "Ueno" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5778,
41,
1040,
23,
26,
381,
6,
2233,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
185,
17,
11740,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
3,
17,
5787,
4350,
21680,
5921,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
402,
17,
11740,
3274,
3,
17,
4416,
402,
17,
11740,
3,
15355,
3162,
16,
7,... |
How many female patients have a government insurance policy? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.insurance = "Government" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
29441,
3274,
96,
27304,
297,
121,
1,
-100,
-100,
... |
What is the date of the game where South Melbourne was the away team? | CREATE TABLE table_4934 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_4934 WHERE "Away team" = 'south melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
3710,
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,
3647,
3710,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
7,
670,
107,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What number episode in the season is 'The Family Lawyer'? | CREATE TABLE table_72439 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "No. in season" FROM table_72439 WHERE "Title" = 'The Family Lawyer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2266,
3288,
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,
4168,
5,
16,
774,
121,
21680,
953,
834,
940,
2266,
3288,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
634,
3712,
18768,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What county had 915 third party voters? | CREATE TABLE table_20278716_2 (county VARCHAR, others__number VARCHAR) | SELECT county FROM table_20278716_2 WHERE others__number = 915 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
2555,
4225,
2938,
834,
357,
41,
13362,
63,
584,
4280,
28027,
6,
717,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5435,
141,
668,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5435,
21680,
953,
834,
1755,
2555,
4225,
2938,
834,
357,
549,
17444,
427,
717,
834,
834,
5525,
1152,
3274,
668,
1808,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the tournament that happened in 1974 in gothenburg , sweden? | CREATE TABLE table_52507 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT "Tournament" FROM table_52507 WHERE "Year" = '1974' AND "Venue" = 'gothenburg , sweden' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
4560,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5420,
1313,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
755,
1828,
4560,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4581,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
839,
189,
13576,
3,
6,
3,
7,
1123... |
During what wicket were Mahela Jayawardene and Thilan Samaraweera batting partners? | CREATE TABLE table_name_56 (
wicket VARCHAR,
batting_partners VARCHAR
) | SELECT wicket FROM table_name_56 WHERE batting_partners = "mahela jayawardene and thilan samaraweera" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
29719,
584,
4280,
28027,
6,
3,
27759,
834,
12300,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
2092,
125,
29719,
130,
8555,
15,
521,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
29719,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
3,
27759,
834,
12300,
7,
3274,
96,
51,
9,
88,
521,
2662,
63,
9,
2239,
35,
15,
11,
3,
7436,
1618,
3,
7,
9,
1635,
9,
1123,
1498,
121,
1,
-100,
-100,
-100... |
A bar chart shows the distribution of meter_700 and meter_100 , and show y axis in desc order. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_40... | SELECT meter_700, meter_100 FROM swimmer ORDER BY meter_100 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
9295,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2915,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total amount of a 3 credit straight flush ? | CREATE TABLE table_203_564 (
id number,
"hand" text,
"1 credit" number,
"2 credits" number,
"3 credits" number,
"4 credits" number,
"5 credits" number
) | SELECT "3 credits" FROM table_203_564 WHERE "hand" = 'straight flush' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4834,
591,
41,
3,
23,
26,
381,
6,
96,
2894,
121,
1499,
6,
96,
536,
998,
121,
381,
6,
96,
357,
11893,
121,
381,
6,
96,
519,
11893,
121,
381,
6,
96,
591,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
519,
11893,
121,
21680,
953,
834,
23330,
834,
4834,
591,
549,
17444,
427,
96,
2894,
121,
3274,
3,
31,
3109,
2632,
15645,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent for the match were the outcome was runner-up and the score was 5-7, 1-6? | CREATE TABLE table_75594 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_75594 WHERE "Outcome" = 'runner-up' AND "Score" = '5-7, 1-6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
3390,
591,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
3072,
3390,
591,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
10806,
18,
413,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
23440,
6,
3,
27019,
31,
1,
-100,
-100,... |
What is the Outcome of the Singles Event in London, England? | CREATE TABLE table_name_12 (outcome VARCHAR, event VARCHAR, venue VARCHAR) | SELECT outcome FROM table_name_12 WHERE event = "singles" AND venue = "london, england" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
670,
287,
15,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3387,
287,
15,
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,
6138,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
605,
3274,
96,
7,
53,
965,
121,
3430,
5669,
3274,
96,
40,
106,
2029,
6,
3,
4606,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the use for amd opteron dual-core 2.6ghz | CREATE TABLE table_3890 (
"Model - Computer name" text,
"CPU type" text,
"No. of processors" text,
"Period of operation" text,
"Maximum peak performance ( Teraflops )" text,
"Use" text
) | SELECT "Use" FROM table_3890 WHERE "CPU type" = 'AMD Opteron dual-core 2.6GHz' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2394,
41,
96,
24663,
3,
18,
5491,
564,
121,
1499,
6,
96,
254,
10744,
686,
121,
1499,
6,
96,
4168,
5,
13,
7502,
7,
121,
1499,
6,
96,
12988,
23,
32,
26,
13,
2986,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1265,
7,
15,
121,
21680,
953,
834,
3747,
2394,
549,
17444,
427,
96,
254,
10744,
686,
121,
3274,
3,
31,
4815,
308,
4495,
449,
106,
7013,
18,
9022,
3,
22724,
18944,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Plot season by how many season as a line chart, and could you rank by the X from high to low please? | CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CREATE TABLE injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
)
CREATE TABLE sta... | SELECT Season, COUNT(Season) FROM game ORDER BY Season DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
467,
41,
14939,
834,
23,
26,
16,
17,
6,
3,
23,
26,
16,
17,
6,
7960,
16,
17,
6,
7678,
1499,
6,
1210,
834,
11650,
1499,
6,
71,
1343,
834,
11650,
1499,
6,
17763,
1499,
6,
15571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7960,
6,
2847,
17161,
599,
134,
15,
9,
739,
61,
21680,
467,
4674,
11300,
272,
476,
7960,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Lost has Points of 28 and a Drawn smaller than 8? | CREATE TABLE table_6799 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT AVG("Lost") FROM table_6799 WHERE "Points" = '28' AND "Drawn" < '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3264,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
434,
3481,
8512,
21680,
953,
834,
3708,
3264,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
2577,
31,
3430,
96,
308,
10936,
29,
121,
3,
2,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
how many patients with medicare insurance are diagnosed with preterm nec 2500+g? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.short_title = "Preterm NEC 2500+g" | [
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 points does Tom Hammond have if he has more than 12 points? | CREATE TABLE table_name_12 (
points INTEGER,
player VARCHAR,
extra_points VARCHAR
) | SELECT SUM(points) FROM table_name_12 WHERE player = "tom hammond" AND extra_points > 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
979,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
996,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
405,
3059... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1959,
3274,
96,
235,
51,
3,
1483,
6764,
121,
3430,
996,
834,
2700,
7,
2490,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Year has a cause of firedamp and a Death toll larger than 11? | CREATE TABLE table_61877 (
"Colliery" text,
"Location" text,
"Date" text,
"Year" real,
"Death toll" real,
"cause" text
) | SELECT SUM("Year") FROM table_61877 WHERE "cause" = 'firedamp' AND "Death toll" > '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
27697,
41,
96,
9939,
3299,
63,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
2962,
9,
189,
12,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4241,
27697,
549,
17444,
427,
96,
658,
1074,
121,
3274,
3,
31,
6608,
26,
4624,
31,
3430,
96,
2962,
9,
189,
12,
195,
121,
2490,
3,
31,
2596,
31,
1,
-100,
-10... |
Who wrote Episode 2-15 (56)? | CREATE TABLE table_name_51 (writer_s_ VARCHAR, episode VARCHAR) | SELECT writer_s_ FROM table_name_51 WHERE episode = "2-15 (56)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
12756,
834,
7,
834,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
16112,
204,
10106,
9209,
10938,
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,
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,
4346,
834,
7,
834,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
5640,
3274,
96,
357,
10106,
9209,
10938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
WHAT IS THE PLAYER WITH A SCORE OF 66? | CREATE TABLE table_name_76 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_76 WHERE score = 66 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
20846,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
17501,
476,
3316,
11951,
71,
6508,
20888,
3347,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
2604,
3274,
3,
3539,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score in round 7? | CREATE TABLE table_26847237_1 (
score VARCHAR,
round__number VARCHAR
) | SELECT score FROM table_26847237_1 WHERE round__number = "Round 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4608,
5865,
4118,
834,
536,
41,
2604,
584,
4280,
28027,
6,
1751,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
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,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2688,
4608,
5865,
4118,
834,
536,
549,
17444,
427,
1751,
834,
834,
5525,
1152,
3274,
96,
448,
32,
1106,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the gore number for others % being 5.3% | CREATE TABLE table_23014476_1 (
gore__number VARCHAR,
others__percentage VARCHAR
) | SELECT gore__number FROM table_23014476_1 WHERE others__percentage = "5.3%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
20885,
3959,
834,
536,
41,
281,
60,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
717,
834,
834,
883,
3728,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
281,
60,
834,
834,
5525,
1152,
21680,
953,
834,
13427,
20885,
3959,
834,
536,
549,
17444,
427,
717,
834,
834,
883,
3728,
545,
3274,
96,
9125,
5170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the episode that Richard Thorpe directed? | CREATE TABLE table_12564633_1 (
title VARCHAR,
directed_by VARCHAR
) | SELECT title FROM table_12564633_1 WHERE directed_by = "Richard Thorpe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
4389,
3891,
519,
834,
536,
41,
2233,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
5640,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
10124,
4389,
3891,
519,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
448,
362,
986,
10632,
855,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Bar chart x axis meter 700 y axis id | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimme... | SELECT meter_700, ID FROM swimmer | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
9295,
6,
4699,
21680,
27424,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give me the comparison about the average of meter_100 over the meter_200 , and group by attribute meter_200, and I want to rank from high to low by the X. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text... | SELECT meter_200, AVG(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
3632,
6,
71,
17217,
599,
4401,
834,
2915,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
4674,
11300,
272,
476,
3,
4401,
834,
3632,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Poles have Races smaller than 4? | CREATE TABLE table_58629 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"Podiums" real,
"Points" real,
"Position" text
) | SELECT AVG("Poles") FROM table_58629 WHERE "Races" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3840,
3166,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
8931,
15,
7,
8512,
21680,
953,
834,
755,
3840,
3166,
549,
17444,
427,
96,
448,
9,
2319,
121,
3,
2,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, find name and revenue , and group by attribute headquarter, and visualize them by a bar chart, could you show bar in asc order? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
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,
... |
Andy Roddick is the opponent in the final on what surface? | CREATE TABLE table_73913 (
"Outcome" text,
"No." text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Surface" FROM table_73913 WHERE "Opponent in the final" = 'Andy Roddick' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3288,
2368,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
4168,
535,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
4861,
121,
21680,
953,
834,
940,
3288,
2368,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
7175,
63,
8222,
26,
3142,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Position in Table, when Team is 'Morelia'? | CREATE TABLE table_name_64 (
position_in_table VARCHAR,
team VARCHAR
) | SELECT position_in_table FROM table_name_64 WHERE team = "morelia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
1102,
834,
77,
834,
3869,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
14258,
16,
4398,
6,
116,
2271,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
834,
77,
834,
3869,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
372,
3274,
96,
2528,
13240,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
poor renal allograft function ( serum creatinine > 1.6 mg / dl, creatinine clearance < 60 ml / min and albumin excretion > 300 mg / 24hr ) | CREATE TABLE table_dev_19 (
"id" int,
"glucagon_stimulated_c_peptide" float,
"c_peptide_level" float,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"hyperlipidemia" bool,
"creatinine_clearance_cl" float,
"total_cholesterol" int,
"stimulated_c_peptide" float,
"smoking" bool,
... | SELECT * FROM table_dev_19 WHERE renal_transplantation = 1 OR (serum_creatinine > 1.6 AND creatinine_clearance_cl < 60 AND albumin_excretion > 300) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
2294,
41,
96,
23,
26,
121,
16,
17,
6,
96,
13492,
658,
5307,
834,
2248,
4115,
920,
834,
75,
834,
21826,
15,
121,
3,
12660,
6,
96,
75,
834,
21826,
15,
834,
456... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9776,
834,
2294,
549,
17444,
427,
23328,
834,
7031,
14925,
257,
3274,
209,
4674,
41,
7,
49,
440,
834,
5045,
144,
77,
630,
2490,
3,
15062,
3430,
8830,
77,
630,
834,
2482,
9,
5219,
834,
75,
40... |
What is the pinyin for explaining music? | CREATE TABLE table_17512 (
"Chapter" real,
"Chinese" text,
"Pinyin" text,
"Translation" text,
"Subject" text
) | SELECT "Pinyin" FROM table_17512 WHERE "Translation" = 'Explaining Music' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
24163,
41,
96,
3541,
6789,
49,
121,
490,
6,
96,
3541,
4477,
15,
121,
1499,
6,
96,
345,
77,
63,
77,
121,
1499,
6,
96,
18474,
6105,
121,
1499,
6,
96,
25252,
11827,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
77,
63,
77,
121,
21680,
953,
834,
2517,
24163,
549,
17444,
427,
96,
18474,
6105,
121,
3274,
3,
31,
5420,
18689,
53,
3057,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the Attendance on May 12, when the New York Yankees were the Opponent? | CREATE TABLE table_54496 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Attendance" FROM table_54496 WHERE "Opponent" = 'new york yankees' AND "Date" = 'may 12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3628,
4314,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
755,
3628,
4314,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
5534,
25453,
3,
63,
5979,
15,
15,
7,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
13726,
58... |
Name the number of number in the season for 11 | CREATE TABLE table_2409041_4 (
no_in_series VARCHAR,
no_in_season VARCHAR
) | SELECT COUNT(no_in_series) FROM table_2409041_4 WHERE no_in_season = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
2394,
4853,
834,
591,
41,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
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,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
11944,
2394,
4853,
834,
591,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which season had 16 losses for the Hampshire team? | CREATE TABLE table_name_79 (
season VARCHAR,
losses VARCHAR,
team VARCHAR
) | SELECT season FROM table_name_79 WHERE losses = "16" AND team = "hampshire" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
774,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
141,
898,
8467,
21,
8,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
8467,
3274,
96,
2938,
121,
3430,
372,
3274,
96,
1483,
102,
5718,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the entrant for 1975 and chassis of hill gh1 | CREATE TABLE table_name_25 (
entrant VARCHAR,
year VARCHAR,
chassis VARCHAR
) | SELECT entrant FROM table_name_25 WHERE year = 1975 AND chassis = "hill gh1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
3,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
295,
3569,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
215,
3274,
16312,
3430,
22836,
3274,
96,
6321,
3,
122,
107,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the average goal difference for draw of 7 and played more than 18 | CREATE TABLE table_54447 (
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" real,
"Points" real
) | SELECT AVG("Goal Difference") FROM table_54447 WHERE "Draw" = '7' AND "Played" > '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3628,
4177,
41,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
6221,
5405,
242,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
6221,
138,
27187,
8512,
21680,
953,
834,
755,
3628,
4177,
549,
17444,
427,
96,
308,
10936,
121,
3274,
3,
31,
940,
31,
3430,
96,
15800,
15,
26,
121,
2490,
3,
31,
2606,
31,
1,
-100,
-100,
-100,
... |
what is subject name of subject id 3284? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT demographic.name FROM demographic WHERE demographic.subject_id = "3284" | [
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,
14798,
5,
4350,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
28070,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What place has a score greater than 68, and camilo villegas as the player? | CREATE TABLE table_name_51 (place VARCHAR, score VARCHAR, player VARCHAR) | SELECT place FROM table_name_51 WHERE score > 68 AND player = "camilo villegas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
4687,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
65,
3,
9,
2604,
2123,
145,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
2604,
2490,
3,
3651,
3430,
1959,
3274,
96,
6527,
173,
32,
3,
1420,
5556,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me the comparison about Team_ID over the ACC_Regular_Season by a bar chart, and could you rank by the total number from low to high please? | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Regular_Season, Team_ID FROM basketball_match ORDER BY Team_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
2271,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a scatter chart to show the star rating of the movie and the smallest rating of movie. | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) | SELECT stars, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY stars | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
3,
51,
4309,
16,
17,
6,
4811,
16,
17,
6,
5773,
308,
342,
833,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4811,
6,
3,
17684,
599,
382,
5411,
3624,
7,
61,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880,
272,
476,
4811,
1,
-100,
... |
What is the tally with a total larger than 8, Waterford was the opposition? | CREATE TABLE table_name_73 (tally VARCHAR, total VARCHAR, opposition VARCHAR) | SELECT tally FROM table_name_73 WHERE total > 8 AND opposition = "waterford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
17,
1427,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
8263,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17,
1427,
28,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
1427,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
792,
2490,
505,
3430,
8263,
3274,
96,
3552,
2590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which player went to Wake Forest and was selected with a pick after 145? | CREATE TABLE table_name_6 (
player VARCHAR,
pick VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_6 WHERE pick > 145 AND college = "wake forest" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
1959,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
877,
12,
21295,
6944,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
1432,
2490,
3,
20987,
3430,
1900,
3274,
96,
18603,
15,
5827,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are Scott Zygulski's pick numbers? | CREATE TABLE table_30873 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Pick #" FROM table_30873 WHERE "Player" = 'Scott Zygulski' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4225,
519,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3142,
1713,
121,
21680,
953,
834,
1458,
4225,
519,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
134,
10405,
1027,
63,
6106,
4009,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the attendance in week 9? | CREATE TABLE table_name_26 (
attendance INTEGER,
week VARCHAR
) | SELECT AVG(attendance) FROM table_name_26 WHERE week = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
11364,
3,
21342,
17966,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
16,
471,
668,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
471,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which episode had Hoagy carmichael safe with an order of 5? | CREATE TABLE table_name_10 (episode VARCHAR, original_artist VARCHAR, result VARCHAR, order__number VARCHAR) | SELECT episode FROM table_name_10 WHERE result = "safe" AND order__number = "5" AND original_artist = "hoagy carmichael" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
455,
834,
834,
5525,
1152,
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,
5640,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
741,
3274,
96,
15233,
121,
3430,
455,
834,
834,
5525,
1152,
3274,
96,
17395,
3430,
926,
834,
1408,
343,
3274,
96,
107,
32,
9,
122,
63,
443,
51,
362,
9,
15,
... |
Please show the team that has the most number of technicians. | CREATE TABLE machine (
machine_id number,
making_year number,
class text,
team text,
machine_series text,
value_points number,
quality_rank number
)
CREATE TABLE repair (
repair_id number,
name text,
launch_date text,
notes text
)
CREATE TABLE repair_assignment (
techni... | SELECT team FROM technician GROUP BY team ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1437,
41,
1437,
834,
23,
26,
381,
6,
492,
834,
1201,
381,
6,
853,
1499,
6,
372,
1499,
6,
1437,
834,
10833,
7,
1499,
6,
701,
834,
2700,
7,
381,
6,
463,
834,
6254,
381,
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,
372,
21680,
17730,
350,
4630,
6880,
272,
476,
372,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What journals are Donald E Knuth 's articles published in ? | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE ... | SELECT DISTINCT paper.journalid FROM author, paper, writes WHERE author.authorname = 'Donald E Knuth' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY paper.journalid | [
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,
1057,
41,
1057,
23,
26,
16,
17,
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,
3,
15438,
25424,
6227,
1040,
5,
25340,
23,
26,
21680,
2291,
6,
1040,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
13843,
138,
26,
262,
480,
4796,
107,
31,
3430,
11858,
5,
17415,
23,
26,
3274,
2291... |
What is the title of the Series 40 Season 5 show? | CREATE TABLE table_30095 (
"Series #" real,
"Season #" real,
"Title" text,
"Written by" text,
"Original air date" text,
"U.S. Viewers (millions)" text
) | SELECT "Title" FROM table_30095 WHERE "Season #" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3301,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
5426,
3301,
549,
17444,
427,
96,
134,
15,
9,
739,
1713,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose drug code is lido5t and lab test fluid is joint fluid? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "LIDO5T" AND lab.fluid = "Joint Fluid" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
What is the average Population (2010), when Population (2007) is 4,875, and when Area (km ) is greater than 1.456? | CREATE TABLE table_46183 (
"Barangay" text,
"Area (km\u00b2)" real,
"Population (2007)" real,
"Population (2010)" real,
"Pop. density (per km\u00b2)" real
) | SELECT AVG("Population (2010)") FROM table_46183 WHERE "Population (2007)" = '4,875' AND "Area (km\u00b2)" > '1.456' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
24361,
41,
96,
14851,
1468,
9,
63,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
490,
6,
96,
27773,
7830,
3,
27964,
121,
490,
6,
96,
27773,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
27773,
7830,
26118,
8512,
21680,
953,
834,
4448,
24361,
549,
17444,
427,
96,
27773,
7830,
3,
27964,
121,
3274,
3,
31,
8525,
927,
3072,
31,
3430,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
... |
What team was the winner when the runner-up shows both teams awarded championship after a draw.? | CREATE TABLE table_name_26 (winner VARCHAR, runner_up VARCHAR) | SELECT winner FROM table_name_26 WHERE runner_up = "both teams awarded championship after a draw." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
3757,
687,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
4668,
116,
8,
3,
10806,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4668,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
17158,
2323,
5539,
10183,
227,
3,
9,
3314,
535,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which away team goes against the home team Mauritius? | CREATE TABLE table_58814 (
"Date" text,
"Tournament" text,
"Location" text,
"Home Team" text,
"Away Team" text
) | SELECT "Away Team" FROM table_58814 WHERE "Home Team" = 'mauritius' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4060,
2534,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
188,
134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
2271,
121,
21680,
953,
834,
755,
4060,
2534,
549,
17444,
427,
96,
19040,
2271,
121,
3274,
3,
31,
51,
402,
13224,
302,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the goals for Pelletieri in ARG? | CREATE TABLE table_46008 (
"Nat." text,
"Name" text,
"Since" text,
"App(L/C/E)" text,
"Goals(L/C/E)" text,
"Ends" real,
"Transfer fee" text
) | SELECT "Goals(L/C/E)" FROM table_46008 WHERE "Nat." = 'arg' AND "Name" = 'pelletieri' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
4018,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
134,
77,
565,
121,
1499,
6,
96,
9648,
599,
434,
87,
254,
87,
427,
61,
121,
1499,
6,
96,
6221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6221,
5405,
599,
434,
87,
254,
87,
427,
61,
121,
21680,
953,
834,
25991,
4018,
549,
17444,
427,
96,
567,
144,
535,
3274,
3,
31,
8240,
31,
3430,
96,
23954,
121,
3274,
3,
31,
4343,
1655,
9626,
31,
1,
-100,
-10... |
Name the least game for january 29 | CREATE TABLE table_23286112_8 (
game INTEGER,
date VARCHAR
) | SELECT MIN(game) FROM table_23286112_8 WHERE date = "January 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
4241,
2122,
834,
927,
41,
467,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
467,
21,
3,
7066,
76,
1208,
2838,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7261,
61,
21680,
953,
834,
2773,
2577,
4241,
2122,
834,
927,
549,
17444,
427,
833,
3274,
96,
30404,
2838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Home team score is on sunday 24 february? | CREATE TABLE table_name_74 (home_team VARCHAR, date VARCHAR) | SELECT home_team AS score FROM table_name_74 WHERE date = "sunday 24 february" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1210,
372,
2604,
19,
30,
1997,
1135,
997,
29976,
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,
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,
4581,
549,
17444,
427,
833,
3274,
96,
7,
202,
1135,
997,
29976,
76,
1208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sport played in Iowa City on February 14, 2009? | CREATE TABLE table_name_17 (
sport VARCHAR,
site VARCHAR,
date VARCHAR
) | SELECT sport FROM table_name_17 WHERE site = "iowa city" AND date = "february 14, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
2600,
584,
4280,
28027,
6,
353,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2600,
1944,
16,
12034,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2600,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
353,
3274,
96,
23,
2381,
9,
690,
121,
3430,
833,
3274,
96,
89,
15,
9052,
1208,
11363,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the played number when tries against is 84, and drawn is 2? | CREATE TABLE table_name_13 (played VARCHAR, tries_against VARCHAR, drawn VARCHAR) | SELECT played FROM table_name_13 WHERE tries_against = "84" AND drawn = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
4895,
15,
26,
584,
4280,
28027,
6,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
1944,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
3,
9000,
834,
9,
16720,
7,
17,
3274,
96,
4608,
121,
3430,
6796,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the home team when VFL played at Windy Hill? | CREATE TABLE table_name_16 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_16 WHERE venue = "windy hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
116,
584,
10765,
1944,
44,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
5669,
3274,
96,
5165,
63,
9956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the smallest number of spikes for players with a weight of 83 and height over 190? | CREATE TABLE table_42408 (
"Name" text,
"Date of Birth" text,
"Height" real,
"Weight" real,
"Spike" real
) | SELECT MIN("Spike") FROM table_42408 WHERE "Weight" = '83' AND "Height" > '190' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2266,
4018,
41,
96,
23954,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
1499,
6,
96,
3845,
2632,
121,
490,
6,
96,
1326,
2632,
121,
490,
6,
96,
134,
102,
5208,
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,
3,
17684,
599,
121,
134,
102,
5208,
8512,
21680,
953,
834,
591,
2266,
4018,
549,
17444,
427,
96,
1326,
2632,
121,
3274,
3,
31,
4591,
31,
3430,
96,
3845,
2632,
121,
2490,
3,
31,
11776,
31,
1,
-100,
-100,
-100,
-100... |
What was the total games played at the Staples Center? | CREATE TABLE table_9290 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT SUM("Game") FROM table_9290 WHERE "Location" = 'staples center' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4508,
2394,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23055,
8512,
21680,
953,
834,
4508,
2394,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
7,
8873,
965,
1530,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What primary sponsor has the owner Rick Hendrick and their crew chief is Alan Gustafson? | CREATE TABLE table_name_50 (primary_sponsor_s_ VARCHAR, owner_s_ VARCHAR, crew_chief VARCHAR) | SELECT primary_sponsor_s_ FROM table_name_50 WHERE owner_s_ = "rick hendrick" AND crew_chief = "alan gustafson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
8234,
1208,
834,
7,
5041,
7,
127,
834,
7,
834,
584,
4280,
28027,
6,
2527,
834,
7,
834,
584,
4280,
28027,
6,
4627,
834,
20053,
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,
2329,
834,
7,
5041,
7,
127,
834,
7,
834,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
2527,
834,
7,
834,
3274,
96,
5206,
3,
3225,
26,
5206,
121,
3430,
4627,
834,
20053,
3274,
96,
9,
1618,
8829,
9,
89,
739,... |
What is the away team score of the game that was played at princes park? | CREATE TABLE table_55056 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_55056 WHERE "Venue" = 'princes park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17147,
4834,
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,
188,
1343,
372,
2604,
121,
21680,
953,
834,
17147,
4834,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
12298,
2319,
2447,
31,
1,
-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.