NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What high assists have a game greater than 46? | CREATE TABLE table_name_61 (high_assists VARCHAR, game INTEGER) | SELECT high_assists FROM table_name_61 WHERE game > 46 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
467,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
306,
13041,
43,
3,
9,
467,
2123,
145,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
467,
2490,
9668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Distance Medell n Downtown (km) when the municipalities Envigado? | CREATE TABLE table_11330 (
"Municipalities" text,
"Extension km\u00b2" text,
"Population (hab)" text,
"Density (hab/ km\u00b2 )" text,
"Altitude m" text,
"Distance Medell\u00edn Downtown ( km )" text
) | SELECT "Distance Medell\u00edn Downtown ( km )" FROM table_11330 WHERE "Municipalities" = 'envigado' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
1458,
41,
96,
329,
202,
1294,
6459,
2197,
121,
1499,
6,
96,
5420,
13177,
2280,
2,
76,
1206,
115,
357,
121,
1499,
6,
96,
27773,
7830,
41,
6111,
61,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
8389,
8067,
3820,
2,
76,
1206,
15,
26,
29,
19434,
41,
2280,
3,
61,
121,
21680,
953,
834,
20522,
1458,
549,
17444,
427,
96,
329,
202,
1294,
6459,
2197,
121,
3274,
3,
31,
35,
10314,
9,
26,
32,
31,
1... |
Name the total number of televote points for cry on my shoulders | CREATE TABLE table_21378339_5 (televote_points VARCHAR, song VARCHAR) | SELECT COUNT(televote_points) FROM table_21378339_5 WHERE song = "Cry on my shoulders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4118,
4591,
3288,
834,
755,
41,
1931,
1621,
17,
15,
834,
2700,
7,
584,
4280,
28027,
6,
2324,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1931,
1621,
17,
15,
834,
2700,
7,
61,
21680,
953,
834,
2658,
4118,
4591,
3288,
834,
755,
549,
17444,
427,
2324,
3274,
96,
254,
651,
30,
82,
15424,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the 2008 final performance film when the 2011 off-broadway revival was annaleigh ashford? | CREATE TABLE table_28690 (
"Role" text,
"Original Broadway Cast" text,
"2005 film" text,
"2008 Final Performance Film" text,
"Hollywood Bowl Cast" text,
"2011 Off-Broadway Revival" text
) | SELECT "2008 Final Performance Film" FROM table_28690 WHERE "2011 Off-Broadway Revival" = 'Annaleigh Ashford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3840,
2394,
41,
96,
448,
32,
109,
121,
1499,
6,
96,
667,
3380,
10270,
17963,
11583,
121,
1499,
6,
96,
22594,
814,
121,
1499,
6,
96,
16128,
6514,
8233,
3417,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16128,
6514,
8233,
3417,
121,
21680,
953,
834,
357,
3840,
2394,
549,
17444,
427,
96,
13907,
4395,
18,
279,
8635,
1343,
6342,
23,
2165,
121,
3274,
3,
31,
17608,
9,
23260,
7153,
2590,
31,
1,
-100,
-100,
-100,
-100... |
In 1982, when the Men's doubles had no competition who won the Women's singles? | CREATE TABLE table_14638 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Women's singles" FROM table_14638 WHERE "Men's doubles" = 'no competition' AND "Year" = '1982' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
3747,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,
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,
518,
32,
904,
31,
7,
712,
7,
121,
21680,
953,
834,
24300,
3747,
549,
17444,
427,
96,
329,
35,
31,
7,
1486,
7,
121,
3274,
3,
31,
29,
32,
2259,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4613,
31,
1,... |
What is Petersville's census ranking? | CREATE TABLE table_21378 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) | SELECT "Census Ranking" FROM table_21378 WHERE "Official Name" = 'Petersville' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
3940,
41,
96,
667,
89,
22816,
5570,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
188,
864,
2280,
204,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
35,
7,
302,
29153,
121,
21680,
953,
834,
357,
2368,
3940,
549,
17444,
427,
96,
667,
89,
22816,
5570,
121,
3274,
3,
31,
345,
15,
449,
9727,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Where was the round 1 race? | CREATE TABLE table_25773116_2 (location VARCHAR, round VARCHAR) | SELECT location FROM table_25773116_2 WHERE round = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4013,
3341,
2938,
834,
357,
41,
14836,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
1751,
209,
1964,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
1828,
4013,
3341,
2938,
834,
357,
549,
17444,
427,
1751,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What team was he on when he finished in 11th position? | CREATE TABLE table_24491017_1 (
team VARCHAR,
position VARCHAR
) | SELECT team FROM table_24491017_1 WHERE position = "11th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3647,
1714,
2517,
834,
536,
41,
372,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
3,
88,
30,
116,
3,
88,
2369,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
2266,
3647,
1714,
2517,
834,
536,
549,
17444,
427,
1102,
3274,
96,
2596,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For club Swansea Uplands RFC, what is the amount of tries against? | CREATE TABLE table_17675675_2 (
tries_against VARCHAR,
club VARCHAR
) | SELECT tries_against FROM table_17675675_2 WHERE club = "Swansea Uplands RFC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3708,
4834,
3072,
834,
357,
41,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
1886,
18041,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
834,
9,
16720,
7,
17,
21680,
953,
834,
2517,
3708,
4834,
3072,
834,
357,
549,
17444,
427,
1886,
3274,
96,
134,
3877,
7,
15,
9,
3234,
6347,
391,
5390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
The game played 31 May 2010 was played on what surface? | CREATE TABLE table_60563 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Surface" FROM table_60563 WHERE "Date" = '31 may 2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4834,
519,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
3328,
4834,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
3341,
164,
2735,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
tell the number of male patients who have been prescribed heparin flush (10 units/ml). | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.drug = "Heparin Flush (10 units/ml)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
provide the number of patients whose admission location is trsf within this facility and drug name is neo*po*vitamin e drops? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND prescriptions.drug = "NEO*PO*Vitamin E Drops" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the 1980 value with a 1r in 1984 and a 1r in 1981? | CREATE TABLE table_49995 (
"Tournament" text,
"1980" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"Career SR" text
) | SELECT "1980" FROM table_49995 WHERE "1984" = '1r' AND "1981" = '1r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3264,
3301,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
2079,
121,
1499,
6,
96,
2294,
4959,
121,
1499,
6,
96,
2294,
4613,
121,
1499,
6,
96,
2294,
4591,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2294,
2079,
121,
21680,
953,
834,
591,
3264,
3301,
549,
17444,
427,
96,
24151,
20364,
3274,
3,
31,
536,
52,
31,
3430,
96,
2294,
4959,
121,
3274,
3,
31,
536,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who directed the episode aired on February 27, 2009? | CREATE TABLE table_18424435_3 (directed_by VARCHAR, us_air_date VARCHAR) | SELECT directed_by FROM table_18424435_3 WHERE us_air_date = "February 27, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4165,
3628,
2469,
834,
519,
41,
22955,
834,
969,
584,
4280,
28027,
6,
178,
834,
2256,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
8,
564... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6640,
834,
969,
21680,
953,
834,
2606,
4165,
3628,
2469,
834,
519,
549,
17444,
427,
178,
834,
2256,
834,
5522,
3274,
96,
31122,
14141,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the attendance when Nakamura (0-1) lost? | CREATE TABLE table_69246 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Attendance" FROM table_69246 WHERE "Loss" = 'nakamura (0-1)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
357,
4448,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
3951,
357,
4448,
549,
17444,
427,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
29,
5667,
11054,
9,
17482,
18,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS THE YEAR WITH A BRONZE OF AIMO TEPSELL? | CREATE TABLE table_name_20 (year INTEGER, bronze VARCHAR) | SELECT MIN(year) FROM table_name_20 WHERE bronze = "aimo tepsell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
1201,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
30431,
11951,
71,
272,
13044,
13358,
3347,
71,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
13467,
3274,
96,
9,
603,
32,
3,
17,
15,
102,
12019,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the history behind the vessel Speedrunner IV (SSC4) built after 1997? | CREATE TABLE table_name_95 (history VARCHAR, built VARCHAR, name VARCHAR) | SELECT history FROM table_name_95 WHERE built > 1997 AND name = "speedrunner iv (ssc4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
10193,
10972,
584,
4280,
28027,
6,
1192,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
892,
1187,
8,
12662,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
892,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1192,
2490,
6622,
3430,
564,
3274,
96,
9993,
10806,
3,
23,
208,
41,
7,
7,
75,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times did jim vivona win? | CREATE TABLE table_name_2 (
win__number VARCHAR,
winner VARCHAR
) | SELECT COUNT(win__number) FROM table_name_2 WHERE winner = "jim vivona" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
1369,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
410,
3,
354,
603,
3,
7003,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
4668,
3274,
96,
354,
603,
3,
7003,
106,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what was the average chart position of their singles in the uk ? | CREATE TABLE table_203_661 (
id number,
"year" number,
"single" text,
"peak chart positions\nus mod" number,
"peak chart positions\nuk" number,
"album" text
) | SELECT AVG("peak chart positions\nuk") FROM table_203_661 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3539,
536,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
7,
53,
109,
121,
1499,
6,
96,
14661,
5059,
4655,
2,
29,
302,
1794,
121,
381,
6,
96,
14661,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14661,
5059,
4655,
2,
29,
1598,
8512,
21680,
953,
834,
23330,
834,
3539,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Date of the game with a Record of 5-3? | CREATE TABLE table_63152 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text
) | SELECT "Date" FROM table_63152 WHERE "Record" = '5-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
26320,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3891,
26320,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
755,
3486,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the partner for mark woodforde martina navratilova | CREATE TABLE table_1547951_3 (
partner VARCHAR,
opponents VARCHAR
) | SELECT partner FROM table_1547951_3 WHERE opponents = "Mark Woodforde Martina Navratilova" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
4440,
5553,
834,
519,
41,
2397,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2397,
21,
3946,
1679,
2590,
15,
3157,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
27308,
4440,
5553,
834,
519,
549,
17444,
427,
16383,
3274,
96,
19762,
2985,
2590,
15,
3394,
9,
3,
22192,
6850,
5850,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Venue held the World Race Walking Cup tourney before 2008? | CREATE TABLE table_67058 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
) | SELECT "Venue" FROM table_67058 WHERE "Year" < '2008' AND "Tournament" = 'world race walking cup' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
632,
3449,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
427,
2169,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
3708,
632,
3449,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
16128,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
7276,
1964,
3214,
4119,
31,
1,
-100,
-... |
On what dates did the draw at the Antigua Recreation Ground happen? | CREATE TABLE table_15478 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Date" FROM table_15478 WHERE "Result" = 'draw' AND "Venue" = 'antigua recreation ground' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
3940,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
14268,
121,
1499,
6,
96,
188,
1343,
14268,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
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,
308,
342,
121,
21680,
953,
834,
27308,
3940,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
19489,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
5965,
1744,
9,
17711,
1591,
31,
1,
-100,
-100,
-100,
-100,
-... |
When did the construction of the unit Chinon B1 with net power of 905 MW start? | CREATE TABLE table_17899 (
"Unit" text,
"Type" text,
"Net power" text,
"Total power" text,
"Construction start" text,
"Construction finish" text,
"Commercial operation" text,
"Shut down" text
) | SELECT "Construction start" FROM table_17899 WHERE "Net power" = '905 MW' AND "Unit" = 'Chinon B1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
3264,
41,
96,
5110,
155,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
9688,
579,
121,
1499,
6,
96,
3696,
1947,
579,
121,
1499,
6,
96,
4302,
7,
26853,
456,
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,
4302,
7,
26853,
456,
121,
21680,
953,
834,
27640,
3264,
549,
17444,
427,
96,
9688,
579,
121,
3274,
3,
31,
2394,
755,
3,
16027,
31,
3430,
96,
5110,
155,
121,
3274,
3,
31,
3541,
77,
106,
272,
536,
31,
1,
-100,... |
Which Unit has Authors of dalla vecchia, wild, & reitner? | CREATE TABLE table_name_65 (
unit VARCHAR,
authors VARCHAR
) | SELECT unit FROM table_name_65 WHERE authors = "dalla vecchia, wild, & reitner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1745,
584,
4280,
28027,
6,
5921,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5579,
65,
10236,
7,
13,
836,
195,
9,
3,
162,
75,
1436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1745,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
5921,
3274,
96,
26,
1748,
9,
3,
162,
75,
1436,
9,
6,
3645,
6,
3,
184,
3,
60,
155,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If the start (utc) is November 18, 2008 18:09, what is the name of the spacecraft? | CREATE TABLE table_2610 (
"#" text,
"Spacecraft" text,
"Spacewalkers" text,
"Start ( UTC )" text,
"End (UTC)" text,
"Duration" text
) | SELECT "Spacecraft" FROM table_2610 WHERE "Start ( UTC )" = 'November 18, 2008 18:09' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1714,
41,
96,
4663,
121,
1499,
6,
96,
24722,
6696,
121,
1499,
6,
96,
24722,
24063,
7,
121,
1499,
6,
96,
7681,
17,
41,
412,
3838,
3,
61,
121,
1499,
6,
96,
8532,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24722,
6696,
121,
21680,
953,
834,
2688,
1714,
549,
17444,
427,
96,
7681,
17,
41,
412,
3838,
3,
61,
121,
3274,
3,
31,
28635,
14985,
2628,
507,
10,
4198,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest crowd at windy hill? | CREATE TABLE table_58277 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_58277 WHERE "Venue" = 'windy hill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
357,
4013,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
3449,
357,
4013,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
5165,
63,
9956,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km? | CREATE TABLE table_34284 (
"Administrative division" text,
"Area (km\u00b2)" real,
"Population 2000 Census" real,
"Population (2010 Census)" real,
"Population density 2010 (/km\u00b2)" real
) | SELECT SUM("Population (2010 Census)") FROM table_34284 WHERE "Administrative division" = 'japeri' AND "Area (km\u00b2)" < '82.9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
357,
4608,
41,
96,
16313,
343,
52,
1528,
4889,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
490,
6,
96,
27773,
7830,
2766,
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,
180,
6122,
599,
121,
27773,
7830,
41,
14926,
23086,
61,
8512,
21680,
953,
834,
3710,
357,
4608,
549,
17444,
427,
96,
16313,
343,
52,
1528,
4889,
121,
3274,
3,
31,
1191,
4267,
31,
3430,
96,
188,
864,
41,
5848,
2,
7... |
What is the hometown of the player who attended American Heritage School? | CREATE TABLE table_17076 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Hometown" FROM table_17076 WHERE "School" = 'American Heritage School' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
3959,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
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,
19040,
3540,
121,
21680,
953,
834,
536,
2518,
3959,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
8778,
11523,
1121,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the average of wins with manager George Scherger smaller than 3 and losses smaller than 1? | CREATE TABLE table_71798 (
"Manager" text,
"Years" text,
"Games" real,
"Wins" real,
"Losses" real
) | SELECT AVG("Wins") FROM table_71798 WHERE "Games" < '3' AND "Manager" = 'george scherger' AND "Losses" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2517,
3916,
41,
96,
27272,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
18455,
7,
8512,
21680,
953,
834,
940,
2517,
3916,
549,
17444,
427,
96,
23055,
7,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
27272,
121,
3274,
3,
31,
397,
1677,
15,
3,
11575,
1304,
31,
3430,
96,
... |
What is the average grid number that had Team China with less than 10 laps? | CREATE TABLE table_38275 (
"Team" text,
"Driver" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT AVG("Grid") FROM table_38275 WHERE "Laps" < '10' AND "Team" = 'china' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
25988,
41,
96,
18699,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
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,
71,
17217,
599,
121,
13313,
26,
8512,
21680,
953,
834,
3747,
25988,
549,
17444,
427,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
1714,
31,
3430,
96,
18699,
121,
3274,
3,
31,
5675,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
Draw a bar chart for what is the average base price of rooms, for each bed type?, sort by the total number in ascending. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY AVG(basePrice) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25160,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
71,
17217,
599,
10925,
345,
4920,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when was the last tour date of 2010 ? | CREATE TABLE table_203_855 (
id number,
"date" text,
"city" text,
"venue" text,
"member" text,
"performance" text,
"notes" text
) | SELECT "date" FROM table_203_855 ORDER BY "date" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4433,
755,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
12066,
121,
1499,
6,
96,
18558,
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,
5522,
121,
21680,
953,
834,
23330,
834,
4433,
755,
4674,
11300,
272,
476,
96,
5522,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the number of gn divisions for mannar | CREATE TABLE table_24574438_1 (
gn_divisions VARCHAR,
ds_division VARCHAR
) | SELECT COUNT(gn_divisions) FROM table_24574438_1 WHERE ds_division = "Mannar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3436,
3628,
3747,
834,
536,
41,
3,
122,
29,
834,
26,
23,
6610,
7,
584,
4280,
28027,
6,
3,
26,
7,
834,
26,
23,
6610,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
122,
29,
834,
26,
23,
6610,
7,
61,
21680,
953,
834,
2266,
3436,
3628,
3747,
834,
536,
549,
17444,
427,
3,
26,
7,
834,
26,
23,
6610,
3274,
96,
7296,
29,
291,
121,
1,
-100,
-100,
-100,
-100,
-100... |
Who wrote Episode #3? | CREATE TABLE table_10470082_6 (writer VARCHAR, _number VARCHAR) | SELECT writer FROM table_10470082_6 WHERE _number = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
9295,
4613,
834,
948,
41,
12756,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
16112,
20206,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4346,
21680,
953,
834,
15442,
9295,
4613,
834,
948,
549,
17444,
427,
3,
834,
5525,
1152,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the location for abraham baldwin agricultural college | CREATE TABLE table_16734640_1 (
location VARCHAR,
institution VARCHAR
) | SELECT location FROM table_16734640_1 WHERE institution = "Abraham Baldwin Agricultural College" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
3710,
23714,
834,
536,
41,
1128,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1128,
21,
3,
9,
1939,
1483,
3,
8267,
375... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
27650,
3710,
23714,
834,
536,
549,
17444,
427,
6568,
3274,
96,
188,
1939,
1483,
29467,
3,
24354,
1888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What language is the book Miss Macintosh, My Darling in? | CREATE TABLE table_56187 (
"Book title" text,
"Author" text,
"Edition/Publisher" text,
"Page count" text,
"Page size" text,
"Language" text
) | SELECT "Language" FROM table_56187 WHERE "Book title" = 'miss macintosh, my darling' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
25828,
41,
96,
13355,
2233,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
427,
10569,
87,
31009,
49,
121,
1499,
6,
96,
345,
545,
3476,
121,
1499,
6,
96,
345,
545,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
1468,
76,
545,
121,
21680,
953,
834,
4834,
25828,
549,
17444,
427,
96,
13355,
2233,
121,
3274,
3,
31,
11502,
11486,
77,
235,
7,
107,
6,
82,
649,
697,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards? | CREATE TABLE table_35078 (
"Date" text,
"Kicker" text,
"Kicking team" text,
"Opponent" text,
"Yards" real,
"Result" text,
"Game time" text
) | SELECT AVG("Yards") FROM table_35078 WHERE "Game time" = '2nd quarter (0:00)' AND "Date" = 'november 8, 1971' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16975,
3940,
41,
96,
308,
342,
121,
1499,
6,
96,
439,
23,
3383,
121,
1499,
6,
96,
439,
3142,
53,
372,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
476,
986,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
476,
986,
7,
8512,
21680,
953,
834,
16975,
3940,
549,
17444,
427,
96,
23055,
97,
121,
3274,
3,
31,
357,
727,
2893,
41,
25713,
61,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
9478,
... |
Show station names without any trains. | CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (name VARCHAR, station_id VARCHAR) | SELECT name FROM station WHERE NOT station_id IN (SELECT station_id FROM train_station) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
4350,
584,
4280,
28027,
6,
2478,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
834,
6682,
41,
4350,
584,
4280,
28027,
6,
2478,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
2478,
549,
17444,
427,
4486,
2478,
834,
23,
26,
3388,
41,
23143,
14196,
2478,
834,
23,
26,
21680,
2412,
834,
6682,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the margin of victory when the runner-up was Janet Coles? | CREATE TABLE table_name_48 (margin_of_victory VARCHAR, runner_s__up VARCHAR) | SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = "janet coles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1635,
122,
77,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
1191,
1582,
576,
965,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Tom Kite with a Score of 68's To Par? | CREATE TABLE table_name_92 (to_par VARCHAR, score VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_92 WHERE score = 68 AND player = "tom kite" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
235,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3059,
5747,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2604,
3274,
3,
3651,
3430,
1959,
3274,
96,
235,
51,
3650,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the 2011 with 2006 of 2r | CREATE TABLE table_name_97 (Id VARCHAR) | SELECT 2011 FROM table_name_97 WHERE 2006 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2722,
28,
3581,
13,
204,
52,
1,
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,
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... | [
3,
23143,
14196,
2722,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
3581,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the awardees for best special effects | CREATE TABLE table_24446718_3 (
awardee_s_ VARCHAR,
name_of_award VARCHAR
) | SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_award = "Best Special Effects" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3628,
3708,
2606,
834,
519,
41,
2760,
15,
15,
834,
7,
834,
584,
4280,
28027,
6,
564,
834,
858,
834,
9,
2239,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2760,
15,
15,
834,
7,
834,
21680,
953,
834,
2266,
3628,
3708,
2606,
834,
519,
549,
17444,
427,
564,
834,
858,
834,
9,
2239,
3274,
96,
17278,
3608,
14247,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many decile has a roll less than 20? | CREATE TABLE table_name_6 (
decile INTEGER,
roll INTEGER
) | SELECT AVG(decile) FROM table_name_6 WHERE roll < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
7908,
109,
3,
21342,
17966,
6,
3812,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7908,
109,
65,
3,
9,
3812,
705,
145,
460,
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,
71,
17217,
599,
24223,
109,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3812,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date for home team Collingwood? | CREATE TABLE table_56990 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_56990 WHERE "Home team" = 'collingwood' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
26901,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4834,
26901,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
3297,
697,
2037,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average high position for the album unwritten? | CREATE TABLE table_name_69 (
Highest INTEGER,
album_title VARCHAR
) | SELECT AVG(Highest) AS position FROM table_name_69 WHERE album_title = "unwritten" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
1592,
222,
3,
21342,
17966,
6,
2306,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
306,
1102,
21,
8,
2306,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
21417,
222,
61,
6157,
1102,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
2306,
834,
21869,
3274,
96,
202,
14973,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What year was the No. 7 charts? | CREATE TABLE table_name_32 (
year INTEGER,
charts VARCHAR
) | SELECT AVG(year) FROM table_name_32 WHERE charts = "no. 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
215,
3,
21342,
17966,
6,
12321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
8,
465,
5,
489,
12321,
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,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
12321,
3274,
96,
29,
32,
5,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the date when the opponent was at South carolina? | CREATE TABLE table_name_8 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_8 WHERE opponent = "at south carolina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
116,
8,
15264,
47,
44,
1013,
443,
12057,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
15264,
3274,
96,
144,
3414,
443,
12057,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What match number took place on August 3, 2007? | CREATE TABLE table_name_38 (match INTEGER, date VARCHAR) | SELECT MAX(match) FROM table_name_38 WHERE date = "august 3, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
19515,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1588,
381,
808,
286,
30,
1660,
6180,
4101,
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,
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,
4800,
4,
599,
19515,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
833,
3274,
96,
402,
17198,
6180,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In season number 3, who were the writers? | CREATE TABLE table_21313327_1 (written_by VARCHAR, no_in_season VARCHAR) | SELECT written_by FROM table_21313327_1 WHERE no_in_season = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
22974,
2555,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
774,
381,
6180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1545,
834,
969,
21680,
953,
834,
357,
2368,
22974,
2555,
834,
536,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Country has a Network of channel 1? | CREATE TABLE table_name_97 (country VARCHAR, network VARCHAR) | SELECT country FROM table_name_97 WHERE network = "channel 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
17529,
584,
4280,
28027,
6,
1229,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6993,
65,
3,
9,
3426,
13,
4245,
209,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1229,
3274,
96,
19778,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who's the player eliminated on episode 8 of Fresh Meat? | CREATE TABLE table_name_59 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR) | SELECT player FROM table_name_59 WHERE original_season = "fresh meat" AND eliminated = "episode 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
20846,
584,
4280,
28027,
6,
926,
834,
9476,
584,
4280,
28027,
6,
17809,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
1959,
17809,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
926,
834,
9476,
3274,
96,
20164,
3604,
121,
3430,
17809,
3274,
96,
15,
102,
159,
32,
221,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what position did Salina Kosgei finish in the Tokyo Marathon? | CREATE TABLE table_name_23 (
position VARCHAR,
competition VARCHAR
) | SELECT position FROM table_name_23 WHERE competition = "tokyo marathon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1102,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
1102,
410,
1138,
8280,
1793,
7,
397,
23,
1992,
16,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
2259,
3274,
96,
235,
3781,
32,
17625,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Of the players with 50 free throws, what is the lowest number of three pointers? | CREATE TABLE table_22824199_1 (
three_pointers INTEGER,
free_throws VARCHAR
) | SELECT MIN(three_pointers) FROM table_22824199_1 WHERE free_throws = 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
2266,
19479,
834,
536,
41,
386,
834,
2700,
277,
3,
21342,
17966,
6,
339,
834,
189,
3623,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1129,
8,
1508... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
21182,
834,
2700,
277,
61,
21680,
953,
834,
357,
2577,
2266,
19479,
834,
536,
549,
17444,
427,
339,
834,
189,
3623,
7,
3274,
943,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Date, when Attendance is greater than 20,066, and when Visitor is 'Boston Bruins'? | CREATE TABLE table_47389 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Date" FROM table_47389 WHERE "Attendance" > '20,066' AND "Visitor" = 'boston bruins' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
519,
3914,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4177,
519,
3914,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
1755,
6,
632,
3539,
31,
3430,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
115,
32,
4411,
3,
115,... |
How many goals were scored on November 22, 1994? | CREATE TABLE table_name_13 (
goal INTEGER,
date VARCHAR
) | SELECT SUM(goal) FROM table_name_13 WHERE date = "november 22, 1994" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
1288,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
130,
5799,
30,
1671,
12889,
7520,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
839,
138,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
12889,
7520,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the location for the office whose term ended December 2, 1976 | CREATE TABLE table_20482 (
"Office" text,
"Type" text,
"Location" text,
"Elected" real,
"Term began" text,
"Term ended" text
) | SELECT "Location" FROM table_20482 WHERE "Term ended" = 'December 2, 1976' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
4613,
41,
96,
22098,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
21543,
15,
26,
121,
490,
6,
96,
11679,
1553,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
26363,
4613,
549,
17444,
427,
96,
11679,
3492,
121,
3274,
3,
31,
29835,
3547,
16164,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What episode titles have 20.94 million U.S. viewers? | CREATE TABLE table_20918 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Title" FROM table_20918 WHERE "U.S. viewers (millions)" = '20.94' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4198,
2606,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
357,
4198,
2606,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
1755,
5,
4240,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Visualize a scatter chart about the correlation between Team_ID and All_Games_Percent , and group by attribute All_Games. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY All_Games | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
23055,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the A Score was larger than 5.933 with a total of 19.833, what nation was this? | CREATE TABLE table_name_40 (
nation VARCHAR,
a_score VARCHAR,
total VARCHAR
) | SELECT nation FROM table_name_40 WHERE a_score > 5.933 AND total = 19.833 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
2982,
584,
4280,
28027,
6,
3,
9,
834,
7,
9022,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
71,
17763,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
3,
9,
834,
7,
9022,
2490,
3594,
4271,
519,
3430,
792,
3274,
9997,
4591,
519,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the lowest Long that has the Yards 293, and the Returns smaller than 16? | CREATE TABLE table_9292 (
"Player" text,
"Games" real,
"Returns" real,
"Yards" real,
"Long" real,
"Yards per return" real
) | SELECT MIN("Long") FROM table_9292 WHERE "Yards" = '293' AND "Returns" < '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4508,
4508,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
1649,
7535,
7,
121,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
434,
2444,
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,
3,
17684,
599,
121,
434,
2444,
8512,
21680,
953,
834,
4508,
4508,
549,
17444,
427,
96,
476,
986,
7,
121,
3274,
3,
31,
357,
4271,
31,
3430,
96,
1649,
7535,
7,
121,
3,
2,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-1... |
Find the names and opening hours of the tourist attractions that we get to by bus or walk. | CREATE TABLE street_markets (
market_id number,
market_details text
)
CREATE TABLE visitors (
tourist_id number,
tourist_details text
)
CREATE TABLE locations (
location_id number,
location_name text,
address text,
other_details text
)
CREATE TABLE ref_hotel_star_ratings (
star_ra... | SELECT name, opening_hours FROM tourist_attractions WHERE how_to_get_there = "bus" OR how_to_get_there = "walk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2815,
834,
8809,
7,
41,
512,
834,
23,
26,
381,
6,
512,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2692,
41,
8548,
834,
23,
26,
381,
6,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
2101,
834,
5842,
7,
21680,
8548,
834,
144,
10559,
7,
549,
17444,
427,
149,
834,
235,
834,
2782,
834,
12137,
3274,
96,
3465,
121,
4674,
149,
834,
235,
834,
2782,
834,
12137,
3274,
96,
12539,
121,
1,
-100,
-... |
What is the to par for Scotland? | CREATE TABLE table_name_96 (to_par VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_96 WHERE country = "scotland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
235,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12,
260,
21,
8288,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
684,
3274,
96,
7,
4310,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which municipality has the largest area ? | CREATE TABLE table_204_987 (
id number,
"city/municipality" text,
"no. of\nbarangays" number,
"area\n(km2)" number,
"population\n(2010 census)" number,
"pop. density\n(per km2)" number
) | SELECT "city/municipality" FROM table_204_987 ORDER BY "area\n(km2)" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3916,
940,
41,
3,
23,
26,
381,
6,
96,
6726,
87,
11760,
3389,
10355,
121,
1499,
6,
96,
29,
32,
5,
13,
2,
29,
1047,
1468,
9,
63,
7,
121,
381,
6,
96,
498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6726,
87,
11760,
3389,
10355,
121,
21680,
953,
834,
26363,
834,
3916,
940,
4674,
11300,
272,
476,
96,
498,
2,
29,
599,
5848,
7318,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the year founded for the team Dinos? | CREATE TABLE table_27599216_6 (
founded INTEGER,
team VARCHAR
) | SELECT MAX(founded) FROM table_27599216_6 WHERE team = "Dinos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
3264,
27184,
834,
948,
41,
5710,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
215,
5710,
21,
8,
372,
3181,
32,
7,
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,
4800,
4,
599,
23329,
61,
21680,
953,
834,
25988,
3264,
27184,
834,
948,
549,
17444,
427,
372,
3274,
96,
308,
23,
4844,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total amounts of payments by each method code? You can give me a bar chart, list by the y axis in desc. | CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
)
CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Da... | SELECT Payment_Method_Code, SUM(Amount_Payment) FROM Payments GROUP BY Payment_Method_Code ORDER BY SUM(Amount_Payment) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
31044,
7,
41,
31044,
834,
4309,
3,
21342,
17966,
6,
7781,
603,
834,
4309,
3,
21342,
17966,
6,
7678,
834,
254,
521,
603,
834,
329,
9,
221,
309,
6048,
6,
7678,
834,
254,
521,
603,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12248,
834,
23351,
107,
32,
26,
834,
22737,
6,
180,
6122,
599,
188,
11231,
834,
19702,
297,
61,
21680,
12248,
7,
350,
4630,
6880,
272,
476,
12248,
834,
23351,
107,
32,
26,
834,
22737,
4674,
11300,
272,
476,
180,
612... |
what is the current version of the name mupen64plus with gpl v2 license? | CREATE TABLE table_name_97 (current_version VARCHAR, license VARCHAR, name VARCHAR) | SELECT current_version FROM table_name_97 WHERE license = "gpl v2" AND name = "mupen64plus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
14907,
834,
8674,
584,
4280,
28027,
6,
3344,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
750,
988,
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,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
750,
834,
8674,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
3344,
3274,
96,
122,
102,
40,
3,
208,
357,
121,
3430,
564,
3274,
96,
51,
413,
35,
4389,
10817,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what year did the first model have its first flight ? | CREATE TABLE table_203_601 (
id number,
"manufacturer" text,
"model" text,
"first flight" number,
"max payload (t)" number,
"cruise (km/h)" text,
"max range (km)" number,
"mtow" number
) | SELECT "first flight" FROM table_203_601 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3328,
536,
41,
3,
23,
26,
381,
6,
96,
348,
76,
8717,
450,
49,
121,
1499,
6,
96,
21770,
121,
1499,
6,
96,
14672,
3777,
121,
381,
6,
96,
9128,
726,
7134,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14672,
3777,
121,
21680,
953,
834,
23330,
834,
3328,
536,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the record on March 22? | CREATE TABLE table_34599 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Record" FROM table_34599 WHERE "Date" = 'march 22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2128,
3264,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
519,
2128,
3264,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
51,
7064,
1630,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Time of the Player with a Rank of 2? | CREATE TABLE table_13988 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Time" FROM table_13988 WHERE "Rank" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
4060,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
24090,
4060,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the average value of the respiration of patient 005-4471 on the current intensive care unit visit? | 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 AVG(vitalperiodic.respiration) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4471') AND patient.unitdischargetime IS NULL) ... | [
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,
71,
17217,
599,
12411,
40,
4267,
32,
4370,
5,
60,
7675,
2661,
61,
21680,
3362,
4267,
32,
4370,
549,
17444,
427,
3362,
4267,
32,
4370,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21... |
Who was the winning mentor in season two? | CREATE TABLE table_16331144_1 (winning_mentor VARCHAR, season VARCHAR) | SELECT winning_mentor FROM table_16331144_1 WHERE season = "Two" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4201,
2596,
3628,
834,
536,
41,
8163,
834,
297,
127,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3447,
9380,
16,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
297,
127,
21680,
953,
834,
2938,
4201,
2596,
3628,
834,
536,
549,
17444,
427,
774,
3274,
96,
382,
210,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which year did John Force win Funny Car and Mike Dunn win in Top Fuel? | CREATE TABLE table_name_65 (year VARCHAR, funny_car VARCHAR, top_fuel VARCHAR) | SELECT year FROM table_name_65 WHERE funny_car = "john force" AND top_fuel = "mike dunn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1201,
584,
4280,
28027,
6,
6613,
834,
1720,
584,
4280,
28027,
6,
420,
834,
21692,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
215,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
6613,
834,
1720,
3274,
96,
27341,
2054,
121,
3430,
420,
834,
21692,
3274,
96,
20068,
15,
146,
29,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Year Joined has a Size larger than 93, and a Previous Conference of none (new school), and a Mascot of rebels? | CREATE TABLE table_name_88 (year_joined INTEGER, mascot VARCHAR, size VARCHAR, previous_conference VARCHAR) | SELECT AVG(year_joined) FROM table_name_88 WHERE size > 93 AND previous_conference = "none (new school)" AND mascot = "rebels" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
1201,
834,
1927,
630,
26,
3,
21342,
17966,
6,
3,
2754,
4310,
584,
4280,
28027,
6,
812,
584,
4280,
28027,
6,
1767,
834,
28496,
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,
71,
17217,
599,
1201,
834,
1927,
630,
26,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
812,
2490,
3,
4271,
3430,
1767,
834,
28496,
3274,
96,
29,
782,
41,
5534,
496,
61,
121,
3430,
3,
2754,
4310,
3274,
96... |
What was the record when the team played Boston? | CREATE TABLE table_1664 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_1664 WHERE "Team" = 'Boston' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4389,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7621,
121,
21680,
953,
834,
2938,
4389,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
279,
32,
4411,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the nationality of the player coming from Edmonton Oil Kings (WCHL)? | CREATE TABLE table_1965650_4 (nationality VARCHAR, college_junior_club_team VARCHAR) | SELECT nationality FROM table_1965650_4 WHERE college_junior_club_team = "Edmonton Oil Kings (WCHL)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4122,
15348,
834,
591,
41,
16557,
485,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
2294,
4122,
15348,
834,
591,
549,
17444,
427,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
3274,
96,
427,
26,
4662,
106,
6067,
13913,
41,
10038,
13641,
61,
121,
1,
-100,
-100,
-100,
... |
What languages are spoken when call sign XEJAM is used? | CREATE TABLE table_1089 (
"Call sign" text,
"Launched" text,
"Transmitting from" text,
"Coverage" text,
"Languages" text,
"Frequency" text
) | SELECT "Languages" FROM table_1089 WHERE "Call sign" = 'XEJAM' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3914,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
3612,
202,
4513,
121,
1499,
6,
96,
18474,
1538,
1222,
45,
121,
1499,
6,
96,
254,
1890,
545,
121,
1499,
6,
96,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
1468,
76,
2568,
121,
21680,
953,
834,
1714,
3914,
549,
17444,
427,
96,
254,
1748,
1320,
121,
3274,
3,
31,
4,
427,
683,
4815,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the minimum, average, and maximum age of all students. | CREATE TABLE Student (
age INTEGER
) | SELECT MIN(age), AVG(age), MAX(age) FROM Student | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
1246,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
2559,
6,
1348,
6,
11,
2411,
1246,
13,
66,
481,
5,
1,
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,
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,
3,
17684,
599,
545,
201,
71,
17217,
599,
545,
201,
4800,
4,
599,
545,
61,
21680,
6341,
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 time of the Kentucky Derby? | CREATE TABLE table_46436 (
"Finish" text,
"Race" text,
"Distance" text,
"Jockey" text,
"Time" text,
"Victory Margin (in lengths)" text,
"Runner up" text,
"Track" text,
"Surface" text,
"Date" text
) | SELECT "Time" FROM table_46436 WHERE "Race" = 'kentucky derby' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4389,
3420,
41,
96,
371,
77,
1273,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
13368,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
591,
4389,
3420,
549,
17444,
427,
96,
448,
3302,
121,
3274,
3,
31,
2217,
17,
4636,
63,
74,
969,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many fatalities shows for the lockheed l-1049g? | CREATE TABLE table_name_62 (
fatalities INTEGER,
aircraft_type VARCHAR
) | SELECT SUM(fatalities) FROM table_name_62 WHERE aircraft_type = "lockheed l-1049g" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
12699,
2197,
3,
21342,
17966,
6,
6442,
834,
6137,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
12699,
2197,
1267,
21,
8,
6081,
24778... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
6589,
138,
2197,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
6442,
834,
6137,
3274,
96,
4029,
24778,
3,
40,
4536,
3647,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the M-R Romaja for the province having a capital of Cheongju? | CREATE TABLE table_75908 (
"RR Romaja" text,
"M\u2013R Romaja" text,
"Hangul/Chosongul" text,
"Hanja" text,
"Area" text,
"Capital" text,
"Region" text,
"Country" text
) | SELECT "M\u2013R Romaja" FROM table_75908 WHERE "Capital" = 'cheongju' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
2394,
927,
41,
96,
12224,
16082,
1191,
121,
1499,
6,
96,
329,
2,
76,
11138,
448,
16082,
1191,
121,
1499,
6,
96,
566,
1468,
83,
87,
3541,
32,
739,
6106,
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,
329,
2,
76,
11138,
448,
16082,
1191,
121,
21680,
953,
834,
3072,
2394,
927,
549,
17444,
427,
96,
19566,
9538,
121,
3274,
3,
31,
1033,
2444,
2047,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what place is the golfer with a score of 68-69-73-70=280? | CREATE TABLE table_name_24 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_24 WHERE score = 68 - 69 - 73 - 70 = 280 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
4687,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
286,
19,
8,
4319,
49,
28,
3,
9,
2604,
13,
3,
3651,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
2604,
3274,
3,
3651,
3,
18,
3,
3951,
3,
18,
3,
4552,
3,
18,
2861,
3274,
3,
17518,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the time for the driver who came in last place ? | CREATE TABLE table_203_399 (
id number,
"pos." text,
"driver" text,
"co-driver" text,
"car" text,
"time" text,
"difference" text,
"points" number
) | SELECT MAX("time") FROM table_203_399 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3264,
41,
3,
23,
26,
381,
6,
96,
2748,
535,
1499,
6,
96,
13739,
52,
121,
1499,
6,
96,
509,
18,
13739,
52,
121,
1499,
6,
96,
1720,
121,
1499,
6,
96,
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,
4800,
4,
599,
121,
715,
8512,
21680,
953,
834,
23330,
834,
519,
3264,
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 was the highest position for Rossendale United when the played was larger than 34? | CREATE TABLE table_name_19 (position INTEGER, team VARCHAR, played VARCHAR) | SELECT MAX(position) FROM table_name_19 WHERE team = "rossendale united" AND played > 34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
4718,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
1102,
21,
9616,
35,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
4718,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
372,
3274,
96,
1859,
7,
35,
5437,
18279,
121,
3430,
1944,
2490,
6154,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the constructor of the Swedish Grand Prix? | CREATE TABLE table_211 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT "Constructor" FROM table_211 WHERE "Race" = 'Swedish Grand Prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27278,
41,
96,
448,
727,
121,
490,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258,
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,
4302,
7593,
127,
121,
21680,
953,
834,
27278,
549,
17444,
427,
96,
448,
3302,
121,
3274,
3,
31,
134,
1123,
26,
1273,
2698,
12942,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What team has a porsche 956 b chassis-engine with less than 79 laps? | CREATE TABLE table_name_17 (team VARCHAR, chassis___engine VARCHAR, laps VARCHAR) | SELECT team FROM table_name_17 WHERE chassis___engine = "porsche 956 b" AND laps < 79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
11650,
584,
4280,
28027,
6,
22836,
834,
834,
834,
20165,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
22836,
834,
834,
834,
20165,
3274,
96,
102,
127,
3992,
668,
4834,
3,
115,
121,
3430,
14941,
7,
3,
2,
3,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the capacity percentage when attendance was 71080? | CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, average_attendance VARCHAR) | SELECT capacity_percentage FROM table_28884858_2 WHERE average_attendance = 71080 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
10927,
3707,
3449,
834,
357,
41,
4010,
9,
6726,
834,
883,
3728,
545,
584,
4280,
28027,
6,
1348,
834,
15116,
663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2614,
834,
883,
3728,
545,
21680,
953,
834,
357,
10927,
3707,
3449,
834,
357,
549,
17444,
427,
1348,
834,
15116,
663,
3274,
489,
1714,
2079,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many dorms are there for each gender? Show me a bar chart, I want to list from high to low by the y-axis. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARC... | SELECT gender, COUNT(*) FROM Dorm GROUP BY gender ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
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,
7285,
6,
2847,
17161,
599,
1935,
61,
21680,
6200,
51,
350,
4630,
6880,
272,
476,
7285,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
let me know the age and status of death of patient lue white. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT demographic.age, demographic.expire_flag FROM demographic WHERE demographic.name = "Lue White" | [
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,
14798,
5,
545,
6,
14798,
5,
994,
2388,
15,
834,
89,
5430,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
434,
76,
15,
1945,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the nation of citizenship for athletes later than 2011 year of award? | CREATE TABLE table_name_12 (
nation_of_citizenship VARCHAR,
year_of_award INTEGER
) | SELECT nation_of_citizenship FROM table_name_12 WHERE year_of_award > 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
2982,
834,
858,
834,
75,
155,
23,
1847,
2009,
584,
4280,
28027,
6,
215,
834,
858,
834,
9,
2239,
3,
21342,
17966,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2982,
834,
858,
834,
75,
155,
23,
1847,
2009,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
215,
834,
858,
834,
9,
2239,
2490,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
was steven smith pick number 5 or number 8 ? | CREATE TABLE table_204_263 (
id number,
"pick" number,
"player" text,
"country of origin" text,
"pba team" text,
"college" text
) | SELECT "pick" FROM table_204_263 WHERE "player" = 'steven smith' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3891,
41,
3,
23,
26,
381,
6,
96,
17967,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
17529,
13,
5233,
121,
1499,
6,
96,
102,
115,
9,
372,
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,
17967,
121,
21680,
953,
834,
26363,
834,
357,
3891,
549,
17444,
427,
96,
20846,
121,
3274,
3,
31,
849,
1926,
3,
16331,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Tell me the gender and fluid forthe lab test of the patient with patient id 2560. | 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 demographic.gender, lab.fluid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2560" | [
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,
14798,
5,
122,
3868,
6,
7690,
5,
6947,
23,
26,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
5,
7304,
11827,
... |
How many people lived in the census division with an area of 15767.99 km2 in 1996? | CREATE TABLE table_2134521_1 (pop__1996_ VARCHAR, area__km²_ VARCHAR) | SELECT pop__1996_ FROM table_2134521_1 WHERE area__km²_ = "15767.99" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
2128,
2658,
834,
536,
41,
9791,
834,
834,
2294,
4314,
834,
584,
4280,
28027,
6,
616,
834,
834,
5848,
357,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2783,
834,
834,
2294,
4314,
834,
21680,
953,
834,
357,
2368,
2128,
2658,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
357,
834,
3274,
96,
27452,
3708,
14990,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Draw number of the song by Artist of 'Loudest Whisper' with 68 or less Points with a place of 9 or larger? | CREATE TABLE table_name_63 (
draw INTEGER,
place VARCHAR,
points VARCHAR,
artist VARCHAR
) | SELECT AVG(draw) FROM table_name_63 WHERE points < 68 AND artist = "loudest whisper" AND place > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
3314,
3,
21342,
17966,
6,
286,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
19489,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
979,
3,
2,
3,
3651,
3430,
2377,
3274,
96,
40,
1063,
26,
222,
23874,
121,
3430,
286,
2490,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number when against is rajasthan royals? | CREATE TABLE table_22962745_35 (no INTEGER, against VARCHAR) | SELECT MAX(no) FROM table_22962745_35 WHERE against = "Rajasthan Royals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4314,
2555,
2128,
834,
2469,
41,
29,
32,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
116,
581,
19,
3,
9655,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
61,
21680,
953,
834,
2884,
4314,
2555,
2128,
834,
2469,
549,
17444,
427,
581,
3274,
96,
448,
9,
1191,
7,
6736,
3671,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average rank for team cle when the BB/SO is 10.89? | CREATE TABLE table_name_97 (rank INTEGER, team VARCHAR, bb_so VARCHAR) | SELECT AVG(rank) FROM table_name_97 WHERE team = "cle" AND bb_so = 10.89 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
6254,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
3,
115,
115,
834,
7,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
372,
3274,
96,
2482,
121,
3430,
3,
115,
115,
834,
7,
32,
3274,
5477,
3914,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On the date April 11, what is the total game number? | CREATE TABLE table_name_4 (game VARCHAR, date VARCHAR) | SELECT COUNT(game) FROM table_name_4 WHERE date = "april 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
7261,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
8,
833,
1186,
9694,
125,
19,
8,
792,
467,
381,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the nations that have more than two ships. | CREATE TABLE ship (
ship_id number,
name text,
type text,
nationality text,
tonnage number
)
CREATE TABLE mission (
mission_id number,
ship_id number,
code text,
launched_year number,
location text,
speed_knots number,
fate text
) | SELECT nationality FROM ship GROUP BY nationality HAVING COUNT(*) > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
4383,
834,
23,
26,
381,
6,
564,
1499,
6,
686,
1499,
6,
1157,
485,
1499,
6,
12,
29,
9761,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
2253,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1157,
485,
21680,
4383,
350,
4630,
6880,
272,
476,
1157,
485,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average 3620 value that has a 5432 of 1277 and a 15122 less than 1540? | CREATE TABLE table_80240 (
"Total" text,
"11502" real,
"3620" real,
"15122" real,
"5432" real,
"2233" real,
"7665" real
) | SELECT AVG("3620") FROM table_80240 WHERE "5432" = '1277' AND "15122" < '1540' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
11944,
41,
96,
3696,
1947,
121,
1499,
6,
96,
15660,
4305,
121,
490,
6,
96,
3420,
1755,
121,
490,
6,
96,
1808,
20889,
121,
490,
6,
96,
5062,
2668,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3420,
1755,
8512,
21680,
953,
834,
2079,
11944,
549,
17444,
427,
96,
5062,
2668,
121,
3274,
3,
31,
2122,
4013,
31,
3430,
96,
1808,
20889,
121,
3,
2,
3,
31,
1808,
2445,
31,
1,
-100,
-100,
-100,... |
how many patients with white ethnic background are diagnosed with unspecified pleural effusion? | 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 WHERE demographic.ethnicity = "WHITE" AND diagnoses.short_title = "Pleural effusion NOS" | [
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,
5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.