NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who was the home team for tie number 16? | CREATE TABLE table_name_40 (
home_team VARCHAR,
tie_no VARCHAR
) | SELECT home_team FROM table_name_40 WHERE tie_no = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
234,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
21,
6177,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What' the series number of the episode with season number 13? | CREATE TABLE table_2592 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT MIN("No. in series") FROM table_2592 WHERE "No. in season" = '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4508,
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,
3,
17684,
599,
121,
4168,
5,
16,
939,
8512,
21680,
953,
834,
1828,
4508,
549,
17444,
427,
96,
4168,
5,
16,
774,
121,
3274,
3,
31,
2368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the averag weights for people of each sex? Show a bar chart, I want to order from high to low by the y-axis. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
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 re... | SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY AVG(Weight) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
679,
226,
1499,
6,
5570,
1499,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
6,
24231,
490,
6,
14230,
490,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
71,
17217,
599,
1326,
2632,
61,
21680,
151,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
71,
17217,
599,
1326,
2632,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What player had a total less than 277? | CREATE TABLE table_name_34 (player VARCHAR, total INTEGER) | SELECT player FROM table_name_34 WHERE total < 277 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
20846,
584,
4280,
28027,
6,
792,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
141,
3,
9,
792,
705,
145,
204,
4013,
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,
3710,
549,
17444,
427,
792,
3,
2,
204,
4013,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What country scored 71-69=140? | CREATE TABLE table_name_97 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_97 WHERE score = 71 - 69 = 140 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
17529,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
5799,
3,
4450,
18,
3951,
2423,
22012,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
2604,
3274,
3,
4450,
3,
18,
3,
3951,
3274,
11397,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the nationality of the ship with a tonnage larger than 5,507 sunk by an u-584? | CREATE TABLE table_11436 (
"Date" text,
"Name" text,
"Nationality" text,
"Casualties" text,
"Tonnage" real,
"Sunk by\u2026" text
) | SELECT "Nationality" FROM table_11436 WHERE "Tonnage" > '5,507' AND "Sunk by\u2026" = 'u-584' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
3420,
41,
96,
308,
342,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
254,
9,
7,
3471,
3010,
121,
1499,
6,
96,
382,
106,
9761,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
18959,
3420,
549,
17444,
427,
96,
382,
106,
9761,
121,
2490,
3,
31,
11116,
1752,
940,
31,
3430,
96,
134,
6513,
57,
2,
76,
1755,
2688,
121,
3274,
3,
31,
76,
4525,
4608,
31,
1... |
What was the original air date for episode number 96 in the series? | CREATE TABLE table_26866299_1 (original_airdate VARCHAR, series__number VARCHAR) | SELECT original_airdate FROM table_26866299_1 WHERE series__number = 96 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
26750,
357,
3264,
834,
536,
41,
21878,
834,
2256,
5522,
584,
4280,
28027,
6,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
5522,
21680,
953,
834,
2688,
26750,
357,
3264,
834,
536,
549,
17444,
427,
939,
834,
834,
5525,
1152,
3274,
3,
4314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which country came in last ? | CREATE TABLE table_204_547 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"time" number,
"notes" text
) | SELECT "nationality" FROM table_204_547 ORDER BY "rank" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
4177,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
8102,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
381,
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,
16557,
485,
121,
21680,
953,
834,
26363,
834,
755,
4177,
4674,
11300,
272,
476,
96,
6254,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is listed as the Away team for the Home team of the Bristol Rovers? | CREATE TABLE table_68784 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Away team" FROM table_68784 WHERE "Home team" = 'bristol rovers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3940,
591,
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,
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,
3651,
3940,
591,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
115,
17149,
40,
3,
8843,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what models are produced where the plant is scarborough? | CREATE TABLE table_250309_1 (models_produced VARCHAR, plant VARCHAR) | SELECT models_produced FROM table_250309_1 WHERE plant = "Scarborough" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
1458,
1298,
834,
536,
41,
21770,
7,
834,
29462,
584,
4280,
28027,
6,
1475,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
2250,
33,
2546,
213,
8,
1475,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2250,
834,
29462,
21680,
953,
834,
11434,
1458,
1298,
834,
536,
549,
17444,
427,
1475,
3274,
96,
134,
1720,
12823,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the home team for carlton away team | CREATE TABLE table_77862 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | SELECT "Home team" FROM table_77862 WHERE "Away team" = 'carlton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3840,
357,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
4013,
3840,
357,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
1720,
7377,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
With a greater than 4 rank, and the silver medal greater than 0, and the bronze medal less than 1, what is the average total? | CREATE TABLE table_name_23 (
total INTEGER,
bronze VARCHAR,
rank VARCHAR,
silver VARCHAR
) | SELECT AVG(total) FROM table_name_23 WHERE rank > 4 AND silver > 0 AND bronze < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
792,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
11003,
2490,
314,
3430,
4294,
2490,
3,
632,
3430,
13467,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
With what Name does the Roll of 637 belong? | CREATE TABLE table_67484 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" text,
"Roll" text
) | SELECT "Name" FROM table_67484 WHERE "Roll" = '637' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3707,
591,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
121,
1499,
6,
96,
2962,
75,
699,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3708,
3707,
591,
549,
17444,
427,
96,
29807,
121,
3274,
3,
31,
3891,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Athens Base play with Dance Theatre Roes Company? | CREATE TABLE table_name_59 (play VARCHAR, base VARCHAR, company VARCHAR) | SELECT play FROM table_name_59 WHERE base = "athens" AND company = "dance theatre roes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
4895,
584,
4280,
28027,
6,
1247,
584,
4280,
28027,
6,
349,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
486,
3225,
7,
8430,
577,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
577,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1247,
3274,
96,
9,
189,
35,
7,
121,
3430,
349,
3274,
96,
26,
663,
8516,
3,
52,
32,
15,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which MSDN integration has a Load testing of no, and a Test impact analysis of no? | CREATE TABLE table_name_16 (
msdn_integration VARCHAR,
load_testing VARCHAR,
test_impact_analysis VARCHAR
) | SELECT msdn_integration FROM table_name_16 WHERE load_testing = "no" AND test_impact_analysis = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
3,
51,
7,
26,
29,
834,
8576,
257,
584,
4280,
28027,
6,
4002,
834,
4377,
53,
584,
4280,
28027,
6,
794,
834,
20824,
834,
27557,
584,
4280,
28027,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
51,
7,
26,
29,
834,
8576,
257,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
4002,
834,
4377,
53,
3274,
96,
29,
32,
121,
3430,
794,
834,
20824,
834,
27557,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
-10... |
what are all the different product names, and how many complains has each received? | CREATE TABLE Customers (
customer_id INTEGER,
customer_type_code VARCHAR(20),
address_line_1 VARCHAR(80),
address_line_2 VARCHAR(80),
town_city VARCHAR(80),
state VARCHAR(80),
email_address VARCHAR(255),
phone_number VARCHAR(80)
)
CREATE TABLE Staff (
staff_id INTEGER,
gender VA... | SELECT product_name, COUNT(*) FROM Products AS t1 JOIN Complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
1755,
201,
1115,
834,
747,
834,
536,
584,
4280,
28027,
599,
2079,
201,
1115,
834,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
556,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
7554,
6157,
3,
17,
536,
3,
15355,
3162,
2570,
18689,
17,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
15892,
834,
23,
26,
3274,
3,
17,
4416,
15892,
834,
23,
26,
... |
WHAT IS THE GAME ON SEPTEMBER 13? | CREATE TABLE table_name_23 (
game INTEGER,
date VARCHAR
) | SELECT AVG(game) FROM table_name_23 WHERE date = "september 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
467,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
350,
17683,
9191,
180,
8569,
20050,
12920,
1179,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
7261,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is the director of the best foreign film? | CREATE TABLE table_68615 (
"Year" text,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
) | SELECT "Director" FROM table_68615 WHERE "Original title" = 'best foreign film' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
948,
1808,
41,
96,
476,
2741,
121,
1499,
6,
96,
26749,
2233,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
23620,
127,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23620,
127,
121,
21680,
953,
834,
3651,
948,
1808,
549,
17444,
427,
96,
667,
3380,
10270,
2233,
121,
3274,
3,
31,
9606,
2959,
814,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which race resulted in 2nd place in the 1996 season on 20-Jan-1996? | CREATE TABLE table_name_80 (race VARCHAR, date VARCHAR, place VARCHAR, season VARCHAR) | SELECT race FROM table_name_80 WHERE place = "2nd" AND season = 1996 AND date = "20-jan-1996" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
12614,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1964,
741... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
1964,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
286,
3274,
96,
357,
727,
121,
3430,
774,
3274,
6911,
3430,
833,
3274,
96,
1755,
18,
7066,
4481,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On May 17, what is the highest Attendance? | CREATE TABLE table_name_33 (
attendance INTEGER,
date VARCHAR
) | SELECT MAX(attendance) FROM table_name_33 WHERE date = "may 17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
932,
12864,
125,
19,
8,
2030,
22497,
663,
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,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
13726,
1003,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)? | CREATE TABLE table_name_46 (solidat__ INTEGER, sn_sb___percentage_ VARCHAR, liquidat__°c_ VARCHAR) | SELECT SUM(solidat__) AS °c_ FROM table_name_46 WHERE sn_sb___percentage_ = "13/17" AND liquidat__°c_ > 283 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
20695,
144,
834,
834,
3,
21342,
17966,
6,
3,
7,
29,
834,
7,
115,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
6,
4400,
144,
834,
834,
1956,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
20695,
144,
834,
834,
61,
6157,
3,
1956,
75,
834,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
3,
7,
29,
834,
7,
115,
834,
834,
834,
883,
3728,
545,
834,
3274,
96,
2368,
87,
2517,
121,
3430... |
number of patients who had been diagnosed with diabetes mellitus - type i last year. | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid tex... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'diabetes mellitus - type i' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
10061,
15129,
21545,
23,
26,
21680,
8209,
549,
... |
give me the number of emergency hospital admission patients who had initial insertion of tranvenous lead [electrode] into ventricle. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.short_title = "Int insert lead in vent" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the name of the school that has the smallest enrollment in each state?, and could you show Y-axis in ascending order? | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
) | SELECT cName, MIN(enr) FROM College GROUP BY state ORDER BY MIN(enr) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5263,
670,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
102,
345,
32,
7,
3,
4331,
4059,
28007,
6,
1357,
3,
4331,
4059,
17867,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
23954,
6,
3,
17684,
599,
35,
52,
61,
21680,
1888,
350,
4630,
6880,
272,
476,
538,
4674,
11300,
272,
476,
3,
17684,
599,
35,
52,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If there are 18 villages, what is the minimum area ? | CREATE TABLE table_21302_1 (
area___ha__ INTEGER,
no_of_villages VARCHAR
) | SELECT MIN(area___ha__) FROM table_21302_1 WHERE no_of_villages = 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
1458,
357,
834,
536,
41,
616,
834,
834,
834,
1024,
834,
834,
3,
21342,
17966,
6,
150,
834,
858,
834,
24887,
2897,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
498,
834,
834,
834,
1024,
834,
834,
61,
21680,
953,
834,
2658,
1458,
357,
834,
536,
549,
17444,
427,
150,
834,
858,
834,
24887,
2897,
3274,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Away team score for Away team Melbourne? | CREATE TABLE table_name_89 (
away_team VARCHAR
) | SELECT away_team AS score FROM table_name_89 WHERE away_team = "melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
71,
1343,
372,
2604,
21,
71,
1343,
372,
9396,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
550,
834,
11650,
3274,
96,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the total number from each payment method code, show in desc by the bar. | CREATE TABLE Customer_Payments (
customer_id INTEGER,
datetime_payment DATETIME,
payment_method_code VARCHAR(10),
amount_payment DOUBLE
)
CREATE TABLE Vehicles (
vehicle_id INTEGER,
vehicle_details VARCHAR(255)
)
CREATE TABLE Addresses (
address_id INTEGER,
line_1_number_building VARCH... | SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code ORDER BY payment_method_code DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
19702,
4128,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
833,
715,
834,
21752,
309,
6048,
382,
15382,
6,
1942,
834,
23152,
834,
4978,
584,
4280,
28027,
599,
16968,
6,
866,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1942,
834,
23152,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
7327,
834,
19702,
4128,
350,
4630,
6880,
272,
476,
1942,
834,
23152,
834,
4978,
4674,
11300,
272,
476,
1942,
834,
23152,
834,
4978,
309,
25067,
1,
-10... |
What is the total latitude of the greenland township with more than 34.846 sqmi of land, a geo id less than 3805529660, and an ANSI code greater than 1036405? | CREATE TABLE table_name_45 (
latitude VARCHAR,
ansi_code VARCHAR,
township VARCHAR,
land___sqmi__ VARCHAR,
geo_id VARCHAR
) | SELECT COUNT(latitude) FROM table_name_45 WHERE land___sqmi__ > 34.846 AND geo_id < 3805529660 AND township = "greenland" AND ansi_code > 1036405 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
50,
6592,
584,
4280,
28027,
6,
46,
7,
23,
834,
4978,
584,
4280,
28027,
6,
1511,
2009,
584,
4280,
28027,
6,
1322,
834,
834,
834,
7,
1824,
51,
23,
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,
2847,
17161,
599,
521,
6592,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1322,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
2490,
220,
27441,
4448,
3430,
9502,
834,
23,
26,
3,
2,
3,
22671,
3769,
3166,
2772... |
What is the rider status for the 1971 netherlands team? | CREATE TABLE table_name_77 (rider_status VARCHAR, team_country VARCHAR, year VARCHAR) | SELECT rider_status FROM table_name_77 WHERE team_country = "netherlands" AND year = 1971 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
4055,
49,
834,
8547,
302,
584,
4280,
28027,
6,
372,
834,
17529,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2564,
52,
834,
8547,
302,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
372,
834,
17529,
3274,
96,
29,
16764,
6347,
121,
3430,
215,
3274,
17961,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
look for the birth date and ethnic background of patient jerry deberry. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT demographic.dob, demographic.ethnicity FROM demographic WHERE demographic.name = "Jerry Deberry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
6,
14798,
5,
15,
189,
2532,
485,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
683,
49,
651,
374,
7418,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the location and attendance of the game when gilbert arenas (9) had the high assists? | CREATE TABLE table_27700530_10 (location_attendance VARCHAR, high_assists VARCHAR) | SELECT location_attendance FROM table_27700530_10 WHERE high_assists = "Gilbert Arenas (9)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
9295,
26918,
834,
1714,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2555,
9295,
26918,
834,
1714,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
517,
173,
7041,
14904,
7,
41,
11728,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the number of games on june 12 | CREATE TABLE table_11965481_13 (
game VARCHAR,
date VARCHAR
) | SELECT COUNT(game) FROM table_11965481_13 WHERE date = "June 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
4122,
3707,
536,
834,
2368,
41,
467,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
1031,
30,
3,
6959,
15,
586,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
19993,
4122,
3707,
536,
834,
2368,
549,
17444,
427,
833,
3274,
96,
683,
444,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients whose days of hospital stay is greater than 15 and lab test name is bicarbonate? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.label = "Bicarbonate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the total for David O'Callaghan, and a Tally of 1-9? | CREATE TABLE table_54033 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
) | SELECT SUM("Total") FROM table_54033 WHERE "Player" = 'david o''callaghan' AND "Tally" = '1-9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25379,
4201,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
382,
1427,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
25379,
4201,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
26,
9,
6961,
3,
32,
31,
31,
16482,
9,
22637,
31,
3430,
96,
382,
1427,
121,
3274,
3,
31,
536,... |
What is the maximum t20 on green lane? | CREATE TABLE table_1176371_1 (t20_matches INTEGER, name_of_ground VARCHAR) | SELECT MAX(t20_matches) FROM table_1176371_1 WHERE name_of_ground = "Green Lane" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
3891,
4450,
834,
536,
41,
17,
1755,
834,
19515,
15,
7,
3,
21342,
17966,
6,
564,
834,
858,
834,
9232,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17,
1755,
834,
19515,
15,
7,
61,
21680,
953,
834,
20275,
3891,
4450,
834,
536,
549,
17444,
427,
564,
834,
858,
834,
9232,
3274,
96,
22918,
11834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final? | CREATE TABLE table_33449 (
"Player" text,
"Team" text,
"Last Game" text,
"Date" text,
"Opposition" text,
"D\u00e9but" real
) | SELECT "Player" FROM table_33449 WHERE "Opposition" = 'limerick' AND "Last Game" = 'munster semi-final' AND "D\u00e9but" = '1973' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3710,
3647,
41,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
7,
17,
4435,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
4718,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
519,
3710,
3647,
549,
17444,
427,
96,
667,
102,
4718,
121,
3274,
3,
31,
4941,
15,
5206,
31,
3430,
96,
3612,
7,
17,
4435,
121,
3274,
3,
31,
51,
202,
1370,
4772,
18,
12406,
31,... |
Show the names and ids of tourist attractions that are visited at least two times. | CREATE TABLE Tourist_Attractions (
Name VARCHAR,
Tourist_Attraction_ID VARCHAR
)
CREATE TABLE VISITS (
Tourist_Attraction_ID VARCHAR
) | SELECT T1.Name, T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21375,
834,
188,
17,
10559,
7,
41,
5570,
584,
4280,
28027,
6,
21375,
834,
188,
17,
10559,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
332,
5411,
23954,
6,
332,
4416,
382,
1211,
343,
834,
188,
17,
10559,
834,
4309,
21680,
21375,
834,
188,
17,
10559,
7,
6157,
332,
536,
3,
15355,
3162,
3,
20186,
21273,
6157,
332,
357,
9191,
332,
5411,
382,
1211,
343,... |
What is the Draw for match 10, and the team was skra warszawa? | CREATE TABLE table_name_76 (draw VARCHAR, match VARCHAR, team VARCHAR) | SELECT draw FROM table_name_76 WHERE match = "10" AND team = "skra warszawa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
19489,
584,
4280,
28027,
6,
1588,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
19183,
21,
1588,
10372,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3314,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1588,
3274,
96,
1714,
121,
3430,
372,
3274,
96,
7,
9669,
615,
7,
172,
7396,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the first and last name of the faculty who has the most students? | CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE... | SELECT T1.fname, T1.lname FROM faculty AS T1 JOIN student AS T2 ON T1.facid = T2.advisor GROUP BY T1.facid ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1756,
41,
1810,
23,
26,
381,
6,
1756,
834,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
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,
332,
5411,
89,
4350,
6,
332,
5411,
40,
4350,
21680,
6040,
6157,
332,
536,
3,
15355,
3162,
1236,
6157,
332,
357,
9191,
332,
5411,
89,
9,
10812,
3274,
332,
4416,
9,
26,
24680,
350,
4630,
6880,
272,
476,
332,
5411,
8... |
What is the total number of decile for the redwood school locality? | CREATE TABLE table_name_34 (decile VARCHAR, name VARCHAR) | SELECT COUNT(decile) FROM table_name_34 WHERE name = "redwood school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
24223,
109,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
7908,
109,
21,
8,
1131,
2037,
496,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
24223,
109,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
564,
3274,
96,
1271,
2037,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the person whose age is below 30? | CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
) | SELECT name FROM person WHERE age < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
41,
564,
1499,
6,
1246,
381,
6,
690,
1499,
6,
7285,
1499,
6,
613,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
568,
15504,
41,
564,
1499,
6,
1565,
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,
564,
21680,
568,
549,
17444,
427,
1246,
3,
2,
604,
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,
-... |
Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages. | CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) | SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
684,
41,
23954,
584,
4280,
28027,
6,
3636,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
684,
24925,
41,
434,
1468,
76,
545,
584,
4280,
28027,
6,
6993,
227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
4416,
434,
1468,
76,
545,
201,
332,
5411,
23954,
21680,
684,
6157,
332,
536,
3,
15355,
3162,
684,
24925,
6157,
332,
357,
9191,
332,
5411,
22737,
3274,
332,
4416,
10628,
651,
22737,
350,
4630,
68... |
What is the average speed of roller coasters? | CREATE TABLE roller_coaster (Speed INTEGER) | SELECT AVG(Speed) FROM roller_coaster | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10866,
834,
25500,
49,
41,
28328,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1634,
13,
10866,
4939,
277,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
28328,
61,
21680,
10866,
834,
25500,
49,
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,
-10... |
What are all the conjugated forms of the verb moler where the vosotros / vosotras is moláis for the yo tense? | CREATE TABLE table_1977630_2 (yo VARCHAR, vosotros___vosotras VARCHAR) | SELECT yo FROM table_1977630_2 WHERE vosotros___vosotras = "moláis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
3959,
1458,
834,
357,
41,
63,
32,
584,
4280,
28027,
6,
1507,
24497,
7,
834,
834,
834,
1621,
7,
32,
1313,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
63,
32,
21680,
953,
834,
27181,
3959,
1458,
834,
357,
549,
17444,
427,
1507,
24497,
7,
834,
834,
834,
1621,
7,
32,
1313,
7,
3274,
96,
4641,
2975,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the total purse in the years after 1996 with a score of 272 (-16) when frank nobilo won? | CREATE TABLE table_80308 (
"Year" real,
"Winner" text,
"Country" text,
"Purse ( $ )" real,
"Score" text,
"First Prize ( $ )" real
) | SELECT SUM("Purse ( $ )") FROM table_80308 WHERE "Score" = '272 (-16)' AND "Winner" = 'frank nobilo' AND "Year" > '1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
1458,
927,
41,
96,
476,
2741,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
345,
3589,
15,
41,
1514,
3,
61,
121,
490,
6,
96,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
345,
3589,
15,
41,
1514,
3,
61,
8512,
21680,
953,
834,
2079,
1458,
927,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
2555,
357,
41,
10892,
61,
31,
3430,
96,
18455,
687,
121,
3274,
3,
31... |
What is the status of the Eng Country from the Maynard name? | CREATE TABLE table_name_28 (
status VARCHAR,
country VARCHAR,
name VARCHAR
) | SELECT status FROM table_name_28 WHERE country = "eng" AND name = "maynard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
2637,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2637,
13,
8,
19650,
6993,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2637,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
684,
3274,
96,
4606,
121,
3430,
564,
3274,
96,
13726,
29,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Dominik Meichtry's Time in Heat 7 or lower? | CREATE TABLE table_name_24 (time VARCHAR, name VARCHAR, heat VARCHAR) | SELECT COUNT(time) FROM table_name_24 WHERE name = "dominik meichtry" AND heat < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
715,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
531,
7619,
157,
1212,
362,
8224,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
715,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
564,
3274,
96,
5012,
23,
4953,
140,
362,
8224,
121,
3430,
1678,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where was the location with Muirfield in Scotland? | CREATE TABLE table_55742 (
"Rank" real,
"Name" text,
"Location" text,
"Country" text,
"Designer, Year" text
) | SELECT "Location" FROM table_55742 WHERE "Country" = 'scotland' AND "Name" = 'muirfield' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
4581,
357,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
19103,
49,
6,
2929,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
3769,
4581,
357,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
7,
4310,
40,
232,
31,
3430,
96,
23954,
121,
3274,
3,
31,
51,
76,
23,
52,
1846,
31,
1,
-100,
-100,... |
What was the lowest total for Italy when the latest win is 1950? | CREATE TABLE table_12869 (
"Cyclist" text,
"Nationality" text,
"First win" real,
"Latest win" real,
"Total" real
) | SELECT MIN("Total") FROM table_12869 WHERE "Nationality" = 'italy' AND "Latest win" = '1950' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2577,
3951,
41,
96,
254,
63,
75,
3350,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
25171,
1369,
121,
490,
6,
96,
3612,
4377,
1369,
121,
490,
6,
96,
3696,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
536,
2577,
3951,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
9538,
63,
31,
3430,
96,
3612,
4377,
1369,
121,
3274,
3,
31,
2294,
1752,
31,
1,
-100,
-100,... |
Which Number has a Home Club of broomstones, and a Year End smaller than 1999? | CREATE TABLE table_name_79 (
number INTEGER,
home_club VARCHAR,
year_end VARCHAR
) | SELECT MIN(number) FROM table_name_79 WHERE home_club = "broomstones" AND year_end < 1999 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
381,
3,
21342,
17966,
6,
234,
834,
13442,
584,
4280,
28027,
6,
215,
834,
989,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7720,
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,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
234,
834,
13442,
3274,
96,
115,
3082,
3009,
7,
121,
3430,
215,
834,
989,
3,
2,
5247,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is entered earlier than 1975 and has a Lotus 20 chassis? | CREATE TABLE table_71258 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Entrant" FROM table_71258 WHERE "Year" < '1975' AND "Chassis" = 'lotus 20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
357,
3449,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16924,
3569,
121,
21680,
953,
834,
4450,
357,
3449,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
3072,
31,
3430,
96,
3541,
6500,
7,
121,
3274,
3,
31,
3171,
302,
460,
31,
1,
-100,
-100,
-100,
-100,... |
What is the ranking when Archie Compston is the player and the money is $73? | CREATE TABLE table_name_6 (place VARCHAR, money___$__ VARCHAR, player VARCHAR) | SELECT place FROM table_name_6 WHERE money___$__ = "73" AND player = "archie compston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
4687,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
3274,
96,
4552,
121,
3430,
1959,
3274,
96,
291,
9781,
2890,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the first Round with a Pick # greater than 1 and 140 Overall? | CREATE TABLE table_74979 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MIN("Round") FROM table_74979 WHERE "Pick #" > '1' AND "Overall" > '140' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3647,
4440,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
940,
3647,
4440,
549,
17444,
427,
96,
345,
3142,
1713,
121,
2490,
3,
31,
536,
31,
3430,
96,
23847,
1748,
121,
2490,
3,
31,
22012,
31,
1,
-100,
-100,
-100,
... |
Show different builders of railways, along with the corresponding number of railways using each builder. | CREATE TABLE railway (Builder VARCHAR) | SELECT Builder, COUNT(*) FROM railway GROUP BY Builder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14421,
41,
24752,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
315,
19334,
13,
14421,
7,
6,
590,
28,
8,
3,
9921,
381,
13,
14421,
7,
338,
284,
918,
49,
5,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16799,
6,
2847,
17161,
599,
1935,
61,
21680,
14421,
350,
4630,
6880,
272,
476,
16799,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date of the game with a w 105-88 score? | CREATE TABLE table_47230 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_47230 WHERE "Score" = 'w 105-88' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
13427,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
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,
96,
308,
342,
121,
21680,
953,
834,
4177,
13427,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
210,
3,
12869,
18,
4060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose discharge location is home and days of hospital stay is greater than 26? | CREATE TABLE diagnoses (
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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.days_stay > "26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
6299,
4369,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
... |
WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street? | CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR) | SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = "05.0 210 north charles street" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
1201,
7,
834,
9,
7,
834,
17,
1748,
222,
584,
4280,
28027,
6,
8242,
584,
4280,
28027,
6,
2815,
834,
9,
26,
12039,
584,
4280,
28027,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
203,
834,
9,
7,
834,
17,
1748,
222,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
8242,
3,
2,
997,
3430,
2815,
834,
9,
26,
12039,
3274,
96,
632,
20734,
3,
15239,
3457,
3,
4059,
965,
2815,
121,
1,
-100,
-100... |
Which Season was the Division Three Hampton Park Rangers champions? | CREATE TABLE table_name_63 (
season VARCHAR,
division_three VARCHAR
) | SELECT season FROM table_name_63 WHERE division_three = "hampton park rangers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
774,
584,
4280,
28027,
6,
4889,
834,
21182,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7960,
47,
8,
6022,
5245,
24341,
1061,
12612,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
4889,
834,
21182,
3274,
96,
1483,
11632,
2447,
620,
52,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the Attendance on 11/09/1946? | CREATE TABLE table_name_88 (
attendance VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_88 WHERE date = "11/09/1946" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
22497,
663,
30,
850,
31497,
2294,
4448,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
833,
3274,
96,
2596,
31497,
2294,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What campus has the most degrees conferrred over its entire existence? | CREATE TABLE faculty (
campus number,
year number,
faculty number
)
CREATE TABLE csu_fees (
campus number,
year number,
campusfee number
)
CREATE TABLE degrees (
year number,
campus number,
degrees number
)
CREATE TABLE enrollments (
campus number,
year number,
totalen... | SELECT campus FROM degrees GROUP BY campus ORDER BY SUM(degrees) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6040,
41,
4730,
381,
6,
215,
381,
6,
6040,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
75,
7,
76,
834,
89,
15,
15,
7,
41,
4730,
381,
6,
215,
381,
6,
473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4730,
21680,
4526,
350,
4630,
6880,
272,
476,
4730,
4674,
11300,
272,
476,
180,
6122,
599,
19706,
7,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which date has a Week larger than 5, and an Attendance of 54,803? | CREATE TABLE table_name_6 (
date VARCHAR,
week VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_6 WHERE week > 5 AND attendance = "54,803" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
833,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
3,
9,
6551,
2186,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
471,
2490,
305,
3430,
11364,
3274,
96,
5062,
6,
2079,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What club team is the United States player with an overall pick smaller than 142 from? | CREATE TABLE table_11553 (
"Round" real,
"Overall" real,
"Player" text,
"Nationality" text,
"Club team" text
) | SELECT "Club team" FROM table_11553 WHERE "Nationality" = 'united states' AND "Overall" < '142' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
4867,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
254,
11158,
372,
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,
254,
11158,
372,
121,
21680,
953,
834,
15660,
4867,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
23847,
1748,
121,
3,
2,
3,
31,
24978,
31,
1,
-100,
-100,
-100,
-100,
... |
Find the average age for students with different sex in a bar chart, could you list Y from high to low order? | CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Ad... | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY AVG(Age) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3306,
7,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
103,
52,
6983,
3,
21342,
17966,
6,
562,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
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,
679,
226,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
71,
17217,
599,
188,
397,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of all movies made before 1980 or had James Cameron as the director? | CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE reviewer (
rid number,
name text
) | SELECT title FROM movie WHERE director = "James Cameron" OR year < 1980 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
2076,
381,
6,
2233,
1499,
6,
215,
381,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5773,
41,
5413,
381,
6,
2076,
381,
6,
4811,
381,
6,
5773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
21680,
1974,
549,
17444,
427,
2090,
3274,
96,
683,
9,
2687,
18501,
121,
4674,
215,
3,
2,
6694,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who did the Cubs play when they had a record of 4-4? | CREATE TABLE table_54867 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Opponent" FROM table_54867 WHERE "Record" = '4-4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3707,
3708,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
755,
3707,
3708,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
591,
4278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Telugu has a Tamil of p r am ? | CREATE TABLE table_35102 (
"Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d" text,
"Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd" text,
"Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41" text,
"Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1" text,
"Malayalam \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02" text,
... | SELECT "Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41" FROM table_35102 WHERE "Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd" = 'pūrāṭam பூராடம்' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
14388,
41,
96,
134,
3247,
10648,
17,
3,
2,
76,
4198,
3747,
2,
76,
4198,
4305,
2,
76,
4198,
3747,
2,
76,
4198,
591,
26,
2,
76,
4198,
1808,
2,
76,
4198,
4906,
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,
96,
382,
15,
8076,
76,
3,
2,
76,
632,
75,
2266,
2,
76,
632,
75,
4448,
2,
76,
632,
75,
2668,
2,
76,
632,
75,
4853,
2,
76,
632,
75,
2517,
2,
76,
632,
75,
4853,
121,
21680,
953,
834,
2469,
14388,
549,
17444,
... |
Name the sum of points for chassis of brm p160e and year more than 1974 | CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT SUM(points) FROM table_name_32 WHERE chassis = "brm p160e" AND year > 1974 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
2700,
7,
3,
21342,
17966,
6,
22836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
979,
21,
22836,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
22836,
3274,
96,
115,
52,
51,
3,
102,
19129,
15,
121,
3430,
215,
2490,
17184,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the 2013 Eaff East Asian Cup Qualifier played? | CREATE TABLE table_47492 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_47492 WHERE "Competition" = '2013 eaff east asian cup qualifier' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
3647,
357,
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,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
4177,
3647,
357,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
11138,
3,
15,
4127,
5727,
3,
9,
10488,
4119,
10597,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sum of year with the local host Sai? | CREATE TABLE table_name_37 (year INTEGER, local_host_s_ VARCHAR) | SELECT SUM(year) FROM table_name_37 WHERE local_host_s_ = "sai" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
1201,
3,
21342,
17966,
6,
415,
834,
12675,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
215,
28,
8,
415,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
415,
834,
12675,
834,
7,
834,
3274,
96,
7,
9,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the opponent on September 9, 1979? | CREATE TABLE table_70613 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Opponent" FROM table_70613 WHERE "Date" = 'september 9, 1979' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
4241,
519,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
667,
102,
9977,
121,
21680,
953,
834,
2518,
4241,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
9902,
15393,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is 1999, when 2003 is 'A', and when Career SR is '0 / 4'? | CREATE TABLE table_44360 (
"Tournament" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"Career SR" text,
"Career win-loss" text
) | SELECT "1999" FROM table_44360 WHERE "2003" = 'a' AND "Career SR" = '0 / 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
19208,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
19479,
357,
121,
1499,
6,
96,
2294,
4271,
121,
1499,
6,
96,
19479,
20364,
1499,
6,
96,
19479,
17395,
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,
2294,
3264,
121,
21680,
953,
834,
3628,
19208,
549,
17444,
427,
96,
23948,
121,
3274,
3,
31,
9,
31,
3430,
96,
6936,
15,
49,
3,
6857,
121,
3274,
3,
31,
632,
3,
87,
314,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Goalsagainst that has a Points of 108, and a Lost smaller than 14 has what average? | CREATE TABLE table_name_40 (goalsagainst INTEGER, points VARCHAR, lost VARCHAR) | SELECT AVG(goalsagainst) FROM table_name_40 WHERE points = 108 AND lost < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
839,
5405,
9,
16720,
7,
17,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
17916,
7,
9,
16720... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
839,
5405,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
979,
3274,
3,
16169,
3430,
1513,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When Giovanni Gaetano Orsini was the elector who was the elevator? | CREATE TABLE table_name_63 (elevator VARCHAR, elector VARCHAR) | SELECT elevator FROM table_name_63 WHERE elector = "giovanni gaetano orsini" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
15,
10912,
1016,
584,
4280,
28027,
6,
11924,
127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
31326,
2776,
15,
17,
152,
32,
955,
7,
77,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
19967,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
11924,
127,
3274,
96,
10253,
208,
14431,
7922,
15,
17,
152,
32,
42,
7,
77,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Date has a Tournament of at&t pebble beach national pro-am, and a Margin of victory of 1 stroke, and a To par of 11? | CREATE TABLE table_5490 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text
) | SELECT "Date" FROM table_5490 WHERE "Tournament" = 'at&t pebble beach national pro-am' AND "Margin of victory" = '1 stroke' AND "To par" = '–11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
2394,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
96,
7286,
122,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5062,
2394,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
144,
184,
17,
158,
7310,
2608,
1157,
813,
18,
265,
31,
3430,
96,
7286,
122,
77,
13,
6224,
121,
3274,
3... |
Name the awardee for tingya | CREATE TABLE table_24446718_3 (
awardee_s_ VARCHAR,
name_of_film VARCHAR
) | SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_film = "Tingya" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3628,
3708,
2606,
834,
519,
41,
2760,
15,
15,
834,
7,
834,
584,
4280,
28027,
6,
564,
834,
858,
834,
9988,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2760,
15,
15,
834,
7,
834,
21680,
953,
834,
2266,
3628,
3708,
2606,
834,
519,
549,
17444,
427,
564,
834,
858,
834,
9988,
3274,
96,
382,
53,
63,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many episodes have a share of 16.2% and an episode number of less than 1? | CREATE TABLE table_70855 (
"Episode No." real,
"Airdate" text,
"Total Viewers" real,
"Share" text,
"BBC One Weekly Ranking" text
) | SELECT COUNT("Total Viewers") FROM table_70855 WHERE "Share" = '16.2%' AND "Episode No." < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
4433,
755,
41,
96,
427,
102,
159,
32,
221,
465,
535,
490,
6,
96,
20162,
5522,
121,
1499,
6,
96,
3696,
1947,
4197,
277,
121,
490,
6,
96,
24501,
121,
1499,
6,
96,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3696,
1947,
4197,
277,
8512,
21680,
953,
834,
2518,
4433,
755,
549,
17444,
427,
96,
24501,
121,
3274,
3,
31,
2938,
5,
5406,
31,
3430,
96,
427,
102,
159,
32,
221,
465,
535,
3,
2,
3,
31,
536... |
A bar chart about how many students are affected by each allergy type?, and could you rank in descending by the bars? | CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER... | SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType ORDER BY AllergyType DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4498,
834,
6838,
49,
122,
63,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
4498,
834,
6838,
49,
122,
63,
6157,
332,
536,
3,
15355,
3162,
432,
49,
122,
63,
834,
25160,
6157,
332,
357,
9191,
332,
5411,
6838,
49,
122,
63,
3274,
... |
How many seasons did the Div J1 have the Emperor's cup in the 3rd round with Tms of more than 18? | CREATE TABLE table_57902 (
"Season" real,
"Div." text,
"Tms." real,
"Pos." real,
"Attendance/G" real,
"Emperor's Cup" text
) | SELECT COUNT("Season") FROM table_57902 WHERE "Emperor's Cup" = '3rd round' AND "Div." = 'j1' AND "Tms." > '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
2394,
357,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
21313,
535,
1499,
6,
96,
382,
51,
7,
535,
490,
6,
96,
345,
32,
7,
535,
490,
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,
2847,
17161,
599,
121,
134,
15,
9,
739,
8512,
21680,
953,
834,
3436,
2394,
357,
549,
17444,
427,
96,
427,
51,
883,
127,
31,
7,
3802,
121,
3274,
3,
31,
519,
52,
26,
1751,
31,
3430,
96,
21313,
535,
3274,
3,
31,
... |
What is Visitor, when Home is Philadelphia, and when Date is November 18? | CREATE TABLE table_name_11 (visitor VARCHAR, home VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_11 WHERE home = "philadelphia" AND date = "november 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
3466,
155,
127,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4957,
127,
6,
116,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
234,
3274,
96,
18118,
15311,
11692,
9,
121,
3430,
833,
3274,
96,
5326,
18247,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What dates were the matches at windy hill? | CREATE TABLE table_name_1 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_1 WHERE venue = "windy hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
5522,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5128,
130,
8,
6407,
44,
2943,
63,
9956,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
5669,
3274,
96,
5165,
63,
9956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many riders used a motorcycle manufactured by honda ? | CREATE TABLE table_203_166 (
id number,
"pos" text,
"no" number,
"rider" text,
"manufacturer" text,
"laps" number,
"time" text,
"grid" number,
"points" number
) | SELECT COUNT("rider") FROM table_203_166 WHERE "manufacturer" = 'honda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
26811,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
4055,
49,
121,
1499,
6,
96,
348,
76,
8717,
450,
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,
2847,
17161,
599,
121,
4055,
49,
8512,
21680,
953,
834,
23330,
834,
26811,
549,
17444,
427,
96,
348,
76,
8717,
450,
49,
121,
3274,
3,
31,
31782,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the name of the player for pick 402? | CREATE TABLE table_name_57 (player VARCHAR, pick VARCHAR) | SELECT player FROM table_name_57 WHERE pick = 402 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
20846,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
564,
13,
8,
1959,
21,
1432,
1283,
357,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1432,
3274,
1283,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show total number of id from each meter 200, and list by the x axis in ascending. | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Coun... | SELECT meter_200, SUM(ID) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
3,
4401,
834,
3632,
6,
180,
6122,
599,
4309,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
4674,
11300,
272,
476,
3,
4401,
834,
3632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who are all the runner-up for premier in richmond | CREATE TABLE table_16166 (
"Season" real,
"Premier" text,
"Runner-up" text,
"Score" text,
"Margin" real,
"Venue" text,
"Attendance" real
) | SELECT "Runner-up" FROM table_16166 WHERE "Premier" = 'Richmond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
26811,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
10572,
51,
972,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
7286,
122,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23572,
18,
413,
121,
21680,
953,
834,
2938,
26811,
549,
17444,
427,
96,
10572,
51,
972,
121,
3274,
3,
31,
448,
362,
6764,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What report has a score of 0-0 with Sydney FC? | CREATE TABLE table_name_49 (report VARCHAR, score VARCHAR, away_team VARCHAR) | SELECT report FROM table_name_49 WHERE score = "0-0" AND away_team = "sydney fc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
60,
1493,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
934,
65,
3,
9,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
934,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
2604,
3274,
96,
18629,
121,
3430,
550,
834,
11650,
3274,
96,
7,
63,
26,
3186,
3,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many groups of candidates are there in there in the district where the incumbent is Doc Hastings? | CREATE TABLE table_1420 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"2008 Candidates" text,
"Results" text
) | SELECT COUNT("2008 Candidates") FROM table_1420 WHERE "Incumbent" = 'Doc Hastings' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
1755,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
15,
26,
121,
490,
6,
96,
134,
17,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
16128,
20763,
8512,
21680,
953,
834,
2534,
1755,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
4135,
75,
4498,
1222,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many courses are provided in each year? binning by year and create a line chart grouping by semester, and sort in ascending by the X-axis. | CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq... | SELECT year, COUNT(*) FROM section GROUP BY semester ORDER BY year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10617,
41,
4699,
3,
4331,
4059,
15757,
6,
564,
3,
4331,
4059,
599,
1755,
201,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
9090,
206,
17552,
599,
11864,
7318,
3,
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,
215,
6,
2847,
17161,
599,
1935,
61,
21680,
1375,
350,
4630,
6880,
272,
476,
10542,
4674,
11300,
272,
476,
215,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how long did it take michael schumacher to finish the race ? | CREATE TABLE table_202_143 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) | SELECT "time/retired" FROM table_202_143 WHERE "driver" = 'michael schumacher' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
25133,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
15982,
5317,
121,
1499,
6,
96,
8478,
7,
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,
715,
87,
10682,
1271,
121,
21680,
953,
834,
19818,
834,
25133,
549,
17444,
427,
96,
13739,
52,
121,
3274,
3,
31,
51,
362,
9,
15,
40,
3,
7,
8019,
24113,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium? | CREATE TABLE table_name_10 (podium INTEGER, pole VARCHAR, season VARCHAR, flap VARCHAR, race VARCHAR) | SELECT AVG(podium) FROM table_name_10 WHERE flap = 0 AND race < 2 AND season = "1989" AND pole < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
11410,
2552,
3,
21342,
17966,
6,
11148,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
23050,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
11410,
2552,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
23050,
3274,
3,
632,
3430,
1964,
3,
2,
204,
3430,
774,
3274,
96,
2294,
3914,
121,
3430,
11148,
3,
2,
3,
632,
1,
-100,
-100,
-100,... |
What height was the player that played for the Rockets between 1992-93? | CREATE TABLE table_330 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) | SELECT "Height in Ft." FROM table_330 WHERE "Years for Rockets" = '1992-93' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17225,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
5,
599,
7,
61,
121,
1499,
6,
96,
3845,
2632,
16,
377,
17,
535,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
2632,
16,
377,
17,
535,
21680,
953,
834,
17225,
549,
17444,
427,
96,
476,
2741,
7,
21,
22176,
7,
121,
3274,
3,
31,
19479,
7412,
4271,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result of the election featuring ike skelton? | CREATE TABLE table_1341604_26 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1341604_26 WHERE incumbent = "Ike Skelton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
19129,
591,
834,
2688,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
4356,
4767,
3,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
19129,
591,
834,
2688,
549,
17444,
427,
28406,
3274,
96,
196,
1050,
6458,
15,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What shows for loaned to when the loan expires end of the season, Francis Jeffers is the player? | CREATE TABLE table_13240 (
"Position" text,
"Player" text,
"Loaned to" text,
"Date" text,
"Loan expires" text
) | SELECT "Loaned to" FROM table_13240 WHERE "Loan expires" = 'end of the season' AND "Player" = 'francis jeffers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
11944,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
434,
8086,
26,
12,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
152,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
8086,
26,
12,
121,
21680,
953,
834,
2368,
11944,
549,
17444,
427,
96,
434,
32,
152,
8982,
15,
7,
121,
3274,
3,
31,
989,
13,
8,
774,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
6296,
75,
159,
528,
7010,... |
Create a bar chart showing the number of meter 200 across meter 200, and could you display by the X in asc? | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
... | SELECT meter_200, COUNT(meter_200) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
3,
4401,
834,
3632,
6,
2847,
17161,
599,
4401,
834,
3632,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
4674,
11300,
272,
476,
3,
4401,
834,
3632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
With a Mark of 46.47, What is the lowest Heat? | CREATE TABLE table_name_57 (
heat INTEGER,
mark VARCHAR
) | SELECT MIN(heat) FROM table_name_57 WHERE mark = "46.47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1678,
3,
21342,
17966,
6,
3946,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
2185,
13,
9668,
5,
4177,
6,
363,
19,
8,
7402,
7862... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
88,
144,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
3946,
3274,
96,
4448,
5,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which team uses lola t92/00/ buick for their chassis/engine? | CREATE TABLE table_26034 (
"Pos" real,
"No." real,
"Driver" text,
"Team" text,
"Chassis/Engine" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" real
) | SELECT "Team" FROM table_26034 WHERE "Chassis/Engine" = 'Lola T92/00/ Buick' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
3710,
41,
96,
345,
32,
7,
121,
490,
6,
96,
4168,
535,
490,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3541,
6500,
7,
87,
31477,
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,
18699,
121,
21680,
953,
834,
18365,
3710,
549,
17444,
427,
96,
3541,
6500,
7,
87,
31477,
121,
3274,
3,
31,
434,
32,
521,
332,
4508,
87,
1206,
87,
4708,
3142,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the open cup for usl pdl for did not qualify | CREATE TABLE table_2365150_1 (
open_cup VARCHAR,
league VARCHAR,
playoffs VARCHAR
) | SELECT open_cup FROM table_2365150_1 WHERE league = "USL PDL" AND playoffs = "Did not qualify" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
10402,
12278,
834,
536,
41,
539,
834,
4658,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
15289,
7,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
539,
834,
4658,
21680,
953,
834,
357,
10402,
12278,
834,
536,
549,
17444,
427,
5533,
3274,
96,
3063,
434,
276,
10013,
121,
3430,
15289,
7,
3274,
96,
308,
23,
26,
59,
9448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Type of Mill at Molen de Stud? | CREATE TABLE table_name_84 (
type VARCHAR,
name_of_mill VARCHAR
) | SELECT type FROM table_name_84 WHERE name_of_mill = "molen de stud" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
686,
584,
4280,
28027,
6,
564,
834,
858,
834,
12415,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6632,
13,
4185,
44,
11019,
35,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
564,
834,
858,
834,
12415,
3274,
96,
4641,
35,
20,
3,
8637,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the Result of 3–2, with a Score of 6–0, 6–4? | CREATE TABLE table_name_72 (date VARCHAR, result VARCHAR, score VARCHAR) | SELECT date FROM table_name_72 WHERE result = "3–2" AND score = "6–0, 6–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
5522,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
3,
20119,
13,
220,
104,
448... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
741,
3274,
96,
519,
104,
357,
121,
3430,
2604,
3274,
96,
948,
104,
632,
6,
431,
104,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What year was The Walking Dead? | CREATE TABLE table_65636 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT COUNT("Year") FROM table_65636 WHERE "Game" = 'the walking dead' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
948,
3420,
41,
96,
476,
2741,
121,
490,
6,
96,
23055,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
10146,
2032,
599,
7,
61,
121,
1499,
6,
96,
2962,
162,
8745,
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,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4122,
948,
3420,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
532,
3214,
3654,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was episode 10 in the season originally aired? | CREATE TABLE table_2182654_6 (original_air_date VARCHAR, no_in_season VARCHAR) | SELECT original_air_date FROM table_2182654_6 WHERE no_in_season = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
2688,
5062,
834,
948,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
357,
2606,
2688,
5062,
834,
948,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.