NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Give me a histogram for what are the different parties of representative? Show the party name and the number of representatives in each party, and I want to order the total number from high to low order. | CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
)
CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
) | SELECT Party, COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6978,
41,
13517,
834,
4309,
16,
17,
6,
5570,
1499,
6,
1015,
1499,
6,
3450,
1499,
6,
2330,
7,
2837,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
19488,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3450,
6,
2847,
17161,
599,
1935,
61,
21680,
6978,
350,
4630,
6880,
272,
476,
3450,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many points were scored against the Toronto Rebels? | CREATE TABLE table_28425 (
"Club" text,
"Wins" real,
"Losses" real,
"Points For" real,
"Points Against" real,
"Percentage" text,
"Points" real
) | SELECT MAX("Points Against") FROM table_28425 WHERE "Club" = 'Toronto Rebels' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
1828,
41,
96,
254,
11158,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
22512,
7,
242,
121,
490,
6,
96,
22512,
7,
3,
20749,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
3,
20749,
8512,
21680,
953,
834,
357,
4608,
1828,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
3696,
4438,
32,
24438,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the sources for Bandung? | CREATE TABLE table_45156 (
"Rank" real,
"City" text,
"Country" text,
"Population" real,
"Area (km\u00b2)" real,
"Sources of Pop. / Area" text
) | SELECT "Sources of Pop. / Area" FROM table_45156 WHERE "City" = 'bandung' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
25463,
41,
96,
22557,
121,
490,
6,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
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,
23799,
7,
13,
5777,
5,
3,
87,
5690,
121,
21680,
953,
834,
2128,
25463,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
3348,
425,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
maximum age is 85 for patients with alzheimer's disease; there is no maximum age for normal volunteers. | CREATE TABLE table_train_90 (
"id" int,
"gender" string,
"alzheimer" bool,
"breast_cancer" bool,
"smoking" bool,
"heart_rate" int,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_90 WHERE (alzheimer = 1 AND age <= 85) OR alzheimer = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2394,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
138,
172,
3254,
49,
121,
3,
12840,
40,
6,
96,
1999,
9,
7,
17,
834,
1608,
2110,
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,
1429,
21680,
953,
834,
9719,
834,
2394,
549,
17444,
427,
41,
138,
172,
3254,
49,
3274,
209,
3430,
1246,
3,
2,
2423,
11989,
61,
4674,
491,
172,
3254,
49,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What team was the away team when the home team was Hereford United? | CREATE TABLE table_name_32 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_32 WHERE home_team = "hereford united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
550,
372,
116,
8,
234,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
234,
834,
11650,
3274,
96,
88,
60,
2590,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose drug name is glycopyrrolate? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Glycopyrrolate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Which surface do opponents of Thomas Oger Nicolas Tourte have? | CREATE TABLE table_name_18 (
surface VARCHAR,
opponents VARCHAR
) | SELECT surface FROM table_name_18 WHERE opponents = "thomas oger nicolas tourte" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
1774,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1774,
103,
16383,
13,
3576,
411,
1304,
18817,
3351,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
834,
2606,
549,
17444,
427,
16383,
3274,
96,
189,
32,
2754,
3,
32,
1304,
3,
29,
23,
12600,
7,
1552,
17,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was rickie winslow's number? | CREATE TABLE table_22496374_1 (
_number INTEGER,
name VARCHAR
) | SELECT MAX(_number) FROM table_22496374_1 WHERE name = "Rickie Winslow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3647,
3891,
4581,
834,
536,
41,
3,
834,
5525,
1152,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
3,
5206,
23,
15,
9204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
834,
5525,
1152,
61,
21680,
953,
834,
2884,
3647,
3891,
4581,
834,
536,
549,
17444,
427,
564,
3274,
96,
448,
447,
11390,
4871,
7,
3216,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the championship for the year of 1993? | CREATE TABLE table_22834834_2 (championship VARCHAR, year VARCHAR) | SELECT championship FROM table_22834834_2 WHERE year = 1993 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4591,
3707,
3710,
834,
357,
41,
17788,
12364,
2009,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
10183,
21,
8,
215,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10183,
21680,
953,
834,
2884,
4591,
3707,
3710,
834,
357,
549,
17444,
427,
215,
3274,
8388,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score of the match on 11/2/01? | CREATE TABLE table_name_94 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_94 WHERE date = "11/2/01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
1588,
30,
209,
17637,
87,
4542,
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,
2604,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
833,
3274,
96,
536,
17637,
87,
4542,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the directors for peter gawler | CREATE TABLE table_25764073_3 (director_s_ VARCHAR, writer_s_ VARCHAR) | SELECT director_s_ FROM table_25764073_3 WHERE writer_s_ = "Peter Gawler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3959,
2445,
4552,
834,
519,
41,
25982,
834,
7,
834,
584,
4280,
28027,
6,
4346,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
10392,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
834,
7,
834,
21680,
953,
834,
1828,
3959,
2445,
4552,
834,
519,
549,
17444,
427,
4346,
834,
7,
834,
3274,
96,
345,
15,
449,
2776,
210,
1171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many patients had s/p fall as their primary disease? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "S/P FALL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
134,
87,
345,
377,
12126,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, find name and the average of price , and group by attribute name, and visualize them by a bar chart, order Y from high to low order. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Price DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
441... |
what is the total silver when total is 30 and bronze is more than 10? | CREATE TABLE table_name_85 (
silver VARCHAR,
total VARCHAR,
bronze VARCHAR
) | SELECT COUNT(silver) FROM table_name_85 WHERE total = 30 AND bronze > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
4294,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
792,
4294,
116,
792,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
792,
3274,
604,
3430,
13467,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011? | CREATE TABLE table_29087004_2 (
written_by VARCHAR,
united_states_original_airdate VARCHAR,
directed_by VARCHAR,
canada_original_airdate VARCHAR
) | SELECT written_by FROM table_29087004_2 WHERE directed_by = "Jos Humphrey" AND canada_original_airdate = "Unknown" AND united_states_original_airdate = "August 27, 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4018,
9295,
591,
834,
357,
41,
1545,
834,
969,
584,
4280,
28027,
6,
18279,
834,
5540,
7,
834,
21878,
834,
2256,
5522,
584,
4280,
28027,
6,
6640,
834,
969,
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,
1545,
834,
969,
21680,
953,
834,
3166,
4018,
9295,
591,
834,
357,
549,
17444,
427,
6640,
834,
969,
3274,
96,
683,
32,
7,
3455,
7656,
60,
63,
121,
3430,
19343,
834,
21878,
834,
2256,
5522,
3274,
96,
5110,
5661,
121,
... |
Who was Judge Jack Edward Tanner's chief judge? | CREATE TABLE table_56412 (
"Judge" text,
"State" text,
"Born/Died" text,
"Active service" text,
"Chief Judge" text,
"Senior status" text,
"Appointed by" text,
"Reason for termination" text
) | SELECT "Chief Judge" FROM table_56412 WHERE "Judge" = 'jack edward tanner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
591,
2122,
41,
96,
683,
13164,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
279,
127,
29,
87,
8639,
26,
121,
1499,
6,
96,
13035,
15,
313,
121,
1499,
6,
96,
3541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3541,
23,
15,
89,
12330,
121,
21680,
953,
834,
4834,
591,
2122,
549,
17444,
427,
96,
683,
13164,
121,
3274,
3,
31,
9325,
3,
15,
26,
2239,
3,
17,
152,
687,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which title has the most length ? | CREATE TABLE table_203_771 (
id number,
"#" number,
"artist" text,
"featuring" text,
"title" text,
"version" text,
"length" text
) | SELECT "title" FROM table_203_771 ORDER BY "length" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4013,
536,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
1408,
343,
121,
1499,
6,
96,
89,
1544,
7920,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
8674,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21869,
121,
21680,
953,
834,
23330,
834,
4013,
536,
4674,
11300,
272,
476,
96,
19457,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When fixed route is the type of fare how much is the 31-day pass? | CREATE TABLE table_20803241_1 (day_pass VARCHAR, type_of_fare VARCHAR) | SELECT 31 - day_pass FROM table_20803241_1 WHERE type_of_fare = "Fixed Route" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
2079,
2668,
4853,
834,
536,
41,
1135,
834,
3968,
584,
4280,
28027,
6,
686,
834,
858,
834,
89,
355,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
3599,
2981,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2664,
3,
18,
239,
834,
3968,
21680,
953,
834,
1755,
2079,
2668,
4853,
834,
536,
549,
17444,
427,
686,
834,
858,
834,
89,
355,
3274,
96,
3183,
226,
15,
26,
11198,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Population density (per km ) has a Change (%) larger than 4.9, and a Land area (km ) smaller than 15.59, and a Population (2011) larger than 790? | CREATE TABLE table_name_90 (
population_density__per_km²_ INTEGER,
population__2011_ VARCHAR,
change___percentage_ VARCHAR,
land_area__km²_ VARCHAR
) | SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
2074,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
3,
21342,
17966,
6,
2074,
834,
834,
13907,
834,
584,
4280,
28027,
6,
483,
834,
834,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
9791,
7830,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
483,
834,
834,
834,
883,
3728,
545,
834,
2490,
3,
27336,
3430,
1322,
834,
498,... |
What Class has a Quantity made of 5? | CREATE TABLE table_68986 (
"Class" text,
"Type" text,
"Fleet numbers" text,
"Quantity made" real,
"Manufacturer" text,
"Date made" text,
"Date withdrawn" text
) | SELECT "Class" FROM table_68986 WHERE "Quantity made" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3916,
948,
41,
96,
21486,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
371,
109,
15,
17,
2302,
121,
1499,
6,
96,
5991,
288,
485,
263,
121,
490,
6,
96,
7296,
76,
871... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21486,
121,
21680,
953,
834,
3651,
3916,
948,
549,
17444,
427,
96,
5991,
288,
485,
263,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose admission year is less than 2179 and diagnoses long title is pressure ulcer, stage ii? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2179" AND diagnoses.long_title = "Pressure ulcer, stage II" | [
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... |
Which Against has a Round of fourth round? | CREATE TABLE table_name_69 (against INTEGER, round VARCHAR) | SELECT MIN(against) FROM table_name_69 WHERE round = "fourth round" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
9,
16720,
7,
17,
3,
21342,
17966,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
20749,
65,
3,
9,
9609,
13,
4509,
1751,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1751,
3274,
96,
12521,
189,
1751,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who won Division North when Division Southwest was won by Novaci and Division West by Vrapčište? | CREATE TABLE table_name_75 (division_north VARCHAR, division_southwest VARCHAR, division_west VARCHAR) | SELECT division_north FROM table_name_75 WHERE division_southwest = "novaci" AND division_west = "vrapčište" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
26,
23,
6610,
834,
29,
127,
189,
584,
4280,
28027,
6,
4889,
834,
7,
670,
107,
12425,
584,
4280,
28027,
6,
4889,
834,
12425,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4889,
834,
29,
127,
189,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
4889,
834,
7,
670,
107,
12425,
3274,
96,
5326,
4268,
121,
3430,
4889,
834,
12425,
3274,
96,
11473,
102,
2,
23,
2,
17,
15,
121,
1,
-100,
... |
What was the conference record for the Pandas when they were first in the standings in the 2003-04 season? | CREATE TABLE table_27069503_2 (
conf_record VARCHAR,
standings VARCHAR,
season VARCHAR
) | SELECT conf_record FROM table_27069503_2 WHERE standings = "First" AND season = "2003-04" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
3951,
1752,
519,
834,
357,
41,
3,
9707,
834,
60,
7621,
584,
4280,
28027,
6,
4125,
7,
584,
4280,
28027,
6,
774,
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,
3,
9707,
834,
60,
7621,
21680,
953,
834,
17485,
3951,
1752,
519,
834,
357,
549,
17444,
427,
4125,
7,
3274,
96,
25171,
121,
3430,
774,
3274,
96,
23948,
18083,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the title of the single with the peak position of 10 and weeks on chart is less than 19? | CREATE TABLE table_name_7 (
title VARCHAR,
peak_position VARCHAR,
weeks_on_chart VARCHAR
) | SELECT title FROM table_name_7 WHERE peak_position = 10 AND weeks_on_chart < 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
2233,
584,
4280,
28027,
6,
6734,
834,
4718,
584,
4280,
28027,
6,
1274,
834,
106,
834,
4059,
17,
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,
2233,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
6734,
834,
4718,
3274,
335,
3430,
1274,
834,
106,
834,
4059,
17,
3,
2,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many customers do we have? | CREATE TABLE Customers (
Id VARCHAR
) | SELECT COUNT(*) FROM Customers | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
722,
103,
62,
43,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
16423,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the lowest apparent magnitude when the object type is spiral galaxy, the constellation is leo minor and the ngc number is more than 3021? | CREATE TABLE table_name_66 (apparent_magnitude INTEGER, ngc_number VARCHAR, object_type VARCHAR, constellation VARCHAR) | SELECT MIN(apparent_magnitude) FROM table_name_66 WHERE object_type = "spiral galaxy" AND constellation = "leo minor" AND ngc_number > 3021 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
10198,
295,
834,
7493,
29,
20341,
3,
21342,
17966,
6,
3,
1725,
75,
834,
5525,
1152,
584,
4280,
28027,
6,
3735,
834,
6137,
584,
4280,
28027,
6,
30872,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
10198,
295,
834,
7493,
29,
20341,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
3735,
834,
6137,
3274,
96,
7,
2388,
138,
24856,
121,
3430,
30872,
3274,
96,
109,
32,
4012,
121,
3430,
3,
1725,
... |
For those records from the products and each product's manufacturer, give me the comparison about the average of manufacturer over the founder , and group by attribute founder by a bar chart, and could you sort Y-axis in ascending order? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Founder, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY AVG(Manufacturer) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
19145,
6,
71,
17217,
599,
7296,
76,
8717,
450,
49,
61,
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,
2... |
what is the grid when the time/retired is +27.112? | CREATE TABLE table_name_79 (
grid VARCHAR,
time_retired VARCHAR
) | SELECT grid FROM table_name_79 WHERE time_retired = "+27.112" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
8634,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
8634,
116,
8,
97,
87,
10682,
1271,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8634,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
357,
25059,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the least amount of wins when against is 1314? | CREATE TABLE table_name_41 (wins INTEGER, against VARCHAR) | SELECT MIN(wins) FROM table_name_41 WHERE against = 1314 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
3757,
7,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
866,
13,
9204,
116,
581,
19,
1179,
2534,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
581,
3274,
1179,
2534,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the rural population percentage in 1979? | CREATE TABLE table_20933 (
"Year (January)" real,
"Population (000)" real,
"Rural, %" real,
"Urban, %" real,
"Source" text
) | SELECT MIN("Rural, %") FROM table_20933 WHERE "Year (January)" = '1979' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4271,
519,
41,
96,
476,
2741,
41,
30404,
61,
121,
490,
6,
96,
27773,
7830,
41,
2313,
61,
121,
490,
6,
96,
448,
9709,
6,
3,
1454,
121,
490,
6,
96,
1265,
52,
3478,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
9709,
6,
3,
1454,
8512,
21680,
953,
834,
1755,
4271,
519,
549,
17444,
427,
96,
476,
2741,
41,
30404,
61,
121,
3274,
3,
31,
2294,
4440,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the 1991 when 1990 is ATP Masters Series? | CREATE TABLE table_name_53 (
Id VARCHAR
) | SELECT 1991 FROM table_name_53 WHERE 1990 = "atp masters series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9957,
116,
5541,
19,
3,
26758,
14119,
4531,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9957,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
5541,
3274,
96,
144,
102,
2325,
7,
939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the college with overall of 17 | CREATE TABLE table_name_65 (
college VARCHAR,
overall VARCHAR
) | SELECT college FROM table_name_65 WHERE overall = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1900,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1900,
28,
1879,
13,
1003,
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,
1900,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1879,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest number of genes with less than 927,303 base pairs in Acidobacteria Bacterium? | CREATE TABLE table_54522 (
"Species" text,
"Strain" text,
"Type" text,
"Base Pairs" real,
"Genes" real
) | SELECT MIN("Genes") FROM table_54522 WHERE "Base Pairs" < '927,303' AND "Species" = 'acidobacteria bacterium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2128,
2884,
41,
96,
7727,
725,
121,
1499,
6,
96,
134,
9719,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
14885,
15,
25072,
7,
121,
490,
6,
96,
13714,
15,
7,
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,
3,
17684,
599,
121,
13714,
15,
7,
8512,
21680,
953,
834,
755,
2128,
2884,
549,
17444,
427,
96,
14885,
15,
25072,
7,
121,
3,
2,
3,
31,
1298,
2555,
6,
23335,
31,
3430,
96,
7727,
725,
121,
3274,
3,
31,
9,
10812,
... |
Which category had a year of 1991? | CREATE TABLE table_name_41 (
category VARCHAR,
year VARCHAR
) | SELECT category FROM table_name_41 WHERE year = 1991 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
3295,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3295,
141,
3,
9,
215,
13,
9957,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3295,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
215,
3274,
9957,
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... |
When peninsula is the electorate what is the reason? | CREATE TABLE table_28898974_3 (
reason VARCHAR,
electorate VARCHAR
) | SELECT reason FROM table_28898974_3 WHERE electorate = "Peninsula" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3914,
3914,
4581,
834,
519,
41,
1053,
584,
4280,
28027,
6,
11924,
127,
342,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
28988,
19,
8,
11924,
127,
342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1053,
21680,
953,
834,
2577,
3914,
3914,
4581,
834,
519,
549,
17444,
427,
11924,
127,
342,
3274,
96,
345,
35,
15953,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of patients whose ethnicity is white - russian and admission year is less than 2156? | 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 WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.admityear < "2156" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
15313,
14871,
3,
18,
3,
8503,
4256,
21758,
121,
3430,
14798,
5,
20... |
What was the Zakspeed 1500/4 1.5 l4 t chassis? | CREATE TABLE table_name_42 (chassis VARCHAR, engine VARCHAR) | SELECT chassis FROM table_name_42 WHERE engine = "zakspeed 1500/4 1.5 l4 t" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
524,
6500,
7,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4904,
157,
9993,
15011,
13572,
8613,
3,
40,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1948,
3274,
96,
1629,
157,
9993,
15011,
13572,
8613,
3,
40,
591,
3,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest metal total when the Bronze metals are larger than 0, the Gold medals are smaller than 1, and the nation is Switzerland? | CREATE TABLE table_11989 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Total") FROM table_11989 WHERE "Bronze" > '0' AND "Nation" = 'switzerland' AND "Gold" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
3914,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
19993,
3914,
549,
17444,
427,
96,
22780,
29,
776,
121,
2490,
3,
31,
632,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
7,
15686,
15,
7721,
31,
3430,
96,
23576,
... |
Which to par has a prize less than $800? | CREATE TABLE table_name_10 (
to_par VARCHAR,
money___$__ VARCHAR
) | SELECT to_par FROM table_name_10 WHERE money___$__ = 800 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
12,
834,
1893,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
12,
260,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
3274,
8640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the position of the club with w-l-d of 6-2-8? | CREATE TABLE table_13713206_1 (
position INTEGER,
w_l_d VARCHAR
) | SELECT MAX(position) FROM table_13713206_1 WHERE w_l_d = "6-2-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
2368,
24643,
834,
536,
41,
1102,
3,
21342,
17966,
6,
3,
210,
834,
40,
834,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1102,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4718,
61,
21680,
953,
834,
24636,
2368,
24643,
834,
536,
549,
17444,
427,
3,
210,
834,
40,
834,
26,
3274,
96,
25369,
6039,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What year was the runner-up Portugal with Italy in third place, and the gold keeper Nuno Hidalgo? | CREATE TABLE table_79244 (
"Year" real,
"Winners" text,
"Runner-up" text,
"Third place" text,
"Fourth place" text,
"Best goalkeeper" text,
"Top goal scorer(s)" text
) | SELECT AVG("Year") FROM table_79244 WHERE "Runner-up" = 'portugal' AND "Third place" = 'italy' AND "Best goalkeeper" = 'nuno hidalgo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
357,
3628,
41,
96,
476,
2741,
121,
490,
6,
96,
18455,
687,
7,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
382,
9288,
26,
286,
121,
1499,
6,
96,
371,
1211,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
8512,
21680,
953,
834,
4440,
357,
3628,
549,
17444,
427,
96,
23572,
18,
413,
121,
3274,
3,
31,
1493,
12204,
40,
31,
3430,
96,
382,
9288,
26,
286,
121,
3274,
3,
31,
9538,
63,
31,
3... |
What is the Opponent in the final after 2008 at the Paul Hunter Classic? | CREATE TABLE table_59725 (
"Outcome" text,
"Year" real,
"Championship" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Opponent in the final" FROM table_59725 WHERE "Year" > '2008' AND "Championship" = 'paul hunter classic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
940,
1828,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
667,
102,
9977,
16,
8,
804,
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,
667,
102,
9977,
16,
8,
804,
121,
21680,
953,
834,
3390,
940,
1828,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
16128,
31,
3430,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
102,
9,
83,
8069,
49,
2431,... |
What time did the game start on saturday, april 20? | CREATE TABLE table_26868 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) | SELECT "Kickoff" FROM table_26868 WHERE "Date" = 'Saturday, April 20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3651,
3651,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
439,
3142,
1647,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
371,
10270,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
439,
3142,
1647,
121,
21680,
953,
834,
357,
3651,
3651,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
134,
6010,
1135,
6,
1186,
460,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose insurance is private and year of birth is less than 2152? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.dob_year < "2152" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
7855,
208,
342,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
3,
2,
96,
2658,
... |
When was the first year when Fowler joined? | CREATE TABLE table_name_73 (year_left INTEGER, location VARCHAR) | SELECT MIN(year_left) FROM table_name_73 WHERE location = "fowler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
1201,
834,
17068,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
166,
215,
116,
4452,
210,
1171,
3311,
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,
3,
17684,
599,
1201,
834,
17068,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1128,
3274,
96,
89,
2381,
1171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the number of public that was there when the vote percentage was 22.9%? | CREATE TABLE table_26375386_23 (public VARCHAR, vote_percentage VARCHAR) | SELECT COUNT(public) FROM table_26375386_23 WHERE vote_percentage = "22.9%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
22954,
519,
3840,
834,
2773,
41,
15727,
584,
4280,
28027,
6,
2902,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15727,
61,
21680,
953,
834,
2688,
22954,
519,
3840,
834,
2773,
549,
17444,
427,
2902,
834,
883,
3728,
545,
3274,
96,
2884,
5,
7561,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who played 10 games? | CREATE TABLE table_name_56 (
name VARCHAR,
games VARCHAR
) | SELECT name FROM table_name_56 WHERE games = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
564,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1944,
335,
1031,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
1031,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS THE AVERAGE DATE FOR CBS LABEL, IN AUSTRALIA, AND SBP 241031 FOR CATALOG? | CREATE TABLE table_name_80 (
date INTEGER,
catalog VARCHAR,
label VARCHAR,
region VARCHAR
) | SELECT AVG(date) FROM table_name_80 WHERE label = "cbs" AND region = "australia" AND catalog = "sbp 241031" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
833,
3,
21342,
17966,
6,
10173,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5522,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3783,
3274,
96,
75,
115,
7,
121,
3430,
1719,
3274,
96,
2064,
8792,
23,
9,
121,
3430,
10173,
3274,
96,
7,
115,
102,
997,
1714,
3341,
121,... |
What were the number of laps led by the driver with a finish position of 14? | CREATE TABLE table_45013 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
) | SELECT "Laps Led" FROM table_45013 WHERE "Fin. Pos" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10593,
2368,
41,
96,
371,
77,
5,
13995,
121,
1499,
6,
96,
6936,
465,
535,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
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,
3612,
102,
7,
312,
26,
121,
21680,
953,
834,
10593,
2368,
549,
17444,
427,
96,
371,
77,
5,
13995,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose diagnoses icd9 code is 25061 and drug route is ivpca? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "25061" AND prescriptions.route = "IVPCA" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What was United States place when the player was Fred Couples? | CREATE TABLE table_name_26 (
place VARCHAR,
country VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
907,
1323,
286,
116,
8,
1959... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
89,
1271,
11992,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games tied for the air force with over 57 years participating? | CREATE TABLE table_name_69 (tied VARCHAR, mountain_west VARCHAR, years VARCHAR) | SELECT COUNT(tied) FROM table_name_69 WHERE mountain_west = "air force" AND years > 57 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
17,
5973,
584,
4280,
28027,
6,
4180,
834,
12425,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
10422,
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,
2847,
17161,
599,
17,
5973,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
4180,
834,
12425,
3274,
96,
2256,
2054,
121,
3430,
203,
2490,
3,
3436,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the 2001 census of the region of Abruzzo where the 1871 census is bigger than 51092.0? | CREATE TABLE table_15975 (
"#" real,
"City" text,
"1981 Census" real,
"1991 Census" real,
"2001 Census" real,
"2010 Est." real,
"Region" text
) | SELECT MIN("2001 Census") FROM table_15975 WHERE "Region" = 'Abruzzo' AND "1981 Census" > '51092.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27904,
3072,
41,
96,
4663,
121,
490,
6,
96,
254,
485,
121,
1499,
6,
96,
2294,
4959,
23086,
121,
490,
6,
96,
2294,
4729,
23086,
121,
490,
6,
96,
23658,
23086,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23658,
23086,
8512,
21680,
953,
834,
27904,
3072,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
188,
9052,
16692,
31,
3430,
96,
2294,
4959,
23086,
121,
2490,
3,
31,
755,
17304,
24273,
31... |
what is the total number of models listed ? | CREATE TABLE table_204_295 (
id number,
"model" text,
"origin" text,
"type" text,
"version" text,
"in service" number,
"notes" text
) | SELECT COUNT("model") FROM table_204_295 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3301,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
32,
3380,
77,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
8674,
121,
1499,
6,
96,
77,
313,
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,
2847,
17161,
599,
121,
21770,
8512,
21680,
953,
834,
26363,
834,
357,
3301,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which team drafted the only ol position player from mcmaster college ? | CREATE TABLE table_203_676 (
id number,
"pick #" number,
"cfl team" text,
"player" text,
"position" text,
"college" text
) | SELECT "cfl team" FROM table_203_676 WHERE "position" = 'ol' AND "college" = 'mcmaster' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3708,
948,
41,
3,
23,
26,
381,
6,
96,
17967,
1713,
121,
381,
6,
96,
75,
89,
40,
372,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
75,
89,
40,
372,
121,
21680,
953,
834,
23330,
834,
3708,
948,
549,
17444,
427,
96,
4718,
121,
3274,
3,
31,
32,
40,
31,
3430,
96,
3297,
7883,
121,
3274,
3,
31,
51,
75,
7429,
31,
1,
-100,
-100,
-100,
-100,
-... |
Please give me a bar chart to show the market share of different furniture name, which no any company is producing in our records by a pie chart, and could you rank in ascending by the Market_Rate? | CREATE TABLE furniture_manufacte (
Manufacturer_ID int,
Furniture_ID int,
Price_in_Dollar real
)
CREATE TABLE manufacturer (
Manufacturer_ID int,
Open_Year real,
Name text,
Num_of_Factories int,
Num_of_Shops int
)
CREATE TABLE furniture (
Furniture_ID int,
Name text,
Num_of... | SELECT Name, Market_Rate FROM furniture WHERE NOT Furniture_ID IN (SELECT Furniture_ID FROM furniture_manufacte) ORDER BY Market_Rate | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1991,
834,
348,
76,
8717,
15,
41,
15248,
834,
4309,
16,
17,
6,
9724,
834,
4309,
16,
17,
6,
5312,
834,
77,
834,
4135,
195,
291,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
3611,
834,
448,
342,
21680,
1991,
549,
17444,
427,
4486,
9724,
834,
4309,
3388,
41,
23143,
14196,
9724,
834,
4309,
21680,
1991,
834,
348,
76,
8717,
15,
61,
4674,
11300,
272,
476,
3611,
834,
448,
342,
1,
-10... |
count the number of patients who had the intake of fentanyl-in until 3 years ago. | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid num... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT intakeoutput.patientunitstayid FROM intakeoutput WHERE intakeoutput.celllabel = 'fentanyl-in' AND intakeoutput.cellpath LIKE '%input%' AND DATETIME(intakeoutput.intakeoutputtime) <= DATETIME(CURRENT_TIME(), '-3 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
11963,
670,
2562,
5,
10061,
15129,
21545,
23,
26,
21680,
... |
What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21' | CREATE TABLE Timed_Status_of_Things (thing_id VARCHAR, Status_of_Thing_Code VARCHAR, Date_and_Date VARCHAR); CREATE TABLE Things (thing_id VARCHAR, Type_of_Thing_Code VARCHAR) | SELECT DISTINCT T2.thing_id, T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2900,
26,
834,
134,
17,
144,
302,
834,
858,
834,
8991,
53,
7,
41,
8052,
834,
23,
26,
584,
4280,
28027,
6,
19318,
834,
858,
834,
8991,
53,
834,
22737,
584,
4280,
28027,
6,
7678,
834... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
4416,
8052,
834,
23,
26,
6,
332,
4416,
25160,
834,
858,
834,
8991,
53,
834,
22737,
21680,
2900,
26,
834,
134,
17,
144,
302,
834,
858,
834,
8991,
53,
7,
6157,
332,
536,
3,
15355,
3162,
... |
What are the number of rooms for each bed type? | CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults number,
kids number
)
CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
basepric... | SELECT bedtype, COUNT(*) FROM rooms GROUP BY bedtype | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17653,
41,
1081,
381,
6,
562,
1499,
6,
691,
77,
1499,
6,
15912,
1499,
6,
1080,
381,
6,
336,
4350,
1499,
6,
166,
4350,
1499,
6,
3513,
381,
6,
1082,
381,
3,
61,
3,
32102,
32103,
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,
1953,
6137,
6,
2847,
17161,
599,
1935,
61,
21680,
2801,
350,
4630,
6880,
272,
476,
1953,
6137,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What place has E as the to par, with Mark Wiebe as the player? | CREATE TABLE table_name_3 (place VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT place FROM table_name_3 WHERE to_par = "e" AND player = "mark wiebe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
4687,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
65,
262,
38,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
12,
834,
1893,
3274,
96,
15,
121,
3430,
1959,
3274,
96,
3920,
587,
346,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the American locations with less than 114 years and more than 1 tied with more than 1022 total games? | CREATE TABLE table_53020 (
"The American" text,
"Lost" real,
"Tied" real,
"Pct." real,
"Years" real,
"Total Games" real
) | SELECT "The American" FROM table_53020 WHERE "Years" < '114' AND "Tied" > '1' AND "Total Games" > '1022' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
1755,
41,
96,
634,
797,
121,
1499,
6,
96,
434,
3481,
121,
490,
6,
96,
382,
5973,
121,
490,
6,
96,
345,
75,
17,
535,
490,
6,
96,
476,
2741,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
634,
797,
121,
21680,
953,
834,
26918,
1755,
549,
17444,
427,
96,
476,
2741,
7,
121,
3,
2,
3,
31,
18959,
31,
3430,
96,
382,
5973,
121,
2490,
3,
31,
536,
31,
3430,
96,
3696,
1947,
5880,
121,
2490,
3,
31,
17... |
What is the grid total associated with 18 laps? | CREATE TABLE table_name_35 (
grid VARCHAR,
laps VARCHAR
) | SELECT COUNT(grid) FROM table_name_35 WHERE laps = 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
8634,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8634,
792,
1968,
28,
507,
14941,
7,
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,
2847,
17161,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
14941,
7,
3274,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Score of the game against Philadelphia 76ers? | CREATE TABLE table_name_2 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_2 WHERE opponent = "philadelphia 76ers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
7,
9022,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
8,
467,
581,
9511,
3,
3959,
277,
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,
2604,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
15264,
3274,
96,
18118,
15311,
11692,
9,
3,
3959,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005? | CREATE TABLE table_name_87 (
pre_race_host VARCHAR,
lap_by_lap VARCHAR,
year VARCHAR
) | SELECT pre_race_host FROM table_name_87 WHERE lap_by_lap = "mike joy" AND year = 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
554,
834,
12614,
834,
12675,
584,
4280,
28027,
6,
14941,
834,
969,
834,
8478,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
554,
834,
12614,
834,
12675,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
14941,
834,
969,
834,
8478,
3274,
96,
20068,
15,
3922,
121,
3430,
215,
3274,
3105,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average total that is 1st in 2010? | CREATE TABLE table_name_8 (
total INTEGER
) | SELECT AVG(total) FROM table_name_8 WHERE 2010 = "1st" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
792,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
792,
24,
19,
209,
7,
17,
16,
2735,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
2735,
3274,
96,
536,
7,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the muzzle device on the colt model le1020? | CREATE TABLE table_17833 (
"Colt model no." text,
"Name" text,
"Stock" text,
"Fire control" text,
"Rear sight" text,
"Forward assist" text,
"Barrel length" text,
"Barrel profile" text,
"Barrel twist" text,
"Hand guards" text,
"Bayonet Lug" text,
"Muzzle device" text
) | SELECT "Muzzle device" FROM table_17833 WHERE "Colt model no." = 'LE1020' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
4201,
41,
96,
9939,
17,
825,
150,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
134,
17,
3961,
121,
1499,
6,
96,
3183,
60,
610,
121,
1499,
6,
96,
1649,
291,
6398,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
76,
15133,
1407,
121,
21680,
953,
834,
27640,
4201,
549,
17444,
427,
96,
9939,
17,
825,
150,
535,
3274,
3,
31,
3765,
1714,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the Covered Song when the Album shows cover version iii? | CREATE TABLE table_41313 (
"Album" text,
"Release date" text,
"Label" text,
"Format" text,
"Covered Song" text,
"Original Song" text
) | SELECT "Covered Song" FROM table_41313 WHERE "Album" = 'cover version iii' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2368,
2368,
41,
96,
25691,
440,
121,
1499,
6,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
3881,
162,
1271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3881,
162,
1271,
11263,
121,
21680,
953,
834,
591,
2368,
2368,
549,
17444,
427,
96,
25691,
440,
121,
3274,
3,
31,
9817,
988,
3,
23,
23,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of hire_date and the sum of manager_id bin hire_date by time in a bar chart, display y axis in desc order. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(MANAGER_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549... |
Which team had a rank under 4 with a time of 1:14.04.88? | CREATE TABLE table_79547 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT "Team" FROM table_79547 WHERE "Rank" < '4' AND "Time" = '1:14.04.88' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3301,
4177,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
3,
32102,
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,
18699,
121,
21680,
953,
834,
940,
3301,
4177,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
13368,
121,
3274,
3,
31,
536,
10,
2534,
5,
14161,
4060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
How many have SHT number 5? | CREATE TABLE table_11335 (
"Manufacturer" text,
"Type" text,
"Quantity" real,
"SHT Nos." text,
"GWR Nos." text
) | SELECT MAX("Quantity") FROM table_11335 WHERE "SHT Nos." = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
2469,
41,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
5991,
288,
485,
121,
490,
6,
96,
134,
10966,
465,
7,
535,
1499,
6,
96,
517,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
5991,
288,
485,
8512,
21680,
953,
834,
20522,
2469,
549,
17444,
427,
96,
134,
10966,
465,
7,
535,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What party did Hale Boggs belong to? | CREATE TABLE table_18425 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_18425 WHERE "Incumbent" = 'Hale Boggs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
1828,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
13725,
63,
121,
21680,
953,
834,
25987,
1828,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
566,
9,
109,
24586,
122,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Anna Rogowska's average result? | CREATE TABLE table_name_7 (result INTEGER, name VARCHAR) | SELECT AVG(result) FROM table_name_7 WHERE name = "anna rogowska" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
60,
7,
83,
17,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7588,
2158,
839,
210,
10717,
31,
7,
1348,
741,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
60,
7,
83,
17,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
564,
3274,
96,
10878,
3,
3822,
2381,
10717,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What opponent played on the 28th with a venue of away? | CREATE TABLE table_62047 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Competition" text
) | SELECT "Opponent" FROM table_62047 WHERE "Venue" = 'away' AND "Date" = '28th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26898,
4177,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
26898,
4177,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
8006,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2577,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
which is the last versions on the chart | CREATE TABLE table_204_710 (
id number,
"model" text,
"origin" text,
"type" text,
"versions" text,
"in service" text,
"notes" text
) | SELECT "model" FROM table_204_710 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
1714,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
32,
3380,
77,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
8674,
7,
121,
1499,
6,
96,
77,
313,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21770,
121,
21680,
953,
834,
26363,
834,
940,
1714,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what's the points with driver rusty wallace | CREATE TABLE table_10160447_1 (points VARCHAR, driver VARCHAR) | SELECT points FROM table_10160447_1 WHERE driver = "Rusty Wallace" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
19129,
591,
4177,
834,
536,
41,
2700,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
979,
28,
2535,
3,
9277,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
1714,
19129,
591,
4177,
834,
536,
549,
17444,
427,
2535,
3274,
96,
17137,
7,
17,
63,
25568,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give the number of patients who were admitted before the year 2197 and had admission type as elective. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.admityear < "2197" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,... |
give me the number of patients whose age is less than 48 and drug code is midazbase? | 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.age < "48" AND prescriptions.formulary_drug_cd = "MIDAZBASE" | [
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 2009 tournament was french open? | CREATE TABLE table_name_51 (tournament VARCHAR) | SELECT 2009 FROM table_name_51 WHERE tournament = "french open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2464,
5892,
47,
20609,
539,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2464,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
5892,
3274,
96,
89,
60,
5457,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the BB Pop for the song with RIAA of G that was in a year earlier than 1961? | CREATE TABLE table_32286 (
"Year" real,
"BB Pop" text,
"BB CW" text,
"BB RB" text,
"BB EL" text,
"CB CW" text,
"RIAA" text
) | SELECT "BB Pop" FROM table_32286 WHERE "RIAA" = 'g' AND "Year" < '1961' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
357,
3840,
41,
96,
476,
2741,
121,
490,
6,
96,
7640,
5777,
121,
1499,
6,
96,
7640,
3,
18105,
121,
1499,
6,
96,
7640,
3,
12108,
121,
1499,
6,
96,
7640,
3,
3577,
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,
7640,
5777,
121,
21680,
953,
834,
2668,
357,
3840,
549,
17444,
427,
96,
22249,
188,
121,
3274,
3,
31,
122,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
4241,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the names of stadiums that the most swimmers have been to. | CREATE TABLE event (
stadium_id VARCHAR,
id VARCHAR
)
CREATE TABLE record (
event_id VARCHAR
)
CREATE TABLE stadium (
name VARCHAR,
id VARCHAR
) | SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
14939,
834,
23,
26,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
605,
834,
23,
26,
584,
4280,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5787,
4350,
21680,
1368,
6157,
3,
17,
536,
3,
15355,
3162,
605,
6157,
3,
17,
357,
9191,
3,
17,
5411,
15,
2169,
834,
23,
26,
3274,
3,
17,
4416,
23,
26,
3,
15355,
3162,
14939,
6157,
3,
17,
519,
9191,
3,
... |
what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38? | CREATE TABLE table_58241 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT SUM("Goals for") FROM table_58241 WHERE "Position" < '8' AND "Losses" < '10' AND "Goals against" < '35' AND "Played" < '38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
2266,
536,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
6221,
5405,
21,
8512,
21680,
953,
834,
3449,
2266,
536,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
927,
31,
3430,
96,
434,
13526,
7,
121,
3,
2,
3,
31,
1714,
31,
3430,
96,
6... |
What is the away team score with geelong home team? | CREATE TABLE table_12022 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_12022 WHERE "Home team" = 'geelong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
2884,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
15518,
2884,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
397,
15,
2961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the car number for 1997 | CREATE TABLE table_1688640_4 (car__number VARCHAR, year_started VARCHAR) | SELECT car__number FROM table_1688640_4 WHERE year_started = 1997 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
3840,
2445,
834,
591,
41,
1720,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
215,
834,
3624,
1054,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
443,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
443,
834,
834,
5525,
1152,
21680,
953,
834,
24274,
3840,
2445,
834,
591,
549,
17444,
427,
215,
834,
3624,
1054,
3274,
6622,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when did patient 002-39247 get admitted to the hospital via the hospital operating room for the last time during the last year? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeri... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '002-39247' AND patient.hospitaladmitsource = 'operating room' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
357,
3486,
4508,
4177,
31,
3430,
1868,
5,
31386,
20466,
17,
7928,
3274,
3,
31,
18140,
1222,
562,
31,
3430,
... |
how many patients were diagnosed with seroma complicating procedure? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Seroma complicating a procedure" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
WHich Team that has Points against of 43? | CREATE TABLE table_name_17 (team VARCHAR, points_against VARCHAR) | SELECT team FROM table_name_17 WHERE points_against = 43 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
11650,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
362,
2271,
24,
65,
4564,
7,
581,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
8838,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give me the comparison about All_Games_Percent over the All_Games . | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Games, All_Games_Percent FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
23055,
7,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which New council has an Election result larger than 24? | CREATE TABLE table_name_33 (
new_council INTEGER,
election_result INTEGER
) | SELECT AVG(new_council) FROM table_name_33 WHERE election_result > 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
126,
834,
509,
15254,
40,
3,
21342,
17966,
6,
4356,
834,
60,
7,
83,
17,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
368,
6098,
65,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
5534,
834,
509,
15254,
40,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
4356,
834,
60,
7,
83,
17,
2490,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the smallest capacity for Bursa? | CREATE TABLE table_name_10 (
capacity INTEGER,
city VARCHAR
) | SELECT MIN(capacity) FROM table_name_10 WHERE city = "bursa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
2614,
3,
21342,
17966,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
2614,
21,
4152,
7,
9,
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,
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,
3,
17684,
599,
4010,
9,
6726,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
690,
3274,
96,
5808,
7,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For which production company did Sam Mccarthy produce? | CREATE TABLE table_36841 (
"Rank" text,
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Writer(s)" text,
"Production Company" text
) | SELECT "Production Company" FROM table_36841 WHERE "Producer(s)" = 'sam mccarthy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
4608,
536,
41,
96,
22557,
121,
1499,
6,
96,
371,
173,
51,
121,
1499,
6,
96,
23620,
127,
599,
7,
61,
121,
1499,
6,
96,
3174,
4817,
49,
599,
7,
61,
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,
3174,
8291,
1958,
121,
21680,
953,
834,
3420,
4608,
536,
549,
17444,
427,
96,
3174,
4817,
49,
599,
7,
61,
121,
3274,
3,
31,
7,
265,
3,
51,
75,
1720,
189,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score from the game where Algeria is the opponent at Porto-Novo? | CREATE TABLE table_name_28 (score VARCHAR, opponent VARCHAR, location VARCHAR) | SELECT score FROM table_name_28 WHERE opponent = "algeria" AND location = "porto-novo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
7,
9022,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
45,
8,
467,
213,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
15264,
3274,
96,
138,
122,
4476,
121,
3430,
1128,
3274,
96,
1493,
32,
18,
5326,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the only member of the country party to be elected in 1919 ? | CREATE TABLE table_203_484 (
id number,
"member" text,
"party" text,
"electorate" text,
"state" text,
"first elected" text
) | SELECT "member" FROM table_203_484 WHERE "first elected" = 1919 AND "party" = 'country' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3707,
591,
41,
3,
23,
26,
381,
6,
96,
12066,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
400,
5317,
342,
121,
1499,
6,
96,
5540,
121,
1499,
6,
96,
14672,
8160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12066,
121,
21680,
953,
834,
23330,
834,
3707,
591,
549,
17444,
427,
96,
14672,
8160,
121,
3274,
27521,
3430,
96,
8071,
121,
3274,
3,
31,
17529,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a histogram for what are the names and average salaries for departments with average salary higher than 42000?, and could you order by the X-axis from high to low? | CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min... | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1217,
41,
4699,
3,
4331,
4059,
15757,
6,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
4220,
834,
23,
26,
3,
4331,
4059,
28007,
6,
10542,
3,
4331,
4059,
18669,
6,
215,
206,
17552,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
71,
17217,
599,
7,
138,
1208,
61,
21680,
10617,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
4674,
11300,
272,
476,
20,
102,
17,
834,
4350,
309,
25067,
1,
-100,
-100,
-100,
-100,
... |
What's the rank for Daewoo Business Center when the notes are cancelled? | CREATE TABLE table_4942 (
"Rank" text,
"Name" text,
"Height m / feet" text,
"Floors" text,
"Notes" text
) | SELECT "Rank" FROM table_4942 WHERE "Notes" = 'cancelled' AND "Name" = 'daewoo business center' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
4165,
41,
96,
22557,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
3,
51,
3,
87,
1922,
121,
1499,
6,
96,
11251,
127,
7,
121,
1499,
6,
96,
10358,
15,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
3647,
4165,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
1608,
7125,
1361,
31,
3430,
96,
23954,
121,
3274,
3,
31,
26,
9,
15,
14952,
268,
1530,
31,
1,
-100,
-100,
-100,
-1... |
Record of 3 1 had what Res? | CREATE TABLE table_6645 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text
) | SELECT "Res." FROM table_6645 WHERE "Record" = '3–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
2128,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
448,
32,
1106,
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,
0,
0... | [
3,
23143,
14196,
96,
1649,
7,
535,
21680,
953,
834,
3539,
2128,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
519,
104,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who remixed an album of dance remixes? | CREATE TABLE table_6753 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
) | SELECT "Remixed by" FROM table_6753 WHERE "Album" = 'dance remixes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4867,
41,
96,
5000,
1938,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
1649,
13682,
15,
26,
57,
121,
1499,
6,
96,
476,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13682,
15,
26,
57,
121,
21680,
953,
834,
3708,
4867,
549,
17444,
427,
96,
25691,
440,
121,
3274,
3,
31,
26,
663,
26063,
15,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who is the top ranking nation with the most medals received ? | CREATE TABLE table_204_775 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_775 ORDER BY "total" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
3072,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
121,
21680,
953,
834,
26363,
834,
940,
3072,
4674,
11300,
272,
476,
96,
235,
1947,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many interchanges were recorded from 2000 to 2005 | CREATE TABLE table_203_34 (
id number,
"season" text,
"appearance" number,
"interchange" number,
"tries" number,
"goals" number,
"f/g" number,
"points" number
) | SELECT SUM("interchange") FROM table_203_34 WHERE "season" >= 2000 AND "season" <= 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3710,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
3096,
2741,
663,
121,
381,
6,
96,
3870,
13073,
121,
381,
6,
96,
9000,
121,
381,
6,
96,
839,
5405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
3870,
13073,
8512,
21680,
953,
834,
23330,
834,
3710,
549,
17444,
427,
96,
9476,
121,
2490,
2423,
2766,
3430,
96,
9476,
121,
3,
2,
2423,
3105,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where is the headquarters of the place whose population in 2011 was 3811738? | CREATE TABLE table_20560 (
"Code" text,
"District" text,
"Headquarters" text,
"Population (2011)" real,
"Area (km\u00b2)" real,
"Density (/km\u00b2)" real,
"Official website" text
) | SELECT "Headquarters" FROM table_20560 WHERE "Population (2011)" = '3811738' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
3328,
41,
96,
22737,
121,
1499,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
3845,
9,
26,
19973,
7,
121,
1499,
6,
96,
27773,
7830,
25163,
121,
490,
6,
96,
188,
864,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9,
26,
19973,
7,
121,
21680,
953,
834,
23201,
3328,
549,
17444,
427,
96,
27773,
7830,
25163,
121,
3274,
3,
31,
3747,
20275,
3747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.