NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Return a bar chart about the distribution of Date_of_Birth and Height , and could you list by the Height in asc? | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Date_of_Birth, Height FROM people ORDER BY Height | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
24231,
21680,
151,
4674,
11300,
272,
476,
24231,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Ariel 3's COSPAR ID? | CREATE TABLE table_12781 (
"Satellite" text,
"Launch date" text,
"Carrier rocket" text,
"Launch site" text,
"COSPAR ID" text
) | SELECT "COSPAR ID" FROM table_12781 WHERE "Satellite" = 'ariel 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
4959,
41,
96,
134,
9,
1625,
6311,
121,
1499,
6,
96,
3612,
202,
524,
833,
121,
1499,
6,
96,
6936,
6711,
15721,
121,
1499,
6,
96,
3612,
202,
524,
353,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5911,
21215,
448,
4699,
121,
21680,
953,
834,
22367,
4959,
549,
17444,
427,
96,
134,
9,
1625,
6311,
121,
3274,
3,
31,
9,
14018,
220,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, show me about the distribution of headquarter and the sum of code , and group by attribute headquarter in a bar chart, could you rank y-axis in asc order please? | 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.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code | [
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,
3845,
9,
26,
19973,
6,
332,
5411,
22737,
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,... |
What round did the fight against Sofia Bagherdai go to? | CREATE TABLE table_name_74 (round VARCHAR, opponent VARCHAR) | SELECT round FROM table_name_74 WHERE opponent = "sofia bagherdai" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
7775,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1751,
410,
8,
2870,
581,
25860,
8055,
760,
26,
9,
23,
281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
15264,
3274,
96,
7,
858,
23,
9,
2182,
760,
26,
9,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many television credits does this actress have ? | CREATE TABLE table_204_903 (
id number,
"title" text,
"character" text,
"broadcaster" text,
"episodes" number,
"date" number
) | SELECT COUNT(*) FROM table_204_903 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2394,
519,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
31886,
121,
1499,
6,
96,
115,
8635,
25327,
121,
1499,
6,
96,
15,
102,
159,
32,
1395,
121,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
2394,
519,
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... |
List all titles with a 57 series number. | CREATE TABLE table_27397948_2 (title VARCHAR, no_in_series VARCHAR) | SELECT title FROM table_27397948_2 WHERE no_in_series = 57 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3288,
4440,
3707,
834,
357,
41,
21869,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
66,
8342,
28,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2555,
3288,
4440,
3707,
834,
357,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
3,
3436,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the release date by Virgin? | CREATE TABLE table_57029 (
"Country" text,
"Release Date" real,
"Music Label" text,
"Media" text,
"Catalogue Number" text
) | SELECT AVG("Release Date") FROM table_57029 WHERE "Music Label" = 'virgin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
3166,
41,
96,
10628,
651,
121,
1499,
6,
96,
1649,
40,
14608,
7678,
121,
490,
6,
96,
29035,
16229,
121,
1499,
6,
96,
24607,
121,
1499,
6,
96,
18610,
9,
10384,
7720,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
121,
1649,
40,
14608,
7678,
8512,
21680,
953,
834,
28363,
3166,
549,
17444,
427,
96,
29035,
16229,
121,
3274,
3,
31,
5771,
122,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of female patient with drug code adva250ih? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "ADVA250IH" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Which result has adelaide oval as the venue? | CREATE TABLE table_name_11 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_11 WHERE venue = "adelaide oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
741,
65,
3,
15311,
5385,
17986,
38,
8,
5669,
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,
741,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
5669,
3274,
96,
15311,
5385,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest overall pick that has c as the position, with an NFL Draft greater than 1977? | CREATE TABLE table_name_27 (
overall_pick INTEGER,
position VARCHAR,
nfl_draft VARCHAR
) | SELECT MAX(overall_pick) FROM table_name_27 WHERE position = "c" AND nfl_draft > 1977 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
1879,
834,
17967,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
3,
29,
89,
40,
834,
26,
10913,
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,
1890,
1748,
834,
17967,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1102,
3274,
96,
75,
121,
3430,
3,
29,
89,
40,
834,
26,
10913,
2490,
16433,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What format has a catalogue of asw 40362? | CREATE TABLE table_name_81 (format VARCHAR, catalogue VARCHAR) | SELECT format FROM table_name_81 WHERE catalogue = "asw 40362" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
8995,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1910,
65,
3,
9,
14978,
13,
38,
210,
1283,
3420,
357,
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,
1910,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
14978,
3274,
96,
9,
7,
210,
1283,
3420,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the club when the shirt sponsor is e-lotto.be? | CREATE TABLE table_27374004_2 (club VARCHAR, shirt_sponsor VARCHAR) | SELECT club FROM table_27374004_2 WHERE shirt_sponsor = "e-lotto.be" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4118,
5548,
591,
834,
357,
41,
13442,
584,
4280,
28027,
6,
8677,
834,
7,
5041,
7,
127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1886,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1886,
21680,
953,
834,
2555,
4118,
5548,
591,
834,
357,
549,
17444,
427,
8677,
834,
7,
5041,
7,
127,
3274,
96,
15,
18,
3171,
235,
5,
346,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the location for Egypt in 2013? | CREATE TABLE table_12648 (
"Perpetrator" text,
"Year" text,
"Location" text,
"Country" text,
"Killed" text
) | SELECT "Location" FROM table_12648 WHERE "Year" = '2013' AND "Country" = 'egypt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21976,
3707,
41,
96,
12988,
4995,
52,
1016,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
439,
173,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
21976,
3707,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
11138,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
15,
122,
63,
102,
17,
31,
1,
-100,
-100,
-100,
-100,
... |
how many patients are below 89 years of age and diagnosed with transient neonatal thrombocytopenia? | 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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "89" AND diagnoses.long_title = "Transient neonatal thrombocytopenia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What document type codes do we have? | CREATE TABLE Ref_Document_Types (document_type_code VARCHAR) | SELECT document_type_code FROM Ref_Document_Types | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
41,
28244,
834,
6137,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1708,
686,
5633,
103,
62,
43,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1708,
834,
6137,
834,
4978,
21680,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
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 Term end that has a Party of united australia and 184 days in office? | CREATE TABLE table_37002 (
"Order" text,
"Minister" text,
"Party" text,
"Prime Minister" text,
"Title" text,
"Term start" text,
"Term end" text,
"Term in office" text
) | SELECT "Term end" FROM table_37002 WHERE "Party" = 'united australia' AND "Term in office" = '184 days' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22520,
4305,
41,
96,
7395,
588,
121,
1499,
6,
96,
12858,
5805,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
7855,
526,
3271,
121,
1499,
6,
96,
382,
155,
109,
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,
11679,
414,
121,
21680,
953,
834,
22520,
4305,
549,
17444,
427,
96,
13725,
63,
121,
3274,
3,
31,
15129,
15,
26,
23407,
31,
3430,
96,
11679,
16,
828,
121,
3274,
3,
31,
25987,
477,
31,
1,
-100,
-100,
-100,
-100,... |
Which artist had a 4x platinum? | CREATE TABLE table_name_42 (
artist VARCHAR,
certification VARCHAR
) | SELECT artist FROM table_name_42 WHERE certification = "4x platinum" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
2377,
584,
4280,
28027,
6,
5151,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2377,
141,
3,
9,
314,
226,
26325,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2377,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
5151,
3274,
96,
591,
226,
26325,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Position does First Elected in 2003 William D. Euille hold ? | CREATE TABLE table_name_42 (position VARCHAR, first_election VARCHAR, name VARCHAR) | SELECT position FROM table_name_42 WHERE first_election = "2003" AND name = "william d. euille" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
4718,
584,
4280,
28027,
6,
166,
834,
15,
12252,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
14258,
405,
1485,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
166,
834,
15,
12252,
3274,
96,
23948,
121,
3430,
564,
3274,
96,
8894,
23,
265,
3,
26,
5,
3,
15,
25077,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the id of the candidate who got the lowest oppose rate. | CREATE TABLE candidate (Candidate_ID VARCHAR, oppose_rate VARCHAR) | SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
14050,
12416,
342,
834,
4309,
584,
4280,
28027,
6,
10720,
15,
834,
2206,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
3,
23,
26,
13,
8,
4775,
113,
530,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
25833,
17,
15,
834,
4309,
21680,
4775,
4674,
11300,
272,
476,
10720,
15,
834,
2206,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the winners in 2010-2011? | CREATE TABLE table_name_4 (winners VARCHAR, year VARCHAR) | SELECT winners FROM table_name_4 WHERE year = "2010-2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
3757,
687,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
8969,
16,
2735,
18,
13907,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8969,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
215,
3274,
96,
14926,
18,
13907,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which venue hosted the Los Angeles Rams as an opponent? | CREATE TABLE table_name_64 (
venue VARCHAR,
opponent VARCHAR
) | SELECT venue FROM table_name_64 WHERE opponent = "los angeles rams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
5669,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
6523,
8,
3144,
4975,
4425,
7,
38,
46,
15264,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
15264,
3274,
96,
2298,
11831,
15,
7,
3,
2375,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the final loss of the club last won in 2001 and has a total of 3 wins? | CREATE TABLE table_name_84 (last_final_lost VARCHAR, wins VARCHAR, last_win VARCHAR) | SELECT last_final_lost FROM table_name_84 WHERE wins = "3" AND last_win = "2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
5064,
834,
12406,
834,
2298,
17,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
336,
834,
3757,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
834,
12406,
834,
2298,
17,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
9204,
3274,
96,
519,
121,
3430,
336,
834,
3757,
3274,
96,
23658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the first name and birth date of all players from the country with code USA. | CREATE TABLE players (first_name VARCHAR, birth_date VARCHAR, country_code VARCHAR) | SELECT first_name, birth_date FROM players WHERE country_code = 'USA' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1508,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
3879,
834,
5522,
584,
4280,
28027,
6,
684,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
166,
564,
11,
3879,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
166,
834,
4350,
6,
3879,
834,
5522,
21680,
1508,
549,
17444,
427,
684,
834,
4978,
3274,
3,
31,
17663,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the pick for round 2 with the team Indianapolis Olympians? | CREATE TABLE table_12080 (
"Round" text,
"Pick" text,
"Position" text,
"Team" text,
"College" text
) | SELECT "Pick" FROM table_12080 WHERE "Round" = '2' AND "Team" = 'indianapolis olympians' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
2079,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
345,
3142,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
3142,
121,
21680,
953,
834,
15518,
2079,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
357,
31,
3430,
96,
18699,
121,
3274,
3,
31,
77,
8603,
9,
15621,
3,
32,
120,
1167,
7137,
31,
1,
-100,
-100,
... |
Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3? | CREATE TABLE table_name_10 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR) | SELECT location_attendance FROM table_name_10 WHERE high_assists = "luke ridnour (10)" AND date = "december 3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
833,
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,
1... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
40,
1598,
15,
5413,
29,
1211,
41,
16968,
121,
3430,
833,
3274,
96,
221,
75,
18247,
220,
121,
1,
-100,
... |
In 2009, what Appearances had a Winning Percentage of less than 0? | CREATE TABLE table_name_30 (
appearances INTEGER,
season_s_ VARCHAR,
winning_percentage VARCHAR
) | SELECT AVG(appearances) FROM table_name_30 WHERE season_s_ = "2009" AND winning_percentage < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
3179,
7,
3,
21342,
17966,
6,
774,
834,
7,
834,
584,
4280,
28027,
6,
3447,
834,
883,
3728,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
3096,
2741,
663,
7,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
774,
834,
7,
834,
3274,
96,
16660,
121,
3430,
3447,
834,
883,
3728,
545,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission year is less than 2190 and lab test name is % hemoglobin a1c? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2190" AND lab.label = "% Hemoglobin A1c" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the first electedfor district ohio 18 | CREATE TABLE table_1342249_35 (first_elected VARCHAR, district VARCHAR) | SELECT first_elected FROM table_1342249_35 WHERE district = "Ohio 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2884,
3647,
834,
2469,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
166,
8160,
1161,
3939,
3,
32,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23747,
2884,
3647,
834,
2469,
549,
17444,
427,
3939,
3274,
96,
15046,
23,
32,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the till agra is 1050, what is the max round trip? | CREATE TABLE table_19787093_1 (
for_round_trip INTEGER,
till_agra VARCHAR
) | SELECT MAX(for_round_trip) FROM table_19787093_1 WHERE till_agra = 1050 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3940,
2518,
4271,
834,
536,
41,
21,
834,
7775,
834,
14192,
3,
21342,
17966,
6,
6501,
834,
9,
3484,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1161,
834,
7775,
834,
14192,
61,
21680,
953,
834,
2294,
3940,
2518,
4271,
834,
536,
549,
17444,
427,
6501,
834,
9,
3484,
3274,
335,
1752,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Relation has a Type of tv, and a Name of ohanami? | CREATE TABLE table_13428 (
"Name" text,
"Type" text,
"Relation" text,
"Length" text,
"Year" real
) | SELECT "Relation" FROM table_13428 WHERE "Type" = 'tv' AND "Name" = 'ohanami' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2577,
41,
96,
23954,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
1649,
6105,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
476,
2741,
121,
490,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
6105,
121,
21680,
953,
834,
23747,
2577,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
17,
208,
31,
3430,
96,
23954,
121,
3274,
3,
31,
32,
2618,
3690,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the rank of the film directed by danny devito? | CREATE TABLE table_name_32 (
rank VARCHAR,
director VARCHAR
) | SELECT rank FROM table_name_32 WHERE director = "danny devito" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
11003,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
814,
6640,
57,
1352,
63,
20,
5566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2090,
3274,
96,
26,
15159,
20,
5566,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Whatis the total number of half marathon (mens) that represented kazakhstan? | CREATE TABLE table_11391954_3 (Half VARCHAR, country VARCHAR) | SELECT COUNT(Half) AS marathon__mens_ FROM table_11391954_3 WHERE country = "Kazakhstan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3288,
2294,
5062,
834,
519,
41,
566,
138,
89,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
159,
8,
792,
381,
13,
985,
17625,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
566,
138,
89,
61,
6157,
17625,
834,
834,
904,
7,
834,
21680,
953,
834,
2596,
3288,
2294,
5062,
834,
519,
549,
17444,
427,
684,
3274,
96,
439,
9,
172,
18965,
5627,
121,
1,
-100,
-100,
-100,
-100,
... |
what is admission time and discharge time of subject id 64208? | 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 demographic.admittime, demographic.dischtime FROM demographic WHERE demographic.subject_id = "64208" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
20466,
17,
715,
6,
14798,
5,
26,
2499,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4389,
23946,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When us open (2) is the championship what is the surface? | CREATE TABLE table_24901152_2 (surface VARCHAR, championship VARCHAR) | SELECT surface FROM table_24901152_2 WHERE championship = "US Open (2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2394,
15660,
357,
834,
357,
41,
26899,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
178,
539,
6499,
19,
8,
10183,
125,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
2266,
2394,
15660,
357,
834,
357,
549,
17444,
427,
10183,
3274,
96,
3063,
2384,
6499,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the partner when the championship was us open on a hard surface? | CREATE TABLE table_name_30 (
partner VARCHAR,
surface VARCHAR,
championship VARCHAR
) | SELECT partner FROM table_name_30 WHERE surface = "hard" AND championship = "us open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
2397,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2397,
116,
8,
10183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2397,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
10183,
3274,
96,
302,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which interview score corresponds with the evening gown score of 8.977? | CREATE TABLE table_17633 (
"State" text,
"Preliminaries" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
) | SELECT "Interview" FROM table_17633 WHERE "Evening Gown" = '8.977' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26782,
4201,
41,
96,
134,
4748,
121,
1499,
6,
96,
10572,
4941,
77,
5414,
121,
1499,
6,
96,
17555,
4576,
121,
1499,
6,
96,
134,
210,
603,
7628,
121,
1499,
6,
96,
427,
1926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17555,
4576,
121,
21680,
953,
834,
26782,
4201,
549,
17444,
427,
96,
427,
1926,
53,
350,
9197,
121,
3274,
3,
31,
927,
5,
4327,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Social AO has an External CO of simonas savickas, and an Internal CO of pieter kuijsten? | CREATE TABLE table_name_83 (
social_ao VARCHAR,
external_co VARCHAR,
internal_co VARCHAR
) | SELECT social_ao FROM table_name_83 WHERE external_co = "simonas savickas" AND internal_co = "pieter kuijsten" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
569,
834,
9,
32,
584,
4280,
28027,
6,
3866,
834,
509,
584,
4280,
28027,
6,
3224,
834,
509,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
569,
834,
9,
32,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
3866,
834,
509,
3274,
96,
28348,
29,
9,
7,
3,
7,
2960,
2406,
9,
7,
121,
3430,
3224,
834,
509,
3274,
96,
8082,
449,
3,
2729,
23,
354,
1913,
12... |
Which Historical Photos were taken at prospect 43 prospect ave? | CREATE TABLE table_name_46 (historical_photos VARCHAR, location VARCHAR) | SELECT historical_photos FROM table_name_46 WHERE location = "prospect 43 prospect ave" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
28005,
138,
834,
17720,
7,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17885,
15394,
130,
1026,
44,
10263,
8838,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4332,
834,
17720,
7,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1128,
3274,
96,
1409,
5628,
8838,
10263,
3,
9,
162,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose insurance is medicare and diagnoses short title is neutropenia nos? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.short_title = "Neutropenia NOS" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Can you tell me the lowest Crowd that has the Away team of melbourne tigers? | CREATE TABLE table_name_24 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MIN(crowd) FROM table_name_24 WHERE away_team = "melbourne tigers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
7402,
15343,
26,
24,
65,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
550,
834,
11650,
3274,
96,
2341,
26255,
3,
2880,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which modern house title translates to prison? | CREATE TABLE table_name_46 (modern_title_of_house VARCHAR, translation VARCHAR) | SELECT modern_title_of_house FROM table_name_46 WHERE translation = "prison" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
18306,
834,
21869,
834,
858,
834,
1840,
584,
4280,
28027,
6,
7314,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
941,
629,
2233,
3,
29213,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
941,
834,
21869,
834,
858,
834,
1840,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
7314,
3274,
96,
2246,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT POINTS 1 HAD A 22 LOST? | CREATE TABLE table_name_88 (points_1 VARCHAR, lost VARCHAR) | SELECT points_1 FROM table_name_88 WHERE lost = 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2700,
7,
834,
536,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
9915,
13777,
134,
209,
454,
6762,
71,
1630,
301... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
834,
536,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1513,
3274,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What wast the percent cut for the nation with an 80% full gas storage? | CREATE TABLE table_21690339_1 (
_percentage_cut VARCHAR,
gas_storage VARCHAR
) | SELECT _percentage_cut FROM table_21690339_1 WHERE gas_storage = "80% full" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3951,
4928,
3288,
834,
536,
41,
3,
834,
883,
3728,
545,
834,
3044,
584,
4280,
28027,
6,
1807,
834,
7279,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
834,
883,
3728,
545,
834,
3044,
21680,
953,
834,
2658,
3951,
4928,
3288,
834,
536,
549,
17444,
427,
1807,
834,
7279,
545,
3274,
96,
10370,
423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find out the number of patients who have drug code epo3i. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "EPO3I" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
The 147.481 Qual, happened in what year? | CREATE TABLE table_name_15 (
year VARCHAR,
qual VARCHAR
) | SELECT year FROM table_name_15 WHERE qual = "147.481" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
215,
584,
4280,
28027,
6,
3,
11433,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
3,
24719,
5,
3707,
536,
2415,
138,
6,
2817,
16,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
3,
11433,
3274,
96,
24719,
5,
3707,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many times did the competitor finish first in the javelin throw ? | CREATE TABLE table_204_813 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | SELECT COUNT(*) FROM table_204_813 WHERE "position" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
2368,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
15,
2169,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
953,
834,
26363,
834,
927,
2368,
549,
17444,
427,
96,
4718,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the distance (in meters) when the shuttle time is 6.86 seconds? | CREATE TABLE table_21784 (
"Level" real,
"Shuttles" real,
"Cumulative Shuttles" real,
"Speed (km/h)" text,
"Shuttle Time (seconds)" text,
"Total level time (s)" text,
"Distance (m)" real,
"Cumulative Distance (m)" real,
"Cumulative Time (min and seconds)" text
) | SELECT MIN("Distance (m)") FROM table_21784 WHERE "Shuttle Time (seconds)" = '6.86' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
4608,
41,
96,
25465,
121,
490,
6,
96,
134,
13985,
17,
965,
121,
490,
6,
96,
15784,
4115,
1528,
28099,
7,
121,
490,
6,
96,
28328,
41,
5848,
87,
107,
61,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
23,
8389,
41,
51,
61,
8512,
21680,
953,
834,
357,
2517,
4608,
549,
17444,
427,
96,
10499,
76,
8692,
2900,
41,
12091,
7,
61,
121,
3274,
3,
31,
948,
5,
3840,
31,
1,
-100,
-100,
-100,
-100,... |
How many games are associated with a record of 29-10? | CREATE TABLE table_22654073_8 (
game VARCHAR,
record VARCHAR
) | SELECT COUNT(game) FROM table_22654073_8 WHERE record = "29-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4122,
2445,
4552,
834,
927,
41,
467,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
33,
1968,
28,
3,
9,
1368,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
2884,
4122,
2445,
4552,
834,
927,
549,
17444,
427,
1368,
3274,
96,
3166,
4536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Date has a Record of 58 10? | CREATE TABLE table_35944 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Date" FROM table_35944 WHERE "Record" = '58–10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3390,
3628,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
3390,
3628,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
3449,
104,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the worst score for the worst dancer(s) john barnes, with a best score of 36? | CREATE TABLE table_name_95 (worst_score VARCHAR, best_score VARCHAR, worst_dancer_s_ VARCHAR) | SELECT worst_score FROM table_name_95 WHERE best_score = 36 AND worst_dancer_s_ = "john barnes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
210,
127,
7,
17,
834,
7,
9022,
584,
4280,
28027,
6,
200,
834,
7,
9022,
584,
4280,
28027,
6,
6025,
834,
3768,
2110,
834,
7,
834,
584,
4280,
28027,
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,
6025,
834,
7,
9022,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
200,
834,
7,
9022,
3274,
4475,
3430,
6025,
834,
3768,
2110,
834,
7,
834,
3274,
96,
27341,
1207,
1496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total enrollment for a private/catholic affiliation and founded after 1842? | CREATE TABLE table_name_1 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR) | SELECT COUNT(enrollment) FROM table_name_1 WHERE affiliation = "private/catholic" AND founded > 1842 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
35,
4046,
297,
584,
4280,
28027,
6,
24405,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
17938,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
35,
4046,
297,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
24405,
3274,
96,
26881,
87,
2138,
26641,
121,
3430,
5710,
2490,
507,
4165,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many incumbents were first elected in 1984? | CREATE TABLE table_1341453_40 (incumbent VARCHAR, first_elected VARCHAR) | SELECT COUNT(incumbent) FROM table_1341453_40 WHERE first_elected = "1984" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2534,
4867,
834,
2445,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
28406,
7,
130,
166,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
77,
75,
5937,
295,
61,
21680,
953,
834,
23747,
2534,
4867,
834,
2445,
549,
17444,
427,
166,
834,
19971,
3274,
96,
24151,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What country does Glory Alozie play for? | CREATE TABLE table_name_15 (country VARCHAR, name VARCHAR) | SELECT country FROM table_name_15 WHERE name = "glory alozie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
17529,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
405,
9840,
651,
901,
32,
5600,
577,
21,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
564,
3274,
96,
9680,
651,
491,
32,
5600,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the earliest week the team played the chicago cardinals in front of less than 25,312? | CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR) | SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
8041,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
16454,
471,
8,
372,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8041,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
15264,
3274,
96,
1436,
658,
839,
895,
10270,
7,
121,
3430,
11364,
3,
2,
944,
3,
15316,
20788,
220,
2122,
1,
-100,
-100,
-100,
-100,
-100,
... |
How much total money does player tommy bolt, who has a to par of 9, have? | CREATE TABLE table_44866 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT COUNT("Money ( $ )") FROM table_44866 WHERE "To par" = '9' AND "Player" = 'tommy bolt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
26750,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
6,
96,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
9168,
15,
63,
41,
1514,
3,
61,
8512,
21680,
953,
834,
3628,
26750,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
1298,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
235,
635,
63,
12862,
3... |
What team did Alireza mansourian leave? | CREATE TABLE table_24913 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Team" FROM table_24913 WHERE "Outgoing manager" = 'Alireza Mansourian' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3647,
2368,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
357,
3647,
2368,
549,
17444,
427,
96,
15767,
9545,
2743,
121,
3274,
3,
31,
188,
40,
23,
2638,
9,
1140,
7,
1063,
5288,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the enrollment number for the public institution in Golden, Colorado founded after 1874? | CREATE TABLE table_40710 (
"Location" text,
"Control" text,
"Type" text,
"Enrollment" real,
"Founded" real
) | SELECT AVG("Enrollment") FROM table_40710 WHERE "Control" = 'public' AND "Location" = 'golden, colorado' AND "Founded" > '1874' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
940,
1714,
41,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
25716,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
20100,
121,
490,
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,
71,
17217,
599,
121,
8532,
4046,
297,
8512,
21680,
953,
834,
2445,
940,
1714,
549,
17444,
427,
96,
25716,
121,
3274,
3,
31,
15727,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
14910,
35,
6,
945,
9,
26,
32,
... |
What is the mean number of laps where time/retired was +1:05.564? | CREATE TABLE table_10428 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Laps") FROM table_10428 WHERE "Time/Retired" = '+1:05.564' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
2577,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
15442,
2577,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
18446,
10,
632,
15938,
4389,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What couple had a total of 8? | CREATE TABLE table_26375386_16 (couple VARCHAR, total VARCHAR) | SELECT couple FROM table_26375386_16 WHERE total = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
22954,
519,
3840,
834,
2938,
41,
15976,
109,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1158,
141,
3,
9,
792,
13,
505,
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,
1158,
21680,
953,
834,
2688,
22954,
519,
3840,
834,
2938,
549,
17444,
427,
792,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the country named feeney with a bbc sport start source? | CREATE TABLE table_name_16 (country VARCHAR, start_source VARCHAR, name VARCHAR) | SELECT country FROM table_name_16 WHERE start_source = "bbc sport" AND name = "feeney" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
17529,
584,
4280,
28027,
6,
456,
834,
7928,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
684,
2650,
2572,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
456,
834,
7928,
3274,
96,
115,
115,
75,
2600,
121,
3430,
564,
3274,
96,
89,
15,
15,
3186,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the college that has 7 rounds and boston celtics team | CREATE TABLE table_56190 (
"Round" text,
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text,
"College" text
) | SELECT "College" FROM table_56190 WHERE "Team" = 'boston celtics' AND "Round" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
11776,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
345,
3142,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9939,
7883,
121,
21680,
953,
834,
4834,
11776,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
115,
32,
4411,
1503,
7636,
31,
3430,
96,
448,
32,
1106,
121,
3274,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which English winning song had the winner aris runtuwene? | CREATE TABLE table_name_7 (
English VARCHAR,
winner VARCHAR
) | SELECT WINNING_SONG(English AS Title) FROM table_name_7 WHERE winner = "aris runtuwene" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1566,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1566,
3447,
2324,
141,
8,
4668,
3,
1665,
7,
661,
17,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
21394,
567,
2365,
834,
134,
15628,
599,
26749,
6157,
11029,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
4668,
3274,
96,
1665,
7,
661,
17,
76,
210,
35,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the position for indiana state | CREATE TABLE table_name_17 (position VARCHAR, school VARCHAR) | SELECT position FROM table_name_17 WHERE school = "indiana state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
4718,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1102,
21,
16,
8603,
9,
538,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
496,
3274,
96,
77,
8603,
9,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What city is 103.3 FM licensed in? | CREATE TABLE table_77343 (
"Call sign" text,
"Frequency" text,
"City of license" text,
"State" text,
"FCC info" text
) | SELECT "City of license" FROM table_77343 WHERE "Frequency" = '103.3 fm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3710,
519,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
13,
3344,
121,
21680,
953,
834,
4013,
3710,
519,
549,
17444,
427,
96,
371,
60,
835,
11298,
121,
3274,
3,
31,
1714,
19660,
3,
89,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the date of the game against North Carolina? | CREATE TABLE table_75819 (
"Date" text,
"Opponent" text,
"Location" text,
"Result" text,
"Attendance" real
) | SELECT "Date" FROM table_75819 WHERE "Opponent" = 'north carolina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
927,
2294,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3072,
927,
2294,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
29,
127,
189,
443,
12057,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When the Winning score is 68-65-65-68=266, what is the Margin of victory? | CREATE TABLE table_name_59 (
margin_of_victory VARCHAR,
winning_score VARCHAR
) | SELECT margin_of_victory FROM table_name_59 WHERE winning_score = 68 - 65 - 65 - 68 = 266 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
549,
10503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
3651,
3,
18,
7123,
3,
18,
7123,
3,
18,
3,
3651,
3274,
204,
3539,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many stores are headquarted in each city Plot them as bar chart, rank by the x-axis from low to high. | CREATE TABLE product (
product_id int,
product text,
dimensions text,
dpi real,
pages_per_minute_color real,
max_page_size text,
interface text
)
CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
)
... | SELECT Headquartered_City, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.Store_ID = t2.Store_ID JOIN district AS t3 ON t2.District_ID = t3.District_ID GROUP BY t3.Headquartered_City ORDER BY Headquartered_City | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
556,
41,
556,
834,
23,
26,
16,
17,
6,
556,
1499,
6,
8393,
1499,
6,
3,
26,
102,
23,
490,
6,
1688,
834,
883,
834,
6890,
834,
9910,
490,
6,
9858,
834,
6492,
834,
7991,
1499,
6,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
15,
26,
834,
254,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
1078,
6157,
3,
17,
536,
3,
15355,
3162,
1078,
834,
26,
23,
20066,
6157,
3,
17,
357,
9191,
3,
17,
5411,
28719,
834,
4309,
3274,
3,
17,
441... |
How many rounds is the player Matthew Puempel associated with? | CREATE TABLE table_11803648_20 (round VARCHAR, player VARCHAR) | SELECT COUNT(round) FROM table_11803648_20 WHERE player = "Matthew Puempel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2079,
3420,
3707,
834,
1755,
41,
7775,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
19,
8,
1959,
9771,
5004,
29605,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
2596,
2079,
3420,
3707,
834,
1755,
549,
17444,
427,
1959,
3274,
96,
329,
144,
532,
210,
5004,
29605,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many places have as their cyrillic name and other names ? | CREATE TABLE table_2562572_27 (
settlement VARCHAR,
cyrillic_name_other_names VARCHAR
) | SELECT COUNT(settlement) FROM table_2562572_27 WHERE cyrillic_name_other_names = "Његошево" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
2555,
41,
7025,
584,
4280,
28027,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2244,
17,
3335,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
2555,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
3274,
96,
2,
1757,
2,
2044,
2,
1757,
19414,
121,
... |
what is the location attendance when the record is 39–7? | CREATE TABLE table_27715173_8 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_27715173_8 WHERE record = "39–7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4013,
26578,
4552,
834,
927,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1128,
11364,
116,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
357,
4013,
26578,
4552,
834,
927,
549,
17444,
427,
1368,
3274,
96,
3288,
104,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the fewest bronzes for ranks of 3 with totals under 2? | CREATE TABLE table_name_58 (
bronze INTEGER,
rank VARCHAR,
total VARCHAR
) | SELECT MIN(bronze) FROM table_name_58 WHERE rank = "3" AND total < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
13467,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
360,
222,
13467,
7,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
11003,
3274,
96,
519,
121,
3430,
792,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many sockets are listed that have a brand name of 'Core i3-2xx7m'? | CREATE TABLE table_24538587_11 (
socket VARCHAR,
brand_name__list_ VARCHAR
) | SELECT COUNT(socket) FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-2xx7M" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4867,
4433,
4225,
834,
2596,
41,
16197,
584,
4280,
28027,
6,
1056,
834,
4350,
834,
834,
3350,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
161... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
3961,
15,
17,
61,
21680,
953,
834,
2266,
4867,
4433,
4225,
834,
2596,
549,
17444,
427,
1056,
834,
4350,
834,
834,
3350,
834,
3274,
96,
13026,
15,
3,
23,
21160,
19230,
940,
329,
121,
1,
-100,
-... |
What is the fleet number for the model with Serial number 68056? | CREATE TABLE table_name_27 (
fleet_number_s_ VARCHAR,
serial_numbers VARCHAR
) | SELECT fleet_number_s_ FROM table_name_27 WHERE serial_numbers = "68056" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
9111,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
10501,
834,
5525,
1152,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9111,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
10501,
834,
5525,
1152,
7,
3274,
96,
948,
2079,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the ANSI code of the township where the area is 35.737 square miles? | CREATE TABLE table_18600760_18 (ansi_code INTEGER, land___sqmi__ VARCHAR) | SELECT MIN(ansi_code) FROM table_18600760_18 WHERE land___sqmi__ = "35.737" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
2606,
41,
3247,
23,
834,
4978,
3,
21342,
17966,
6,
1322,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
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,
3,
17684,
599,
3247,
23,
834,
4978,
61,
21680,
953,
834,
24700,
4560,
3328,
834,
2606,
549,
17444,
427,
1322,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
3274,
96,
2469,
5,
27931,
121,
1,
-100,
-100,
-100,
-100,
-10... |
What is Jeremy Duchesne's position? | CREATE TABLE table_name_67 (
position VARCHAR,
player VARCHAR
) | SELECT position FROM table_name_67 WHERE player = "jeremy duchesne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
18540,
970,
2951,
29,
15,
31,
7,
1102,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1959,
3274,
96,
12488,
15,
2258,
146,
2951,
29,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Total, when Rank Points is '15', and when Event is 'WC Beijing'? | CREATE TABLE table_60172 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
) | SELECT "Total" FROM table_60172 WHERE "Rank points" = '15' AND "Event" = 'wc beijing' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
27156,
41,
96,
10499,
32,
32,
449,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
22557,
979,
121,
1499,
6,
96,
134,
9022,
979,
121,
1499,
6,
96,
3696,
1947,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
1947,
121,
21680,
953,
834,
3328,
27156,
549,
17444,
427,
96,
22557,
979,
121,
3274,
3,
31,
1808,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
210,
75,
468,
354,
53,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the season record when the location attendance was Air Canada Centre 19,800? | CREATE TABLE table_name_26 (record VARCHAR, location_attendance VARCHAR) | SELECT record FROM table_name_26 WHERE location_attendance = "air canada centre 19,800" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
60,
7621,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
774,
1368,
116,
8,
1128,
11364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
2256,
19343,
2050,
12370,
6192,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the numbers for the order number 713096-713119? | CREATE TABLE table_2351952_1 (numbers VARCHAR, order_number VARCHAR) | SELECT numbers FROM table_2351952_1 WHERE order_number = "713096-713119" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
22464,
357,
834,
536,
41,
5525,
1152,
7,
584,
4280,
28027,
6,
455,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
2302,
21,
8,
455... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2302,
21680,
953,
834,
25174,
22464,
357,
834,
536,
549,
17444,
427,
455,
834,
5525,
1152,
3274,
96,
4450,
1458,
4314,
6832,
2368,
19993,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Year(s), when Tournament is 'World Championships'? | CREATE TABLE table_49798 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT COUNT("Year") FROM table_49798 WHERE "Tournament" = 'world championships' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4327,
3916,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5420,
1313,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
591,
4327,
3916,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
7276,
10183,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the ids of orders which are shipped after 2000-01-01. | CREATE TABLE shipments (
shipment_id number,
order_id number,
invoice_number number,
shipment_tracking_number text,
shipment_date time,
other_shipment_details text
)
CREATE TABLE order_items (
order_item_id number,
product_id number,
order_id number,
order_item_status text,
... | SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
30645,
41,
19843,
834,
23,
26,
381,
6,
455,
834,
23,
26,
381,
6,
10921,
834,
5525,
1152,
381,
6,
19843,
834,
17,
22499,
834,
5525,
1152,
1499,
6,
19843,
834,
5522,
97,
6,
119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
455,
834,
23,
26,
21680,
3,
30645,
549,
17444,
427,
19843,
834,
5522,
2490,
96,
13527,
14772,
14772,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result in the voting district Kentucky 2? | CREATE TABLE table_1342218_17 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1342218_17 WHERE district = "Kentucky 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2884,
2606,
834,
2517,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
16,
8,
10601,
3939,
13401,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
23747,
2884,
2606,
834,
2517,
549,
17444,
427,
3939,
3274,
96,
439,
295,
4636,
63,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average ANSI code for the town of Sherman and the smaller of the water area in square miles than 0.005? | CREATE TABLE table_62965 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
) | SELECT AVG("ANSI code") FROM table_62965 WHERE "Township" = 'sherman' AND "Water (sqmi)" < '0.005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3166,
4122,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16897,
196,
1081,
8512,
21680,
953,
834,
948,
3166,
4122,
549,
17444,
427,
96,
382,
9197,
2009,
121,
3274,
3,
31,
7,
760,
348,
31,
3430,
96,
28632,
41,
7,
1824,
51,
23,
61,
121,
3,
2,
3,
3... |
Give me the number of patients less than 81 years who had an insertion of endotracheal tube procedure. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "81" AND procedures.long_title = "Insertion of endotracheal tube" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the result of the friendly match in Seoul? | CREATE TABLE table_name_47 (
result VARCHAR,
competition VARCHAR,
venue VARCHAR
) | SELECT result FROM table_name_47 WHERE competition = "friendly match" AND venue = "seoul" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
741,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
2609,
1588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
2259,
3274,
96,
4905,
1588,
121,
3430,
5669,
3274,
96,
7,
15,
7115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many wines are there for each grape, and I want to display by the X in ascending. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TE... | SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape | [
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,
8319,
6105,
7,
41,
465,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29083,
6,
2847,
17161,
599,
1935,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
29083,
4674,
11300,
272,
476,
29083,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the cost for diagnosis of s/p embolectomy? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 's/p embolectomy') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
25930,
4844,
159,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
25930,
4844,
159,
23,
... |
what is the position for pick # 103? | CREATE TABLE table_3649 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Position" FROM table_3649 WHERE "Pick #" = '103' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
3647,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
3420,
3647,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
17864,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the number of points for right halfback and starter being yes | CREATE TABLE table_14342480_5 (
points VARCHAR,
position VARCHAR,
starter VARCHAR
) | SELECT COUNT(points) FROM table_14342480_5 WHERE position = "Right halfback" AND starter = "yes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
20579,
834,
755,
41,
979,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
11933,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
25133,
4165,
20579,
834,
755,
549,
17444,
427,
1102,
3274,
96,
448,
2632,
985,
1549,
121,
3430,
11933,
3274,
96,
10070,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Visualize a bar chart about the distribution of Date_of_Birth and Weight . | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Date_of_Birth, Weight FROM people | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
14230,
21680,
151,
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,
-10... |
Which Location has a Game greater than 20 and a Date of Wed. Dec. 26? | CREATE TABLE table_8492 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Location" FROM table_8492 WHERE "Game" > '20' AND "Date" = 'wed. dec. 26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4608,
4508,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
4608,
4508,
549,
17444,
427,
96,
23055,
121,
2490,
3,
31,
1755,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
1123,
26,
5,
20,
75,
5,
2208,
31,
1,
-100,
-100,
-100,
-100... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday, I want to display from low to high by the mean salary. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_... | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
... |
What is the number of booking end dates of the apartments with type code 'Duplex' in each year? Return a bar chart, could you show from low to high by the Y-axis? | CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
... | SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" ORDER BY COUNT(booking_start_date) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
371,
9,
13067,
3010,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3064,
834,
4978,
3,
28027,
599,
1808,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5038,
834,
989,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
989,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
15970,
7,
6157,
332,
357,
9191,
332,
5411,
6789,
834,
23,
26,
327... |
What is the height in meters for a building in Frankfurt that is 850 feet tall? | CREATE TABLE table_56860 (
"Name" text,
"City" text,
"Height (m)" real,
"Height (ft)" real,
"Floors" real,
"Years as tallest" text
) | SELECT "Height (m)" FROM table_56860 WHERE "City" = 'frankfurt' AND "Height (ft)" = '850' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3651,
3328,
41,
96,
23954,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
3845,
2632,
41,
51,
61,
121,
490,
6,
96,
3845,
2632,
41,
89,
17,
61,
121,
490,
6,
96,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
2632,
41,
51,
61,
121,
21680,
953,
834,
755,
3651,
3328,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
89,
6254,
9827,
17,
31,
3430,
96,
3845,
2632,
41,
89,
17,
61,
121,
3274,
3,
31,
17246,
31,
1,... |
When the total score is 740, what is tromso? | CREATE TABLE table_19439864_2 (tromsø INTEGER, total VARCHAR) | SELECT MIN(tromsø) FROM table_19439864_2 WHERE total = 740 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4906,
3916,
4389,
834,
357,
41,
17,
3522,
7,
2,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
792,
2604,
19,
489,
2445,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
17,
3522,
7,
2,
61,
21680,
953,
834,
2294,
4906,
3916,
4389,
834,
357,
549,
17444,
427,
792,
3274,
489,
2445,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the TNS-Sofres when Ipsos was 27%? | CREATE TABLE table_name_51 (
tns_sofres_6_2_09 VARCHAR,
ipsos_6_3_09 VARCHAR
) | SELECT tns_sofres_6_2_09 FROM table_name_51 WHERE ipsos_6_3_09 = "27%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
3,
17,
29,
7,
834,
7,
858,
60,
7,
834,
948,
834,
357,
834,
4198,
584,
4280,
28027,
6,
3,
15432,
32,
7,
834,
948,
834,
519,
834,
4198,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
29,
7,
834,
7,
858,
60,
7,
834,
948,
834,
357,
834,
4198,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
3,
15432,
32,
7,
834,
948,
834,
519,
834,
4198,
3274,
96,
357,
6170,
121,
1,
-100,
-100,
-100... |
What is the Opponents on a clay surface with christophe rochus as partner? | CREATE TABLE table_name_57 (opponents VARCHAR, surface VARCHAR, partner VARCHAR) | SELECT opponents FROM table_name_57 WHERE surface = "clay" AND partner = "christophe rochus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
32,
102,
9977,
7,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4495,
9977,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
16383,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
2397,
3274,
96,
15294,
10775,
15,
3,
11492,
302,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Draw a bar chart for how many students are affected by each allergy type? | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGE... | SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
4498,
834,
6838,
49,
122,
63,
6157,
332,
536,
3,
15355,
3162,
432,
49,
122,
63,
834,
25160,
6157,
332,
357,
9191,
332,
5411,
6838,
49,
122,
63,
3274,
... |
Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1% | CREATE TABLE table_2668352_11 (first_elected VARCHAR, candidates VARCHAR) | SELECT first_elected FROM table_2668352_11 WHERE candidates = "Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.1%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
2469,
357,
834,
2596,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
166,
8160,
21,
3,
9672,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
2688,
3651,
2469,
357,
834,
2596,
549,
17444,
427,
4341,
3274,
96,
4489,
7,
15,
9,
283,
1647,
155,
17,
41,
371,
61,
3,
3436,
5,
7561,
2194,
7,
23,
9,
107,
14119,
41,
3913,
61,
... |
Where does CF Pachuca play? | CREATE TABLE table_name_64 (
game_site VARCHAR,
opponent VARCHAR
) | SELECT game_site FROM table_name_64 WHERE opponent = "cf pachuca" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
467,
834,
3585,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
405,
3,
7380,
276,
1836,
18283,
577,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
3585,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
15264,
3274,
96,
75,
89,
2576,
8019,
658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many scores were at the Northville Long Island Classic? | CREATE TABLE table_11621873_1 (
score VARCHAR,
tournament VARCHAR
) | SELECT COUNT(score) FROM table_11621873_1 WHERE tournament = "Northville Long Island Classic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
357,
2606,
4552,
834,
536,
41,
2604,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7586,
130,
44,
8,
1117,
1420,
3230,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7,
9022,
61,
21680,
953,
834,
20159,
357,
2606,
4552,
834,
536,
549,
17444,
427,
5892,
3274,
96,
22969,
1420,
3230,
2834,
6744,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.