NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the barony for the Ballintaggart townland? | CREATE TABLE table_30120619_1 (
barony VARCHAR,
townland VARCHAR
) | SELECT barony FROM table_30120619_1 WHERE townland = "Ballintaggart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25626,
24643,
2294,
834,
536,
41,
1207,
106,
63,
584,
4280,
28027,
6,
1511,
40,
232,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1207,
106,
63,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1207,
106,
63,
21680,
953,
834,
25626,
24643,
2294,
834,
536,
549,
17444,
427,
1511,
40,
232,
3274,
96,
279,
1748,
77,
2408,
1478,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many points have 500cc for the class, a win greater than 0, with a year after 1974? | CREATE TABLE table_name_77 (
points INTEGER,
year VARCHAR,
class VARCHAR,
wins VARCHAR
) | SELECT SUM(points) FROM table_name_77 WHERE class = "500cc" AND wins > 0 AND year > 1974 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
979,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
853,
3274,
96,
2560,
75,
75,
121,
3430,
9204,
2490,
3,
632,
3430,
215,
2490,
17184,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many representatives placed at both miss nepal and miss pokhara . | CREATE TABLE table_204_172 (
id number,
"year" number,
"representative" text,
"hometown" text,
"placement in miss nepal" text,
"special awards at miss nepal" text,
"placement in miss pokhara" text
) | SELECT COUNT("representative") FROM table_204_172 WHERE NOT "placement in miss nepal" IS NULL AND NOT "placement in miss pokhara" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
27156,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
60,
12640,
1528,
121,
1499,
6,
96,
5515,
3540,
121,
1499,
6,
96,
4687,
297,
16,
3041,
3,
29,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
60,
12640,
1528,
8512,
21680,
953,
834,
26363,
834,
27156,
549,
17444,
427,
4486,
96,
4687,
297,
16,
3041,
3,
29,
15,
6459,
121,
6827,
13046,
10376,
3430,
4486,
96,
4687,
297,
16,
3041,
1977,
... |
Game of Thrones was done by which artist? | CREATE TABLE table_name_82 (
artist VARCHAR,
actual_title VARCHAR
) | SELECT artist FROM table_name_82 WHERE actual_title = "game of thrones" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
2377,
584,
4280,
28027,
6,
1805,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4435,
13,
29344,
47,
612,
57,
84,
2377,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2377,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1805,
834,
21869,
3274,
96,
7261,
13,
3,
8514,
1496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the release date of the processor with 2.8 ghz of frequency? | CREATE TABLE table_name_77 (release_date VARCHAR, frequency VARCHAR) | SELECT release_date FROM table_name_77 WHERE frequency = "2.8 ghz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1576,
833,
13,
8,
7502,
28,
3,
19419,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
7321,
3274,
96,
19419,
3,
122,
107,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what's the 1995-2000 with 1990-1995 being 3.08 | CREATE TABLE table_18891 (
"Region/country" text,
"1985-1990" text,
"1990-1995" text,
"1995-2000" text,
"2000-2005" text
) | SELECT "1995-2000" FROM table_18891 WHERE "1990-1995" = '3.08' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
4729,
41,
96,
17748,
23,
106,
87,
17529,
121,
1499,
6,
96,
2294,
4433,
4481,
2394,
121,
1499,
6,
96,
19479,
9498,
19479,
17395,
1499,
6,
96,
19479,
24279,
2313,
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,
19479,
24279,
2313,
121,
21680,
953,
834,
25794,
4729,
549,
17444,
427,
96,
19479,
9498,
19479,
17395,
3274,
3,
31,
5787,
4018,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many runs are there when the 50s column is 3? | CREATE TABLE table_30789 (
"Player" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" text,
"Highest Score" text,
"100s" real,
"50s" real
) | SELECT MIN("Runs") FROM table_30789 WHERE "50s" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
940,
3914,
41,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
448,
202,
7,
121,
490,
6,
96,
188,
624,
545,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
448,
202,
7,
8512,
21680,
953,
834,
1458,
940,
3914,
549,
17444,
427,
96,
1752,
7,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 2009 result when 2011 is 1R and 2007 is A? | CREATE TABLE table_7926 (
"Tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2009" FROM table_7926 WHERE "2011" = '1r' AND "2007" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
2688,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
3916,
121,
1499,
6,
96,
2294,
3264,
121,
1499,
6,
96,
13527,
121,
1499,
6,
96,
23658,
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,
16660,
121,
21680,
953,
834,
4440,
2688,
549,
17444,
427,
96,
13907,
121,
3274,
3,
31,
536,
52,
31,
3430,
96,
20615,
121,
3274,
3,
31,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which home team has a score of 5 – 6? | CREATE TABLE table_name_90 (home VARCHAR, score VARCHAR) | SELECT home FROM table_name_90 WHERE score = "5 – 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
5515,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
234,
372,
65,
3,
9,
2604,
13,
305,
3,
104,
431,
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,
234,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
2604,
3274,
96,
755,
3,
104,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the affiliation for the Cuddalore District? | CREATE TABLE table_name_18 (
affiliation VARCHAR,
district VARCHAR
) | SELECT affiliation FROM table_name_18 WHERE district = "cuddalore district" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
24405,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
24405,
21,
8,
1839,
26,
26,
9,
322,
15,
3570,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24405,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
3939,
3274,
96,
1071,
26,
26,
9,
322,
15,
3939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the horse with faults of 0 when the total is 4.1 | CREATE TABLE table_12012 (
"Rider" text,
"Horse" text,
"Faults" text,
"Round 1 + 2A Points" text,
"Total" real
) | SELECT "Horse" FROM table_12012 WHERE "Faults" = '0' AND "Total" = '4.1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
12172,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
371,
10335,
7,
121,
1499,
6,
96,
448,
32,
1106,
209,
1768,
204,
188,
4564,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
566,
127,
7,
15,
121,
21680,
953,
834,
536,
12172,
549,
17444,
427,
96,
371,
10335,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
3696,
1947,
121,
3274,
3,
31,
19708,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What town is from the mol tai district municipality and has a population rank of 187 and a population less than 470 in 2001? | CREATE TABLE table_66633 (
"Town" text,
"Population (2001)" real,
"Population rank" real,
"County" text,
"Municipality" text
) | SELECT "Town" FROM table_66633 WHERE "Municipality" = 'molėtai district municipality' AND "Population (2001)" < '470' AND "Population rank" = '187' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3891,
519,
41,
96,
382,
9197,
121,
1499,
6,
96,
27773,
7830,
41,
23658,
61,
121,
490,
6,
96,
27773,
7830,
11003,
121,
490,
6,
96,
10628,
63,
121,
1499,
6,
96,
329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9197,
121,
21680,
953,
834,
3539,
3891,
519,
549,
17444,
427,
96,
329,
202,
23,
3389,
10355,
121,
3274,
3,
31,
4641,
2,
17,
9,
23,
3939,
27597,
31,
3430,
96,
27773,
7830,
41,
23658,
61,
121,
3,
2,
3,
... |
Name the date that had a record of 90-60 | CREATE TABLE table_name_31 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_31 WHERE record = "90-60" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
5522,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
24,
141,
3,
9,
1368,
13,
2777,
19516,
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,
833,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1368,
3274,
96,
2394,
19516,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which ethnic background does patient with patient id 18351 belong to? | 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.ethnicity FROM demographic WHERE demographic.subject_id = "18351" | [
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,
15,
189,
2532,
485,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
24361,
5553,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those products with a price between 60 and 120, draw a bar chart about the distribution of name and code , could you rank by the x-axis in desc please? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, Code FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
3636,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
4674,
11300,
272,
476,
5570,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the most enrollment in Hamilton? | CREATE TABLE table_name_71 (
enrollment INTEGER,
location VARCHAR
) | SELECT MAX(enrollment) FROM table_name_71 WHERE location = "hamilton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
17938,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
167,
17938,
16,
13450,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
35,
4046,
297,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1128,
3274,
96,
1483,
23,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which company was based in London, United Kingdom? | CREATE TABLE table_15438337_1 (
institution VARCHAR,
country VARCHAR
) | SELECT institution FROM table_15438337_1 WHERE country = "London, United Kingdom" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4906,
4591,
4118,
834,
536,
41,
6568,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
349,
47,
3,
390,
16,
1524,
6,
907,
6524,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6568,
21680,
953,
834,
1808,
4906,
4591,
4118,
834,
536,
549,
17444,
427,
684,
3274,
96,
29712,
6,
907,
6524,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the build date for total produced of 146 | CREATE TABLE table_70709 (
"Model" text,
"Specification" text,
"Build date" text,
"Total produced" real,
"Wheel arrangement" text,
"Prime mover" text,
"Power output" text
) | SELECT "Build date" FROM table_70709 WHERE "Total produced" = '146' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2518,
1298,
41,
96,
24663,
121,
1499,
6,
96,
7727,
2420,
121,
1499,
6,
96,
24752,
833,
121,
1499,
6,
96,
3696,
1947,
2546,
121,
490,
6,
96,
518,
88,
15,
40,
8641,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24752,
833,
121,
21680,
953,
834,
2518,
2518,
1298,
549,
17444,
427,
96,
3696,
1947,
2546,
121,
3274,
3,
31,
24300,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the series where the game was 5? | CREATE TABLE table_23286158_11 (
series VARCHAR,
game VARCHAR
) | SELECT series FROM table_23286158_11 WHERE game = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
3840,
26556,
834,
2596,
41,
939,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
939,
213,
8,
467,
47,
305,
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,
939,
21680,
953,
834,
23188,
3840,
26556,
834,
2596,
549,
17444,
427,
467,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date of the 279 wheels? | CREATE TABLE table_15412381_5 (
date VARCHAR,
wheels VARCHAR
) | SELECT date FROM table_15412381_5 WHERE wheels = 279 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
14574,
4959,
834,
755,
41,
833,
584,
4280,
28027,
6,
8277,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
204,
4440,
8277,
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,
833,
21680,
953,
834,
27308,
14574,
4959,
834,
755,
549,
17444,
427,
8277,
3274,
204,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Bar graph to show the number of rank from different rank, I want to display bar in asc order. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank ORDER BY Rank | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
12202,
834,
4309,
16,
17,
6,
5570,
1499,
6,
15508,
834,
4309,
16,
17,
6,
1246,
1499,
6,
4501,
1499,
6,
3,
22557,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
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,
3,
22557,
6,
2847,
17161,
599,
22557,
61,
21680,
14268,
350,
4630,
6880,
272,
476,
3,
22557,
4674,
11300,
272,
476,
3,
22557,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Time/Retired of Carlos Reutemann who was driving a brabham - Alfa Romeo? | CREATE TABLE table_name_69 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_69 WHERE constructor = "brabham - alfa romeo" AND driver = "carlos reutemann" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2900,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
6774,
127,
3274,
96,
1939,
115,
1483,
3,
18,
491,
89,
9,
3,
11956,
32,
121,
3430,
2535,
3274,
96,
1720,
2298,
3,
60,
2810,
2434,
121,
1,
-... |
What is the score for the game played on January 25? | CREATE TABLE table_17288825_7 (score VARCHAR, date VARCHAR) | SELECT score FROM table_17288825_7 WHERE date = "January 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
10927,
1828,
834,
940,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
467,
1944,
30,
1762,
944,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27156,
10927,
1828,
834,
940,
549,
17444,
427,
833,
3274,
96,
30404,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the time of patient 015-91239's hospital admission in this year? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid numb... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '015-91239' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
1808,
7141,
2122,
3288,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
6,
3,
31,
1... |
When was the successor who got his seat because of 'until august 2, 1813' seated? | CREATE TABLE table_225096_4 (
date_successor_seated VARCHAR,
reason_for_change VARCHAR
) | SELECT date_successor_seated FROM table_225096_4 WHERE reason_for_change = "Until August 2, 1813" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
11434,
4314,
834,
591,
41,
833,
834,
7,
17431,
24901,
834,
22933,
584,
4280,
28027,
6,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
833,
834,
7,
17431,
24901,
834,
22933,
21680,
953,
834,
357,
11434,
4314,
834,
591,
549,
17444,
427,
1053,
834,
1161,
834,
13073,
3274,
96,
12282,
1660,
3547,
507,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which React has a Lane smaller than 4, and a Rank larger than 4, and a Time larger than 23.22? | CREATE TABLE table_name_72 (react INTEGER, time VARCHAR, lane VARCHAR, rank VARCHAR) | SELECT AVG(react) FROM table_name_72 WHERE lane < 4 AND rank > 4 AND time > 23.22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
60,
2708,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
60,
2708,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
3,
8102,
3,
2,
314,
3430,
11003,
2490,
314,
3430,
97,
2490,
1902,
5,
2884,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of seats in congress when the electoral district is Ucayali? | CREATE TABLE table_28999 (
"Electoral District" text,
"Registered voters" real,
"Seats in Congress" real,
"Candidates per party" real,
"Participating parties" real,
"Total candidates" real
) | SELECT COUNT("Seats in Congress") FROM table_28999 WHERE "Electoral District" = 'Ucayali' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
19446,
41,
96,
21543,
8563,
3570,
121,
1499,
6,
96,
17748,
343,
3737,
10861,
121,
490,
6,
96,
134,
1544,
7,
16,
4442,
121,
490,
6,
96,
14050,
12416,
6203,
399,
1088,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
134,
1544,
7,
16,
4442,
8512,
21680,
953,
834,
2577,
19446,
549,
17444,
427,
96,
21543,
8563,
3570,
121,
3274,
3,
31,
1265,
658,
63,
4288,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which sport had the club of the Montgomery Biscuits? | CREATE TABLE table_name_22 (sport VARCHAR, club VARCHAR) | SELECT sport FROM table_name_22 WHERE club = "montgomery biscuits" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
6661,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2600,
141,
8,
1886,
13,
8,
22948,
6483,
21560,
7,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2600,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1886,
3274,
96,
4662,
839,
935,
63,
18922,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the dominant religion for village for бачко добро поље | CREATE TABLE table_2562572_20 (dominant_religion__2002_ VARCHAR, type VARCHAR, cyrillic_name_other_names VARCHAR) | SELECT dominant_religion__2002_ FROM table_2562572_20 WHERE type = "village" AND cyrillic_name_other_names = "Бачко Добро Поље" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
1755,
41,
5012,
77,
288,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
3,
75,
63,
52,
173,
2176,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12613,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
21680,
953,
834,
19337,
1828,
5865,
834,
1755,
549,
17444,
427,
686,
3274,
96,
208,
17614,
121,
3430,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
... |
what nationality was the woman who won first place ? | CREATE TABLE table_204_910 (
id number,
"rank" number,
"name" text,
"nationality" text,
"result" number,
"notes" text
) | SELECT "nationality" FROM table_204_910 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1298,
1714,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
381,
6,
96,
7977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16557,
485,
121,
21680,
953,
834,
26363,
834,
1298,
1714,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of urgent hospital admission patients who have medicare health insurance? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.insurance = "Medicare" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
29441,
3274,
96,
15789,
... |
Which team were runners-up in 2007 and had 1 under winners? | CREATE TABLE table_65915 (
"Team" text,
"Winners" real,
"Runners-up" real,
"Years won" text,
"Years runners-up" text
) | SELECT "Team" FROM table_65915 WHERE "Winners" = '1' AND "Years runners-up" = '2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3390,
1808,
41,
96,
18699,
121,
1499,
6,
96,
18455,
687,
7,
121,
490,
6,
96,
23572,
7,
18,
413,
121,
490,
6,
96,
476,
2741,
7,
751,
121,
1499,
6,
96,
476,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
948,
3390,
1808,
549,
17444,
427,
96,
18455,
687,
7,
121,
3274,
3,
31,
536,
31,
3430,
96,
476,
2741,
7,
16448,
18,
413,
121,
3274,
3,
31,
20615,
31,
1,
-100,
-100,
-100,
-100,
-1... |
How many junctions have "replaced by bsi-35" listed in their remarks section? | CREATE TABLE table_11336756_6 (junctions VARCHAR, remarks VARCHAR) | SELECT COUNT(junctions) FROM table_11336756_6 WHERE remarks = "Replaced by BSI-35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4201,
3708,
4834,
834,
948,
41,
6959,
4985,
7,
584,
4280,
28027,
6,
21029,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
23704,
7,
43,
96,
60,
4687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6959,
4985,
7,
61,
21680,
953,
834,
2596,
4201,
3708,
4834,
834,
948,
549,
17444,
427,
21029,
3274,
96,
1649,
4687,
26,
57,
3,
4547,
196,
18,
2469,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total overall number of the ot position player with a pick greater than 5? | CREATE TABLE table_44856 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT COUNT("Overall") FROM table_44856 WHERE "Position" = 'ot' AND "Pick" > '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3707,
4834,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
591,
3707,
4834,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
32,
17,
31,
3430,
96,
345,
3142,
121,
2490,
3,
31,
755,
31,
1,
-100,
-100,
-10... |
what is the top three most frequent output event until 2100? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%output%' AND STRFTIME('%y', intakeoutput.intakeoutputtime) <= '2100' GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
17,
5411,
8725,
40,
10333,
21680,
41,
23143,
14196,
11963,
670,
2562,
5,
8725,
40,
10333,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,... |
How many high schools have storm mascots? | CREATE TABLE table_22058547_1 (
high_school VARCHAR,
mascot VARCHAR
) | SELECT high_school FROM table_22058547_1 WHERE mascot = "Storm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3076,
4433,
4177,
834,
536,
41,
306,
834,
6646,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
306,
2061,
43,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6646,
21680,
953,
834,
2884,
3076,
4433,
4177,
834,
536,
549,
17444,
427,
3,
2754,
4310,
3274,
96,
134,
17,
127,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which country has the Highest mountain of rettlkirchspitze? | CREATE TABLE table_name_68 (
country VARCHAR,
highest_mountain VARCHAR
) | SELECT country FROM table_name_68 WHERE highest_mountain = "rettlkirchspitze" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
684,
584,
4280,
28027,
6,
2030,
834,
11231,
9,
77,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
8,
1592,
222,
4180,
13,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
2030,
834,
11231,
9,
77,
3274,
96,
60,
17,
17,
40,
18413,
524,
27933,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose drug code is milr20pm? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "MILR20PM" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
for the drumset name td-15k how many snare pads are | CREATE TABLE table_2889300_6 (
snare_pad VARCHAR,
drumset_name VARCHAR
) | SELECT COUNT(snare_pad) FROM table_2889300_6 WHERE drumset_name = "TD-15K" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3914,
5426,
834,
948,
41,
3,
7,
29,
355,
834,
5612,
584,
4280,
28027,
6,
5253,
2244,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21,
8,
5253,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7,
29,
355,
834,
5612,
61,
21680,
953,
834,
2577,
3914,
5426,
834,
948,
549,
17444,
427,
5253,
2244,
834,
4350,
3274,
96,
10494,
10106,
439,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which position has 2 wins in 1992? | CREATE TABLE table_67550 (
"Season" real,
"Series" text,
"Races" text,
"Wins" text,
"Position" text
) | SELECT "Position" FROM table_67550 WHERE "Wins" = '2' AND "Season" = '1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
17147,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
448,
9,
2319,
121,
1499,
6,
96,
18455,
7,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
3708,
17147,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
357,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
19479,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the least number | CREATE TABLE table_22705586_1 (
number INTEGER
) | SELECT MIN(number) FROM table_22705586_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
17485,
3769,
3840,
834,
536,
41,
381,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
381,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
5525,
1152,
61,
21680,
953,
834,
357,
17485,
3769,
3840,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a bar chart to show the names and revenue of the company that earns the highest revenue in each headquarter city, could you display from low to high by the X please? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
4800,
4,
599,
1649,
15098,
61,
21680,
15248,
7,
350,
4630,
6880,
272,
476,
3642,
19973,
4674,
11300,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the names of products and the number of events they are in. Visualize by bar chart. | CREATE TABLE Parties_in_Events (
Party_ID INTEGER,
Event_ID INTEGER,
Role_Code CHAR(15)
)
CREATE TABLE Parties (
Party_ID INTEGER,
Party_Details VARCHAR(255)
)
CREATE TABLE Finances (
Finance_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Locations (
Location_ID INTEGER,
Ot... | SELECT Product_Name, COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17450,
7,
834,
77,
834,
427,
2169,
7,
41,
3450,
834,
4309,
3,
21342,
17966,
6,
8042,
834,
4309,
3,
21342,
17966,
6,
2158,
109,
834,
22737,
3,
28027,
599,
1808,
61,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6246,
834,
23954,
6,
2847,
17161,
599,
1935,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
7554,
834,
77,
834,
427,
2169,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
7472,
834,
4309,
3274,
332,
4416,
3174,
7472,
83... |
What are the results of the incumbent who was first elected in 1996? | CREATE TABLE table_name_79 (results VARCHAR, first_elected VARCHAR) | SELECT results FROM table_name_79 WHERE first_elected = 1996 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
60,
7,
83,
17,
7,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
772,
13,
8,
28406,
113,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
772,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
166,
834,
19971,
3274,
6911,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Date performed has a Scores by each individual judge of 10 + 10 + 10 = 30, and a Main contestant of karanvir bohra? | CREATE TABLE table_name_19 (
date_performed VARCHAR,
main_contestant VARCHAR,
scores_by_each_individual_judge VARCHAR
) | SELECT date_performed FROM table_name_19 WHERE scores_by_each_individual_judge = 10 + 10 + 10 = 30 AND main_contestant = "karanvir bohra" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
833,
834,
883,
10816,
584,
4280,
28027,
6,
711,
834,
1018,
4377,
288,
584,
4280,
28027,
6,
7586,
834,
969,
834,
15,
1836,
834,
17027,
138,
834,
354,
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,
833,
834,
883,
10816,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
7586,
834,
969,
834,
15,
1836,
834,
17027,
138,
834,
354,
13164,
3274,
335,
1768,
335,
1768,
335,
3274,
604,
3430,
711,
834,
1018,
4377,
288,
... |
what's the relative value that contains a jyutping of daam3? | CREATE TABLE table_name_72 (
relative_value VARCHAR,
jyutping VARCHAR
) | SELECT relative_value FROM table_name_72 WHERE jyutping = "daam3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
5237,
834,
12097,
584,
4280,
28027,
6,
3,
354,
63,
76,
17,
2462,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
5237,
701,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5237,
834,
12097,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
3,
354,
63,
76,
17,
2462,
3274,
96,
26,
9,
265,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the nickname of the school established in 2009? | CREATE TABLE table_49961 (
"Institution" text,
"Location" text,
"Nickname" text,
"Enrollment" text,
"Established" real
) | SELECT "Nickname" FROM table_49961 WHERE "Established" = '2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3264,
4241,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
8532,
4046,
297,
121,
1499,
6,
96,
14997,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
3142,
4350,
121,
21680,
953,
834,
591,
3264,
4241,
549,
17444,
427,
96,
14997,
15403,
11904,
121,
3274,
3,
31,
16660,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the number of turns for the City of san antonio? | CREATE TABLE table_name_35 (
turns VARCHAR,
city VARCHAR
) | SELECT turns FROM table_name_35 WHERE city = "san antonio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
5050,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
5050,
21,
8,
896,
13,
3,
7,
152,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5050,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
690,
3274,
96,
7,
152,
3,
9,
6992,
23,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date did episode 15 of the season originally air? | CREATE TABLE table_24194 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
) | SELECT "Original air date" FROM table_24194 WHERE "No. in season" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2294,
591,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
2266,
2294,
591,
549,
17444,
427,
96,
4168,
5,
16,
774,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the distribution of Date_of_Birth and Height in a bar chart. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Date_of_Birth, Height FROM people | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
24231,
21680,
151,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what date was Richmond hosted as the away team? | CREATE TABLE table_52052 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_52052 WHERE "Away team" = 'richmond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25356,
5373,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
25356,
5373,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
3723,
6764,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which game had a record of 45-16? | CREATE TABLE table_name_12 (game INTEGER, record VARCHAR) | SELECT AVG(game) FROM table_name_12 WHERE record = "45-16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
7261,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
467,
141,
3,
9,
1368,
13,
3479,
10892,
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,
71,
17217,
599,
7261,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1368,
3274,
96,
2128,
10892,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Nominee from the Category that is best costume design? | CREATE TABLE table_name_64 (
nominee VARCHAR,
category VARCHAR
) | SELECT nominee FROM table_name_64 WHERE category = "best costume design" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
21077,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
465,
8695,
15,
45,
8,
17459,
24,
19,
200,
11594,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21077,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
3295,
3274,
96,
9606,
11594,
408,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date was the game when 40,000 attended? | CREATE TABLE table_46643 (
"Date" text,
"Opponent#" text,
"Rank #" text,
"Site" text,
"Result" text,
"Attendance" text
) | SELECT "Date" FROM table_46643 WHERE "Attendance" = '40,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
4389,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
4663,
121,
1499,
6,
96,
22557,
1713,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
20119,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4448,
4389,
519,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
20431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of transactions for different investors. | CREATE TABLE TRANSACTIONS (investor_id VARCHAR) | SELECT investor_id, COUNT(*) FROM TRANSACTIONS GROUP BY investor_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
26585,
30518,
134,
41,
15601,
127,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
381,
13,
6413,
21,
315,
4367,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12024,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
26585,
30518,
134,
350,
4630,
6880,
272,
476,
12024,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had a 32-29-8 record at home? | CREATE TABLE table_name_55 (
home VARCHAR,
record VARCHAR
) | SELECT home FROM table_name_55 WHERE record = "32-29-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
234,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
9,
3538,
18,
3166,
6039,
1368,
44,
234,
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,
234,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1368,
3274,
96,
2668,
18,
3166,
6039,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the total amount of points scored between topolniky and union landhaus in the 1st match ? | CREATE TABLE table_204_230 (
id number,
"team #1" text,
"agg." text,
"team #2" text,
"1st match" text,
"2nd match" text
) | SELECT "1st match" + "1st match" FROM table_204_230 WHERE "team #1" = 'topolniky' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
13427,
41,
3,
23,
26,
381,
6,
96,
11650,
7172,
121,
1499,
6,
96,
9,
4102,
535,
1499,
6,
96,
11650,
15493,
121,
1499,
6,
96,
536,
7,
17,
1588,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
1588,
121,
1768,
96,
536,
7,
17,
1588,
121,
21680,
953,
834,
26363,
834,
13427,
549,
17444,
427,
96,
11650,
7172,
121,
3274,
3,
31,
235,
3233,
4953,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the recoupa sudamericana 1996 result of team corinthians? | CREATE TABLE table_name_7 (
recopa_sudamericana_1996 VARCHAR,
team VARCHAR
) | SELECT recopa_sudamericana_1996 FROM table_name_7 WHERE team = "corinthians" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
3,
60,
10845,
9,
834,
7,
76,
26,
23064,
29,
9,
834,
2294,
4314,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
60,
10845,
9,
834,
7,
76,
26,
23064,
29,
9,
834,
2294,
4314,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
372,
3274,
96,
5715,
77,
189,
7137,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
The Soviet Union has won more than 2 Silver, but how many Bronzes? | CREATE TABLE table_name_44 (
bronze VARCHAR,
nation VARCHAR,
silver VARCHAR
) | SELECT COUNT(bronze) FROM table_name_44 WHERE nation = "soviet union" AND silver > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
12873,
3545,
65,
751,
72,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
2982,
3274,
96,
7,
9881,
15,
17,
7021,
121,
3430,
4294,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many gold medals did the ivory coast and namibia win combined ? | CREATE TABLE table_203_61 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT SUM("gold") FROM table_203_61 WHERE "nation" IN ('ivory coast', 'namibia') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4241,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
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,
180,
6122,
599,
121,
14910,
8512,
21680,
953,
834,
23330,
834,
4241,
549,
17444,
427,
96,
29,
257,
121,
3388,
41,
31,
23,
1967,
63,
4939,
31,
6,
3,
31,
13363,
16775,
9,
31,
61,
1,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients with admission location as phys refferal/normal deli were below the age of 48? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.age < "48" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
8023,
476,
134,
4083,
20805,
21415,
87,
24833,
329,
4090,
309,
... |
How many papers by Luke Zettlemoyer contain the keyphrases Learning Algorithm ? | CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE paperdataset (
paperid ... | SELECT DISTINCT COUNT(DISTINCT writes.paperid) FROM author, keyphrase, paperkeyphrase, writes WHERE author.authorname = 'Luke Zettlemoyer' AND keyphrase.keyphrasename = 'Learning Algorithm' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND writes.authorid = author.authorid AND writes.paperid = paperkeyphrase.p... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
6378,
23,
26,
16,
17,
6,
6378,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5669,
41,
5669,
23,
26,
16,
17,
6,
5669,
4350,
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,
15438,
25424,
6227,
2847,
17161,
599,
15438,
25424,
6227,
11858,
5,
19587,
23,
26,
61,
21680,
2291,
6,
843,
27111,
6,
1040,
4397,
27111,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
434,
1598,
15... |
Who is the winner of Rookie of the Year in 2010? | CREATE TABLE player (
player_id text,
birth_year text,
birth_month text,
birth_day text,
birth_country text,
birth_state text,
birth_city text,
death_year text,
death_month text,
death_day text,
death_country text,
death_state text,
death_city text,
name_first tex... | SELECT player_id FROM player_award WHERE year = 2010 AND award_id = "Rookie of the Year" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
1959,
834,
23,
26,
1499,
6,
3879,
834,
1201,
1499,
6,
3879,
834,
7393,
1499,
6,
3879,
834,
1135,
1499,
6,
3879,
834,
17529,
1499,
6,
3879,
834,
5540,
1499,
6,
3879,
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,
1959,
834,
23,
26,
21680,
1959,
834,
9,
2239,
549,
17444,
427,
215,
3274,
2735,
3430,
2760,
834,
23,
26,
3274,
96,
448,
21132,
13,
8,
2929,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of job_id and the sum of manager_id , and group by attribute job_id, show from high to low by the total number of manager id. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 T... | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
3... |
provide the number of patients whose age is less than 85 and diagnoses long title is neurogenic bladder nos? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "85" AND diagnoses.long_title = "Neurogenic bladder NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
provide the number of patients whose primary disease is overdose and procedure short title is contr cerebr arteriogram? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "OVERDOSE" AND procedures.short_title = "Contr cerebr arteriogram" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
which neighborhood has the most number of businesses in Madison | CREATE TABLE tip (
tip_id int,
business_id varchar,
text longtext,
user_id varchar,
likes int,
year int,
month varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name v... | SELECT neighborhood.neighborhood_name FROM business, neighborhood WHERE business.city = 'Madison' AND neighborhood.business_id = business.business_id GROUP BY neighborhood.neighborhood_name ORDER BY COUNT(DISTINCT (business.name)) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2226,
41,
2226,
834,
23,
26,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
1499,
307,
6327,
6,
1139,
834,
23,
26,
3,
4331,
4059,
6,
114,
7,
16,
17,
6,
215,
16,
17,
6,
847,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5353,
5,
29848,
107,
6693,
4500,
834,
4350,
21680,
268,
6,
5353,
549,
17444,
427,
268,
5,
6726,
3274,
3,
31,
329,
9,
26,
23,
739,
31,
3430,
5353,
5,
16394,
834,
23,
26,
3274,
268,
5,
16394,
834,
23,
26,
350,
4... |
What is the sum number of round with Nebraska as the college and the overall greater than 40? | CREATE TABLE table_name_14 (round VARCHAR, college VARCHAR, overall VARCHAR) | SELECT COUNT(round) FROM table_name_14 WHERE college = "nebraska" AND overall > 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
7775,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
381,
13,
1751,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
1900,
3274,
96,
29,
15,
1939,
10717,
121,
3430,
1879,
2490,
1283,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Stacked bar chart of team_id for with each ACC_Home in each acc road, I want to show in ascending by the X-axis. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY ACC_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
3,
14775,
834,
448,
32,
9,
... |
What was the score of the game that put the team at 27-32? | CREATE TABLE table_name_51 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_51 WHERE record = "27-32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
2298,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
24,
474,
8,
372,
44,
2307,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1368,
3274,
96,
2555,
18,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
specify the lab test fluid of patient id 6983 | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT lab.fluid FROM lab WHERE lab.subject_id = "6983" | [
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,
7690,
5,
6947,
23,
26,
21680,
7690,
549,
17444,
427,
7690,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3951,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Chassis did Memo Gidley use? | CREATE TABLE table_name_37 (
chassis VARCHAR,
drivers VARCHAR
) | SELECT chassis FROM table_name_37 WHERE drivers = "memo gidley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
22836,
584,
4280,
28027,
6,
3863,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4004,
6500,
7,
410,
23018,
3156,
26,
1306,
169,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
3863,
3274,
96,
526,
51,
32,
3,
122,
23,
26,
1306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what are all the location where station number is c11 | CREATE TABLE table_17255 (
"Station Number" text,
"District" text,
"Location" text,
"Type" text,
"Appliances" text,
"Registrations" text
) | SELECT "Location" FROM table_17255 WHERE "Station Number" = 'C11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
25502,
41,
96,
134,
6821,
7720,
121,
1499,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
9648,
9928,
2319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
2517,
25502,
549,
17444,
427,
96,
134,
6821,
7720,
121,
3274,
3,
31,
254,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which restaurants have highest rating? List the restaurant name and its rating. | CREATE TABLE Restaurant (ResName VARCHAR, Rating VARCHAR) | SELECT ResName, Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6233,
41,
1649,
7,
23954,
584,
4280,
28027,
6,
21662,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3661,
43,
2030,
5773,
58,
6792,
8,
2062,
564,
11,
165,
5773,
5,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7127,
23954,
6,
21662,
21680,
6233,
4674,
11300,
272,
476,
21662,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients less than 72 years of age? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "72" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
3,
2,
96,
5865,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those days with the 3 largest maximum gust speeds, can you plot a bar chart to compare the total mean humidity of each day of the weeks? | CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_... | SELECT date, SUM(mean_humidity) FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2637,
41,
2478,
834,
23,
26,
3,
21342,
17966,
6,
13490,
834,
28843,
3,
21342,
17966,
6,
12908,
7,
834,
28843,
3,
21342,
17966,
6,
97,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
6,
180,
6122,
599,
526,
152,
834,
4884,
23,
26,
485,
61,
21680,
1969,
4674,
11300,
272,
476,
9858,
834,
17198,
834,
9993,
834,
7656,
309,
25067,
8729,
12604,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What position does the player from Texas State who was drafted before round 11 with an overall rank lower than 306 play? | CREATE TABLE table_32583 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT "Position" FROM table_32583 WHERE "Overall" < '306' AND "Round" < '11' AND "School/Club Team" = 'texas state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
1828,
4591,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
87,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
32,
7,
4749,
121,
21680,
953,
834,
519,
1828,
4591,
549,
17444,
427,
96,
23847,
1748,
121,
3,
2,
3,
31,
1458,
948,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
2596,
31,
3430,
96,
29364,
87,
254,
... |
WHICH Regular Season has a League of npsl, and a Year of 2008? | CREATE TABLE table_name_64 (
regular_season VARCHAR,
league VARCHAR,
year VARCHAR
) | SELECT regular_season FROM table_name_64 WHERE league = "npsl" AND year = "2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
1646,
834,
9476,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
22293,
17116,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1646,
834,
9476,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
5533,
3274,
96,
29,
102,
7,
40,
121,
3430,
215,
3274,
96,
16128,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki? | CREATE TABLE table_name_47 (
network VARCHAR,
lap_by_lap VARCHAR,
pit_reporters VARCHAR
) | SELECT network FROM table_name_47 WHERE lap_by_lap = "bill flemming" AND pit_reporters = "chris economaki" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1229,
584,
4280,
28027,
6,
14941,
834,
969,
834,
8478,
584,
4280,
28027,
6,
7688,
834,
60,
1493,
277,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1229,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
14941,
834,
969,
834,
8478,
3274,
96,
3727,
40,
8079,
635,
53,
121,
3430,
7688,
834,
60,
1493,
277,
3274,
96,
524,
52,
159,
3,
15,
12036,
11259,
121,
1,
-10... |
Which NGC number has a Constellation of ursa major? | CREATE TABLE table_name_1 (
ngc_number INTEGER,
constellation VARCHAR
) | SELECT MAX(ngc_number) FROM table_name_1 WHERE constellation = "ursa major" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3,
1725,
75,
834,
5525,
1152,
3,
21342,
17966,
6,
30872,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
445,
11055,
381,
65,
3,
9,
7762,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1725,
75,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
30872,
3274,
96,
3589,
9,
779,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When a team wins 4, how much is the Maximum amount of points? | CREATE TABLE table_19657 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) | SELECT MAX("Points") FROM table_19657 WHERE "Wins" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
3436,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
26937,
3436,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world? | CREATE TABLE table_22231 (
"Year" real,
"Miss Universe Philippines" text,
"Binibining Pilipinas-World" text,
"Binibining Pilipinas-International" text,
"Binibining Pilipinas-Tourism" text,
"First runner-up" text,
"Second runner-up" text
) | SELECT COUNT("Binibining Pilipinas-International") FROM table_22231 WHERE "Binibining Pilipinas-World" = 'Maria Karla Bautista' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
3341,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
159,
7,
20713,
12729,
121,
1499,
6,
96,
279,
77,
23,
4517,
53,
16536,
23,
3180,
9,
7,
18,
17954,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
279,
77,
23,
4517,
53,
16536,
23,
3180,
9,
7,
18,
27490,
8512,
21680,
953,
834,
26144,
3341,
549,
17444,
427,
96,
279,
77,
23,
4517,
53,
16536,
23,
3180,
9,
7,
18,
17954,
121,
3274,
3,
31,... |
Which Drawn has Points smaller than 46, and a Position smaller than 20, and a Lost smaller than 19, and an Against of 56? | CREATE TABLE table_35672 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT "Drawn" FROM table_35672 WHERE "Points" < '46' AND "Position" < '20' AND "Lost" < '19' AND "Against" = '56' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3708,
357,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
10936,
29,
121,
21680,
953,
834,
2469,
3708,
357,
549,
17444,
427,
96,
22512,
7,
121,
3,
2,
3,
31,
4448,
31,
3430,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
1755,
31,
3430,
96,
434,
3481,
121,
3,
2,
... |
Who is the patient portrayer of the episode with the production code 3T5004? | CREATE TABLE table_28786 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Patient Portrayer" text,
"Original air date" text,
"Production code" text
) | SELECT "Patient Portrayer" FROM table_28786 WHERE "Production code" = '3T5004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4225,
3840,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
9,
15058,
3625,
2866,
49,
121,
21680,
953,
834,
357,
4225,
3840,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
519,
382,
2560,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the party emails associated with parties that used the party form that is the most common? | CREATE TABLE organization_contact_individuals (
individual_id number,
organization_id number,
date_contact_from time,
date_contact_to time
)
CREATE TABLE party_addresses (
party_id number,
address_id number,
date_address_from time,
address_type_code text,
date_address_to time
)
CRE... | SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY COUNT(*) DESC LIMIT 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1470,
834,
27608,
834,
17027,
5405,
41,
928,
834,
23,
26,
381,
6,
1470,
834,
23,
26,
381,
6,
833,
834,
27608,
834,
7152,
97,
6,
833,
834,
27608,
834,
235,
97,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
8071,
834,
15,
1963,
21680,
2251,
6157,
3,
17,
536,
3,
15355,
3162,
1088,
834,
2032,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
8071,
834,
23,
26,
3274,
3,
17,
4416,
8071,
834,
23,
26,
549,
17444,
42... |
In what City/State did the ATCC Round 4 series take place? | CREATE TABLE table_62368 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
) | SELECT "City / State" FROM table_62368 WHERE "Series" = 'atcc round 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
519,
3651,
41,
96,
308,
342,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
254,
485,
3,
87,
1015,
121,
1499,
6,
96,
18455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
3,
87,
1015,
121,
21680,
953,
834,
4056,
519,
3651,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
144,
75,
75,
1751,
314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many classes between senior and junior year for world history | CREATE TABLE table_13967239_2 (
senior__4th_year_ VARCHAR,
junior__3rd_year_ VARCHAR
) | SELECT COUNT(senior__4th_year_) FROM table_13967239_2 WHERE junior__3rd_year_ = "World History" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
3708,
357,
3288,
834,
357,
41,
2991,
834,
834,
591,
189,
834,
1201,
834,
584,
4280,
28027,
6,
9212,
834,
834,
519,
52,
26,
834,
1201,
834,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
35,
23,
127,
834,
834,
591,
189,
834,
1201,
834,
61,
21680,
953,
834,
24090,
3708,
357,
3288,
834,
357,
549,
17444,
427,
9212,
834,
834,
519,
52,
26,
834,
1201,
834,
3274,
96,
17954,
5528,
121... |
how many movies have less than 20 episodes ? | CREATE TABLE table_204_671 (
id number,
"airing\ndate" text,
"english title\n(chinese title)" text,
"number of episodes" number,
"main cast" text,
"theme song (t)\nsub-theme song (st)" text,
"genre" text,
"notes" text,
"official website" text
) | SELECT COUNT(*) FROM table_204_671 WHERE "number of episodes" < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3708,
536,
41,
3,
23,
26,
381,
6,
96,
2256,
53,
2,
29,
5522,
121,
1499,
6,
96,
4606,
40,
1273,
2233,
2,
29,
599,
1436,
1496,
15,
2233,
61,
121,
1499,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
3708,
536,
549,
17444,
427,
96,
5525,
1152,
13,
13562,
121,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when is the hire date for those employees whose first name does not containing the letter M, and count them by a bar chart | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
4486,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
329,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What Race has a Purse of $300,000? | CREATE TABLE table_name_43 (
race VARCHAR,
purse VARCHAR
) | SELECT race FROM table_name_43 WHERE purse = "$300,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1964,
584,
4280,
28027,
6,
20717,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
10949,
65,
3,
9,
7333,
7,
15,
13,
21431,
6,
2313,
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,
1964,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
20717,
3274,
96,
3229,
5426,
6,
2313,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the venue named nassau veterans memorial coliseum established?? | CREATE TABLE table_name_45 (established INTEGER, venue VARCHAR) | SELECT MAX(established) FROM table_name_45 WHERE venue = "nassau veterans memorial coliseum" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
24109,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
5669,
2650,
3,
29,
9,
7,
7348,
13391,
15827,
3,
9044,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
24109,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
5669,
3274,
96,
29,
9,
7,
7348,
13391,
15827,
3,
9044,
7,
15,
440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the total number of tie number for team 2 osijek | CREATE TABLE table_2348 (
"Tie no" real,
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT COUNT("Tie no") FROM table_2348 WHERE "Team 2" = 'Osijek' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3707,
41,
96,
382,
23,
15,
150,
121,
490,
6,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
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,
2847,
17161,
599,
121,
382,
23,
15,
150,
8512,
21680,
953,
834,
2773,
3707,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
667,
7,
23,
1924,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the location and attendance for the game against the team with a 51-15 record with the Cavaliers? | CREATE TABLE table_25196 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_25196 WHERE "Record" = '51-15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
26937,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
1828,
26937,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
5553,
10106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the latest year featuring candace parker? | CREATE TABLE table_33504 (
"Year" real,
"Player" text,
"Nationality" text,
"Position played" text,
"Team represented" text
) | SELECT MAX("Year") FROM table_33504 WHERE "Player" = 'candace parker' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
1752,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
1944,
121,
1499,
6,
96,
18699,
7283,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
4201,
1752,
591,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
75,
232,
3302,
2447,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name of the national final co host when David Jacobs was the National final main host, and the selection show was a song for europe in 1966? | CREATE TABLE table_name_85 (
national_final_co_host VARCHAR,
year_s_ VARCHAR,
national_final_main_host VARCHAR,
selection_show VARCHAR
) | SELECT national_final_co_host FROM table_name_85 WHERE national_final_main_host = "david jacobs" AND selection_show = "a song for europe" AND year_s_ = "1966" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1157,
834,
12406,
834,
509,
834,
12675,
584,
4280,
28027,
6,
215,
834,
7,
834,
584,
4280,
28027,
6,
1157,
834,
12406,
834,
7484,
834,
12675,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1157,
834,
12406,
834,
509,
834,
12675,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1157,
834,
12406,
834,
7484,
834,
12675,
3274,
96,
26,
9,
6961,
2662,
509,
115,
7,
121,
3430,
1801,
834,
10049,
3274,
96,
9,... |
What is the total number of Games, when Losses is greater than 6, when Club is "Club Sportif Sfaxien", and when Wins is less than 3? | CREATE TABLE table_name_58 (games VARCHAR, wins VARCHAR, losses VARCHAR, club VARCHAR) | SELECT COUNT(games) FROM table_name_58 WHERE losses > 6 AND club = "club sportif sfaxien" AND wins < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
7261,
7,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
8467,
2490,
431,
3430,
1886,
3274,
96,
13442,
23680,
3,
7,
11517,
23,
35,
121,
3430,
9204,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-1... |
What song came from volume:issue 68:20-24? | CREATE TABLE table_47548 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" text,
"Song" text,
"Artist" text
) | SELECT "Song" FROM table_47548 WHERE "Volume:Issue" = '68:20-24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3072,
3707,
41,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
1499,
6,
96,
196,
7,
7,
76,
15,
7678,
599,
7,
61,
121,
1499,
6,
96,
1326,
16789,
30,
2224,
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,
134,
2444,
121,
21680,
953,
834,
591,
3072,
3707,
549,
17444,
427,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
3274,
3,
31,
3651,
10,
1755,
14962,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When 169.182 is the average speed miles per hour what is the chassis? | CREATE TABLE table_1771753_3 (chassis VARCHAR, average_speed__mph_ VARCHAR) | SELECT chassis FROM table_1771753_3 WHERE average_speed__mph_ = "169.182" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26793,
2517,
4867,
834,
519,
41,
524,
6500,
7,
584,
4280,
28027,
6,
1348,
834,
9993,
834,
834,
7656,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
27096,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22836,
21680,
953,
834,
26793,
2517,
4867,
834,
519,
549,
17444,
427,
1348,
834,
9993,
834,
834,
7656,
834,
3274,
96,
27096,
5,
2606,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the most assists in the game against Miami? | CREATE TABLE table_17325937_8 (high_assists VARCHAR, team VARCHAR) | SELECT high_assists FROM table_17325937_8 WHERE team = "Miami" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2668,
3390,
4118,
834,
927,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
167,
13041,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2517,
2668,
3390,
4118,
834,
927,
549,
17444,
427,
372,
3274,
96,
329,
23,
3690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the 2008 for 2009 heartland high tech? | CREATE TABLE table_name_2 (
Id VARCHAR
) | SELECT 2008 FROM table_name_2 WHERE 2009 = "heartland high tech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2628,
21,
2464,
842,
40,
232,
306,
5256,
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,
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,
2628,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
2464,
3274,
96,
88,
1408,
40,
232,
306,
5256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.