NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
When were the ships launched that were laid down on september 1, 1964? | CREATE TABLE table_1014206_2 (
launched VARCHAR,
laid_down VARCHAR
) | SELECT launched FROM table_1014206_2 WHERE laid_down = "September 1, 1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2534,
24643,
834,
357,
41,
3759,
584,
4280,
28027,
6,
7245,
834,
3035,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
130,
8,
10911,
3759,
24,
130,
7245,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3759,
21680,
953,
834,
1714,
2534,
24643,
834,
357,
549,
17444,
427,
7245,
834,
3035,
3274,
96,
27652,
1914,
18969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the country of player chi-chi rodríguez, who has an e to par? | CREATE TABLE table_name_2 (country VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT country FROM table_name_2 WHERE to_par = "e" AND player = "chi-chi rodríguez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
17529,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
684,
13,
1959,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
12,
834,
1893,
3274,
96,
15,
121,
3430,
1959,
3274,
96,
1436,
18,
1436,
6102,
52,
2,
1744,
457,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Silver has a Nation of china, and a Bronze smaller than 7? | CREATE TABLE table_name_2 (silver INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT SUM(silver) FROM table_name_2 WHERE nation = "china" AND bronze < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
7,
173,
624,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5642,
65,
3,
9,
11046,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
2982,
3274,
96,
5675,
9,
121,
3430,
13467,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Graded Hammer Three (GH3) shows Model of clp320? | CREATE TABLE table_name_20 (
graded_hammer_three__gh3_ VARCHAR,
model VARCHAR
) | SELECT graded_hammer_three__gh3_ FROM table_name_20 WHERE model = "clp320" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
2769,
26,
834,
1483,
935,
834,
21182,
834,
834,
122,
107,
519,
834,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2769,
26,
834,
1483,
935,
834,
21182,
834,
834,
122,
107,
519,
834,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
825,
3274,
96,
75,
40,
102,
15003,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the score for the away team of Brentford? | CREATE TABLE table_name_25 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_25 WHERE away_team = "brentford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
7,
9022,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
550,
372,
13,
21985,
2590,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
550,
834,
11650,
3274,
96,
115,
5320,
2590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest attendance for December 14, 1958 after week 12? | CREATE TABLE table_name_76 (
attendance INTEGER,
date VARCHAR,
week VARCHAR
) | SELECT MIN(attendance) FROM table_name_76 WHERE date = "december 14, 1958" AND week > 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
11364,
21,
1882,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
11363,
22306,
121,
3430,
471,
2490,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country contains the Shanghai Pudong International airport? | CREATE TABLE table_name_41 (country VARCHAR, airport VARCHAR) | SELECT country FROM table_name_41 WHERE airport = "shanghai pudong international airport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
17529,
584,
4280,
28027,
6,
3761,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
2579,
8,
15985,
5004,
26,
2444,
1331,
3761,
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,
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,
4853,
549,
17444,
427,
3761,
3274,
96,
7,
9270,
1024,
23,
4353,
26,
2444,
1038,
3761,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the incident in imam sahib area, kunduz province? | CREATE TABLE table_name_99 (nature_of_incident VARCHAR, location VARCHAR) | SELECT nature_of_incident FROM table_name_99 WHERE location = "imam sahib area, kunduz province" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
27440,
834,
858,
834,
77,
75,
4215,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5415,
16,
256,
265,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1405,
834,
858,
834,
77,
75,
4215,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1128,
3274,
96,
603,
265,
3,
7,
9,
107,
23,
115,
616,
6,
3,
2729,
10170,
172,
7985,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
How many inputs are there in the 'closure for signature' tab under the field 'sea (revised)'? | CREATE TABLE table_2001348_1 (
closure_for_signature VARCHAR,
field VARCHAR
) | SELECT COUNT(closure_for_signature) FROM table_2001348_1 WHERE field = "Sea (revised)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
2368,
3707,
834,
536,
41,
12493,
834,
1161,
834,
13658,
27440,
584,
4280,
28027,
6,
1057,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3785,
7,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3903,
4334,
834,
1161,
834,
13658,
27440,
61,
21680,
953,
834,
3632,
2368,
3707,
834,
536,
549,
17444,
427,
1057,
3274,
96,
134,
15,
9,
41,
60,
208,
3375,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
which bank officer came after michel deuzet ? | CREATE TABLE table_201_1 (
id number,
"from" number,
"to" number,
"name" text,
"party" text,
"position" text
) | SELECT "name" FROM table_201_1 WHERE "position" = 'bank officer' AND "from" > (SELECT "from" FROM table_201_1 WHERE "name" = 'michel deuzet') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22772,
834,
536,
41,
3,
23,
26,
381,
6,
96,
7152,
121,
381,
6,
96,
235,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
4718,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
22772,
834,
536,
549,
17444,
427,
96,
4718,
121,
3274,
3,
31,
4739,
5502,
31,
3430,
96,
7152,
121,
2490,
41,
23143,
14196,
96,
7152,
121,
21680,
953,
834,
22772,
834,
536,
549,
17444,... |
Which details of journey had simon hoggart as a narrator? | CREATE TABLE table_name_48 (details_of_journey VARCHAR, narrator VARCHAR) | SELECT details_of_journey FROM table_name_48 WHERE narrator = "simon hoggart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
221,
5756,
7,
834,
858,
834,
18359,
3186,
584,
4280,
28027,
6,
3,
29,
291,
52,
1016,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1030,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1030,
834,
858,
834,
18359,
3186,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3,
29,
291,
52,
1016,
3274,
96,
28348,
29,
3,
18330,
1478,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the location and attendance when lebron james (10) had the high assists? | CREATE TABLE table_27713030_16 (location_attendance VARCHAR, high_assists VARCHAR) | SELECT location_attendance FROM table_27713030_16 WHERE high_assists = "LeBron James (10)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4450,
1458,
1458,
834,
2938,
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,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2555,
4450,
1458,
1458,
834,
2938,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
2796,
22780,
29,
2549,
41,
16968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the highest number of dismissals in a match with 8 innings | CREATE TABLE table_19870086_24 (
dismissals VARCHAR,
innings VARCHAR
) | SELECT COUNT(dismissals) FROM table_19870086_24 WHERE innings = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
9295,
3840,
834,
2266,
41,
16708,
5405,
584,
4280,
28027,
6,
19714,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
381,
13,
16708,
5405,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26,
159,
11502,
5405,
61,
21680,
953,
834,
24151,
9295,
3840,
834,
2266,
549,
17444,
427,
19714,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of people attending the game where Colorado was the home team? | CREATE TABLE table_name_67 (
attendance INTEGER,
home VARCHAR
) | SELECT MIN(attendance) FROM table_name_67 WHERE home = "colorado" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
11364,
3,
21342,
17966,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
151,
7078,
8,
467,
213,
6144,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
234,
3274,
96,
8135,
19042,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which poll shows Democrat Mary Landrieu with 53% against Republican John Kennedy? | CREATE TABLE table_43587 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Mary Landrieu" text,
"Republican: John Kennedy" text,
"Lead Margin" real
) | SELECT "Republican: John Kennedy" FROM table_43587 WHERE "Democrat: Mary Landrieu" = '53%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2469,
4225,
41,
96,
8931,
40,
9149,
121,
1499,
6,
96,
308,
6203,
19092,
121,
1499,
6,
96,
19679,
10,
3790,
2216,
1753,
76,
121,
1499,
6,
96,
1649,
15727,
152,
10,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
15727,
152,
10,
1079,
14532,
121,
21680,
953,
834,
591,
2469,
4225,
549,
17444,
427,
96,
19679,
10,
3790,
2216,
1753,
76,
121,
3274,
3,
31,
755,
5170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the air date of 'Gary tries to do it all'? | CREATE TABLE table_50918 (
"Episode" text,
"Air Date" text,
"Timeslot" text,
"18-49" text,
"Viewers" real
) | SELECT "Air Date" FROM table_50918 WHERE "Episode" = 'gary tries to do it all' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
1298,
2606,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
20162,
7678,
121,
1499,
6,
96,
13368,
7,
3171,
121,
1499,
6,
96,
2606,
18,
3647,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20162,
7678,
121,
21680,
953,
834,
1752,
1298,
2606,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
1478,
63,
3,
9000,
12,
103,
34,
66,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the names of states that have some college students playing in the mid position but not in the goalie position. | CREATE TABLE college (
state VARCHAR,
cName VARCHAR
)
CREATE TABLE tryout (
cName VARCHAR,
pPos VARCHAR
) | SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
538,
584,
4280,
28027,
6,
3,
75,
23954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
3,
75,
23954,
584,
4280,
28027,
6,
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,
5540,
21680,
1900,
6157,
332,
536,
3,
15355,
3162,
653,
670,
6157,
332,
357,
9191,
332,
5411,
75,
23954,
3274,
332,
4416,
75,
23954,
549,
17444,
427,
332,
4416,
102,
345,
32,
7,
3274,
3,
31,
6983,
31,
2... |
What is the average age at appointment of those attached to security? | CREATE TABLE table_name_58 (age_at_appointment INTEGER, portfolio_attachment VARCHAR) | SELECT AVG(age_at_appointment) FROM table_name_58 WHERE portfolio_attachment = "security" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
545,
834,
144,
834,
9,
102,
2700,
297,
3,
21342,
17966,
6,
4833,
834,
21148,
297,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
545,
834,
144,
834,
9,
102,
2700,
297,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
4833,
834,
21148,
297,
3274,
96,
19361,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of job_id and employee_id , and sort in asc by the X-axis. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... | SELECT JOB_ID, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
2... |
The Away High Park Demons was which Ground? | CREATE TABLE table_75787 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
) | SELECT "Ground" FROM table_75787 WHERE "Away" = 'high park demons' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
3940,
940,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
517,
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,
517,
7775,
121,
21680,
953,
834,
3072,
3940,
940,
549,
17444,
427,
96,
188,
1343,
121,
3274,
3,
31,
6739,
2447,
20,
2157,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Location has a Game greater than 20 and a Date of Wed. Dec. 26? | CREATE TABLE table_name_79 (
location VARCHAR,
game VARCHAR,
date VARCHAR
) | SELECT location FROM table_name_79 WHERE game > 20 AND date = "wed. dec. 26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1128,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
10450,
65,
3,
9,
4435,
2123,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
467,
2490,
460,
3430,
833,
3274,
96,
1123,
26,
5,
20,
75,
5,
2208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
At what venue was richmond the away team? | CREATE TABLE table_name_62 (
venue VARCHAR,
away_team VARCHAR
) | SELECT venue FROM table_name_62 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
5669,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
5669,
47,
2354,
6764,
8,
550,
372,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total qual where the grid number is 24? | CREATE TABLE table_name_57 (qual INTEGER, grid VARCHAR) | SELECT SUM(qual) FROM table_name_57 WHERE grid = 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
11433,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
3,
11433,
213,
8,
8634,
381,
19,
997,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
11433,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
8634,
3274,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the results of those matches where the championship is French Open? | CREATE TABLE table_29163303_2 (
score VARCHAR,
championship VARCHAR
) | SELECT score FROM table_29163303_2 WHERE championship = "French Open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2938,
17225,
519,
834,
357,
41,
2604,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
772,
13,
273,
6407,
213,
8,
1018... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
3166,
2938,
17225,
519,
834,
357,
549,
17444,
427,
10183,
3274,
96,
371,
60,
5457,
2384,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Artist with a Date that is june 1979? | CREATE TABLE table_name_48 (artist VARCHAR, date VARCHAR) | SELECT artist FROM table_name_48 WHERE date = "june 1979" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1408,
343,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9152,
28,
3,
9,
7678,
24,
19,
3,
6959,
15,
1539... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2377,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
833,
3274,
96,
6959,
15,
15393,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is 1992, when 1999 is 'Year-End Championship'? | CREATE TABLE table_name_74 (
Id VARCHAR
) | SELECT 1992 FROM table_name_74 WHERE 1999 = "year-end championship" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9047,
6,
116,
5247,
19,
3,
31,
476,
2741,
18,
8532,
26,
7666,
31,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9047,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
5247,
3274,
96,
1201,
18,
989,
10183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score on the first leg when gimnasia de mendoza played at home for the second leg? | CREATE TABLE table_name_57 (
home__2nd_leg_ VARCHAR
) | SELECT 1 AS st_leg FROM table_name_57 WHERE home__2nd_leg_ = "gimnasia de mendoza" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
234,
834,
834,
357,
727,
834,
5772,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
30,
8,
166,
4553,
116,
3,
122,
603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
234,
834,
834,
357,
727,
834,
5772,
834,
3274,
96,
122,
603,
29,
15974,
20,
1076,
26,
13277,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the page count and word count greater than 5 with Bits of 18 22? | CREATE TABLE table_78223 (
"Subframe #" real,
"Page #" text,
"Name" text,
"Word #" real,
"Bits" text
) | SELECT "Page #" FROM table_78223 WHERE "Word #" > '5' AND "Bits" = '18–22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
357,
2773,
41,
96,
25252,
11415,
1713,
121,
490,
6,
96,
345,
545,
1713,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
518,
127,
26,
1713,
121,
490,
6,
96,
279,
7085,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
545,
1713,
121,
21680,
953,
834,
3940,
357,
2773,
549,
17444,
427,
96,
518,
127,
26,
1713,
121,
2490,
3,
31,
755,
31,
3430,
96,
279,
7085,
121,
3274,
3,
31,
2606,
104,
2884,
31,
1,
-100,
-100,
-100,
-10... |
When was Alianza's first season in first division with a promotion after 1959? | CREATE TABLE table_name_63 (
first_season_in_first_division VARCHAR,
first_season_after_most_recent_promotion VARCHAR,
name VARCHAR
) | SELECT first_season_in_first_division FROM table_name_63 WHERE first_season_after_most_recent_promotion = "1959" AND name = "alianza" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
166,
834,
9476,
834,
77,
834,
14672,
834,
26,
23,
6610,
584,
4280,
28027,
6,
166,
834,
9476,
834,
10245,
834,
5463,
834,
60,
3728,
834,
1409,
7259,
584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
166,
834,
9476,
834,
77,
834,
14672,
834,
26,
23,
6610,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
166,
834,
9476,
834,
10245,
834,
5463,
834,
60,
3728,
834,
1409,
7259,
3274,
96,
2294,
3390,
121,
3430,
564,... |
What was week 12's record? | CREATE TABLE table_name_57 (
record VARCHAR,
week VARCHAR
) | SELECT record FROM table_name_57 WHERE week = "12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1368,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
471,
586,
31,
7,
1368,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
471,
3274,
96,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people were in attendance on the day there was a 30-22 victory? | CREATE TABLE table_name_13 (
attendance VARCHAR,
record VARCHAR
) | SELECT COUNT(attendance) FROM table_name_13 WHERE record = "30-22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
11364,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
130,
16,
11364,
30,
8,
239,
132,
47,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1368,
3274,
96,
1458,
16149,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose procedure title is open and other sigmoidectomy stayed in the hospital for more than 17 days? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "17" AND procedures.long_title = "Open and other sigmoidectomy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What time was achieved on Saturday 29th August by the rider who recorded 22' 54.20 98.842mph on Tuesday 25th August? | CREATE TABLE table_23465864_4 (
sat_29_aug VARCHAR,
tues_25_aug VARCHAR
) | SELECT sat_29_aug FROM table_23465864_4 WHERE tues_25_aug = "22' 54.20 98.842mph" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4448,
3449,
4389,
834,
591,
41,
3,
7,
144,
834,
3166,
834,
402,
122,
584,
4280,
28027,
6,
3,
17,
76,
15,
7,
834,
1828,
834,
402,
122,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
7,
144,
834,
3166,
834,
402,
122,
21680,
953,
834,
2773,
4448,
3449,
4389,
834,
591,
549,
17444,
427,
3,
17,
76,
15,
7,
834,
1828,
834,
402,
122,
3274,
96,
2884,
31,
10630,
5,
1755,
3,
3916,
5,
4608,
357,
7... |
What Championship has an Opponent in the final of aaron krickstein, and a Score in the final of 7 5, 6 2? | CREATE TABLE table_name_86 (
championship VARCHAR,
opponent_in_the_final VARCHAR,
score_in_the_final VARCHAR
) | SELECT championship FROM table_name_86 WHERE opponent_in_the_final = "aaron krickstein" AND score_in_the_final = "7–5, 6–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
10183,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10183,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
9,
291,
106,
3,
157,
5206,
4008,
121,
3430,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
940,
104,
11116,
... |
wich spokesperson talked on luxembourg | CREATE TABLE table_184803_4 (spokespersons VARCHAR, country VARCHAR) | SELECT spokespersons FROM table_184803_4 WHERE country = "Luxembourg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
20579,
519,
834,
591,
41,
7990,
7735,
6075,
7,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
210,
362,
23909,
6812,
30,
21558,
51,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23909,
7,
21680,
953,
834,
2606,
20579,
519,
834,
591,
549,
17444,
427,
684,
3274,
96,
434,
3090,
15,
51,
21054,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the the phone number of Nancy Edwards? | CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text
)
CREATE TABLE tracks (
... | SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
3,
23,
26,
381,
6,
336,
834,
4350,
1499,
6,
166,
834,
4350,
1499,
6,
2233,
1499,
6,
2279,
834,
235,
381,
6,
3879,
834,
5522,
97,
6,
3804,
834,
5522,
97,
6,
1115,
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,
951,
21680,
1652,
549,
17444,
427,
166,
834,
4350,
3274,
96,
567,
6833,
121,
3430,
336,
834,
4350,
3274,
96,
427,
26,
2239,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of patients whose admission location is clinic referral/premature and diagnoses long title is acidosis? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.long_title = "Acidosis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is 4:30 pm, when Noon is 'Local Programs', and when 11:00 am is 'Local Programs'? | CREATE TABLE table_61154 (
"7:00 am" text,
"7:30 am" text,
"8:00 am" text,
"9:00 am" text,
"11:00 am" text,
"noon" text,
"12:30 pm" text,
"1:00 pm" text,
"1:30 pm" text,
"2:00 pm" text,
"3:00 pm" text,
"3:30 pm" text,
"4:00 pm" text,
"4:30 pm" text,
"5:00 pm" ... | SELECT "4:30 pm" FROM table_61154 WHERE "noon" = 'local programs' AND "11:00 am" = 'local programs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
27308,
41,
96,
18735,
183,
121,
1499,
6,
96,
18078,
183,
121,
1499,
6,
96,
15692,
183,
121,
1499,
6,
96,
1298,
10,
1206,
183,
121,
1499,
6,
96,
536,
24294,
183,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
591,
10,
1458,
6366,
121,
21680,
953,
834,
4241,
27308,
549,
17444,
427,
96,
29,
32,
106,
121,
3274,
3,
31,
16882,
1356,
31,
3430,
96,
536,
24294,
183,
121,
3274,
3,
31,
16882,
1356,
31,
1,
-100,
-100,
-100,
... |
Where was the game played that had a score of 3-2 and a time of 15:00 cet? | CREATE TABLE table_name_7 (ground VARCHAR, score VARCHAR, time VARCHAR) | SELECT ground FROM table_name_7 WHERE score = "3-2" AND time = "15:00 cet" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
9232,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
1944,
24,
141,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1591,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2604,
3274,
96,
21160,
121,
3430,
97,
3274,
96,
536,
19870,
5160,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
where are some good places for arabic on buchanan in san francisco ? | CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rati... | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'san francisco' AND location.street_name = 'buchanan' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1128,
41,
2062,
834,
23,
26,
16,
17,
6,
629,
834,
5525,
1152,
16,
17,
6,
2815,
834,
4350,
3,
4331,
4059,
6,
690,
834,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
438... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
5,
1840,
834,
5525,
1152,
6,
2062,
5,
4350,
21680,
1128,
6,
2062,
549,
17444,
427,
1128,
5,
6726,
834,
4350,
3274,
3,
31,
7,
152,
2515,
11389,
3523,
31,
3430,
1128,
5,
22967,
834,
4350,
3274,
3,
31,
5671,
... |
For Angelique Kerber who had an RR Rate of less than 0.33, what's the appeared? | CREATE TABLE table_name_87 (appeared INTEGER, rr_w_rate VARCHAR, player VARCHAR) | SELECT SUM(appeared) FROM table_name_87 WHERE rr_w_rate < 0.33 AND player = "angelique kerber" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
3096,
15,
9,
1271,
3,
21342,
17966,
6,
3,
52,
52,
834,
210,
834,
2206,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
3096,
15,
9,
1271,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
3,
52,
52,
834,
210,
834,
2206,
3,
2,
4097,
4201,
3430,
1959,
3274,
96,
3280,
11036,
3,
2304,
1152,
121,
1,
-100,
-100,
-... |
what is the score when the country is united states, the to par is +2 and the player is phil hancock? | CREATE TABLE table_45449 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_45449 WHERE "Country" = 'united states' AND "To par" = '+2' AND "Player" = 'phil hancock' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
591,
3647,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
2128,
591,
3647,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
3696,
260,
121,
3274,
3,
31,
1220,
357,
31,
3430,
96,
15800,
49,
121,
3... |
When did the Broncos play the Miami Dolphins? | CREATE TABLE table_17294353_1 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_17294353_1 WHERE opponent = "Miami Dolphins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3166,
4906,
4867,
834,
536,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
4027,
29,
509,
7,
577,
8,
8327,
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,
833,
21680,
953,
834,
2517,
3166,
4906,
4867,
834,
536,
549,
17444,
427,
15264,
3274,
96,
329,
23,
3690,
27676,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What runner-up has 4 & 3 as the score, with michael bonallack as the winner? | CREATE TABLE table_name_14 (runner_up VARCHAR, score VARCHAR, winner VARCHAR) | SELECT runner_up FROM table_name_14 WHERE score = "4 & 3" AND winner = "michael bonallack" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
10806,
834,
413,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
10806,
18,
413,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
2604,
3274,
96,
591,
3,
184,
220,
121,
3430,
4668,
3274,
96,
51,
362,
9,
15,
40,
2682,
1748,
4365,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was the incident in Pol-E Khomri? | CREATE TABLE table_name_17 (date VARCHAR, location VARCHAR) | SELECT date FROM table_name_17 WHERE location = "pol-e khomri" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
5522,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
5415,
16,
3,
8931,
18,
427,
480,
10207,
52,
23,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1128,
3274,
96,
3233,
18,
15,
3,
157,
10207,
52,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the name of the person married to frederick ix | CREATE TABLE table_name_71 (
name VARCHAR,
spouse VARCHAR
) | SELECT name FROM table_name_71 WHERE spouse = "frederick ix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
564,
584,
4280,
28027,
6,
9911,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
564,
13,
8,
568,
4464,
12,
2515,
15,
221,
5206,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
9911,
3274,
96,
89,
1271,
15,
5206,
3,
2407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
papers where ras bodik is an author | CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE dataset (
datasetid... | SELECT DISTINCT writes.paperid FROM author, writes WHERE author.authorname = 'ras bodik' AND writes.authorid = author.authorid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16,
17,
6,
3,
11675,
19587,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
41,
1040,
23,
26,
16,
17,
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,
15438,
25424,
6227,
11858,
5,
19587,
23,
26,
21680,
2291,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
52,
9,
7,
23322,
157,
31,
3430,
11858,
5,
17415,
23,
26,
3274,
2291,
5,
17415,
23,
26,
1... |
How may times did a player that attended Iowa state appear on the all time roster? | CREATE TABLE table_11734041_1 (
years_for_rockets VARCHAR,
school_club_team_country VARCHAR
) | SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE school_club_team_country = "Iowa State" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
21129,
4853,
834,
536,
41,
203,
834,
1161,
834,
6133,
15,
17,
7,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
834,
17529,
584,
4280,
28027,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
7,
834,
1161,
834,
6133,
15,
17,
7,
61,
21680,
953,
834,
20275,
21129,
4853,
834,
536,
549,
17444,
427,
496,
834,
13442,
834,
11650,
834,
17529,
3274,
96,
196,
2381,
9,
1015,
121,
1,
-100,
... |
Return the number of booking start date for the apartments that have type code 'Duplex' for each year in a bar chart. | CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
371,
9,
13067,
3010,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3064,
834,
4978,
3,
28027,
599,
1808,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5038,
834,
10208,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
15970,
7,
6157,
332,
357,
9191,
332,
5411,
6789,
834,
23,
26,
... |
how many barangays does the city of angono have ? | CREATE TABLE table_204_987 (
id number,
"city/municipality" text,
"no. of\nbarangays" number,
"area\n(km2)" number,
"population\n(2010 census)" number,
"pop. density\n(per km2)" number
) | SELECT "no. of\nbarangays" FROM table_204_987 WHERE "city/municipality" = 'angono' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3916,
940,
41,
3,
23,
26,
381,
6,
96,
6726,
87,
11760,
3389,
10355,
121,
1499,
6,
96,
29,
32,
5,
13,
2,
29,
1047,
1468,
9,
63,
7,
121,
381,
6,
96,
498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29,
32,
5,
13,
2,
29,
1047,
1468,
9,
63,
7,
121,
21680,
953,
834,
26363,
834,
3916,
940,
549,
17444,
427,
96,
6726,
87,
11760,
3389,
10355,
121,
3274,
3,
31,
1468,
106,
32,
31,
1,
-100,
-100,
-100,
-100,
-... |
what is the date of vacancy when the position in table is 16th and the outgoing manager is russell slade? | CREATE TABLE table_64564 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Date of vacancy" FROM table_64564 WHERE "Position in table" = '16th' AND "Outgoing manager" = 'russell slade' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2128,
4389,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
13,
3,
29685,
121,
21680,
953,
834,
948,
2128,
4389,
549,
17444,
427,
96,
345,
32,
7,
4749,
16,
953,
121,
3274,
3,
31,
2938,
189,
31,
3430,
96,
15767,
9545,
2743,
121,
3274,
3,
31,
4502,
12019,
3,
... |
What is the sum of all gold medals for Algeria when total medals is less than 3? | CREATE TABLE table_name_98 (
gold INTEGER,
nation VARCHAR,
total VARCHAR
) | SELECT SUM(gold) FROM table_name_98 WHERE nation = "algeria" AND total < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
2045,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
66,
2045,
9365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2982,
3274,
96,
138,
122,
4476,
121,
3430,
792,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which post had the horse named chocolate candy? | CREATE TABLE table_25098 (
"Post" real,
"Horse name" text,
"Trainer" text,
"Jockey" text,
"Opening Odds" text,
"Starting Odds" text,
"Finishing Pos." real
) | SELECT "Post" FROM table_25098 WHERE "Horse name" = 'Chocolate Candy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3916,
41,
96,
22507,
121,
490,
6,
96,
566,
127,
7,
15,
564,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
22696,
53,
9899,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22507,
121,
21680,
953,
834,
11434,
3916,
549,
17444,
427,
96,
566,
127,
7,
15,
564,
121,
3274,
3,
31,
3541,
32,
3297,
342,
22712,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which party had a term start of 5 august 1999? | CREATE TABLE table_61582 (
"Minister" text,
"Party" text,
"Governments" text,
"Term start" text,
"Term end" text
) | SELECT "Party" FROM table_61582 WHERE "Term start" = '5 august 1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
3449,
357,
41,
96,
12858,
5805,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
27304,
4128,
121,
1499,
6,
96,
11679,
456,
121,
1499,
6,
96,
11679,
414,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
4241,
3449,
357,
549,
17444,
427,
96,
11679,
456,
121,
3274,
3,
31,
755,
14663,
5247,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
List the total points of gymnasts in descending order. | CREATE TABLE gymnast (
Total_Points VARCHAR
) | SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23379,
17,
41,
9273,
834,
22512,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
792,
979,
13,
23379,
17,
7,
16,
3,
30960,
455,
5,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9273,
834,
22512,
7,
21680,
23379,
17,
4674,
11300,
272,
476,
9273,
834,
22512,
7,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of rounds of the player with a pick of 20? | CREATE TABLE table_61386 (
"Draft" real,
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text
) | SELECT COUNT("Round") FROM table_61386 WHERE "Pick" = '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
519,
3840,
41,
96,
308,
10913,
121,
490,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4241,
519,
3840,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the location on june 10 | CREATE TABLE table_11965481_13 (
location_attendance VARCHAR,
date VARCHAR
) | SELECT location_attendance FROM table_11965481_13 WHERE date = "June 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
4122,
3707,
536,
834,
2368,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1128,
30,
3,
6959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
19993,
4122,
3707,
536,
834,
2368,
549,
17444,
427,
833,
3274,
96,
683,
444,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What location has October 10 as date? | CREATE TABLE table_name_64 (location VARCHAR, date VARCHAR) | SELECT location FROM table_name_64 WHERE date = "october 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
14836,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1128,
65,
1797,
335,
38,
833,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the winner for adriano baffi and integiro classification of j n svorada for stage of 13 | CREATE TABLE table_69129 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text
) | SELECT "Winner" FROM table_69129 WHERE "Points classification" = 'adriano baffi' AND "Intergiro classification" = 'ján svorada' AND "Stage" = '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
22174,
41,
96,
134,
6505,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
3951,
22174,
549,
17444,
427,
96,
22512,
7,
13774,
121,
3274,
3,
31,
9,
26,
5288,
32,
3,
115,
4127,
23,
31,
3430,
96,
17555,
9427,
32,
13774,
121,
3274,
3,
31,
354,
12916,
3... |
what is the country for zhang xiuyun? | CREATE TABLE table_66211 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Country" FROM table_66211 WHERE "Athlete" = 'zhang xiuyun' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
27278,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3539,
27278,
549,
17444,
427,
96,
188,
189,
1655,
15,
121,
3274,
3,
31,
172,
9270,
3,
226,
23,
76,
63,
202,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who are all the womens doubles for the year 2008/2009? | CREATE TABLE table_14903841_1 (
womens_doubles VARCHAR,
year VARCHAR
) | SELECT womens_doubles FROM table_14903841_1 WHERE year = "2008/2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2394,
3747,
4853,
834,
536,
41,
887,
7,
834,
25761,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
66,
8,
887,
7,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
887,
7,
834,
25761,
7,
21680,
953,
834,
2534,
2394,
3747,
4853,
834,
536,
549,
17444,
427,
215,
3274,
96,
16128,
87,
16660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What score has money ($) greater than 400, with gene sarazen as the player? | CREATE TABLE table_62582 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT "Score" FROM table_62582 WHERE "Money ( $ )" > '400' AND "Player" = 'gene sarazen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
3449,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4056,
3449,
357,
549,
17444,
427,
96,
9168,
15,
63,
41,
1514,
3,
61,
121,
2490,
3,
31,
5548,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
729,
15,
3,
7,
2551,
1847,
31,
1,
... |
How many values for Germans occurs when value for Slovaks is 0.11%? | CREATE TABLE table_2374338_2 (germans VARCHAR, slovaks VARCHAR) | SELECT COUNT(germans) FROM table_2374338_2 WHERE slovaks = "0.11%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4581,
519,
3747,
834,
357,
41,
1304,
348,
7,
584,
4280,
28027,
6,
3,
7,
5850,
1639,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2620,
21,
2968,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1304,
348,
7,
61,
21680,
953,
834,
2773,
4581,
519,
3747,
834,
357,
549,
17444,
427,
3,
7,
5850,
1639,
7,
3274,
96,
16029,
4704,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is primary disease and procedure short title of subject id 2560? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT demographic.diagnosis, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560" | [
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,
25930,
4844,
159,
6,
4293,
5,
7,
14184,
834,
21869,
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,
427,
14798,
5... |
Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4? | CREATE TABLE table_38248 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT MIN("Drawn") FROM table_38248 WHERE "Lost" = '5' AND "Points" > '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
357,
3707,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
22512,
7,
1750,
121,
1499,
6,
96,
22512,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
10936,
29,
8512,
21680,
953,
834,
3747,
357,
3707,
549,
17444,
427,
96,
434,
3481,
121,
3274,
3,
31,
755,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What is the attendance when Cork City is the opponent? | CREATE TABLE table_name_7 (attendance INTEGER, opponents VARCHAR) | SELECT AVG(attendance) FROM table_name_7 WHERE opponents = "cork city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
15116,
663,
3,
21342,
17966,
6,
16383,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11364,
116,
2487,
157,
896,
19,
8,
15264,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15116,
663,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
16383,
3274,
96,
5715,
157,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients whose drug name is maalox/diphenhydramine/lidocaine? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Maalox/Diphenhydramine/Lidocaine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million? | CREATE TABLE table_name_75 (net_profit__ INTEGER, earnings_per_share__p_ VARCHAR, profit__loss__before_tax__£m_ VARCHAR) | SELECT SUM(net_profit__) AS £m_ FROM table_name_75 WHERE earnings_per_share__p_ = 27.4 AND profit__loss__before_tax__£m_ < 194.6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
1582,
834,
6046,
834,
834,
3,
21342,
17966,
6,
8783,
834,
883,
834,
12484,
834,
834,
102,
834,
584,
4280,
28027,
6,
3199,
834,
834,
2298,
7,
834,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
1582,
834,
6046,
834,
834,
61,
6157,
3996,
51,
834,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
8783,
834,
883,
834,
12484,
834,
834,
102,
834,
3274,
2307,
5,
591,
3430,
3199,
834,
834,
2298,
... |
what is primary disease of subject name orville ford? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.diagnosis FROM demographic WHERE demographic.name = "Orville Ford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
7395,
1420,
5222,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Time/Retired when the points were 32. | CREATE TABLE table_name_84 (
time_retired VARCHAR,
points VARCHAR
) | SELECT time_retired FROM table_name_84 WHERE points = "32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2900,
87,
1649,
11809,
26,
116,
8,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
979,
3274,
96,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the call sign for a class of A? | CREATE TABLE table_name_69 (call_sign VARCHAR, class VARCHAR) | SELECT call_sign FROM table_name_69 WHERE class = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
16482,
834,
6732,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
580,
1320,
21,
3,
9,
853,
13,
71,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
580,
834,
6732,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
853,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about salary over the email , and display y-axis in ascending order. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL v... | SELECT EMAIL, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
20211,
3502,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
17966,
834,
4309,
... |
Which Votes has a Governorate of hewler? | CREATE TABLE table_9104 (
"Candidate" text,
"Party" text,
"Election List" text,
"Governorate" text,
"Votes" real
) | SELECT AVG("Votes") FROM table_9104 WHERE "Governorate" = 'hewler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1298,
15442,
41,
96,
14050,
12416,
342,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
427,
12252,
6792,
121,
1499,
6,
96,
27304,
127,
342,
121,
1499,
6,
96,
553,
32,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
553,
32,
1422,
8512,
21680,
953,
834,
1298,
15442,
549,
17444,
427,
96,
27304,
127,
342,
121,
3274,
3,
31,
88,
210,
1171,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the category of na director | CREATE TABLE table_name_75 (category VARCHAR, director VARCHAR) | SELECT category FROM table_name_75 WHERE director = "na" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
8367,
839,
651,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
3295,
13,
3,
29,
9,
2090,
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,
3295,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2090,
3274,
96,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest In service for a vessel with a listed Unit of 12th minesweeper squadron? | CREATE TABLE table_name_37 (
in_service INTEGER,
unit VARCHAR
) | SELECT MAX(in_service) FROM table_name_37 WHERE unit = "12th minesweeper squadron" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
16,
834,
5114,
3,
21342,
17966,
6,
1745,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
86,
313,
21,
3,
9,
12662,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
77,
834,
5114,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1745,
3274,
96,
2122,
189,
2000,
7,
1123,
15,
883,
12025,
52,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total laps for grid 19? | CREATE TABLE table_31907 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT COUNT("Laps") FROM table_31907 WHERE "Grid" = '19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2294,
4560,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
519,
2294,
4560,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
2294,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What team was the away team when the tie no is 40? | CREATE TABLE table_48962 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Away team" FROM table_48962 WHERE "Tie no" = '40' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
4314,
357,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3707,
4314,
357,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
2445,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who directed the episode with production code 693-004? | CREATE TABLE table_29195 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production code" text
) | SELECT "Directed by" FROM table_29195 WHERE "Production code" = '693-004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
22464,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23620,
15,
26,
57,
121,
21680,
953,
834,
3166,
22464,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
3951,
22773,
6348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the land (sqmi) at geo id 3801947380? | CREATE TABLE table_18600760_12 (land___sqmi__ VARCHAR, geo_id VARCHAR) | SELECT land___sqmi__ FROM table_18600760_12 WHERE geo_id = 3801947380 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
2122,
41,
40,
232,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
584,
4280,
28027,
6,
9502,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1322,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
21680,
953,
834,
24700,
4560,
3328,
834,
2122,
549,
17444,
427,
9502,
834,
23,
26,
3274,
3,
22671,
2294,
4177,
22671,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the home team on April 13, 2008 when Itabuna was the away team? | CREATE TABLE table_name_48 (home_team VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_48 WHERE date = "april 13, 2008" AND away_team = "itabuna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
10670,
2628,
121,
3430,
550,
834,
11650,
3274,
96,
155,
9,
9617,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the lowest draw from Ballarat FL of sunbury, and byes larger than 2? | CREATE TABLE table_41221 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MIN("Draws") FROM table_41221 WHERE "Ballarat FL" = 'sunbury' AND "Byes" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
2658,
41,
96,
279,
1748,
9,
1795,
7212,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
10936,
7,
8512,
21680,
953,
834,
591,
2122,
2658,
549,
17444,
427,
96,
279,
1748,
9,
1795,
7212,
121,
3274,
3,
31,
7,
202,
7165,
31,
3430,
96,
279,
10070,
121,
2490,
3,
31,
357,
31,
1,
... |
Name the matches for wickets 17 | CREATE TABLE table_17900317_5 (matches VARCHAR, wickets VARCHAR) | SELECT matches FROM table_17900317_5 WHERE wickets = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
7015,
519,
2517,
834,
755,
41,
19515,
15,
7,
584,
4280,
28027,
6,
29719,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6407,
21,
29719,
7,
1003,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6407,
21680,
953,
834,
2517,
7015,
519,
2517,
834,
755,
549,
17444,
427,
29719,
7,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the winner in the competition in which the runner-up was Rosenborg? | CREATE TABLE table_name_16 (
winners VARCHAR,
runners_up VARCHAR
) | SELECT winners FROM table_name_16 WHERE runners_up = "rosenborg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
8969,
584,
4280,
28027,
6,
16448,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4668,
16,
8,
2259,
16,
84,
8,
3,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8969,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
16448,
834,
413,
3274,
96,
1859,
35,
23685,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, return a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday, and rank by the total number in descending. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varc... | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
7... |
What was Jack McGrath's finish number in 1954? | CREATE TABLE table_name_95 (finish VARCHAR, year VARCHAR) | SELECT finish FROM table_name_95 WHERE year = "1954" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
25535,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
4496,
13528,
1795,
107,
31,
7,
1992,
381,
16,
24970,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1992,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
215,
3274,
96,
22464,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which syndicate is associated with the stars & stripes yacht? | CREATE TABLE table_name_8 (syndicate VARCHAR, yacht VARCHAR) | SELECT syndicate FROM table_name_8 WHERE yacht = "stars & stripes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
26531,
342,
584,
4280,
28027,
6,
18082,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
23608,
15,
19,
1968,
28,
8,
4811,
3,
184,
24428,
18082,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23608,
15,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
18082,
3274,
96,
3624,
7,
3,
184,
24428,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the least number for nello pagani | CREATE TABLE table_28578594_1 (no INTEGER, driver VARCHAR) | SELECT MIN(no) FROM table_28578594_1 WHERE driver = "Nello Pagani" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3436,
4433,
4240,
834,
536,
41,
29,
32,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
381,
21,
3,
29,
7126,
3,
11057,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
61,
21680,
953,
834,
2577,
3436,
4433,
4240,
834,
536,
549,
17444,
427,
2535,
3274,
96,
567,
7126,
2709,
2565,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
since 2 years ago, had patient 006-7325 had any allergies? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
... | SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-7325')) AND DATETIME(allergy.allergytime) >= DATETIME(CURRENT_TIME(), '-2 ye... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
23886,
549,
17444,
427,
23886,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
1006... |
What is the full name of each student who is not allergic to any type of food. | CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT fname, lname FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM has_allergy AS T1 JOIN allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food") | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
834,
6137,
41,
23886,
1499,
6,
23886,
6137,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
65,
834,
11211,
122,
63,
41,
21341,
23,
26,
381,
6,
23886,
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,
3,
89,
4350,
6,
3,
40,
4350,
21680,
1236,
549,
17444,
427,
4486,
21341,
23,
26,
3388,
41,
23143,
14196,
332,
5411,
7,
17,
76,
23,
26,
21680,
65,
834,
11211,
122,
63,
6157,
332,
536,
3,
15355,
3162,
23886,
834,
6... |
What are the L2 cache specifications of part number amql64dam22gg? | CREATE TABLE table_27277284_27 (
l2_cache VARCHAR,
order_part_number VARCHAR
) | SELECT l2_cache FROM table_27277284_27 WHERE order_part_number = "AMQL64DAM22GG" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2555,
5865,
4608,
834,
2555,
41,
3,
40,
357,
834,
75,
4933,
584,
4280,
28027,
6,
455,
834,
2274,
834,
5525,
1152,
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,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
40,
357,
834,
75,
4933,
21680,
953,
834,
2555,
2555,
5865,
4608,
834,
2555,
549,
17444,
427,
455,
834,
2274,
834,
5525,
1152,
3274,
96,
4815,
2247,
434,
4389,
4296,
329,
2884,
21320,
121,
1,
-100,
-100,
-100,
-10... |
What episode aired on 11july1964? | CREATE TABLE table_1723080_1 (episode VARCHAR, broadcast_date VARCHAR) | SELECT episode FROM table_1723080_1 WHERE broadcast_date = "11July1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
13427,
2079,
834,
536,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
6878,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5640,
3,
2378,
26,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5640,
21680,
953,
834,
2517,
13427,
2079,
834,
536,
549,
17444,
427,
6878,
834,
5522,
3274,
96,
2596,
683,
83,
63,
26937,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which countries did participated in both Friendly and Tournament type competitions. | CREATE TABLE competition (country VARCHAR, competition_type VARCHAR) | SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
41,
17529,
584,
4280,
28027,
6,
2259,
834,
6137,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
84,
1440,
410,
10627,
16,
321,
27105,
11,
20502,
686,
2259,
7,
5,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
2259,
549,
17444,
427,
2259,
834,
6137,
3274,
3,
31,
17701,
120,
31,
3,
21342,
5249,
14196,
3,
23143,
14196,
684,
21680,
2259,
549,
17444,
427,
2259,
834,
6137,
3274,
3,
31,
382,
1211,
20205,
17,
31,
1,
... |
What was head count in 2010 where the farm production is 6.9? | CREATE TABLE table_13618358_1 (agri_culture_b VARCHAR) | SELECT MAX(2010 AS _population__000_) FROM table_13618358_1 WHERE agri_culture_b = "6.9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
24361,
3449,
834,
536,
41,
9,
3496,
834,
10547,
834,
115,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
819,
3476,
16,
2735,
213,
8,
3797,
999,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
14926,
6157,
3,
834,
9791,
7830,
834,
834,
2313,
834,
61,
21680,
953,
834,
23459,
24361,
3449,
834,
536,
549,
17444,
427,
3,
9,
3496,
834,
10547,
834,
115,
3274,
96,
948,
5,
1298,
121,
1,
-100,
-100,... |
Which 2012 has a 2008 of grand slam tournaments? | CREATE TABLE table_name_47 (Id VARCHAR) | SELECT 2012 FROM table_name_47 WHERE 2008 = "grand slam tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1673,
65,
3,
9,
2628,
13,
1907,
3,
7,
40,
265,
5892,
7,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1673,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
2628,
3274,
96,
15448,
3,
7,
40,
265,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average final with an all around larger than 19.4 and total more than 39.9? | CREATE TABLE table_name_12 (
final INTEGER,
all_around VARCHAR,
total VARCHAR
) | SELECT AVG(final) FROM table_name_12 WHERE all_around > 19.4 AND total > 39.9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
804,
3,
21342,
17966,
6,
66,
834,
15590,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
804,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
12406,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
66,
834,
15590,
2490,
9997,
591,
3430,
792,
2490,
6352,
5,
1298,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the original nfl team that the player was in from the midwestern conference? | CREATE TABLE table_name_86 (original_nfl_team VARCHAR, conf VARCHAR) | SELECT original_nfl_team FROM table_name_86 WHERE conf = "midwestern" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
21878,
834,
29,
89,
40,
834,
11650,
584,
4280,
28027,
6,
3,
9707,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
926,
3,
29,
89,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
29,
89,
40,
834,
11650,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3,
9707,
3274,
96,
6983,
24411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What club captain is John Hutchinson in? | CREATE TABLE table_name_95 (club VARCHAR, captain VARCHAR) | SELECT club FROM table_name_95 WHERE captain = "john hutchinson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
13442,
584,
4280,
28027,
6,
14268,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1886,
14268,
19,
1079,
3455,
17,
5675,
739,
16,
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,
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,
1886,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
14268,
3274,
96,
27341,
3,
13985,
5675,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What pick had a wide receiver named johnny holloway? | CREATE TABLE table_name_66 (pick VARCHAR, position VARCHAR, name VARCHAR) | SELECT pick FROM table_name_66 WHERE position = "wide receiver" AND name = "johnny holloway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
17967,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1432,
141,
3,
9,
1148,
11487,
2650,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1102,
3274,
96,
6728,
11487,
121,
3430,
564,
3274,
96,
27341,
29,
63,
23471,
9,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Date has a Record of 6-6? | CREATE TABLE table_name_82 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_82 WHERE record = "6-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
5522,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
11392,
13,
431,
5783,
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,
4613,
549,
17444,
427,
1368,
3274,
96,
948,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Lincoln City was the away team what is the tie number? | CREATE TABLE table_61469 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Tie no" FROM table_61469 WHERE "Away team" = 'lincoln city' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2534,
3951,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23,
15,
150,
121,
21680,
953,
834,
948,
2534,
3951,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
40,
77,
3297,
29,
690,
31,
1,
-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.