NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what rank has years until mandatory retirement of 6 years? | CREATE TABLE table_51685 (
"Name" text,
"Rank" text,
"Years until mandatory retirement" text,
"Appointed by" text,
"Year appointed" real
) | SELECT "Rank" FROM table_51685 WHERE "Years until mandatory retirement" = '6 years' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2938,
4433,
41,
96,
23954,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
476,
2741,
7,
552,
13488,
6576,
121,
1499,
6,
96,
9648,
32,
2429,
26,
57,
121,
1499,
6,
96,
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,
1... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
755,
2938,
4433,
549,
17444,
427,
96,
476,
2741,
7,
552,
13488,
6576,
121,
3274,
3,
31,
948,
203,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If the place is hemkunt sahib what is the category? | CREATE TABLE table_1430913_1 (
category VARCHAR,
name_of_place VARCHAR
) | SELECT category FROM table_1430913_1 WHERE name_of_place = "Hemkunt Sahib" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4198,
2368,
834,
536,
41,
3295,
584,
4280,
28027,
6,
564,
834,
858,
834,
4687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
286,
19,
3,
6015,
157,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3295,
21680,
953,
834,
25133,
4198,
2368,
834,
536,
549,
17444,
427,
564,
834,
858,
834,
4687,
3274,
96,
3845,
51,
157,
202,
17,
1138,
107,
23,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What shows for money (£) when South Africa is the country? | CREATE TABLE table_name_44 (money___ INTEGER, country VARCHAR) | SELECT MAX(money___) AS £__ FROM table_name_44 WHERE country = "south africa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
28442,
834,
834,
834,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
21,
540,
41,
19853,
61,
116,
1013,
2648,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
28442,
834,
834,
834,
61,
6157,
3996,
834,
834,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
684,
3274,
96,
7,
670,
107,
24040,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
which Construction is named heng-hai? | CREATE TABLE table_name_69 (construction VARCHAR, name__wade_giles_ VARCHAR) | SELECT construction FROM table_name_69 WHERE name__wade_giles_ = "heng-hai" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
26471,
584,
4280,
28027,
6,
564,
834,
834,
210,
9,
221,
834,
122,
699,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
84,
8663,
19,
2650,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1449,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
564,
834,
834,
210,
9,
221,
834,
122,
699,
7,
834,
3274,
96,
88,
1725,
18,
1024,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Bar chart x axis duration y axis how many duration, I want to sort in desc by the bar please. | CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
) | SELECT Duration, COUNT(Duration) FROM actor GROUP BY Duration ORDER BY Duration DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
1983,
127,
834,
4309,
16,
17,
6,
5570,
1499,
6,
22307,
834,
4309,
16,
17,
6,
20087,
1499,
6,
20610,
1499,
6,
1246,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20610,
6,
2847,
17161,
599,
12998,
2661,
61,
21680,
7556,
350,
4630,
6880,
272,
476,
20610,
4674,
11300,
272,
476,
20610,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many people finished 9th? | CREATE TABLE table_19292 (
"Celebrity" text,
"Famous for" text,
"Entered" text,
"Exited" text,
"Finished" text
) | SELECT COUNT("Exited") FROM table_19292 WHERE "Finished" = '9th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
4508,
41,
96,
254,
400,
2160,
17,
63,
121,
1499,
6,
96,
371,
265,
1162,
21,
121,
1499,
6,
96,
16924,
3737,
121,
1499,
6,
96,
5420,
23,
1054,
121,
1499,
6,
96,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
121,
5420,
23,
1054,
8512,
21680,
953,
834,
19978,
4508,
549,
17444,
427,
96,
31135,
121,
3274,
3,
31,
1298,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart about the distribution of All_Home and Team_ID , and group by attribute ACC_Road, I want to rank by the All_Home from high to low please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY All_Home DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
6,
432,
834,
19040,
4674,
11300,
272,
476,
432,
834,
19040,
309,
25067,
1,
-100,
-100,
-100,
... |
Who drove the grid 11 car? | CREATE TABLE table_58414 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Driver" FROM table_58414 WHERE "Grid" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
591,
2534,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
3449,
591,
2534,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In what series did Alice Levine Jamie East give a presentation on Saturday? | CREATE TABLE table_name_60 (
series VARCHAR,
saturday VARCHAR
) | SELECT series FROM table_name_60 WHERE saturday = "alice levine jamie east" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
939,
584,
4280,
28027,
6,
3,
7,
6010,
1135,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
939,
410,
13390,
312,
8402,
17845,
1932,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
3,
7,
6010,
1135,
3274,
96,
138,
867,
90,
8402,
2662,
2720,
5727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which system is named mess? | CREATE TABLE table_name_80 (
system VARCHAR,
name VARCHAR
) | SELECT system FROM table_name_80 WHERE name = "mess" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
358,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
358,
19,
2650,
8090,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
358,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
564,
3274,
96,
2687,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the won promotion for kalmar ff | CREATE TABLE table_2424 (
"Season" real,
"League" text,
"Won Promotion" text,
"Won Promotion Playoffs" text,
"Lost Promotion Playoffs" text
) | SELECT "Won Promotion" FROM table_2424 WHERE "Lost Promotion Playoffs" = 'Kalmar FF' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2266,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
518,
106,
19369,
121,
1499,
6,
96,
518,
106,
19369,
2911,
1647,
7,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
106,
19369,
121,
21680,
953,
834,
2266,
2266,
549,
17444,
427,
96,
434,
3481,
19369,
2911,
1647,
7,
121,
3274,
3,
31,
439,
138,
1635,
3,
9089,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Player has a Round larger than 8? | CREATE TABLE table_name_50 (
player VARCHAR,
round INTEGER
) | SELECT player FROM table_name_50 WHERE round > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
1959,
584,
4280,
28027,
6,
1751,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
12387,
65,
3,
9,
9609,
2186,
145,
505,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1751,
2490,
505,
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... |
who came in first ? | CREATE TABLE table_204_330 (
id number,
"finished" text,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
) | SELECT "horse" FROM table_204_330 WHERE "finished" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
17225,
41,
3,
23,
26,
381,
6,
96,
19420,
121,
1499,
6,
96,
107,
127,
7,
15,
121,
1499,
6,
96,
1927,
75,
4397,
121,
1499,
6,
96,
9719,
49,
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,
107,
127,
7,
15,
121,
21680,
953,
834,
26363,
834,
17225,
549,
17444,
427,
96,
19420,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many premises are there? | CREATE TABLE premises (Id VARCHAR) | SELECT COUNT(*) FROM premises | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12787,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
12787,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
12787,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the status test match with an opposing team of south africa? | CREATE TABLE table_name_77 (date VARCHAR, status VARCHAR, opposing_teams VARCHAR) | SELECT date FROM table_name_77 WHERE status = "test match" AND opposing_teams = "south africa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
5522,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
2637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2637,
3274,
96,
4377,
1588,
121,
3430,
10720,
53,
834,
11650,
7,
3274,
96,
7,
670,
107,
24040,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the fewest number of medals associated with under 6 games and over 0 golds? | CREATE TABLE table_75035 (
"Games" real,
"First" real,
"Last" real,
"Gold" real,
"Bronze" real,
"Total" real,
"Best finish (first/last)" text
) | SELECT MIN("Total") FROM table_75035 WHERE "Games" < '6' AND "Gold" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
2469,
41,
96,
23055,
7,
121,
490,
6,
96,
25171,
121,
490,
6,
96,
3612,
7,
17,
121,
490,
6,
96,
23576,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
9979,
2469,
549,
17444,
427,
96,
23055,
7,
121,
3,
2,
3,
31,
948,
31,
3430,
96,
23576,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What counties represented have a democratic committee, and a committee of ways and means? | CREATE TABLE table_name_17 (
counties_represented VARCHAR,
party VARCHAR,
committee VARCHAR
) | SELECT counties_represented FROM table_name_17 WHERE party = "democratic" AND committee = "ways and means" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
16227,
834,
29845,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
4492,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
16227,
7283,
43,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16227,
834,
29845,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1088,
3274,
96,
23319,
447,
121,
3430,
4492,
3274,
96,
6415,
11,
598,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which was the lowest overall that Wisconsin's team managed? | CREATE TABLE table_name_78 (overall INTEGER, school_club_team VARCHAR) | SELECT MIN(overall) FROM table_name_78 WHERE school_club_team = "wisconsin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
1890,
1748,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
47,
8,
7402,
1879,
24,
10212,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
210,
159,
8056,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Opponent of andry laffita had what score? | CREATE TABLE table_name_7 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_7 WHERE opponent = "andry laffita" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
7,
9022,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4495,
9977,
13,
11,
651,
50,
89,
5616,
9,
141,
125,
2604,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
15264,
3274,
96,
232,
651,
50,
89,
5616,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the region 1 release that has july 20, 2009 as the region 2? | CREATE TABLE table_name_39 (
region_1_release VARCHAR,
region_2_release VARCHAR
) | SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1719,
834,
536,
834,
21019,
584,
4280,
28027,
6,
1719,
834,
357,
834,
21019,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1719,
834,
536,
834,
21019,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1719,
834,
357,
834,
21019,
3274,
96,
2047,
120,
16047,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
During what Years of Operation was the location prospect 33 prospect ave? | CREATE TABLE table_name_35 (years_of_operation VARCHAR, location VARCHAR) | SELECT years_of_operation FROM table_name_35 WHERE location = "prospect 33 prospect ave" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
1201,
7,
834,
858,
834,
22280,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
2092,
125,
13825,
13,
6411,
1575,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
858,
834,
22280,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1128,
3274,
96,
1409,
5628,
5400,
10263,
3,
9,
162,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose diagnoses short title is sec neuroendo tumor-bone and lab test category is blood gas? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Sec neuroendo tumor-bone" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the sum of code , and group by attribute founder, and show in asc by the total number. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T1.Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
19145,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
4416,
1... |
What is Trailing Party, when Party Won is 'Janata Dal', and when Year is '1996'? | CREATE TABLE table_name_74 (
trailing_party VARCHAR,
party_won VARCHAR,
year VARCHAR
) | SELECT trailing_party FROM table_name_74 WHERE party_won = "janata dal" AND year = 1996 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
5032,
53,
834,
8071,
584,
4280,
28027,
6,
1088,
834,
210,
106,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5032,
53,
834,
8071,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1088,
834,
210,
106,
3274,
96,
7066,
144,
9,
3,
26,
138,
121,
3430,
215,
3274,
6911,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the official names of cities that have not held any competition. | CREATE TABLE farm_competition (
Official_Name VARCHAR,
City_ID VARCHAR,
Host_city_ID VARCHAR
)
CREATE TABLE city (
Official_Name VARCHAR,
City_ID VARCHAR,
Host_city_ID VARCHAR
) | SELECT Official_Name FROM city WHERE NOT City_ID IN (SELECT Host_city_ID FROM farm_competition) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3797,
834,
287,
4995,
4749,
41,
13686,
834,
23954,
584,
4280,
28027,
6,
896,
834,
4309,
584,
4280,
28027,
6,
1546,
7,
17,
834,
6726,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
13686,
834,
23954,
21680,
690,
549,
17444,
427,
4486,
896,
834,
4309,
3388,
41,
23143,
14196,
1546,
7,
17,
834,
6726,
834,
4309,
21680,
3797,
834,
287,
4995,
4749,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Give me the comparison about the average of Height over the Sex , and group by attribute Sex, and sort y-axis in desc order please. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY AVG(Height) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
71,
17217,
599,
3845,
2632,
61,
21680,
151,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
71,
17217,
599,
3845,
2632,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the opponent when the attendance is n/a? | CREATE TABLE table_24309 (
"Competition" text,
"Round" text,
"Opponent" text,
"Result" text,
"Score" text,
"Home/Away" text,
"Venue" text,
"Attendance" text,
"Date" text
) | SELECT "Opponent" FROM table_24309 WHERE "Attendance" = 'N/A' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
4198,
41,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
27730,
4198,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
567,
87,
188,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Domestic Tournament with Chennai Super Kings Team? | CREATE TABLE table_name_42 (domestic_tournament VARCHAR, team VARCHAR) | SELECT domestic_tournament FROM table_name_42 WHERE team = "chennai super kings" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
5012,
222,
447,
834,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
23610,
20502,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4422,
834,
17,
1211,
20205,
17,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
372,
3274,
96,
1559,
29,
9,
23,
1355,
3,
1765,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Home team has a Tie no of replay, a Date of 19 november 1985, and an Away team of tranmere rovers? | CREATE TABLE table_9662 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Home team" FROM table_9662 WHERE "Tie no" = 'replay' AND "Date" = '19 november 1985' AND "Away team" = 'tranmere rovers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
4056,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
372,
121,
21680,
953,
834,
4314,
4056,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
60,
4895,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2294,
3,
5326,
18247,
13200,
31,
3430,
96,
188,
1343... |
What is the home team score at glenferrie oval? | CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_65 WHERE venue = "glenferrie oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
2604,
44,
3,
3537,
29,
1010,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
5669,
3274,
96,
3537,
29,
1010,
1753,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give the number of patients whose admission type is emergency and ethnicity is american indian/alaska native. | 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 WHERE demographic.admission_type = "EMERGENCY" AND demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
15,
189,
2532,
... |
WHAT IS THE AVERAGE OVERALL, FOR MARK FISCHER? | CREATE TABLE table_name_56 (
overall INTEGER,
name VARCHAR
) | SELECT AVG(overall) FROM table_name_56 WHERE name = "mark fischer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
1879,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
71,
16174,
11187,
3,
23288,
12126,
6,
5652,
283... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
564,
3274,
96,
3920,
361,
11575,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner? | CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, circuit VARCHAR, gt3_winner VARCHAR) | SELECT gt4_winner FROM table_30062172_3 WHERE circuit = "Donington Park" AND gt3_winner = "Charles Bateman Michael Lyons" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
4056,
27156,
834,
519,
41,
122,
17,
591,
834,
3757,
687,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
6,
3,
122,
17,
519,
834,
3757,
687,
584,
4280,
28027,
61,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
122,
17,
591,
834,
3757,
687,
21680,
953,
834,
5426,
4056,
27156,
834,
519,
549,
17444,
427,
4558,
3274,
96,
13843,
6029,
1061,
121,
3430,
3,
122,
17,
519,
834,
3757,
687,
3274,
96,
18947,
965,
8897,
15,
348,
2... |
What is Total, when FA Cup is 1 0 (3)? | CREATE TABLE table_name_77 (total VARCHAR, fa_cup VARCHAR) | SELECT total FROM table_name_77 WHERE fa_cup = "1 0 (3)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
235,
1947,
584,
4280,
28027,
6,
3,
89,
9,
834,
4658,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9273,
6,
116,
8536,
3802,
19,
209,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
792,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
3,
89,
9,
834,
4658,
3274,
96,
536,
3,
632,
10153,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the most recent year gardnar mulloy played as a partner and score was 12–10, 8–10, 12–10, 6–2? | CREATE TABLE table_name_29 (year INTEGER, partner VARCHAR, score VARCHAR) | SELECT MAX(year) FROM table_name_29 WHERE partner = "gardnar mulloy" AND score = "12–10, 8–10, 12–10, 6–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
1201,
3,
21342,
17966,
6,
2397,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
167,
1100,
215,
3,
6390,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
2397,
3274,
96,
6390,
29,
291,
4035,
195,
32,
63,
121,
3430,
2604,
3274,
96,
2122,
104,
1714,
6,
505,
104,
1714,
6,
586,
104,
1714,
6,
4... |
which sports network has aired the most races in this season ? | CREATE TABLE table_204_508 (
id number,
"no." number,
"race title" text,
"track" text,
"date" text,
"tv" text
) | SELECT "tv" FROM table_204_508 GROUP BY "tv" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1752,
927,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
12614,
2233,
121,
1499,
6,
96,
11991,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
17,
208,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17,
208,
121,
21680,
953,
834,
26363,
834,
1752,
927,
350,
4630,
6880,
272,
476,
96,
17,
208,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100... |
Which contact channel has been used by the customer with name "Tillman Ernser"? | CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (customer_id VARCHAR) | SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
25697,
49,
834,
23,
26,
584,
4280,
28027,
6,
884,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
27608,
834,
19778,
7,
41,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
4245,
834,
4978,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
884,
834,
27608,
834,
19778,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
25697,
49,
83... |
Loss of kendrick (11 8) had what record? | CREATE TABLE table_36900 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Record" FROM table_36900 WHERE "Loss" = 'kendrick (11–8)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
7015,
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,
663,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3420,
7015,
549,
17444,
427,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
2217,
26,
5206,
41,
2596,
104,
13520,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what settlement is the population 1114? | CREATE TABLE table_2562572_19 (settlement VARCHAR, population__2011_ VARCHAR) | SELECT settlement FROM table_2562572_19 WHERE population__2011_ = 1114 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
2294,
41,
2244,
17,
3335,
584,
4280,
28027,
6,
2074,
834,
834,
13907,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
7025,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7025,
21680,
953,
834,
19337,
1828,
5865,
834,
2294,
549,
17444,
427,
2074,
834,
834,
13907,
834,
3274,
850,
2534,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was Elaine Powell (g) of the United states picked? | CREATE TABLE table_43656 (
"Pick" real,
"Player" text,
"Nationality" text,
"New WNBA Team" text,
"Former WNBA Team" text,
"College/Country/Team" text
) | SELECT "Pick" FROM table_43656 WHERE "Nationality" = 'united states' AND "Player" = 'elaine powell (g)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
10402,
948,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
6861,
3,
21170,
4882,
2271,
121,
1499,
6,
96,
3809,
935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
3142,
121,
21680,
953,
834,
591,
10402,
948,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
15,
40,
7043,
1977,
2091,
41,
122,
61,
31,... |
What is the away team that played at punt road oval? | CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_24 WHERE venue = "punt road oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
372,
24,
1944,
44,
4930,
17,
1373,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
5669,
3274,
96,
6225,
17,
1373,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the first downs for points against being 0 | CREATE TABLE table_15607589_2 (
first_downs VARCHAR,
points_against VARCHAR
) | SELECT first_downs FROM table_15607589_2 WHERE points_against = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3328,
3072,
3914,
834,
357,
41,
166,
834,
3035,
7,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
3035,
7,
21680,
953,
834,
1808,
3328,
3072,
3914,
834,
357,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the game number held on May 20? | CREATE TABLE table_name_52 (
game INTEGER,
date VARCHAR
) | SELECT AVG(game) FROM table_name_52 WHERE date = "may 20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
467,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
467,
381,
1213,
30,
932,
460,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7261,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
833,
3274,
96,
13726,
460,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average defenses a champion with 404 days held and a reign larger than 1 has? | CREATE TABLE table_name_57 (
defenses INTEGER,
days_held VARCHAR,
reign VARCHAR
) | SELECT AVG(defenses) FROM table_name_57 WHERE days_held = "404" AND reign > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
4453,
7,
3,
21342,
17966,
6,
477,
834,
14796,
584,
4280,
28027,
6,
17367,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
445... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
31749,
7,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
477,
834,
14796,
3274,
96,
25285,
121,
3430,
17367,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the most rebounds in the game against Phoenix with a number over 76? | CREATE TABLE table_name_16 (
high_rebounds VARCHAR,
game VARCHAR,
team VARCHAR
) | SELECT high_rebounds FROM table_name_16 WHERE game > 76 AND team = "phoenix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
306,
834,
23768,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
167,
3,
2376... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
23768,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
467,
2490,
3,
3959,
3430,
372,
3274,
96,
9553,
35,
2407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Australia's place? | CREATE TABLE table_43753 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Hole" text
) | SELECT "Place" FROM table_43753 WHERE "Country" = 'australia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
3072,
519,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
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,
345,
11706,
121,
21680,
953,
834,
4906,
3072,
519,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
2064,
8792,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest number of members on the Cultural and Educational Panel, when the University of Dublin had 3 members, when the Industrial and Commercial Panel had more than 0 members, and when the Agricultural Panel had more than 4 members? | CREATE TABLE table_name_28 (
cultural_and_educational_panel INTEGER,
agricultural_panel VARCHAR,
university_of_dublin VARCHAR,
industrial_and_commercial_panel VARCHAR
) | SELECT MIN(cultural_and_educational_panel) FROM table_name_28 WHERE university_of_dublin < 3 AND industrial_and_commercial_panel > 0 AND agricultural_panel > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
2779,
834,
232,
834,
29117,
138,
834,
28726,
3,
21342,
17966,
6,
10687,
834,
28726,
584,
4280,
28027,
6,
3819,
834,
858,
834,
1259,
21746,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14700,
834,
232,
834,
29117,
138,
834,
28726,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
3819,
834,
858,
834,
1259,
21746,
3,
2,
220,
3430,
2913,
834,
232,
834,
27260,
834,
28726,
2490,
3,... |
How many Gold medals does the country with 2 Silver and more than 2 Bronze have? | CREATE TABLE table_name_11 (gold VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT COUNT(gold) FROM table_name_11 WHERE silver = 2 AND bronze > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
14910,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2540,
9365,
7,
405,
8,
684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
4294,
3274,
204,
3430,
13467,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS THE WINNER WITH ATCC ROUND 6? | CREATE TABLE table_48233 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
) | SELECT "Winner" FROM table_48233 WHERE "Series" = 'atcc round 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
20879,
41,
96,
308,
342,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
254,
485,
3,
87,
1015,
121,
1499,
6,
96,
18455,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
687,
121,
21680,
953,
834,
3707,
20879,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
144,
75,
75,
1751,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which planet has an orbital period of 11.86 years? | CREATE TABLE table_10932739_2 (
planet VARCHAR,
orbital_period VARCHAR
) | SELECT planet FROM table_10932739_2 WHERE orbital_period = "11.86 years" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4271,
2555,
3288,
834,
357,
41,
4345,
584,
4280,
28027,
6,
15607,
138,
834,
4267,
32,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4345,
65,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4345,
21680,
953,
834,
1714,
4271,
2555,
3288,
834,
357,
549,
17444,
427,
15607,
138,
834,
4267,
32,
26,
3274,
96,
10032,
3840,
203,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of chapter 8 of season 4? | CREATE TABLE table_28685 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (million)" text
) | SELECT "Title" FROM table_28685 WHERE "No. in season" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3840,
4433,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
357,
3840,
4433,
549,
17444,
427,
96,
4168,
5,
16,
774,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result of the game with a score of 3-2? | CREATE TABLE table_name_99 (result VARCHAR, score VARCHAR) | SELECT result FROM table_name_99 WHERE score = "3-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
28,
3,
9,
2604,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
2604,
3274,
96,
21160,
121,
1,
-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 nationality of the sunk ship named Rinos? | CREATE TABLE table_name_52 (nationality VARCHAR, fate VARCHAR, ship VARCHAR) | SELECT nationality FROM table_name_52 WHERE fate = "sunk" AND ship = "rinos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
16557,
485,
584,
4280,
28027,
6,
15126,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1157,
485,
13,
8,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
15126,
3274,
96,
7,
6513,
121,
3430,
4383,
3274,
96,
52,
23,
4844,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
IN THE ISSUE WHERE NICOLE NARAIN WAS THE CENTERFOLD MODEL, WHO WAS THE INTERVIEW SUBJECT? | CREATE TABLE table_1566852_3 (
interview_subject VARCHAR,
centerfold_model VARCHAR
) | SELECT interview_subject FROM table_1566852_3 WHERE centerfold_model = "Nicole Narain" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
3651,
5373,
834,
519,
41,
2772,
834,
7304,
11827,
584,
4280,
28027,
6,
1530,
10533,
834,
21770,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3388,
1853,
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,
2772,
834,
7304,
11827,
21680,
953,
834,
25463,
3651,
5373,
834,
519,
549,
17444,
427,
1530,
10533,
834,
21770,
3274,
96,
21926,
15,
1823,
6559,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the average concacaf for merconorte larger than 0 and player of jared borgetti | CREATE TABLE table_name_59 (
concacaf INTEGER,
superliga VARCHAR,
merconorte VARCHAR,
player VARCHAR
) | SELECT AVG(concacaf) FROM table_name_59 WHERE merconorte > 0 AND player = "jared borgetti" AND superliga > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
975,
658,
658,
89,
3,
21342,
17966,
6,
1355,
17140,
584,
4280,
28027,
6,
3,
935,
1018,
127,
17,
15,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1018,
658,
658,
89,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
3,
935,
1018,
127,
17,
15,
2490,
3,
632,
3430,
1959,
3274,
96,
1191,
1271,
3,
23685,
10652,
121,
3430,
1355,
17140,
2490,
... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and manufacturer , and group by attribute headquarter. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
7296,
76,
8717,
450,
49,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
Which location has the date of October 28? | CREATE TABLE table_26186 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
) | SELECT "Location" FROM table_26186 WHERE "Date" = 'October 28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
25398,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
371,
10270,
17763,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2688,
25398,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
28680,
2059,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Years have Ratings of 10.9/23? | CREATE TABLE table_name_7 (
year VARCHAR,
ratings VARCHAR
) | SELECT COUNT(year) FROM table_name_7 WHERE ratings = "10.9/23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
215,
584,
4280,
28027,
6,
9712,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13825,
43,
21662,
7,
13,
209,
23758,
87,
2773,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
9712,
3274,
96,
10415,
1298,
87,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the type for Duke when the from is 512 bc? | CREATE TABLE table_12472 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | SELECT "Type" FROM table_12472 WHERE "Title" = 'duke' AND "From" = '512 bc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
5865,
41,
96,
134,
4748,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
448,
32,
63,
138,
629,
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,
25160,
121,
21680,
953,
834,
22504,
5865,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
1259,
1050,
31,
3430,
96,
22674,
121,
3274,
3,
31,
24163,
3,
115,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of customer cards. | CREATE TABLE Customers_cards (Id VARCHAR) | SELECT COUNT(*) FROM Customers_cards | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
834,
6043,
7,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
381,
13,
884,
2190,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
16423,
834,
6043,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the names of all distinct wines ordered by price. | CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,
isava text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,... | SELECT DISTINCT name FROM wine ORDER BY price | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
150,
381,
6,
8319,
257,
1499,
6,
5435,
1499,
6,
538,
1499,
6,
616,
1499,
6,
19,
8644,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
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,
3,
15438,
25424,
6227,
564,
21680,
2013,
4674,
11300,
272,
476,
594,
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,
-10... |
Which cfl team is manitoba college? | CREATE TABLE table_24284 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "CFL Team" FROM table_24284 WHERE "College" = 'Manitoba' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
357,
4608,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10765,
2271,
121,
21680,
953,
834,
2266,
357,
4608,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
7296,
23,
235,
115,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the frequency of Walterboro, SC? | CREATE TABLE table_name_74 (
frequency_mhz VARCHAR,
city_of_license VARCHAR
) | SELECT frequency_mhz FROM table_name_74 WHERE city_of_license = "walterboro, sc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
7321,
834,
51,
107,
172,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7321,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7321,
834,
51,
107,
172,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
690,
834,
858,
834,
28062,
3274,
96,
210,
8818,
14901,
6,
3,
7,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the director when the production code is 60034? | CREATE TABLE table_3987 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT "Directed by" FROM table_3987 WHERE "Production code" = '60034' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
4225,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23620,
15,
26,
57,
121,
21680,
953,
834,
3288,
4225,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
6007,
3710,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the result in 2008? | CREATE TABLE table_59414 (
"Year" text,
"Result" text,
"Matches" text,
"Wins" text,
"Draws" text,
"Losses" text
) | SELECT "Result" FROM table_59414 WHERE "Year" = '2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
591,
2534,
41,
96,
476,
2741,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
329,
144,
2951,
121,
1499,
6,
96,
18455,
7,
121,
1499,
6,
96,
308,
10936,
7,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3390,
591,
2534,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
16128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the frequency with on-air ID of 1way fm | CREATE TABLE table_37964 (
"Callsign" text,
"Area served" text,
"Frequency" text,
"Band" text,
"On-air ID" text,
"Purpose" text
) | SELECT "Frequency" FROM table_37964 WHERE "On-air ID" = '1way fm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4440,
4389,
41,
96,
254,
1748,
6732,
121,
1499,
6,
96,
188,
864,
2098,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
279,
232,
121,
1499,
6,
96,
7638,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
371,
60,
835,
11298,
121,
21680,
953,
834,
519,
4440,
4389,
549,
17444,
427,
96,
7638,
18,
2256,
4699,
121,
3274,
3,
31,
536,
1343,
3,
89,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the away team of the match with a 356 attendance? | CREATE TABLE table_79044 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
) | SELECT "Away team" FROM table_79044 WHERE "Attendance" = '356' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2394,
3628,
41,
96,
382,
23,
15,
150,
121,
490,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
940,
2394,
3628,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
2469,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what was the total number of people who attended the first game of the season ? | CREATE TABLE table_204_22 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text,
"attendance" number,
"record" text
) | SELECT "attendance" FROM table_204_22 ORDER BY "date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2884,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
4663,
121,
1499,
6,
96,
6254,
4663,
121,
1499,
6,
96,
3585,
121,
1499,
6,
96,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15116,
663,
121,
21680,
953,
834,
26363,
834,
2884,
4674,
11300,
272,
476,
96,
5522,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What opponent was in the match that resulted in 1-2? | CREATE TABLE table_name_61 (opponent_team VARCHAR, result VARCHAR) | SELECT opponent_team FROM table_name_61 WHERE result = "1-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
32,
102,
9977,
834,
11650,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
15264,
47,
16,
8,
1588,
24,
741,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
834,
11650,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
741,
3274,
96,
9596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year is Winter Olympics when Holmenkollen is 1957, 1960? | CREATE TABLE table_174491_2 (winter_olympics VARCHAR, holmenkollen VARCHAR) | SELECT winter_olympics FROM table_174491_2 WHERE holmenkollen = "1957, 1960" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3628,
4729,
834,
357,
41,
210,
3870,
834,
32,
120,
51,
6174,
7,
584,
4280,
28027,
6,
3,
2831,
51,
18994,
195,
35,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2265,
834,
32,
120,
51,
6174,
7,
21680,
953,
834,
2517,
3628,
4729,
834,
357,
549,
17444,
427,
3,
2831,
51,
18994,
195,
35,
3274,
96,
2294,
3436,
6,
8754,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the names of circuits that belong to UK or Malaysia? | CREATE TABLE constructorresults (
constructorresultsid number,
raceid number,
constructorid number,
points number,
status number
)
CREATE TABLE seasons (
year number,
url text
)
CREATE TABLE laptimes (
raceid number,
driverid number,
lap number,
position number,
time te... | SELECT name FROM circuits WHERE country = "UK" OR country = "Malaysia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6774,
127,
60,
7,
83,
17,
7,
41,
6774,
127,
60,
7,
83,
17,
7,
23,
26,
381,
6,
1964,
23,
26,
381,
6,
6774,
2057,
26,
381,
6,
979,
381,
6,
2637,
381,
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,
564,
21680,
4558,
7,
549,
17444,
427,
684,
3274,
96,
15787,
121,
4674,
684,
3274,
96,
329,
9,
20244,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of Bronze when rank is 11, and the total is less than 1? | CREATE TABLE table_name_8 (
bronze VARCHAR,
rank VARCHAR,
total VARCHAR
) | SELECT COUNT(bronze) FROM table_name_8 WHERE rank = "11" AND total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
13467,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
20841,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
11003,
3274,
96,
2596,
121,
3430,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
From which party is the incumbent who was first elected to office in 1990? | CREATE TABLE table_12872 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
) | SELECT "Party" FROM table_12872 WHERE "First elected" = '1990' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4225,
357,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
2122,
4225,
357,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who scored the most assists in game 59? | CREATE TABLE table_15780718_8 (high_assists VARCHAR, game VARCHAR) | SELECT high_assists FROM table_15780718_8 WHERE game = 59 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3940,
4560,
2606,
834,
927,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
5799,
8,
167,
13041,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
1808,
3940,
4560,
2606,
834,
927,
549,
17444,
427,
467,
3274,
3,
3390,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Original Team has a Hometown of Brooklyn, New York and a Background of Comedienne? | CREATE TABLE table_name_22 (
original_team VARCHAR,
hometown VARCHAR,
background VARCHAR
) | SELECT original_team FROM table_name_22 WHERE hometown = "brooklyn, new york" AND background = "comedienne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
926,
834,
11650,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
6,
2458,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
8465,
2271,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
11650,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
22295,
3274,
96,
14370,
120,
29,
6,
126,
25453,
121,
3430,
2458,
3274,
96,
287,
15,
26,
4731,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what's the grand prix with winning driver being jenson button | CREATE TABLE table_17484 (
"Rd." real,
"Grand Prix" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
) | SELECT "Grand Prix" FROM table_17484 WHERE "Winning driver" = 'Jenson Button' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
4608,
41,
96,
448,
26,
535,
490,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4377,
14941,
121,
1499,
6,
96,
518,
1050... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4744,
727,
12942,
121,
21680,
953,
834,
27693,
4608,
549,
17444,
427,
96,
518,
10503,
2535,
121,
3274,
3,
31,
683,
35,
739,
272,
12499,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what was the difference in the 5 hoops between bulgaria and belarus ? | CREATE TABLE table_204_979 (
id number,
"place" number,
"nation" text,
"5 hoops" text,
"3 balls,\n2 ribbons" text,
"total" number
) | SELECT ABS((SELECT "5 hoops" FROM table_204_979 WHERE "nation" = 'bulgaria') - (SELECT "5 hoops" FROM table_204_979 WHERE "nation" = 'belarus')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4327,
1298,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
755,
3534,
9280,
121,
1499,
6,
96,
519,
11607,
6,
2,
29,
357,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20798,
599,
599,
23143,
14196,
96,
755,
3534,
9280,
121,
21680,
953,
834,
26363,
834,
4327,
1298,
549,
17444,
427,
96,
29,
257,
121,
3274,
3,
31,
6724,
122,
6286,
31,
61,
3,
18,
41,
23143,
14196,
96,
755,
3534,
92... |
Name the overall for mark steenhuis | CREATE TABLE table_2816 (
"Month" text,
"Week" real,
"Overall" text,
"Offensive" text,
"Defensive" text,
"Transition" text,
"Rookie" text
) | SELECT "Overall" FROM table_2816 WHERE "Offensive" = 'Mark Steenhuis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2938,
41,
96,
9168,
189,
121,
1499,
6,
96,
518,
10266,
121,
490,
6,
96,
23847,
1748,
121,
1499,
6,
96,
21265,
35,
7,
757,
121,
1499,
6,
96,
2962,
23039,
15,
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,
23847,
1748,
121,
21680,
953,
834,
2577,
2938,
549,
17444,
427,
96,
21265,
35,
7,
757,
121,
3274,
3,
31,
19762,
3557,
35,
3464,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the admission type of subject name stephanie suchan? | 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.admission_type FROM demographic WHERE demographic.name = "Stephanie Suchan" | [
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,
9,
26,
5451,
834,
6137,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
14337,
8237,
23,
15,
3900,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the GDP of the nation with 56,210,000 people? | CREATE TABLE table_name_77 (
gdp_per_capita__us$_ VARCHAR,
population VARCHAR
) | SELECT gdp_per_capita__us$_ FROM table_name_77 WHERE population = "56,210,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
3,
122,
26,
102,
834,
883,
834,
4010,
155,
9,
834,
834,
302,
3229,
834,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
122,
26,
102,
834,
883,
834,
4010,
155,
9,
834,
834,
302,
3229,
834,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2074,
3274,
96,
4834,
6,
357,
29573,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When was there a result of 8-1 and a score of 8-1? | CREATE TABLE table_15623 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_15623 WHERE "Result" = '8-1' AND "Score" = '8-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
2773,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
25463,
2773,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
927,
2292,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
927,
2292,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the result when competing in the Opening NIght Film category? | CREATE TABLE table_29644931_1 (
result VARCHAR,
category VARCHAR
) | SELECT result FROM table_29644931_1 WHERE category = "Opening Night Film" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4389,
3647,
3341,
834,
536,
41,
741,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
116,
12166,
16,
8,
20360,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
3166,
4389,
3647,
3341,
834,
536,
549,
17444,
427,
3295,
3274,
96,
22696,
53,
5190,
3417,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the date of the game that had a loss of Politte (0-2)? | CREATE TABLE table_name_25 (
date VARCHAR,
loss VARCHAR
) | SELECT date FROM table_name_25 WHERE loss = "politte (0-2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
833,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
24,
141,
3,
9,
1453,
13,
17708,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1453,
3274,
96,
3003,
17,
17,
15,
17482,
18,
7318,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what week was the Result L 35-10? | CREATE TABLE table_6255 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT MIN("Week") FROM table_6255 WHERE "Result" = 'l 35-10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
3769,
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,
188,
17,
324,
26,
663,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
518,
10266,
8512,
21680,
953,
834,
4056,
3769,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
3097,
4536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the number of patients that were discharged from hospital in this year? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND DATETIME(patient.hospitaldischargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
4486,
1868,
5,
31386,
26,
159,
7993,
715,
6827,
13046,
10376,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
26,
1... |
What are the visit date and details of the visitor whose detail is 'Vincent'? | CREATE TABLE VISITORS (
Tourist_ID VARCHAR,
Tourist_Details VARCHAR
)
CREATE TABLE VISITS (
Visit_Date VARCHAR,
Visit_Details VARCHAR,
Tourist_ID VARCHAR
) | SELECT T2.Visit_Date, T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = "Vincent" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
20186,
3177,
22500,
41,
21375,
834,
4309,
584,
4280,
28027,
6,
21375,
834,
2962,
5756,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
20186,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
553,
159,
155,
834,
308,
342,
6,
332,
4416,
553,
159,
155,
834,
2962,
5756,
7,
21680,
3,
20186,
3177,
22500,
6157,
332,
536,
3,
15355,
3162,
3,
20186,
21273,
6157,
332,
357,
9191,
332,
5411,
382,
1211,
... |
how many different countries won at least one stage in the 1964 tour de france ? | CREATE TABLE table_203_44 (
id number,
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
) | SELECT COUNT(DISTINCT "winner") FROM table_203_44 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3628,
41,
3,
23,
26,
381,
6,
96,
10705,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
20300,
121,
1499,
6,
96,
12829,
77,
121,
1499,
6,
96,
19457,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
96,
3757,
687,
8512,
21680,
953,
834,
23330,
834,
3628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When chauncey billups (7) has the highest amount of assists what is the score? | CREATE TABLE table_25868 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_25868 WHERE "High assists" = 'Chauncey Billups (7)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3449,
3651,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9022,
121,
21680,
953,
834,
357,
3449,
3651,
549,
17444,
427,
96,
21417,
13041,
121,
3274,
3,
31,
3541,
402,
3772,
63,
3259,
413,
7,
3,
24358,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Date has a Score of 2 3, a Time of 20:30, and a Set 3 of 16 25? | CREATE TABLE table_44507 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
) | SELECT "Date" FROM table_44507 WHERE "Score" = '2–3' AND "Time" = '20:30' AND "Set 3" = '16–25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
4560,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
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,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
2128,
4560,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
357,
104,
519,
31,
3430,
96,
13368,
121,
3274,
3,
31,
1755,
10,
1458,
31,
3430,
96,
17175,
220,
121,
3274,
3... |
Who is the entrant when the chassis is ferrari 125? | CREATE TABLE table_name_88 (entrant VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_88 WHERE chassis = "ferrari 125" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
295,
3569,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3,
295,
3569,
116,
8,
22836,
19,
25007,
1665,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
295,
3569,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
22836,
3274,
96,
1010,
52,
1665,
3,
10124,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What week did the dallas cowboys play? | CREATE TABLE table_name_78 (
week INTEGER,
opponent VARCHAR
) | SELECT SUM(week) FROM table_name_78 WHERE opponent = "dallas cowboys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
471,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
410,
8,
836,
195,
9,
7,
9321,
7531,
7,
577,
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,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
15264,
3274,
96,
26,
1748,
9,
7,
9321,
7531,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and could you list by the x-axis in descending? | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
... |
Which position in the table is the team watford? | CREATE TABLE table_18784280_3 (
position_in_table VARCHAR,
team VARCHAR
) | SELECT position_in_table FROM table_18784280_3 WHERE team = "Watford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25828,
4608,
17518,
834,
519,
41,
1102,
834,
77,
834,
3869,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1102,
16,
8,
953,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
834,
77,
834,
3869,
21680,
953,
834,
25828,
4608,
17518,
834,
519,
549,
17444,
427,
372,
3274,
96,
518,
144,
2590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
At a Saginaw fare of $470.47, what is the fare to Lansing? | CREATE TABLE table_20700 (
"Year" real,
"Lansing (LAN)" text,
"Detroit (DTW)" text,
"Grand Rapids (GRR)" text,
"Flint (FNT)" text,
"Kalamazoo (AZO)" text,
"Saginaw (MBS)" text
) | SELECT "Lansing (LAN)" FROM table_20700 WHERE "Saginaw (MBS)" = '$470.47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
9295,
41,
96,
476,
2741,
121,
490,
6,
96,
434,
3247,
53,
41,
12303,
61,
121,
1499,
6,
96,
308,
15252,
155,
41,
12111,
518,
61,
121,
1499,
6,
96,
4744,
727,
13836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3247,
53,
41,
12303,
61,
121,
21680,
953,
834,
1755,
9295,
549,
17444,
427,
96,
134,
9,
19604,
210,
41,
4633,
134,
61,
121,
3274,
3,
31,
3229,
27760,
5,
4177,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who directed the episode 'hammers and veils'? | CREATE TABLE table_28256 (
"No." real,
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Prod. code" real,
"U.S. viewers (million)" text
) | SELECT "Director" FROM table_28256 WHERE "Title" = 'Hammers and Veils' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
19337,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
599,
7,
61,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23620,
127,
121,
21680,
953,
834,
2577,
19337,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
566,
265,
5567,
11,
3901,
1558,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is listed in Network station when the country is Brunei? | CREATE TABLE table_2879165_1 (
network_station VARCHAR,
country VARCHAR
) | SELECT COUNT(network_station) FROM table_2879165_1 WHERE country = "Brunei" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4440,
22823,
834,
536,
41,
1229,
834,
6682,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2616,
16,
3426,
2478,
116,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1582,
1981,
834,
6682,
61,
21680,
953,
834,
2577,
4440,
22823,
834,
536,
549,
17444,
427,
684,
3274,
96,
9465,
29,
15,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the lowest silver for rank of 9 and bronze less than 2 | CREATE TABLE table_name_26 (
silver INTEGER,
rank VARCHAR,
bronze VARCHAR
) | SELECT MIN(silver) FROM table_name_26 WHERE rank = 9 AND bronze < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
4294,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
7402,
4294,
21,
11003,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
11003,
3274,
668,
3430,
13467,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the number of cards in different card type code in a bar chart, display by the names in ascending please. | CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
dat... | SELECT card_type_code, COUNT(card_type_code) FROM Customers_Cards GROUP BY card_type_code ORDER BY card_type_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6288,
7,
41,
905,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
905,
834,
4350,
584,
4280,
28027,
599,
1752,
201,
119,
834,
9,
75,
13362,
834,
221,
5756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
895,
834,
6137,
834,
4978,
6,
2847,
17161,
599,
6043,
834,
6137,
834,
4978,
61,
21680,
16423,
834,
6936,
26,
7,
350,
4630,
6880,
272,
476,
895,
834,
6137,
834,
4978,
4674,
11300,
272,
476,
895,
834,
6137,
834,
4978,... |
Who was the second when Ilian Kirilov was the lead? | CREATE TABLE table_name_2 (
second VARCHAR,
lead VARCHAR
) | SELECT second FROM table_name_2 WHERE lead = "ilian kirilov" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
511,
584,
4280,
28027,
6,
991,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
511,
116,
27,
9928,
10976,
23,
5850,
47,
8,
991,
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,
511,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
991,
3274,
96,
23,
9928,
3,
18413,
23,
5850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Huckleberry Hound episodes were aired on 1960.09.18? | CREATE TABLE table_19860361_4 (huckleberry_hound VARCHAR, air_date VARCHAR) | SELECT COUNT(huckleberry_hound) FROM table_19860361_4 WHERE air_date = "1960.09.18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3840,
4928,
4241,
834,
591,
41,
107,
4636,
109,
7418,
834,
26219,
584,
4280,
28027,
6,
799,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
107,
4636,
109,
7418,
834,
26219,
61,
21680,
953,
834,
2294,
3840,
4928,
4241,
834,
591,
549,
17444,
427,
799,
834,
5522,
3274,
96,
2294,
3328,
5,
12900,
2606,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.