NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the district where Steve Carriker is the Democratic Senator and he took office later than 1988? | CREATE TABLE table_name_72 (
district INTEGER,
took_office VARCHAR,
party VARCHAR,
senator VARCHAR
) | SELECT MAX(district) FROM table_name_72 WHERE party = "democratic" AND senator = "steve carriker" AND took_office > 1988 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
3939,
3,
21342,
17966,
6,
808,
834,
19632,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
20596,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
26,
23,
20066,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1088,
3274,
96,
23319,
447,
121,
3430,
20596,
3274,
96,
849,
162,
443,
9629,
49,
121,
3430,
808,
834,
19632,
2490,
10414,
1,
-100,
... |
When 'jobless' is the title who are the writers? | CREATE TABLE table_24033 (
"Ep." real,
"Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. Code" text
) | SELECT "Written by" FROM table_24033 WHERE "Title" = 'Jobless' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
4201,
41,
96,
427,
102,
535,
490,
6,
96,
134,
15,
9,
739,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
11944,
4201,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
683,
32,
115,
924,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which ANSI code has a GEO ID larger than 3809927140, and a Water (sqmi) smaller than 0.492, and a Pop (2010) of 37, and a Latitude larger than 48.245979? | CREATE TABLE table_65960 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
) | SELECT MIN("ANSI code") FROM table_65960 WHERE "GEO ID" > '3809927140' AND "Water (sqmi)" < '0.492' AND "Pop. (2010)" = '37' AND "Latitude" > '48.245979' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
27699,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
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,
3,
17684,
599,
121,
16897,
196,
1081,
8512,
21680,
953,
834,
4122,
27699,
549,
17444,
427,
96,
5042,
667,
4699,
121,
2490,
3,
31,
22671,
3264,
2555,
22012,
31,
3430,
96,
28632,
41,
7,
1824,
51,
23,
61,
121,
3,
2,
... |
What is the most points earlier than 1953 with a Ferrari 375/50 chassis? | CREATE TABLE table_15029 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT MAX("Points") FROM table_15029 WHERE "Year" < '1953' AND "Chassis" = 'ferrari 375/50' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
3166,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
12278,
3166,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
4867,
31,
3430,
96,
3541,
6500,
7,
121,
3274,
3,
31,
1010,
52,
1665,
3,
22954,
87,
1752,
... |
Give me a pie to show the total number from different party. | CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Ag... | SELECT Party, COUNT(*) FROM driver GROUP BY Party | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
41,
1121,
834,
4309,
16,
17,
6,
13027,
1499,
6,
1121,
1499,
6,
10450,
1499,
6,
6632,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
834,
3465,
41,
1121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3450,
6,
2847,
17161,
599,
1935,
61,
21680,
2535,
350,
4630,
6880,
272,
476,
3450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients stayed in hospital for more than 9 days and procedured with icd9 code 3571? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "9" AND procedures.icd9_code = "3571" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many Games have a Score of 5 4, and Points smaller than 49? | CREATE TABLE table_name_96 (
game VARCHAR,
score VARCHAR,
points VARCHAR
) | SELECT COUNT(game) FROM table_name_96 WHERE score = "5–4" AND points < 49 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
467,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5880,
43,
3,
9,
17763,
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,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2604,
3274,
96,
755,
104,
20364,
3430,
979,
3,
2,
9526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Played is the lowest one that has a Team of vasco da gama, and an Against smaller than 11? | CREATE TABLE table_name_54 (
played INTEGER,
team VARCHAR,
against VARCHAR
) | SELECT MIN(played) FROM table_name_54 WHERE team = "vasco da gama" AND against < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
1944,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2911,
15,
26,
19,
8,
7402,
80,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
372,
3274,
96,
900,
3523,
836,
17371,
121,
3430,
581,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the names of users who have more than one tweet. | CREATE TABLE user_profiles (
name VARCHAR,
uid VARCHAR
)
CREATE TABLE tweets (
uid VARCHAR
) | SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
834,
18816,
7,
41,
564,
584,
4280,
28027,
6,
3,
76,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10657,
7,
41,
3,
76,
23,
26,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
21680,
1139,
834,
18816,
7,
6157,
332,
536,
3,
15355,
3162,
10657,
7,
6157,
332,
357,
9191,
332,
5411,
76,
23,
26,
3274,
332,
4416,
76,
23,
26,
350,
4630,
6880,
272,
476,
332,
4416,
76,
23,
26,
... |
What was the number of Personal Staff Units Killed? | CREATE TABLE table_56583 (
"Unit" text,
"Complement" text,
"Killed" text,
"Wounded" text,
"Missing" text
) | SELECT "Killed" FROM table_56583 WHERE "Unit" = 'personal staff' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
3449,
519,
41,
96,
5110,
155,
121,
1499,
6,
96,
5890,
102,
3335,
121,
1499,
6,
96,
439,
173,
1361,
121,
1499,
6,
96,
518,
14471,
121,
1499,
6,
96,
329,
159,
7,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
439,
173,
1361,
121,
21680,
953,
834,
4834,
3449,
519,
549,
17444,
427,
96,
5110,
155,
121,
3274,
3,
31,
17108,
871,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the original title of the film from years after 1985 from the UK? | CREATE TABLE table_15528 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
) | SELECT "Original title" FROM table_15528 WHERE "Year" > '1985' AND "Country" = 'uk' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
2577,
41,
96,
476,
2741,
121,
490,
6,
96,
26749,
2233,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
23620,
127,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
2233,
121,
21680,
953,
834,
20896,
2577,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4433,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
1598,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the location for 2012? | CREATE TABLE table_name_13 (location VARCHAR, year VARCHAR) | SELECT location FROM table_name_13 WHERE year = 2012 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
14836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
21,
1673,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
215,
3274,
1673,
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... |
What percentage of users were using Netscape during the period in which 63.67% were using Internet Explorer? | CREATE TABLE table_name_54 (netscape VARCHAR, internet_explorer VARCHAR) | SELECT netscape FROM table_name_54 WHERE internet_explorer = "63.67%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
1582,
12002,
584,
4280,
28027,
6,
1396,
834,
20901,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
13,
1105,
130,
338,
6540,
12002,
383,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3134,
12002,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1396,
834,
20901,
3274,
96,
948,
23074,
6170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many of the female patients had a lab test for mcv? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "MCV" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which driver had a grid of 18 with 68 laps? | CREATE TABLE table_name_88 (
driver VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT driver FROM table_name_88 WHERE laps = "68" AND grid = "18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2535,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2535,
141,
3,
9,
8634,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
14941,
7,
3274,
96,
3651,
121,
3430,
8634,
3274,
96,
2606,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Date has an Away team of south melbourne? | CREATE TABLE table_58074 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_58074 WHERE "Away team" = 'south melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2079,
4581,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
755,
2079,
4581,
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,
-10... |
What date is aston villa away? | CREATE TABLE table_name_67 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_67 WHERE away_team = "aston villa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
19,
3,
9,
4411,
12159,
550,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
550,
834,
11650,
3274,
96,
9,
4411,
12159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of asian patients who had open reduction of femur fracture with internal rotation? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "ASIAN" AND procedures.short_title = "Open reduc-int fix femur" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the score on April 23? | CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_5 WHERE date = "april 23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
30,
1186,
1902,
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,
2604,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
1902,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
After 2009, who was the player that has a nationality of Canada? | CREATE TABLE table_name_23 (
player VARCHAR,
nationality VARCHAR,
year VARCHAR
) | SELECT player FROM table_name_23 WHERE nationality = "canada" AND year > 2009 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1959,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
621,
2464,
6,
113,
47,
8,
1959,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2773,
549,
17444,
427,
1157,
485,
3274,
96,
658,
18089,
121,
3430,
215,
2490,
2464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the lead for institute of election results and social democratic of 31.7% 8 seats | CREATE TABLE table_5597 (
"Date Released" text,
"Institute" text,
"Socialist" text,
"Social Democratic" text,
"Green-Communist" text,
"Left Bloc" text,
"People's Party" text,
"Lead" text
) | SELECT "Lead" FROM table_5597 WHERE "Institute" = 'election results' AND "Social Democratic" = '31.7% 8 seats' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
4327,
41,
96,
308,
342,
13048,
26,
121,
1499,
6,
96,
9496,
15,
121,
1499,
6,
96,
5231,
4703,
343,
121,
1499,
6,
96,
5231,
4703,
10021,
121,
1499,
6,
96,
22918,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
26,
121,
21680,
953,
834,
3769,
4327,
549,
17444,
427,
96,
9496,
15,
121,
3274,
3,
31,
15,
12252,
772,
31,
3430,
96,
5231,
4703,
10021,
121,
3274,
3,
31,
3341,
5,
6170,
505,
6116,
31,
1,
-100,
-100,... |
For Once Municipal, what were the goals scored that had less than 27 points and greater than place 1? | CREATE TABLE table_79829 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
) | SELECT AVG("Goals Scored") FROM table_79829 WHERE "Place" > '1' AND "Team" = 'once municipal' AND "Points" < '27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3916,
3166,
41,
96,
345,
11706,
121,
490,
6,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5405,
17763,
26,
8512,
21680,
953,
834,
940,
3916,
3166,
549,
17444,
427,
96,
345,
11706,
121,
2490,
3,
31,
536,
31,
3430,
96,
18699,
121,
3274,
3,
31,
14549,
10516,
31,
3430,
96,
22512,
... |
What are the highest wins with cuts smaller than 6, events of 4 and a top-5 smaller than 0? | CREATE TABLE table_name_74 (wins INTEGER, top_5 VARCHAR, cuts_made VARCHAR, events VARCHAR) | SELECT MAX(wins) FROM table_name_74 WHERE cuts_made < 6 AND events = 4 AND top_5 < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
3757,
7,
3,
21342,
17966,
6,
420,
834,
755,
584,
4280,
28027,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
8620,
834,
4725,
3,
2,
431,
3430,
984,
3274,
314,
3430,
420,
834,
755,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest year for an engine of ford zetec-r v8, and points greater than 0? | CREATE TABLE table_70476 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
) | SELECT MIN("Year") FROM table_70476 WHERE "Engine" = 'ford zetec-r v8' AND "Points" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
591,
3959,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
7,
121,
1499,
6,
96,
22512,
7,
121,
490,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
2518,
591,
3959,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
2590,
3,
776,
5822,
18,
52,
3,
208,
927,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
632,
31,
... |
When was William Kennedy first elected? | CREATE TABLE table_2668374_11 (first_elected VARCHAR, incumbent VARCHAR) | SELECT first_elected FROM table_2668374_11 WHERE incumbent = "William Kennedy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
4581,
834,
2596,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
4599,
14532,
166,
8160,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
2688,
3651,
519,
4581,
834,
2596,
549,
17444,
427,
28406,
3274,
96,
518,
1092,
23,
265,
14532,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the final score for Aguilar when he played Hans Podlipnik on clay and was runner-up? | CREATE TABLE table_name_47 (
score VARCHAR,
outcome VARCHAR,
surface VARCHAR,
opponent VARCHAR
) | SELECT score FROM table_name_47 WHERE surface = "clay" AND opponent = "hans podlipnik" AND outcome = "runner-up" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
2604,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
15264,
3274,
96,
2618,
7,
9489,
7446,
4953,
121,
3430,
6138,
3274,
96,
10806,
18,
413,
121,
1,
-100,
-100,
-100,
-100,
-1... |
Who is the owner of NTS Motorsports sponsored by Qore-24? | CREATE TABLE table_name_61 (
owner_s_ VARCHAR,
team VARCHAR,
primary_sponsor_s_ VARCHAR
) | SELECT owner_s_ FROM table_name_61 WHERE team = "nts motorsports" AND primary_sponsor_s_ = "qore-24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
2527,
834,
7,
834,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
2329,
834,
7,
5041,
7,
127,
834,
7,
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,
0... | [
3,
23143,
14196,
2527,
834,
7,
834,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
372,
3274,
96,
29,
17,
7,
2340,
6661,
7,
121,
3430,
2329,
834,
7,
5041,
7,
127,
834,
7,
834,
3274,
96,
1824,
127,
15,
14962,
121,
1,
-100,
... |
What is the least amount of matches? | CREATE TABLE table_27922491_8 (
matches INTEGER
) | SELECT MIN(matches) FROM table_27922491_8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4508,
2266,
4729,
834,
927,
41,
6407,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
866,
13,
6407,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19515,
15,
7,
61,
21680,
953,
834,
2555,
4508,
2266,
4729,
834,
927,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the home city for angelo massimino stadium? | CREATE TABLE table_name_7 (home_city VARCHAR, stadium VARCHAR) | SELECT home_city FROM table_name_7 WHERE stadium = "angelo massimino" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
5515,
834,
6726,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
690,
21,
11831,
32,
3294,
23,
1109,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
6726,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
14939,
3274,
96,
3280,
40,
32,
3294,
23,
1109,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
with race of ranvet stakes what is the group? | CREATE TABLE table_4989 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" real,
"Jockey" text,
"Winner/2nd" text
) | SELECT "Group" FROM table_4989 WHERE "Race" = 'ranvet stakes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
3914,
41,
96,
20119,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
27247,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27247,
121,
21680,
953,
834,
3647,
3914,
549,
17444,
427,
96,
448,
3302,
121,
3274,
3,
31,
2002,
162,
17,
8474,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Date has a Record of 3-4? | CREATE TABLE table_46592 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Date" FROM table_46592 WHERE "Record" = '3-4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3390,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
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,
0,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4448,
3390,
357,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
519,
4278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the home team at the game with an Attendance of 2,029? | CREATE TABLE table_name_85 (
home_team VARCHAR,
attendance VARCHAR
) | SELECT home_team FROM table_name_85 WHERE attendance = "2,029" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
234,
834,
11650,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
44,
8,
467,
28,
46,
22497,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
11364,
3274,
96,
4482,
632,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Create a bar chart showing school_id across all neutral, and rank All_Neutral in descending order. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Neutral, School_ID FROM basketball_match ORDER BY All_Neutral DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
26288,
8792,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
432,
834,
26288,
8792,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the home score when the away team scored 16.11 (107)? | CREATE TABLE table_57838 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_57838 WHERE "Away team score" = '16.11 (107)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3940,
3747,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
755,
3940,
3747,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
2938,
5,
2596,
11704,
12703,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Status, when Location is Russia? | CREATE TABLE table_40610 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Location" text
) | SELECT "Status" FROM table_40610 WHERE "Location" = 'russia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
27097,
41,
96,
23954,
121,
1499,
6,
96,
4168,
4911,
17,
63,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23602,
127,
7,
121,
1499,
6,
96,
434,
32,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
121,
21680,
953,
834,
2445,
27097,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
26165,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
let me know the diagnoses icd9 code and primary disease of patient with patient id 2110. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT demographic.diagnosis, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "2110" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
6,
18730,
7,
5,
447,
26,
1298,
834,
4978,
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,
549,
17... |
What's the participle when the verbal noun is i-bil-tze? | CREATE TABLE table_556 (
"Basic stem (root)" text,
"Present stem" text,
"Non-present stem" text,
"Participle" text,
"Verbal noun" text,
"Short stem" text,
"Meaning" text
) | SELECT "Participle" FROM table_556 WHERE "Verbal noun" = 'i-bil-tze' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
948,
41,
96,
14885,
447,
6269,
41,
18951,
61,
121,
1499,
6,
96,
10572,
5277,
6269,
121,
1499,
6,
96,
567,
106,
18,
12640,
6269,
121,
1499,
6,
96,
13725,
1294,
4788,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1294,
4788,
121,
21680,
953,
834,
3769,
948,
549,
17444,
427,
96,
5000,
3849,
150,
202,
121,
3274,
3,
31,
23,
18,
3727,
18,
17,
776,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what was the reason Richard K. Meade ( d ) became a successor? | CREATE TABLE table_228439_4 (reason_for_change VARCHAR, successor VARCHAR) | SELECT reason_for_change FROM table_228439_4 WHERE successor = "Richard K. Meade ( D )" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4608,
3288,
834,
591,
41,
864,
739,
834,
1161,
834,
13073,
584,
4280,
28027,
6,
22261,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
47,
8,
1053,
4117,
480,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1053,
834,
1161,
834,
13073,
21680,
953,
834,
2884,
4608,
3288,
834,
591,
549,
17444,
427,
22261,
3274,
96,
448,
362,
986,
480,
5,
1212,
9,
221,
41,
309,
3,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
The length of 30 minutes aired on what date? | CREATE TABLE table_15116 (
"Title" text,
"Length" text,
"Writer" text,
"Director" text,
"Airdate" text
) | SELECT "Airdate" FROM table_15116 WHERE "Length" = '30 minutes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
20159,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
20162,
5522,
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,
20162,
5522,
121,
21680,
953,
834,
1808,
20159,
549,
17444,
427,
96,
434,
4606,
189,
121,
3274,
3,
31,
1458,
676,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player has a round larger than 2, and position of (d)? | CREATE TABLE table_name_20 (player VARCHAR, round VARCHAR, position VARCHAR) | SELECT player FROM table_name_20 WHERE round > 2 AND position = "(d)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
20846,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
65,
3,
9,
1751,
2186,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
1751,
2490,
204,
3430,
1102,
3274,
96,
599,
26,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name for the end of contract because they're moving to Falkirk? | CREATE TABLE table_name_63 (name VARCHAR, type VARCHAR, moving_to VARCHAR) | SELECT name FROM table_name_63 WHERE type = "end of contract" AND moving_to = "falkirk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
4350,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
1735,
834,
235,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
21,
8,
414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
686,
3274,
96,
989,
13,
1696,
121,
3430,
1735,
834,
235,
3274,
96,
89,
138,
157,
12546,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the music director in 1971 for the movie Kalyani? | CREATE TABLE table_65394 (
"Year" real,
"Movie (in Kannada )" text,
"Director" text,
"Cast" text,
"Music Director" text
) | SELECT "Music Director" FROM table_65394 WHERE "Year" = '1971' AND "Movie (in Kannada )" = 'kalyani' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3288,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
9881,
15,
41,
77,
4540,
18089,
3,
61,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
254,
9,
7,
17,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29035,
2578,
121,
21680,
953,
834,
4122,
3288,
591,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4450,
31,
3430,
96,
329,
9881,
15,
41,
77,
4540,
18089,
3,
61,
121,
3274,
3,
31,
1258,
120,
2738,
3... |
What name is associated with a rank of less than 24, and an altitude (meters) of 3085? | CREATE TABLE table_63743 (
"Rank" real,
"Name" text,
"Altitude (meters)" real,
"Range" text,
"Parent Range" text
) | SELECT "Name" FROM table_63743 WHERE "Rank" < '24' AND "Altitude (meters)" = '3085' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
4581,
519,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
188,
40,
6592,
41,
4401,
7,
61,
121,
490,
6,
96,
448,
3280,
121,
1499,
6,
96,
13212,
295,
1097... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3891,
4581,
519,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
2266,
31,
3430,
96,
188,
40,
6592,
41,
4401,
7,
61,
121,
3274,
3,
31,
1458,
4433,
31,
1,
-100,
-100,
-100,
-100,
... |
Please give me a bar chart for the total enrollment in each county, display by the x-axis from low to high. | CREATE TABLE budget (
School_id int,
Year int,
Budgeted int,
total_budget_percent_budgeted real,
Invested int,
total_budget_percent_invested real,
Budget_invested_percent text
)
CREATE TABLE School (
School_id text,
School_name text,
Location text,
Mascot text,
Enrollmen... | SELECT County, SUM(Enrollment) FROM School GROUP BY County ORDER BY County | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1487,
41,
1121,
834,
23,
26,
16,
17,
6,
2929,
16,
17,
6,
12532,
15,
26,
16,
17,
6,
792,
834,
11073,
2782,
834,
883,
3728,
834,
115,
13164,
1054,
490,
6,
3,
13898,
15,
26,
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,
1... | [
3,
23143,
14196,
1334,
6,
180,
6122,
599,
8532,
4046,
297,
61,
21680,
1121,
350,
4630,
6880,
272,
476,
1334,
4674,
11300,
272,
476,
1334,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the countries of all airlines whose names start with Orbit, and count them by a bar chart, could you display Y in desc order? | CREATE TABLE routes (
rid integer,
dst_apid integer,
dst_ap varchar(4),
src_apid bigint,
src_ap varchar(4),
alid bigint,
airline varchar(4),
codeshare text
)
CREATE TABLE airlines (
alid integer,
name text,
iata varchar(2),
icao varchar(3),
callsign text,
country... | SELECT country, COUNT(country) FROM airlines WHERE name LIKE 'Orbit%' GROUP BY country ORDER BY COUNT(country) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9729,
41,
5413,
30278,
6,
3,
26,
7,
17,
834,
9,
12417,
30278,
6,
3,
26,
7,
17,
834,
9,
102,
3,
4331,
4059,
10820,
6,
3,
7,
52,
75,
834,
9,
12417,
600,
77,
17,
6,
3,
7,
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,
684,
6,
2847,
17161,
599,
17529,
61,
21680,
19184,
549,
17444,
427,
564,
8729,
9914,
3,
31,
7395,
2360,
1454,
31,
350,
4630,
6880,
272,
476,
684,
4674,
11300,
272,
476,
2847,
17161,
599,
17529,
61,
309,
25067,
1,
-1... |
What is the status where the notes are possible jr synonym of sapeornis? | CREATE TABLE table_42613 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text,
"Notes" text
) | SELECT "Status" FROM table_42613 WHERE "Notes" = 'possible jr synonym of sapeornis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2688,
2368,
41,
96,
23954,
121,
1499,
6,
96,
4168,
4911,
17,
63,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23602,
127,
7,
121,
1499,
6,
96,
5110,
155,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
121,
21680,
953,
834,
591,
2688,
2368,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
2748,
7,
2317,
3,
354,
52,
29443,
13,
16333,
15,
127,
29,
159,
31,
1,
-100,
-100,
-100,
-100,
... |
Show me mean age by born state in a histogram | CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE management (
department_ID int,
head_ID int,
tempor... | SELECT born_state, AVG(age) FROM head GROUP BY born_state | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
819,
41,
819,
834,
4309,
16,
17,
6,
564,
1499,
6,
2170,
834,
5540,
1499,
6,
1246,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
1775,
834,
4309,
16,
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,
2170,
834,
5540,
6,
71,
17217,
599,
545,
61,
21680,
819,
350,
4630,
6880,
272,
476,
2170,
834,
5540,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many more goals did he have in 2009 than 2005 ? | CREATE TABLE table_203_34 (
id number,
"season" text,
"appearance" number,
"interchange" number,
"tries" number,
"goals" number,
"f/g" number,
"points" number
) | SELECT (SELECT "goals" FROM table_203_34 WHERE "season" = 2009) - (SELECT "goals" FROM table_203_34 WHERE "season" = 2005) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3710,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
3096,
2741,
663,
121,
381,
6,
96,
3870,
13073,
121,
381,
6,
96,
9000,
121,
381,
6,
96,
839,
5405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
96,
839,
5405,
121,
21680,
953,
834,
23330,
834,
3710,
549,
17444,
427,
96,
9476,
121,
3274,
2464,
61,
3,
18,
41,
23143,
14196,
96,
839,
5405,
121,
21680,
953,
834,
23330,
834,
3710,
549,
17444,
42... |
what is the number of patients whose admission location is clinic referral/premature and admission year is less than 2119? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.admityear < "2119" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
254,
20931,
4666,
4083,
20805,
21415,
87,
5554,
20211,
25380,
1... |
Name the birth date for estonia for spiker and height of 189 | CREATE TABLE table_25058562_2 (
birth_date VARCHAR,
height VARCHAR,
nationality VARCHAR,
position VARCHAR
) | SELECT birth_date FROM table_25058562_2 WHERE nationality = "Estonia" AND position = "Spiker" AND height = 189 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3449,
4834,
357,
834,
357,
41,
3879,
834,
5522,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3879,
834,
5522,
21680,
953,
834,
11434,
3449,
4834,
357,
834,
357,
549,
17444,
427,
1157,
485,
3274,
96,
14997,
8008,
121,
3430,
1102,
3274,
96,
134,
102,
10109,
121,
3430,
3902,
3274,
3,
25312,
1,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, find name and the sum of price , and group by attribute name, and visualize them by a bar chart, could you sort in asc by the names? | 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 T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.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,
4416,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
441... |
What is the code of each role and the number of employees in each role? | CREATE TABLE roles (
role_code text,
role_name text,
role_description text
)
CREATE TABLE documents_to_be_destroyed (
document_id number,
destruction_authorised_by_employee_id number,
destroyed_by_employee_id number,
planned_destruction_date time,
actual_destruction_date time,
other... | SELECT role_code, COUNT(*) FROM employees GROUP BY role_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6270,
41,
1075,
834,
4978,
1499,
6,
1075,
834,
4350,
1499,
6,
1075,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2691,
834,
235,
834,
346,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1075,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
1652,
350,
4630,
6880,
272,
476,
1075,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what season did Raquel Pacheco finish in third place? | CREATE TABLE table_25214321_1 (
season VARCHAR,
third_place VARCHAR
) | SELECT season FROM table_25214321_1 WHERE third_place = "Raquel Pacheco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2658,
4906,
2658,
834,
536,
41,
774,
584,
4280,
28027,
6,
1025,
834,
4687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
774,
410,
2922,
4479,
11790,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
1828,
2658,
4906,
2658,
834,
536,
549,
17444,
427,
1025,
834,
4687,
3274,
96,
448,
9,
4479,
11790,
88,
509,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team had a qual 1 of 59.895? | CREATE TABLE table_name_72 (team VARCHAR, qual_1 VARCHAR) | SELECT team FROM table_name_72 WHERE qual_1 = "59.895" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
11650,
584,
4280,
28027,
6,
3,
11433,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
141,
3,
9,
3,
11433,
209,
13,
3,
3390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
3,
11433,
834,
536,
3274,
96,
3390,
5,
3914,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What kind of South Marquesan has a S moan of /matua/? | CREATE TABLE table_49477 (
"Tongan" text,
"Niuean" text,
"S\u0101moan" text,
"Takuu" text,
"Tahitian" text,
"Rarotongan" text,
"M\u0101ori" text,
"North Marquesan" text,
"South Marquesan" text,
"Hawai'ian" text,
"Mangarevan" text
) | SELECT "South Marquesan" FROM table_49477 WHERE "S\u0101moan" = '/matua/' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
591,
4013,
41,
96,
382,
106,
2565,
121,
1499,
6,
96,
567,
23,
76,
15,
152,
121,
1499,
6,
96,
134,
2,
76,
632,
19621,
51,
32,
152,
121,
1499,
6,
96,
382,
16296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22081,
1571,
7771,
152,
121,
21680,
953,
834,
3647,
591,
4013,
549,
17444,
427,
96,
134,
2,
76,
632,
19621,
51,
32,
152,
121,
3274,
3,
31,
87,
3357,
76,
9,
87,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What sesaon(s) did they have 254 goals against? | CREATE TABLE table_2817196_1 (season VARCHAR, goals_against VARCHAR) | SELECT season FROM table_2817196_1 WHERE goals_against = 254 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2517,
26937,
834,
536,
41,
9476,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1394,
9,
106,
599,
7,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
2577,
2517,
26937,
834,
536,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
3274,
944,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63? | CREATE TABLE table_name_30 (
_number_of_national_votes INTEGER,
_number_of_seats_won VARCHAR,
leader VARCHAR,
election VARCHAR,
_percentage_of_prefectural_vote VARCHAR
) | SELECT AVG(_number_of_national_votes) FROM table_name_30 WHERE election < 1992 AND _percentage_of_prefectural_vote = "39.5%" AND leader = "takeo fukuda" AND _number_of_seats_won > 63 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
3,
834,
5525,
1152,
834,
858,
834,
16557,
834,
1621,
1422,
3,
21342,
17966,
6,
3,
834,
5525,
1152,
834,
858,
834,
7,
1544,
7,
834,
210,
106,
584,
428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
5525,
1152,
834,
858,
834,
16557,
834,
1621,
1422,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
4356,
3,
2,
9047,
3430,
3,
834,
883,
3728,
545,
834,
858,
834,
2026,
4075,
9709,
834,
... |
What year was the school with green and white colors founded? | CREATE TABLE table_2589963_1 (
founded INTEGER,
color VARCHAR
) | SELECT MAX(founded) FROM table_2589963_1 WHERE color = "Green and White" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3449,
3264,
3891,
834,
536,
41,
5710,
3,
21342,
17966,
6,
945,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
8,
496,
28,
1442,
11,
872,
2602,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
23329,
61,
21680,
953,
834,
357,
3449,
3264,
3891,
834,
536,
549,
17444,
427,
945,
3274,
96,
22918,
11,
1945,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
let me know both the location of admission and discharge of patient troy friedman. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT demographic.admission_location, demographic.discharge_location FROM demographic WHERE demographic.name = "Troy Friedman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
14836,
6,
14798,
5,
26,
159,
7993,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
382,
8170,
17561,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age? | CREATE TABLE table_26149 (
"Copper Age" text,
"Chalcolithic (4500 BC - 3300 BC)" text,
"Early Chalcolithic" text,
"4500 BC - 4000 BC" text,
"Ubaid period in Mesopotamia" text
) | SELECT "Copper Age" FROM table_26149 WHERE "Ubaid period in Mesopotamia" = 'Hittite Old Kingdom , Minoan eruption' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
24816,
41,
96,
3881,
8153,
7526,
121,
1499,
6,
96,
3541,
138,
9044,
189,
447,
8457,
2560,
9580,
3,
18,
220,
5426,
9580,
61,
121,
1499,
6,
96,
427,
291,
120,
20732,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3881,
8153,
7526,
121,
21680,
953,
834,
2688,
24816,
549,
17444,
427,
96,
1265,
9441,
26,
1059,
16,
10162,
32,
3013,
3690,
9,
121,
3274,
3,
31,
566,
155,
17,
155,
15,
3525,
6524,
3,
6,
4765,
32,
152,
31369,
... |
Name the most goals for josep samitier | CREATE TABLE table_34179 (
"Ranking" real,
"Nationality" text,
"Name" text,
"Goals" real,
"Years" text
) | SELECT MAX("Goals") FROM table_34179 WHERE "Name" = 'josep samitier' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
26593,
41,
96,
22557,
53,
121,
490,
6,
96,
24732,
485,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
6221,
5405,
121,
490,
6,
96,
476,
2741,
7,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
121,
6221,
5405,
8512,
21680,
953,
834,
3710,
26593,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1927,
7,
15,
102,
3,
7,
3690,
3276,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the total number of positions on the Toronto team in 2006-07? | CREATE TABLE table_72075 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
) | SELECT COUNT("Position") FROM table_72075 WHERE "Years in Toronto" = '2006-07' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18517,
3072,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
535,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
7030,
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,
2847,
17161,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
18517,
3072,
549,
17444,
427,
96,
476,
2741,
7,
16,
7030,
121,
3274,
3,
31,
21196,
18,
4560,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What ran has noel patterson as the rider? | CREATE TABLE table_name_40 (rank VARCHAR, rider VARCHAR) | SELECT rank FROM table_name_40 WHERE rider = "noel patterson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
6254,
584,
4280,
28027,
6,
2564,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4037,
65,
150,
15,
40,
6234,
17,
13515,
38,
8,
2564,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2564,
52,
3274,
96,
29,
32,
15,
40,
6234,
17,
13515,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the mascot when the county is 43 kosciusko? | CREATE TABLE table_name_82 (mascot VARCHAR, county VARCHAR) | SELECT mascot FROM table_name_82 WHERE county = "43 kosciusko" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
2754,
4310,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3,
2754,
4310,
116,
8,
5435,
19,
8838,
3,
9692,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2754,
4310,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
5435,
3274,
96,
4906,
3,
9692,
8469,
17869,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the minimum number of members Africa had in 2001? | CREATE TABLE table_1914090_2 (
africa INTEGER,
year VARCHAR
) | SELECT MIN(africa) FROM table_1914090_2 WHERE year = 2001 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
22012,
2394,
834,
357,
41,
24040,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2559,
381,
13,
724,
2648,
141,
16,
4402... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9,
89,
2234,
9,
61,
21680,
953,
834,
2294,
22012,
2394,
834,
357,
549,
17444,
427,
215,
3274,
4402,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
has there been any nasopharynx microbiology test until 2104 for patient 031-16123? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
... | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-16123')) AND microlab.culturesite = 'nasopharynx' AND STRFTIME('%y', microlab.... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1... |
What Tournament has an Outcome of runner-up, and a Score of 4 6, 3 6? | CREATE TABLE table_name_41 (
tournament VARCHAR,
outcome VARCHAR,
score VARCHAR
) | SELECT tournament FROM table_name_41 WHERE outcome = "runner-up" AND score = "4–6, 3–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
5892,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
20502,
65,
46,
3387,
287,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
2604,
3274,
96,
591,
104,
11071,
220,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar graph to show how many year from different year | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No... | SELECT Year, COUNT(Year) FROM wine | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
4699,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
6088,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2929,
6,
2847,
17161,
599,
476,
2741,
61,
21680,
2013,
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,... |
how much money is that procedure called internal fixation. | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treat... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'internal fixation') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
26889,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
1058,
5,
26889,
23,
26,
21680,
1058,
549,
... |
Which Playing For has a # 100 larger than 36, and a Score of 122? | CREATE TABLE table_name_27 (
playing_for VARCHAR,
_number_100 VARCHAR,
score VARCHAR
) | SELECT playing_for FROM table_name_27 WHERE _number_100 > 36 AND score = "122" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
1556,
834,
1161,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
2915,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1556,
834,
1161,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
3,
834,
5525,
1152,
834,
2915,
2490,
4475,
3430,
2604,
3274,
96,
20889,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many millions of U.S. viewers watched the episode that first aired on March 31, 2013? | CREATE TABLE table_11111116_8 (us_viewers__million_ VARCHAR, original_air_date VARCHAR) | SELECT us_viewers__million_ FROM table_11111116_8 WHERE original_air_date = "March 31, 2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
15866,
2938,
834,
927,
41,
302,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
178,
834,
4576,
277,
834,
834,
17030,
834,
21680,
953,
834,
15866,
15866,
2938,
834,
927,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
25019,
12074,
2038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What did the home team when they played Richmond? | CREATE TABLE table_name_48 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team AS score FROM table_name_48 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
8,
234,
372,
116,
79,
1944,
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,
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,
3707,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the GTE Suncoast Classic tournament held? | CREATE TABLE table_11622562_1 (location VARCHAR, tournament VARCHAR) | SELECT location FROM table_11622562_1 WHERE tournament = "GTE Suncoast Classic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
20489,
4056,
834,
536,
41,
14836,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
350,
3463,
3068,
25500,
6744,
5892,
1213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
20159,
20489,
4056,
834,
536,
549,
17444,
427,
5892,
3274,
96,
517,
3463,
3068,
25500,
6744,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the total win % of manager viktor prokopenko, when he lost fewer than 2? | CREATE TABLE table_32039 (
"Manager" text,
"Ukraine career" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Win %" real
) | SELECT COUNT("Win %") FROM table_32039 WHERE "Manager" = 'viktor prokopenko' AND "Lost" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15003,
3288,
41,
96,
27272,
121,
1499,
6,
96,
1265,
9669,
630,
1415,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
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,
2847,
17161,
599,
121,
18455,
3,
1454,
8512,
21680,
953,
834,
15003,
3288,
549,
17444,
427,
96,
27272,
121,
3274,
3,
31,
2099,
10377,
813,
17466,
18994,
31,
3430,
96,
434,
3481,
121,
3,
2,
3,
31,
357,
31,
1,
-100,... |
Which player is from Ohio State College? | CREATE TABLE table_name_55 (
player VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_55 WHERE college = "ohio state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
1959,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
19,
45,
6167,
1015,
1888,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1900,
3274,
96,
32,
107,
23,
32,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the Winner when Selby Riddle came in Fourth? | CREATE TABLE table_name_26 (winner VARCHAR, fourth VARCHAR) | SELECT winner FROM table_name_26 WHERE fourth = "selby riddle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
3757,
687,
584,
4280,
28027,
6,
4509,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
18125,
116,
11471,
969,
2403,
8437,
764,
16,
2167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4668,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
4509,
3274,
96,
7,
15,
40,
969,
5413,
26,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many years did he play in santiago de compostela? | CREATE TABLE table_name_6 (
year INTEGER,
city VARCHAR
) | SELECT SUM(year) FROM table_name_6 WHERE city = "santiago de compostela" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
215,
3,
21342,
17966,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
410,
3,
88,
577,
16,
3,
7,
5965,
9,
839,
20,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
690,
3274,
96,
7,
5965,
9,
839,
20,
17883,
15,
521,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the overall pick for Doug Sproule of the United States? | CREATE TABLE table_name_48 (overall VARCHAR, nationality VARCHAR, player VARCHAR) | SELECT overall FROM table_name_48 WHERE nationality = "united states" AND player = "doug sproule" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1890,
1748,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1879,
1432,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1879,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1157,
485,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
26,
1063,
122,
3,
7,
1409,
83,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the telugu name తెలుగు of kannada name ಕನ್ನಡ utthara ಉತ್ತರ | CREATE TABLE table_201400_2 (telugu_name_తెలుగు VARCHAR, kannada_name_ಕನ್ನಡ VARCHAR) | SELECT telugu_name_తెలుగు FROM table_201400_2 WHERE kannada_name_ಕನ್ನಡ = "Utthara ಉತ್ತರ" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10218,
1206,
834,
357,
41,
1625,
76,
1744,
834,
4350,
834,
2,
584,
4280,
28027,
6,
675,
9,
26,
9,
834,
4350,
834,
2,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
1625,
76,
1744,
834,
4350,
834,
2,
21680,
953,
834,
10218,
1206,
834,
357,
549,
17444,
427,
675,
9,
26,
9,
834,
4350,
834,
2,
3274,
96,
1265,
17,
17,
14888,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which EMNLP 2010 papers have the most citations ? | CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperkeyphrase (
pap... | SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM cite, paper, venue WHERE paper.paperid = cite.citedpaperid AND paper.year = 2010 AND venue.venueid = paper.venueid AND venue.venuename = 'EMNLP' GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citedpaperid) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
41,
1040,
23,
26,
16,
17,
6,
2233,
3,
4331,
4059,
6,
5669,
23,
26,
16,
17,
6,
215,
16,
17,
6,
3,
5525,
17994,
16,
17,
6,
3,
5525,
11675,
969,
16,
17,
6,
6378,
23,
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,
3,
15438,
25424,
6227,
3,
8464,
5,
11675,
19587,
23,
26,
6,
2847,
17161,
599,
8464,
5,
11675,
19587,
23,
26,
61,
21680,
3,
8464,
6,
1040,
6,
5669,
549,
17444,
427,
1040,
5,
19587,
23,
26,
3274,
3,
8464,
5,
11675... |
What are the names of representatives in descending order of votes? | CREATE TABLE representative (
Name VARCHAR,
Representative_ID VARCHAR
)
CREATE TABLE election (
Representative_ID VARCHAR
) | SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6978,
41,
5570,
584,
4280,
28027,
6,
13517,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
13517,
834,
4309,
584,
4280,
28027,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
332,
4416,
23954,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
6978,
6157,
332,
357,
9191,
332,
5411,
1649,
12640,
1528,
834,
4309,
3274,
332,
4416,
1649,
12640,
1528,
834,
4309,
4674,
11300,
272,
476,
11839,
309,
25067... |
Which Partner has a Date of 12 july 2009? | CREATE TABLE table_name_18 (partner VARCHAR, date VARCHAR) | SELECT partner FROM table_name_18 WHERE date = "12 july 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
12300,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5793,
65,
3,
9,
7678,
13,
586,
3,
2047,
120,
2464,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
833,
3274,
96,
2122,
3,
2047,
120,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the playoffs for usisl select league | CREATE TABLE table_2511876_1 (playoffs VARCHAR, league VARCHAR) | SELECT playoffs FROM table_2511876_1 WHERE league = "USISL Select league" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
20056,
3959,
834,
536,
41,
4895,
1647,
7,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15289,
7,
21,
178,
159,
40,
1738,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15289,
7,
21680,
953,
834,
1828,
20056,
3959,
834,
536,
549,
17444,
427,
5533,
3274,
96,
3063,
196,
5629,
6185,
5533,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Silver, when Total is greater than 4, when Bronze is 2, and when Rank is greater than 1? | CREATE TABLE table_6922 (
"Rank" real,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" real
) | SELECT "Silver" FROM table_6922 WHERE "Total" > '4' AND "Bronze" = '2' AND "Rank" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
2884,
41,
96,
22557,
121,
490,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
1499,
6,
96,
3696,
1947,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
173,
624,
121,
21680,
953,
834,
3951,
2884,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
591,
31,
3430,
96,
22780,
29,
776,
121,
3274,
3,
31,
357,
31,
3430,
96,
22557,
121,
2490,
3,
31,
536,
31,
... |
How many shader models have a 900 core clock ( mhz )? | CREATE TABLE table_28159 (
"Graphics" text,
"Launch" real,
"Market" text,
"CPU" text,
"Code name" text,
"Device ID" real,
"Core clock ( MHz )" text,
"Execution units" real,
"Shader model" text,
"DirectX" text,
"OpenGL" text,
"OpenCL" text,
"Memory bandwidth ( GB/s )" ... | SELECT COUNT("Shader model") FROM table_28159 WHERE "Core clock ( MHz )" = '900' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
27904,
41,
96,
21094,
447,
7,
121,
1499,
6,
96,
3612,
202,
524,
121,
490,
6,
96,
22572,
121,
1499,
6,
96,
254,
10744,
121,
1499,
6,
96,
22737,
564,
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,
2847,
17161,
599,
121,
10499,
9,
588,
825,
8512,
21680,
953,
834,
2577,
27904,
549,
17444,
427,
96,
13026,
15,
6702,
41,
3,
20210,
3,
61,
121,
3274,
3,
31,
7015,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is every value of Top 10 when team is #10 Phil Parsons Racing and average finish is 22.9? | CREATE TABLE table_2597876_2 (top_10 VARCHAR, team_s_ VARCHAR, avg_finish VARCHAR) | SELECT top_10 FROM table_2597876_2 WHERE team_s_ = "#10 Phil Parsons Racing" AND avg_finish = "22.9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
21441,
3959,
834,
357,
41,
2916,
834,
1714,
584,
4280,
28027,
6,
372,
834,
7,
834,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
25535,
584,
4280,
28027,
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,
420,
834,
1714,
21680,
953,
834,
1828,
21441,
3959,
834,
357,
549,
17444,
427,
372,
834,
7,
834,
3274,
96,
4663,
1714,
8188,
2180,
6577,
16046,
121,
3430,
3,
9,
208,
122,
834,
25535,
3274,
96,
357,
27297,
121,
1,
... |
In what year did Easton LL Easton play in Maryland? | CREATE TABLE table_13012165_1 (year VARCHAR, maryland VARCHAR) | SELECT COUNT(year) FROM table_13012165_1 WHERE maryland = "Easton LL Easton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
2122,
22823,
834,
536,
41,
1201,
584,
4280,
28027,
6,
3157,
28900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
410,
1932,
106,
3,
10376,
1932,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
21448,
2122,
22823,
834,
536,
549,
17444,
427,
3157,
28900,
3274,
96,
25235,
106,
3,
10376,
1932,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest total for those receiving less than 18 but more than 14? | CREATE TABLE table_79350 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Total") FROM table_79350 WHERE "Silver" < '18' AND "Rank" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
16975,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
4440,
16975,
549,
17444,
427,
96,
134,
173,
624,
121,
3,
2,
3,
31,
2606,
31,
3430,
96,
22557,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Who were the sideline reporter(s) in 2011? | CREATE TABLE table_name_72 (
sideline_reporter_s_ VARCHAR,
year VARCHAR
) | SELECT sideline_reporter_s_ FROM table_name_72 WHERE year = 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
596,
747,
834,
60,
1493,
49,
834,
7,
834,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
596,
747,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
596,
747,
834,
60,
1493,
49,
834,
7,
834,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
215,
3274,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many channel tv (dt)s are in austin, texas? | CREATE TABLE table_1353096_1 (
channel_tv___dt__ VARCHAR,
city_of_license__market VARCHAR
) | SELECT COUNT(channel_tv___dt__) FROM table_1353096_1 WHERE city_of_license__market = "Austin, Texas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
26918,
4314,
834,
536,
41,
4245,
834,
17,
208,
834,
834,
834,
26,
17,
834,
834,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
834,
834,
8809,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
19778,
834,
17,
208,
834,
834,
834,
26,
17,
834,
834,
61,
21680,
953,
834,
2368,
26918,
4314,
834,
536,
549,
17444,
427,
690,
834,
858,
834,
28062,
834,
834,
8809,
3274,
96,
14934,
17,
77,
6,
251... |
What is Mahu when pergi is pi? | CREATE TABLE table_name_80 (
mahu VARCHAR,
pergi VARCHAR
) | SELECT mahu FROM table_name_80 WHERE pergi = "pi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
954,
107,
76,
584,
4280,
28027,
6,
399,
122,
23,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8555,
76,
116,
399,
122,
23,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
954,
107,
76,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
399,
122,
23,
3274,
96,
102,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
WHAT IS THE MEANING WITH P ny n of ch ? | CREATE TABLE table_name_61 (
meaning VARCHAR,
pīnyīn VARCHAR
) | SELECT meaning FROM table_name_61 WHERE pīnyīn = "chē" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
2530,
584,
4280,
28027,
6,
3,
102,
2,
29,
63,
2,
29,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
283,
20152,
2365,
11951... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2530,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
3,
102,
2,
29,
63,
2,
29,
3274,
96,
524,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the result for district pennsylvania 6? | CREATE TABLE table_2668199_2 (result VARCHAR, district VARCHAR) | SELECT result FROM table_2668199_2 WHERE district = "Pennsylvania 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
19479,
834,
357,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
21,
3939,
4550,
29,
7,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
2688,
3651,
19479,
834,
357,
549,
17444,
427,
3939,
3274,
96,
345,
35,
29,
7,
63,
40,
16658,
9,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which driver was in 8 rounds with a chassis of dallara f306? | CREATE TABLE table_44017 (
"Team" text,
"Driver" text,
"Class" text,
"Chassis" text,
"Rounds" text
) | SELECT "Driver" FROM table_44017 WHERE "Chassis" = 'dallara f306' AND "Rounds" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22335,
2517,
41,
96,
18699,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
448,
32,
1106,
7,
121,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
22335,
2517,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
26,
1748,
2551,
3,
89,
1458,
948,
31,
3430,
96,
448,
32,
1106,
7,
121,
3274,
3,
31,
927,
31,
1,
-100,
-10... |
During what period did Ricky Ponting play? | CREATE TABLE table_24132 (
"Rank" real,
"Average" text,
"Player" text,
"Runs" real,
"Innings" real,
"Not Out" real,
"Period" text
) | SELECT "Period" FROM table_24132 WHERE "Player" = 'Ricky Ponting' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
23757,
41,
96,
22557,
121,
490,
6,
96,
188,
624,
545,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
448,
202,
7,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12988,
23,
32,
26,
121,
21680,
953,
834,
2266,
23757,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
448,
3142,
63,
13886,
53,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many films were in hindi? | CREATE TABLE table_25926120_3 (
name_of_film VARCHAR,
language VARCHAR
) | SELECT COUNT(name_of_film) FROM table_25926120_3 WHERE language = "Hindi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3390,
2688,
15518,
834,
519,
41,
564,
834,
858,
834,
9988,
584,
4280,
28027,
6,
1612,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4852,
130,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4350,
834,
858,
834,
9988,
61,
21680,
953,
834,
357,
3390,
2688,
15518,
834,
519,
549,
17444,
427,
1612,
3274,
96,
566,
8482,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How was the player in the position of Center acquired? | CREATE TABLE table_name_26 (
acquisition_via VARCHAR,
position VARCHAR
) | SELECT acquisition_via FROM table_name_26 WHERE position = "center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
6566,
834,
5907,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
47,
8,
1959,
16,
8,
1102,
13,
1166,
7347,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6566,
834,
5907,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1102,
3274,
96,
13866,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
specify the time of admission of patient id 29961 | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT demographic.admittime FROM demographic WHERE demographic.subject_id = "29961" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
20466,
17,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
357,
3264,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which home team played the away team of collingwood? | CREATE TABLE table_name_14 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_14 WHERE away_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
234,
372,
1944,
8,
550,
372,
13,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was satsuki dd-27 completed? | CREATE TABLE table_name_25 (completed VARCHAR, name VARCHAR) | SELECT completed FROM table_name_25 WHERE name = "satsuki dd-27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
25288,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
3,
7,
23766,
2168,
3,
26,
26,
18,
2555,
2012,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2012,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
564,
3274,
96,
7,
23766,
2168,
3,
26,
26,
18,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.